ngx-techlify-core 19.0.0 → 22.3.0
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/fesm2022/ngx-techlify-core-base-model-oCILHkdE.mjs +677 -0
- package/fesm2022/ngx-techlify-core-base-model-oCILHkdE.mjs.map +1 -0
- package/fesm2022/ngx-techlify-core-shared.module-DROe5GRx.mjs +4842 -0
- package/fesm2022/ngx-techlify-core-shared.module-DROe5GRx.mjs.map +1 -0
- package/fesm2022/ngx-techlify-core-user-config.service-DW5EgXhL.mjs +133 -0
- package/fesm2022/ngx-techlify-core-user-config.service-DW5EgXhL.mjs.map +1 -0
- package/fesm2022/ngx-techlify-core-user-sessions.module-BRmDpYG3.mjs +2135 -0
- package/fesm2022/ngx-techlify-core-user-sessions.module-BRmDpYG3.mjs.map +1 -0
- package/fesm2022/ngx-techlify-core.mjs +32477 -16273
- package/fesm2022/ngx-techlify-core.mjs.map +1 -1
- package/package.json +19 -19
- package/styles/_index.scss +1 -1
- package/styles/style.scss +2 -2
- package/types/ngx-techlify-core.d.ts +6429 -0
- package/esm2022/lib/access-control-config/access-control-config-form/access-control-config-form.component.mjs +0 -126
- package/esm2022/lib/access-control-config/access-control-config-routing.module.mjs +0 -31
- package/esm2022/lib/access-control-config/access-control-config.component.mjs +0 -128
- package/esm2022/lib/access-control-config/access-control-config.model.mjs +0 -21
- package/esm2022/lib/access-control-config/access-control-config.module.mjs +0 -28
- package/esm2022/lib/access-control-config/access-control-config.service.mjs +0 -37
- package/esm2022/lib/action-popup/action-popup.component.mjs +0 -33
- package/esm2022/lib/action-popup/action-popup.model.mjs +0 -3
- package/esm2022/lib/action-popup/action-popup.module.mjs +0 -28
- package/esm2022/lib/action-popup/index.mjs +0 -3
- package/esm2022/lib/app-admin/admin-role/admin-role-list/admin-role-list-routing.module.mjs +0 -26
- package/esm2022/lib/app-admin/admin-role/admin-role-list/admin-role-list.component.mjs +0 -115
- package/esm2022/lib/app-admin/admin-role/admin-role-list/admin-role-list.module.mjs +0 -33
- package/esm2022/lib/app-admin/admin-role/admin-role-permission-form/admin-role-permission-form.component.mjs +0 -87
- package/esm2022/lib/app-admin/admin-role/admin-role-permission-form/admin-role-permission-form.module.mjs +0 -22
- package/esm2022/lib/app-admin/admin-role/admin-role.service.mjs +0 -24
- package/esm2022/lib/app-admin/app-admin-home/app-admin-home.component.mjs +0 -17
- package/esm2022/lib/app-admin/app-admin-routing.module.mjs +0 -29
- package/esm2022/lib/app-admin/app-admin.module.mjs +0 -22
- package/esm2022/lib/app-admin/tenant/tenant-list-widget/tenant-list-widget.component.mjs +0 -56
- package/esm2022/lib/audit-log/audit-log-for-model/audit-log-for-model-routing.module.mjs +0 -18
- package/esm2022/lib/audit-log/audit-log-for-model/audit-log-for-model.component.mjs +0 -61
- package/esm2022/lib/audit-log/audit-log-for-model/audit-log-for-model.module.mjs +0 -32
- package/esm2022/lib/audit-log/audit-log-list/audit-log-list-routing.module.mjs +0 -18
- package/esm2022/lib/audit-log/audit-log-list/audit-log-list.component.mjs +0 -149
- package/esm2022/lib/audit-log/audit-log-list/audit-log-list.module.mjs +0 -28
- package/esm2022/lib/audit-log/audit-log-list-filter/audit-log-list-filter-routing.module.mjs +0 -18
- package/esm2022/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.mjs +0 -56
- package/esm2022/lib/audit-log/audit-log-list-filter/audit-log-list-filter.module.mjs +0 -24
- package/esm2022/lib/audit-log/audit-log-routing.module.mjs +0 -25
- package/esm2022/lib/audit-log/audit-log-view/audit-log-view-routing.module.mjs +0 -18
- package/esm2022/lib/audit-log/audit-log-view/audit-log-view.component.mjs +0 -53
- package/esm2022/lib/audit-log/audit-log-view/audit-log-view.module.mjs +0 -24
- package/esm2022/lib/audit-log/audit-log-view-model/audit-log-view-model-routing.module.mjs +0 -18
- package/esm2022/lib/audit-log/audit-log-view-model/audit-log-view-model.component.mjs +0 -55
- package/esm2022/lib/audit-log/audit-log-view-model/audit-log-view-model.module.mjs +0 -24
- package/esm2022/lib/audit-log/audit-log.module.mjs +0 -31
- package/esm2022/lib/audit-log/audit-log.service.mjs +0 -18
- package/esm2022/lib/audit-log/audit-logs-view-model/audit-logs-view-model-routing.module.mjs +0 -18
- package/esm2022/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.mjs +0 -23
- package/esm2022/lib/audit-log/audit-logs-view-model/audit-logs-view-model.module.mjs +0 -28
- package/esm2022/lib/base-model/index.mjs +0 -8
- package/esm2022/lib/base-model/techlify-form/contract/techlify-form.contract.mjs +0 -191
- package/esm2022/lib/base-model/techlify-form/techlify-form.component.mjs +0 -134
- package/esm2022/lib/base-model/techlify-list/contract/techlify-list.contract.mjs +0 -69
- package/esm2022/lib/base-model/techlify-list/techlify-list.component.mjs +0 -331
- package/esm2022/lib/base-model/techlify-service.mjs +0 -68
- package/esm2022/lib/base-model/techlify-show/contract/techlify-show.contract.mjs +0 -84
- package/esm2022/lib/base-model/techlify-show/techlify-show.component.mjs +0 -120
- package/esm2022/lib/change-password/change-password-routing.module.mjs +0 -24
- package/esm2022/lib/change-password/change-password.component.mjs +0 -86
- package/esm2022/lib/change-password/change-password.module.mjs +0 -29
- package/esm2022/lib/column-selector/column-config.model.mjs +0 -3
- package/esm2022/lib/column-selector/column-selector/column-selector.component.mjs +0 -108
- package/esm2022/lib/column-selector/column-selector.module.mjs +0 -24
- package/esm2022/lib/column-selector/index.mjs +0 -4
- package/esm2022/lib/company-information/client.service.mjs +0 -19
- package/esm2022/lib/company-information/company-info-display/company-info-display.component.mjs +0 -44
- package/esm2022/lib/company-information/company-information/company-information.component.mjs +0 -120
- package/esm2022/lib/company-information/tenant-form-button/tenant-form-button.component.mjs +0 -36
- package/esm2022/lib/core/alert.service.mjs +0 -38
- package/esm2022/lib/core/api-prefix.interceptor.mjs +0 -26
- package/esm2022/lib/core/app-update.service.mjs +0 -64
- package/esm2022/lib/core/authentication.guard.mjs +0 -35
- package/esm2022/lib/core/authentication.service.mjs +0 -67
- package/esm2022/lib/core/cache.interceptor.mjs +0 -58
- package/esm2022/lib/core/config.service.mjs +0 -45
- package/esm2022/lib/core/core.module.mjs +0 -56
- package/esm2022/lib/core/credentials.service.mjs +0 -84
- package/esm2022/lib/core/environment.service.mjs +0 -22
- package/esm2022/lib/core/error-handler.interceptor.mjs +0 -60
- package/esm2022/lib/core/error-handler.service.mjs +0 -68
- package/esm2022/lib/core/filter.service.mjs +0 -40
- package/esm2022/lib/core/form-validator.service.mjs +0 -24
- package/esm2022/lib/core/header.interceptor.mjs +0 -24
- package/esm2022/lib/core/http-cache.service.mjs +0 -107
- package/esm2022/lib/core/http.service.mjs +0 -84
- package/esm2022/lib/core/index.mjs +0 -23
- package/esm2022/lib/core/logger.service.mjs +0 -100
- package/esm2022/lib/core/route-reusable-strategy.mjs +0 -36
- package/esm2022/lib/core/snack/snack.component.mjs +0 -33
- package/esm2022/lib/core/snack/snack.module.mjs +0 -36
- package/esm2022/lib/core/storage.service.mjs +0 -38
- package/esm2022/lib/core/techlify-config.model.mjs +0 -28
- package/esm2022/lib/core/token.interceptor.mjs +0 -28
- package/esm2022/lib/custom-icon/custom-icon-registry.service.mjs +0 -23
- package/esm2022/lib/custom-icon/custom-icon.component.mjs +0 -24
- package/esm2022/lib/custom-icon/custom-icon.module.mjs +0 -20
- package/esm2022/lib/custom-icon/custom-icons.registry.mjs +0 -42
- package/esm2022/lib/data-table/data-table.component.mjs +0 -203
- package/esm2022/lib/data-table/data-table.model.mjs +0 -11
- package/esm2022/lib/data-table/data-table.module.mjs +0 -24
- package/esm2022/lib/data-table/index.mjs +0 -3
- package/esm2022/lib/delete-button/techlify-delete-button.component.mjs +0 -74
- package/esm2022/lib/detail-layout/techlify-detail-layout.component.mjs +0 -11
- package/esm2022/lib/document-viewer/document-viewer.component.mjs +0 -64
- package/esm2022/lib/document-viewer/document-viewer.module.mjs +0 -32
- package/esm2022/lib/document-viewer/index.mjs +0 -3
- package/esm2022/lib/document-viewer/viewer-config.model.mjs +0 -3
- package/esm2022/lib/email-subscription/email-subscription-for-user/email-subscription-for-user-routing.module.mjs +0 -32
- package/esm2022/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.mjs +0 -73
- package/esm2022/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.module.mjs +0 -24
- package/esm2022/lib/email-subscription/email-subscription-for-user/index.mjs +0 -2
- package/esm2022/lib/email-subscription/email-subscription-routing.module.mjs +0 -18
- package/esm2022/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form-routing.module.mjs +0 -18
- package/esm2022/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.mjs +0 -104
- package/esm2022/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.module.mjs +0 -28
- package/esm2022/lib/email-subscription/email-subscription-type/email-subscription-type-form/index.mjs +0 -2
- package/esm2022/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list-routing.module.mjs +0 -34
- package/esm2022/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.mjs +0 -160
- package/esm2022/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.module.mjs +0 -28
- package/esm2022/lib/email-subscription/email-subscription-type/email-subscription-type-list/index.mjs +0 -2
- package/esm2022/lib/email-subscription/email-subscription-type/email-subscription-type-routing.module.mjs +0 -18
- package/esm2022/lib/email-subscription/email-subscription-type/email-subscription-type.module.mjs +0 -22
- package/esm2022/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form-routing.module.mjs +0 -18
- package/esm2022/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.mjs +0 -100
- package/esm2022/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.module.mjs +0 -27
- package/esm2022/lib/email-subscription/email-subscription-user/email-subscription-user-form/index.mjs +0 -2
- package/esm2022/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list-routing.module.mjs +0 -34
- package/esm2022/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.mjs +0 -164
- package/esm2022/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.module.mjs +0 -32
- package/esm2022/lib/email-subscription/email-subscription-user/email-subscription-user-list/index.mjs +0 -2
- package/esm2022/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter-routing.module.mjs +0 -18
- package/esm2022/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.mjs +0 -51
- package/esm2022/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.module.mjs +0 -24
- package/esm2022/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/index.mjs +0 -2
- package/esm2022/lib/email-subscription/email-subscription-user/email-subscription-user-routing.module.mjs +0 -18
- package/esm2022/lib/email-subscription/email-subscription-user/email-subscription-user.module.mjs +0 -22
- package/esm2022/lib/email-subscription/email-subscription.module.mjs +0 -22
- package/esm2022/lib/entity-files/entity-file-form/entity-file-form.component.mjs +0 -160
- package/esm2022/lib/entity-files/entity-file-list/entity-file-list.component.mjs +0 -251
- package/esm2022/lib/entity-files/entity-file-list-widget/entity-file-list-widget.component.mjs +0 -33
- package/esm2022/lib/entity-files/entity-file-list.module.mjs +0 -43
- package/esm2022/lib/entity-files/entity-file.service.mjs +0 -37
- package/esm2022/lib/entity-files/index.mjs +0 -5
- package/esm2022/lib/export-excel/export-excel-button/export-excel-button.component.mjs +0 -112
- package/esm2022/lib/export-excel/export-excel.module.mjs +0 -28
- package/esm2022/lib/file-dragdrop-uploader/file-dragdrop-uploader/file-dragdrop-uploader.component.mjs +0 -103
- package/esm2022/lib/file-dragdrop-uploader/file-dragdrop-uploader.module.mjs +0 -24
- package/esm2022/lib/file-dropper/file-dropper.component.mjs +0 -125
- package/esm2022/lib/file-dropper/file-dropper.model.mjs +0 -3
- package/esm2022/lib/file-dropper/file-dropper.module.mjs +0 -26
- package/esm2022/lib/file-dropper/index.mjs +0 -3
- package/esm2022/lib/file-upload-button/file-upload-button.component.mjs +0 -47
- package/esm2022/lib/forgot-password/forgot-password-routing.module.mjs +0 -22
- package/esm2022/lib/forgot-password/forgot-password.component.mjs +0 -69
- package/esm2022/lib/forgot-password/forgot-password.module.mjs +0 -26
- package/esm2022/lib/forgot-password/index.mjs +0 -3
- package/esm2022/lib/form-button/techlify-form-button.component.mjs +0 -39
- package/esm2022/lib/form-configuration/form-configuration-field-form/form-configuration-field-form-routing.module.mjs +0 -29
- package/esm2022/lib/form-configuration/form-configuration-field-form/form-configuration-field-form.component.mjs +0 -43
- package/esm2022/lib/form-configuration/form-configuration-field-form/form-configuration-field-form.module.mjs +0 -24
- package/esm2022/lib/form-configuration/form-configuration-for-form/form-configuration-for-form.component.mjs +0 -22
- package/esm2022/lib/form-configuration/form-configuration-for-form/form-configuration-for-form.module.mjs +0 -28
- package/esm2022/lib/form-configuration/form-configuration-form-field.service.mjs +0 -18
- package/esm2022/lib/form-configuration/form-configuration-form.service.mjs +0 -18
- package/esm2022/lib/form-configuration/form-configuration-utility.service.mjs +0 -37
- package/esm2022/lib/image-preview/image-preview.component.mjs +0 -26
- package/esm2022/lib/import-csv/data-import/data-import.component.mjs +0 -17
- package/esm2022/lib/import-csv/failed-items-list/failed-items-list.component.mjs +0 -34
- package/esm2022/lib/import-csv/field-mapping/field-mapping.component.mjs +0 -152
- package/esm2022/lib/import-csv/import-csv-config.mjs +0 -2
- package/esm2022/lib/import-csv/import-csv.component.mjs +0 -209
- package/esm2022/lib/import-csv/import-csv.module.mjs +0 -44
- package/esm2022/lib/import-csv/import-history-list/import-history-list.component.mjs +0 -70
- package/esm2022/lib/import-csv/import-success/import-success.component.mjs +0 -23
- package/esm2022/lib/ip-address-selector/ip-address-selector.module.mjs +0 -24
- package/esm2022/lib/ip-address-selector/ip-range-selector/ip-range-selector.component.mjs +0 -108
- package/esm2022/lib/loader/index.mjs +0 -2
- package/esm2022/lib/loader/loader.component.mjs +0 -23
- package/esm2022/lib/loader/loader.module.mjs +0 -28
- package/esm2022/lib/local-date-parser.mjs +0 -6
- package/esm2022/lib/locked-date/index.mjs +0 -6
- package/esm2022/lib/locked-date/locked-date-form/locked-date-form.component.mjs +0 -72
- package/esm2022/lib/locked-date/locked-date-lock-unlock-button/locked-date-lock-unlock-button.component.mjs +0 -35
- package/esm2022/lib/locked-date/locked-date.model.mjs +0 -3
- package/esm2022/lib/locked-date/locked-date.module.mjs +0 -34
- package/esm2022/lib/locked-date/locked-date.service.mjs +0 -25
- package/esm2022/lib/locked-date/locked-dates-list/locked-date-list.component.mjs +0 -62
- package/esm2022/lib/login/index.mjs +0 -3
- package/esm2022/lib/login/login-form-fields/login-form-fields.component.mjs +0 -152
- package/esm2022/lib/login/login-routing.module.mjs +0 -23
- package/esm2022/lib/login/login.component.mjs +0 -88
- package/esm2022/lib/login/login.module.mjs +0 -33
- package/esm2022/lib/login-history-for-user/login-history-for-user-routing.module.mjs +0 -26
- package/esm2022/lib/login-history-for-user/login-history-for-user.component.mjs +0 -91
- package/esm2022/lib/login-history-for-user/login-history-for-user.module.mjs +0 -24
- package/esm2022/lib/material.module.mjs +0 -128
- package/esm2022/lib/ngx-techlify-users/ngx-techlify-users-routing.module.mjs +0 -43
- package/esm2022/lib/ngx-techlify-users/ngx-techlify-users.module.mjs +0 -22
- package/esm2022/lib/note/comment-form/comment-form.component.mjs +0 -76
- package/esm2022/lib/note/index.mjs +0 -5
- package/esm2022/lib/note/note-comment-list/note-comment-list.component.mjs +0 -102
- package/esm2022/lib/note/note-form/note-form.component.mjs +0 -63
- package/esm2022/lib/note/note-list/note-list.component.mjs +0 -111
- package/esm2022/lib/note/note.module.mjs +0 -30
- package/esm2022/lib/note/note.service.mjs +0 -18
- package/esm2022/lib/number-input-button/index.mjs +0 -3
- package/esm2022/lib/number-input-button/number-input-button/number-input-button.component.mjs +0 -104
- package/esm2022/lib/number-input-button/number-input-button.module.mjs +0 -24
- package/esm2022/lib/number-selector/number-selector.component.mjs +0 -116
- package/esm2022/lib/ordinal-pipe/ordinal-pipe.mjs +0 -30
- package/esm2022/lib/password-requirement-check/password-check-result.mjs +0 -2
- package/esm2022/lib/password-requirement-check/password-check.service.mjs +0 -43
- package/esm2022/lib/password-requirement-check/password-requirement-check/password-requirement-check.component.mjs +0 -56
- package/esm2022/lib/password-requirement-check/password-requirement-check.module.mjs +0 -24
- package/esm2022/lib/pdf-button/pdf-button.component.mjs +0 -35
- package/esm2022/lib/pdf-button/pdf-button.module.mjs +0 -23
- package/esm2022/lib/phone-number-selector/country.service.mjs +0 -31
- package/esm2022/lib/phone-number-selector/phone-number-selector.component.mjs +0 -172
- package/esm2022/lib/pipes/file-size.pipe.mjs +0 -21
- package/esm2022/lib/pipes/wrap.pipe.mjs +0 -20
- package/esm2022/lib/profile/index.mjs +0 -3
- package/esm2022/lib/profile/profile-edit.component.mjs +0 -75
- package/esm2022/lib/profile/profile-routing.module.mjs +0 -23
- package/esm2022/lib/profile/profile.module.mjs +0 -28
- package/esm2022/lib/read-more/read-more.component.mjs +0 -43
- package/esm2022/lib/read-more/read-more.module.mjs +0 -26
- package/esm2022/lib/request-helper/request-helper.service.mjs +0 -131
- package/esm2022/lib/reset-password/index.mjs +0 -4
- package/esm2022/lib/reset-password/reset-password-routing.module.mjs +0 -22
- package/esm2022/lib/reset-password/reset-password.component.mjs +0 -89
- package/esm2022/lib/reset-password/reset-password.module.mjs +0 -30
- package/esm2022/lib/reset-password/reset-password.service.mjs +0 -25
- package/esm2022/lib/restrictors/index.mjs +0 -4
- package/esm2022/lib/restrictors/restrictor-level-selector/restrictor-level-selector/restrictor-level-selector.component.mjs +0 -91
- package/esm2022/lib/restrictors/restrictor-level-selector/restrictor-level-selector.module.mjs +0 -24
- package/esm2022/lib/restrictors/restrictor-level-selector/restrictor-level.service.mjs +0 -19
- package/esm2022/lib/restrictors/restrictor-status-selector/restrictor-status-selector/restrictor-status-selector.component.mjs +0 -91
- package/esm2022/lib/restrictors/restrictor-status-selector/restrictor-status-selector.module.mjs +0 -24
- package/esm2022/lib/restrictors/restrictor-status-selector/restrictor-status.service.mjs +0 -19
- package/esm2022/lib/restrictors/restrictor-type-selector/restrictor-type-selector/restrictor-type-selector.component.mjs +0 -92
- package/esm2022/lib/restrictors/restrictor-type-selector/restrictor-type-selector.module.mjs +0 -24
- package/esm2022/lib/restrictors/restrictor-type-selector/restrictor-type.service.mjs +0 -19
- package/esm2022/lib/restrictors/restrictor.service.mjs +0 -19
- package/esm2022/lib/restrictors/restrictors-form/restrictors-form.component.mjs +0 -101
- package/esm2022/lib/restrictors/restrictors-form-page/restrictors-form-page.component.mjs +0 -43
- package/esm2022/lib/restrictors/restrictors-list-page/restrictors-list-page.component.mjs +0 -141
- package/esm2022/lib/restrictors/restrictors-routing.module.mjs +0 -42
- package/esm2022/lib/restrictors/restrictors.module.mjs +0 -47
- package/esm2022/lib/role/index.mjs +0 -10
- package/esm2022/lib/role/permission/permission.model.mjs +0 -9
- package/esm2022/lib/role/permission/permission.module.mjs +0 -30
- package/esm2022/lib/role/permission/permission.routes.mjs +0 -26
- package/esm2022/lib/role/permission/permissions-management.component.mjs +0 -127
- package/esm2022/lib/role/role-form-button.component.mjs +0 -44
- package/esm2022/lib/role/role-form.component.mjs +0 -82
- package/esm2022/lib/role/role-list/role-list.component.mjs +0 -120
- package/esm2022/lib/role/role-view/role-view-routing.module.mjs +0 -26
- package/esm2022/lib/role/role-view/role-view.component.mjs +0 -38
- package/esm2022/lib/role/role-view/role-view.module.mjs +0 -28
- package/esm2022/lib/role/role.model.mjs +0 -56
- package/esm2022/lib/role/role.module.mjs +0 -38
- package/esm2022/lib/role/role.routes.mjs +0 -31
- package/esm2022/lib/role/role.service.mjs +0 -23
- package/esm2022/lib/searchable-selector/index.mjs +0 -2
- package/esm2022/lib/searchable-selector/searchable-selector.component.mjs +0 -384
- package/esm2022/lib/searchable-selector/searchable-selector.module.mjs +0 -36
- package/esm2022/lib/shared.module.mjs +0 -85
- package/esm2022/lib/signup/index.mjs +0 -3
- package/esm2022/lib/signup/signup-routing.module.mjs +0 -22
- package/esm2022/lib/signup/signup.component.mjs +0 -78
- package/esm2022/lib/signup/signup.module.mjs +0 -26
- package/esm2022/lib/subscription/subscription-form/subscription-form-routing.module.mjs +0 -18
- package/esm2022/lib/subscription/subscription-form/subscription-form.component.mjs +0 -148
- package/esm2022/lib/subscription/subscription-form/subscription-form.module.mjs +0 -26
- package/esm2022/lib/subscription/subscription-listing/subscription-listing-routing.module.mjs +0 -26
- package/esm2022/lib/subscription/subscription-listing/subscription-listing.component.mjs +0 -128
- package/esm2022/lib/subscription/subscription-listing/subscription-listing.module.mjs +0 -30
- package/esm2022/lib/subscription/subscription-package-listing/subscription-package-listing-routing.module.mjs +0 -26
- package/esm2022/lib/subscription/subscription-package-listing/subscription-package-listing.component.mjs +0 -116
- package/esm2022/lib/subscription/subscription-package-listing/subscription-package-listing.module.mjs +0 -25
- package/esm2022/lib/subscription/subscription-package-view/subscription-package-view-routing.module.mjs +0 -26
- package/esm2022/lib/subscription/subscription-package-view/subscription-package-view.component.mjs +0 -38
- package/esm2022/lib/subscription/subscription-package-view/subscription-package-view.module.mjs +0 -29
- package/esm2022/lib/subscription/subscription-package.service.mjs +0 -21
- package/esm2022/lib/subscription/subscription-status.enum.mjs +0 -6
- package/esm2022/lib/subscription/subscription.service.mjs +0 -40
- package/esm2022/lib/subscription/techlify-subscription-directive.module.mjs +0 -20
- package/esm2022/lib/subscription/techlify-subscription.directive.mjs +0 -33
- package/esm2022/lib/tag/tag.service.mjs +0 -18
- package/esm2022/lib/tag/techlify-tagger-tag-form/techlify-tagger-tag-form.component.mjs +0 -71
- package/esm2022/lib/tag/techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model.mjs +0 -15
- package/esm2022/lib/tag/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.mjs +0 -266
- package/esm2022/lib/tag/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.module.mjs +0 -22
- package/esm2022/lib/tag/techlify-tagger-tag-list/techlify-tagger-tag-list.component.mjs +0 -57
- package/esm2022/lib/tag/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.mjs +0 -181
- package/esm2022/lib/tag/techlify-tagger-tag-selector/techlify-tagger-tag-selector.module.mjs +0 -22
- package/esm2022/lib/techlify-app-selector/techlify-app-selector.component.mjs +0 -50
- package/esm2022/lib/techlify-app-selector/techlify-app-selector.module.mjs +0 -28
- package/esm2022/lib/techlify-auto-complete-select/techlify-auto-complete-select.component.mjs +0 -185
- package/esm2022/lib/techlify-company-switcher/index.mjs +0 -3
- package/esm2022/lib/techlify-company-switcher/techlify-company-switcher/techlify-company-switcher.component.mjs +0 -70
- package/esm2022/lib/techlify-company-switcher/techlify-company-switcher.module.mjs +0 -32
- package/esm2022/lib/techlify-currency-pipe/techlify-currency-pipe.directive.mjs +0 -27
- package/esm2022/lib/techlify-feature/on-off-switch/on-off-switch.component.mjs +0 -24
- package/esm2022/lib/techlify-feature/techlify-feature-directive.module.mjs +0 -20
- package/esm2022/lib/techlify-feature/techlify-feature-enabled.directive.mjs +0 -32
- package/esm2022/lib/techlify-feature/techlify-feature-listing.component.mjs +0 -141
- package/esm2022/lib/techlify-feature/techlify-feature.module.mjs +0 -28
- package/esm2022/lib/techlify-feature/techlify-feature.routing.mjs +0 -12
- package/esm2022/lib/techlify-feature/techlify-feature.service.mjs +0 -43
- package/esm2022/lib/techlify-icon/techlify-icon.component.mjs +0 -77
- package/esm2022/lib/techlify-icon/techlify-icon.module.mjs +0 -24
- package/esm2022/lib/techlify-notifications/index.mjs +0 -9
- package/esm2022/lib/techlify-notifications/techlify-notification-for-user/techlify-notification-for-user-routing.module.mjs +0 -26
- package/esm2022/lib/techlify-notifications/techlify-notification-for-user/techlify-notification-for-user.component.mjs +0 -52
- package/esm2022/lib/techlify-notifications/techlify-notification-for-user/techlify-notification-for-user.module.mjs +0 -26
- package/esm2022/lib/techlify-notifications/techlify-notification-for-user/techlify-notification-subscription.service.mjs +0 -18
- package/esm2022/lib/techlify-notifications/techlify-notification-for-user/techlify-notification-type.service.mjs +0 -18
- package/esm2022/lib/techlify-notifications/techlify-notification-routing.module.mjs +0 -18
- package/esm2022/lib/techlify-notifications/techlify-notification.module.mjs +0 -22
- package/esm2022/lib/techlify-update/techlify-update-form/techlify-update-form.component.mjs +0 -115
- package/esm2022/lib/techlify-update/techlify-update-form/techlify-update-form.module.mjs +0 -26
- package/esm2022/lib/techlify-update/techlify-update-history/techlify-update-history-routing.module.mjs +0 -28
- package/esm2022/lib/techlify-update/techlify-update-history/techlify-update-history.component.mjs +0 -143
- package/esm2022/lib/techlify-update/techlify-update-history/techlify-update-history.module.mjs +0 -23
- package/esm2022/lib/techlify-update/techlify-update-routing.module.mjs +0 -28
- package/esm2022/lib/techlify-update/techlify-update.module.mjs +0 -27
- package/esm2022/lib/techlify-update/techlify-update.service.mjs +0 -41
- package/esm2022/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.mjs +0 -160
- package/esm2022/lib/techlify-update/techlify-updates-teaser/techlify-updates-teaser.component.mjs +0 -58
- package/esm2022/lib/techlify-update/techlify-updates-teaser/techlify-updates-teaser.module.mjs +0 -22
- package/esm2022/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.mjs +0 -76
- package/esm2022/lib/techlify-update/update-notifier/update-notifier.component.mjs +0 -53
- package/esm2022/lib/techlify-update/update-notifier/update-notifier.module.mjs +0 -27
- package/esm2022/lib/techlify-update/update-view/update-view.component.mjs +0 -37
- package/esm2022/lib/techlify-update/update-view/update-view.module.mjs +0 -22
- package/esm2022/lib/techlify-view/my-techlify-view-listing/my-techlify-view-listing.component.mjs +0 -90
- package/esm2022/lib/techlify-view/my-techlify-view-listing/my-techlify-view-listing.module.mjs +0 -24
- package/esm2022/lib/techlify-view/my-techlify-view-listing/my-techlify-view.service.mjs +0 -18
- package/esm2022/lib/techlify-view/techlify-view-form/techlify-view-form.component.mjs +0 -95
- package/esm2022/lib/techlify-view/techlify-view-form/techlify-view-form.module.mjs +0 -20
- package/esm2022/lib/techlify-view/techlify-view.service.mjs +0 -18
- package/esm2022/lib/timeline-activity/timeline-activity-button/timeline-activity-button-routing.module.mjs +0 -18
- package/esm2022/lib/timeline-activity/timeline-activity-button/timeline-activity-button.component.mjs +0 -42
- package/esm2022/lib/timeline-activity/timeline-activity-button/timeline-activity-button.module.mjs +0 -28
- package/esm2022/lib/timeline-activity/timeline-activity-list/timeline-activity-list-routing.module.mjs +0 -18
- package/esm2022/lib/timeline-activity/timeline-activity-list/timeline-activity-list.component.mjs +0 -87
- package/esm2022/lib/timeline-activity/timeline-activity-list/timeline-activity-list.module.mjs +0 -24
- package/esm2022/lib/timeline-activity/timeline-activity.service.mjs +0 -18
- package/esm2022/lib/timeline-filter/calculate-timeline.mjs +0 -103
- package/esm2022/lib/timeline-filter/index.mjs +0 -4
- package/esm2022/lib/timeline-filter/timeline-filter-routing.module.mjs +0 -18
- package/esm2022/lib/timeline-filter/timeline-filter.component.mjs +0 -290
- package/esm2022/lib/timeline-filter/timeline-filter.module.mjs +0 -60
- package/esm2022/lib/timeline-filter/timeline.model.mjs +0 -18
- package/esm2022/lib/user/app-admin-user-list/app-admin-user-list.component.mjs +0 -155
- package/esm2022/lib/user/app-admin-user-view/app-admin-user-view.component.mjs +0 -52
- package/esm2022/lib/user/app-admin-user-view/app-admin-user-view.module.mjs +0 -44
- package/esm2022/lib/user/app-admin-user-view/app-admin-user-view.routes.mjs +0 -22
- package/esm2022/lib/user/current-user.service.mjs +0 -152
- package/esm2022/lib/user/index.mjs +0 -14
- package/esm2022/lib/user/user-enable-button-component/user-enable-button.component.mjs +0 -93
- package/esm2022/lib/user/user-enable-button-component/user-enable-button.module.mjs +0 -20
- package/esm2022/lib/user/user-explore.component.mjs +0 -49
- package/esm2022/lib/user/user-form/user-form.component.mjs +0 -200
- package/esm2022/lib/user/user-list/user-list.component.mjs +0 -145
- package/esm2022/lib/user/user-sessions/user-session.service.mjs +0 -18
- package/esm2022/lib/user/user-sessions/user-sessions/user-sessions.component.mjs +0 -47
- package/esm2022/lib/user/user-sessions/user-sessions/user-sessions.module.mjs +0 -20
- package/esm2022/lib/user/user-type.enum.mjs +0 -7
- package/esm2022/lib/user/user-view.component.mjs +0 -58
- package/esm2022/lib/user/user.model.mjs +0 -31
- package/esm2022/lib/user/user.module.mjs +0 -68
- package/esm2022/lib/user/user.routes.mjs +0 -30
- package/esm2022/lib/user/user.service.mjs +0 -42
- package/esm2022/lib/user-client-enable-disable-button/user-client-enable-disable-button.component.mjs +0 -53
- package/esm2022/lib/user-client-enable-disable-button/user-client-enable-disable-button.module.mjs +0 -20
- package/esm2022/lib/user-clients-list/user-clients-list.component.mjs +0 -50
- package/esm2022/lib/user-clients-list/user-clients-list.module.mjs +0 -24
- package/esm2022/lib/user-clients-list/user-tenant.service.mjs +0 -24
- package/esm2022/lib/user-config/index.mjs +0 -3
- package/esm2022/lib/user-config/user-config.model.mjs +0 -50
- package/esm2022/lib/user-config/user-config.service.mjs +0 -65
- package/esm2022/lib/user-menu/user-menu.component.mjs +0 -39
- package/esm2022/lib/user-menu/user-menu.module.mjs +0 -28
- package/esm2022/lib/user-selector/index.mjs +0 -3
- package/esm2022/lib/user-selector/user-data.service.mjs +0 -35
- package/esm2022/lib/user-selector/user-selector.component.mjs +0 -86
- package/esm2022/lib/user-selector/user-selector.module.mjs +0 -26
- package/esm2022/lib/utility/date-utils.service.mjs +0 -89
- package/esm2022/lib/utility/index.mjs +0 -3
- package/esm2022/lib/utility/num-items-selector.component.mjs +0 -31
- package/esm2022/lib/utility/utility.module.mjs +0 -22
- package/esm2022/lib/validators/date.validator.mjs +0 -31
- package/esm2022/ngx-techlify-core.mjs +0 -5
- package/esm2022/public-api.mjs +0 -232
- package/index.d.ts +0 -5
- package/lib/access-control-config/access-control-config-form/access-control-config-form.component.d.ts +0 -44
- package/lib/access-control-config/access-control-config-routing.module.d.ts +0 -7
- package/lib/access-control-config/access-control-config.component.d.ts +0 -30
- package/lib/access-control-config/access-control-config.model.d.ts +0 -17
- package/lib/access-control-config/access-control-config.module.d.ts +0 -10
- package/lib/access-control-config/access-control-config.service.d.ts +0 -15
- package/lib/action-popup/action-popup.component.d.ts +0 -17
- package/lib/action-popup/action-popup.model.d.ts +0 -5
- package/lib/action-popup/action-popup.module.d.ts +0 -9
- package/lib/action-popup/index.d.ts +0 -2
- package/lib/app-admin/admin-role/admin-role-list/admin-role-list-routing.module.d.ts +0 -7
- package/lib/app-admin/admin-role/admin-role-list/admin-role-list.component.d.ts +0 -29
- package/lib/app-admin/admin-role/admin-role-list/admin-role-list.module.d.ts +0 -11
- package/lib/app-admin/admin-role/admin-role-permission-form/admin-role-permission-form.component.d.ts +0 -28
- package/lib/app-admin/admin-role/admin-role-permission-form/admin-role-permission-form.module.d.ts +0 -8
- package/lib/app-admin/admin-role/admin-role.service.d.ts +0 -11
- package/lib/app-admin/app-admin-home/app-admin-home.component.d.ts +0 -5
- package/lib/app-admin/app-admin-routing.module.d.ts +0 -7
- package/lib/app-admin/app-admin.module.d.ts +0 -8
- package/lib/app-admin/tenant/tenant-list-widget/tenant-list-widget.component.d.ts +0 -13
- package/lib/audit-log/audit-log-for-model/audit-log-for-model-routing.module.d.ts +0 -7
- package/lib/audit-log/audit-log-for-model/audit-log-for-model.component.d.ts +0 -20
- package/lib/audit-log/audit-log-for-model/audit-log-for-model.module.d.ts +0 -11
- package/lib/audit-log/audit-log-list/audit-log-list-routing.module.d.ts +0 -7
- package/lib/audit-log/audit-log-list/audit-log-list.component.d.ts +0 -33
- package/lib/audit-log/audit-log-list/audit-log-list.module.d.ts +0 -10
- package/lib/audit-log/audit-log-list-filter/audit-log-list-filter-routing.module.d.ts +0 -7
- package/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.d.ts +0 -20
- package/lib/audit-log/audit-log-list-filter/audit-log-list-filter.module.d.ts +0 -9
- package/lib/audit-log/audit-log-routing.module.d.ts +0 -7
- package/lib/audit-log/audit-log-view/audit-log-view-routing.module.d.ts +0 -7
- package/lib/audit-log/audit-log-view/audit-log-view.component.d.ts +0 -20
- package/lib/audit-log/audit-log-view/audit-log-view.module.d.ts +0 -9
- package/lib/audit-log/audit-log-view-model/audit-log-view-model-routing.module.d.ts +0 -7
- package/lib/audit-log/audit-log-view-model/audit-log-view-model.component.d.ts +0 -18
- package/lib/audit-log/audit-log-view-model/audit-log-view-model.module.d.ts +0 -9
- package/lib/audit-log/audit-log.module.d.ts +0 -10
- package/lib/audit-log/audit-log.service.d.ts +0 -8
- package/lib/audit-log/audit-logs-view-model/audit-logs-view-model-routing.module.d.ts +0 -7
- package/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.d.ts +0 -12
- package/lib/audit-log/audit-logs-view-model/audit-logs-view-model.module.d.ts +0 -10
- package/lib/base-model/index.d.ts +0 -7
- package/lib/base-model/techlify-form/contract/techlify-form.contract.d.ts +0 -18
- package/lib/base-model/techlify-form/techlify-form.component.d.ts +0 -69
- package/lib/base-model/techlify-list/contract/techlify-list.contract.d.ts +0 -9
- package/lib/base-model/techlify-list/techlify-list.component.d.ts +0 -175
- package/lib/base-model/techlify-service.d.ts +0 -54
- package/lib/base-model/techlify-show/contract/techlify-show.contract.d.ts +0 -17
- package/lib/base-model/techlify-show/techlify-show.component.d.ts +0 -71
- package/lib/change-password/change-password-routing.module.d.ts +0 -7
- package/lib/change-password/change-password.component.d.ts +0 -27
- package/lib/change-password/change-password.module.d.ts +0 -10
- package/lib/column-selector/column-config.model.d.ts +0 -7
- package/lib/column-selector/column-selector/column-selector.component.d.ts +0 -27
- package/lib/column-selector/column-selector.module.d.ts +0 -8
- package/lib/column-selector/index.d.ts +0 -3
- package/lib/company-information/client.service.d.ts +0 -9
- package/lib/company-information/company-info-display/company-info-display.component.d.ts +0 -16
- package/lib/company-information/company-information/company-information.component.d.ts +0 -27
- package/lib/company-information/tenant-form-button/tenant-form-button.component.d.ts +0 -14
- package/lib/core/alert.service.d.ts +0 -15
- package/lib/core/api-prefix.interceptor.d.ts +0 -14
- package/lib/core/app-update.service.d.ts +0 -25
- package/lib/core/authentication.guard.d.ts +0 -13
- package/lib/core/authentication.service.d.ts +0 -28
- package/lib/core/cache.interceptor.d.ts +0 -24
- package/lib/core/config.service.d.ts +0 -22
- package/lib/core/core.module.d.ts +0 -10
- package/lib/core/credentials.service.d.ts +0 -39
- package/lib/core/environment.service.d.ts +0 -8
- package/lib/core/error-handler.interceptor.d.ts +0 -26
- package/lib/core/error-handler.service.d.ts +0 -19
- package/lib/core/filter.service.d.ts +0 -14
- package/lib/core/form-validator.service.d.ts +0 -11
- package/lib/core/header.interceptor.d.ts +0 -11
- package/lib/core/http-cache.service.d.ts +0 -57
- package/lib/core/http.service.d.ts +0 -59
- package/lib/core/index.d.ts +0 -22
- package/lib/core/logger.service.d.ts +0 -85
- package/lib/core/route-reusable-strategy.d.ts +0 -16
- package/lib/core/snack/snack.component.d.ts +0 -13
- package/lib/core/snack/snack.module.d.ts +0 -10
- package/lib/core/storage.service.d.ts +0 -18
- package/lib/core/techlify-config.model.d.ts +0 -18
- package/lib/core/token.interceptor.d.ts +0 -14
- package/lib/custom-icon/custom-icon-registry.service.d.ts +0 -10
- package/lib/custom-icon/custom-icon.component.d.ts +0 -11
- package/lib/custom-icon/custom-icon.module.d.ts +0 -8
- package/lib/custom-icon/custom-icons.registry.d.ts +0 -4
- package/lib/data-table/data-table.component.d.ts +0 -61
- package/lib/data-table/data-table.model.d.ts +0 -46
- package/lib/data-table/data-table.module.d.ts +0 -8
- package/lib/data-table/index.d.ts +0 -2
- package/lib/delete-button/techlify-delete-button.component.d.ts +0 -24
- package/lib/detail-layout/techlify-detail-layout.component.d.ts +0 -5
- package/lib/document-viewer/document-viewer.component.d.ts +0 -19
- package/lib/document-viewer/document-viewer.module.d.ts +0 -10
- package/lib/document-viewer/index.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 -12
- package/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.d.ts +0 -19
- package/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.module.d.ts +0 -9
- package/lib/email-subscription/email-subscription-for-user/index.d.ts +0 -1
- package/lib/email-subscription/email-subscription-routing.module.d.ts +0 -7
- package/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form-routing.module.d.ts +0 -7
- package/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.d.ts +0 -35
- package/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.module.d.ts +0 -10
- package/lib/email-subscription/email-subscription-type/email-subscription-type-form/index.d.ts +0 -1
- package/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list-routing.module.d.ts +0 -14
- package/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.d.ts +0 -32
- package/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.module.d.ts +0 -10
- 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 -7
- package/lib/email-subscription/email-subscription-type/email-subscription-type.module.d.ts +0 -8
- package/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form-routing.module.d.ts +0 -7
- package/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.d.ts +0 -35
- package/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.module.d.ts +0 -10
- package/lib/email-subscription/email-subscription-user/email-subscription-user-form/index.d.ts +0 -1
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list-routing.module.d.ts +0 -14
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.d.ts +0 -34
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.module.d.ts +0 -11
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list/index.d.ts +0 -1
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter-routing.module.d.ts +0 -7
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.d.ts +0 -16
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.module.d.ts +0 -9
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/index.d.ts +0 -1
- package/lib/email-subscription/email-subscription-user/email-subscription-user-routing.module.d.ts +0 -7
- package/lib/email-subscription/email-subscription-user/email-subscription-user.module.d.ts +0 -8
- package/lib/email-subscription/email-subscription.module.d.ts +0 -8
- package/lib/entity-files/entity-file-form/entity-file-form.component.d.ts +0 -42
- package/lib/entity-files/entity-file-list/entity-file-list.component.d.ts +0 -72
- package/lib/entity-files/entity-file-list-widget/entity-file-list-widget.component.d.ts +0 -9
- package/lib/entity-files/entity-file-list.module.d.ts +0 -13
- package/lib/entity-files/entity-file.service.d.ts +0 -11
- package/lib/entity-files/index.d.ts +0 -4
- package/lib/export-excel/export-excel-button/export-excel-button.component.d.ts +0 -21
- package/lib/export-excel/export-excel.module.d.ts +0 -10
- package/lib/file-dragdrop-uploader/file-dragdrop-uploader/file-dragdrop-uploader.component.d.ts +0 -31
- package/lib/file-dragdrop-uploader/file-dragdrop-uploader.module.d.ts +0 -8
- package/lib/file-dropper/file-dropper.component.d.ts +0 -36
- package/lib/file-dropper/file-dropper.model.d.ts +0 -10
- package/lib/file-dropper/file-dropper.module.d.ts +0 -9
- package/lib/file-dropper/index.d.ts +0 -2
- package/lib/file-upload-button/file-upload-button.component.d.ts +0 -20
- package/lib/forgot-password/forgot-password-routing.module.d.ts +0 -7
- package/lib/forgot-password/forgot-password.component.d.ts +0 -34
- package/lib/forgot-password/forgot-password.module.d.ts +0 -9
- package/lib/forgot-password/index.d.ts +0 -2
- package/lib/form-button/techlify-form-button.component.d.ts +0 -15
- package/lib/form-configuration/form-configuration-field-form/form-configuration-field-form-routing.module.d.ts +0 -7
- package/lib/form-configuration/form-configuration-field-form/form-configuration-field-form.component.d.ts +0 -18
- package/lib/form-configuration/form-configuration-field-form/form-configuration-field-form.module.d.ts +0 -9
- package/lib/form-configuration/form-configuration-for-form/form-configuration-for-form.component.d.ts +0 -10
- package/lib/form-configuration/form-configuration-for-form/form-configuration-for-form.module.d.ts +0 -10
- package/lib/form-configuration/form-configuration-form-field.service.d.ts +0 -8
- package/lib/form-configuration/form-configuration-form.service.d.ts +0 -8
- package/lib/form-configuration/form-configuration-utility.service.d.ts +0 -18
- package/lib/image-preview/image-preview.component.d.ts +0 -9
- package/lib/import-csv/data-import/data-import.component.d.ts +0 -9
- package/lib/import-csv/failed-items-list/failed-items-list.component.d.ts +0 -15
- package/lib/import-csv/field-mapping/field-mapping.component.d.ts +0 -37
- package/lib/import-csv/import-csv-config.d.ts +0 -18
- package/lib/import-csv/import-csv.component.d.ts +0 -38
- package/lib/import-csv/import-csv.module.d.ts +0 -14
- package/lib/import-csv/import-history-list/import-history-list.component.d.ts +0 -23
- package/lib/import-csv/import-success/import-success.component.d.ts +0 -11
- package/lib/ip-address-selector/ip-address-selector.module.d.ts +0 -8
- package/lib/ip-address-selector/ip-range-selector/ip-range-selector.component.d.ts +0 -28
- package/lib/loader/index.d.ts +0 -1
- package/lib/loader/loader.component.d.ts +0 -11
- package/lib/loader/loader.module.d.ts +0 -9
- package/lib/local-date-parser.d.ts +0 -1
- package/lib/locked-date/index.d.ts +0 -5
- package/lib/locked-date/locked-date-form/locked-date-form.component.d.ts +0 -24
- package/lib/locked-date/locked-date-lock-unlock-button/locked-date-lock-unlock-button.component.d.ts +0 -13
- package/lib/locked-date/locked-date.model.d.ts +0 -10
- package/lib/locked-date/locked-date.module.d.ts +0 -10
- package/lib/locked-date/locked-date.service.d.ts +0 -11
- package/lib/locked-date/locked-dates-list/locked-date-list.component.d.ts +0 -19
- package/lib/login/index.d.ts +0 -2
- package/lib/login/login-form-fields/login-form-fields.component.d.ts +0 -41
- package/lib/login/login-routing.module.d.ts +0 -7
- package/lib/login/login.component.d.ts +0 -36
- package/lib/login/login.module.d.ts +0 -10
- package/lib/login-history-for-user/login-history-for-user-routing.module.d.ts +0 -7
- package/lib/login-history-for-user/login-history-for-user.component.d.ts +0 -25
- package/lib/login-history-for-user/login-history-for-user.module.d.ts +0 -9
- package/lib/material.module.d.ts +0 -30
- package/lib/ngx-techlify-users/ngx-techlify-users-routing.module.d.ts +0 -7
- package/lib/ngx-techlify-users/ngx-techlify-users.module.d.ts +0 -8
- package/lib/note/comment-form/comment-form.component.d.ts +0 -25
- package/lib/note/index.d.ts +0 -4
- package/lib/note/note-comment-list/note-comment-list.component.d.ts +0 -33
- package/lib/note/note-form/note-form.component.d.ts +0 -29
- package/lib/note/note-list/note-list.component.d.ts +0 -30
- package/lib/note/note.module.d.ts +0 -9
- package/lib/note/note.service.d.ts +0 -8
- package/lib/number-input-button/index.d.ts +0 -2
- package/lib/number-input-button/number-input-button/number-input-button.component.d.ts +0 -32
- package/lib/number-input-button/number-input-button.module.d.ts +0 -8
- package/lib/number-selector/number-selector.component.d.ts +0 -44
- package/lib/ordinal-pipe/ordinal-pipe.d.ts +0 -7
- package/lib/password-requirement-check/password-check-result.d.ts +0 -7
- package/lib/password-requirement-check/password-check.service.d.ts +0 -15
- package/lib/password-requirement-check/password-requirement-check/password-requirement-check.component.d.ts +0 -23
- package/lib/password-requirement-check/password-requirement-check.module.d.ts +0 -8
- package/lib/pdf-button/pdf-button.component.d.ts +0 -11
- package/lib/pdf-button/pdf-button.module.d.ts +0 -8
- package/lib/phone-number-selector/country.service.d.ts +0 -12
- package/lib/phone-number-selector/phone-number-selector.component.d.ts +0 -47
- package/lib/pipes/file-size.pipe.d.ts +0 -7
- package/lib/pipes/wrap.pipe.d.ts +0 -7
- package/lib/profile/index.d.ts +0 -2
- package/lib/profile/profile-edit.component.d.ts +0 -33
- package/lib/profile/profile-routing.module.d.ts +0 -7
- package/lib/profile/profile.module.d.ts +0 -9
- package/lib/read-more/read-more.component.d.ts +0 -15
- package/lib/read-more/read-more.module.d.ts +0 -9
- package/lib/request-helper/request-helper.service.d.ts +0 -59
- package/lib/reset-password/index.d.ts +0 -3
- package/lib/reset-password/reset-password-routing.module.d.ts +0 -7
- package/lib/reset-password/reset-password.component.d.ts +0 -28
- package/lib/reset-password/reset-password.module.d.ts +0 -10
- package/lib/reset-password/reset-password.service.d.ts +0 -11
- package/lib/restrictors/index.d.ts +0 -3
- package/lib/restrictors/restrictor-level-selector/restrictor-level-selector/restrictor-level-selector.component.d.ts +0 -34
- package/lib/restrictors/restrictor-level-selector/restrictor-level-selector.module.d.ts +0 -8
- package/lib/restrictors/restrictor-level-selector/restrictor-level.service.d.ts +0 -9
- package/lib/restrictors/restrictor-status-selector/restrictor-status-selector/restrictor-status-selector.component.d.ts +0 -34
- package/lib/restrictors/restrictor-status-selector/restrictor-status-selector.module.d.ts +0 -8
- package/lib/restrictors/restrictor-status-selector/restrictor-status.service.d.ts +0 -9
- package/lib/restrictors/restrictor-type-selector/restrictor-type-selector/restrictor-type-selector.component.d.ts +0 -34
- package/lib/restrictors/restrictor-type-selector/restrictor-type-selector.module.d.ts +0 -8
- package/lib/restrictors/restrictor-type-selector/restrictor-type.service.d.ts +0 -9
- package/lib/restrictors/restrictor.service.d.ts +0 -9
- package/lib/restrictors/restrictors-form/restrictors-form.component.d.ts +0 -30
- package/lib/restrictors/restrictors-form-page/restrictors-form-page.component.d.ts +0 -21
- package/lib/restrictors/restrictors-list-page/restrictors-list-page.component.d.ts +0 -50
- package/lib/restrictors/restrictors-routing.module.d.ts +0 -7
- package/lib/restrictors/restrictors.module.d.ts +0 -15
- package/lib/role/index.d.ts +0 -9
- package/lib/role/permission/permission.model.d.ts +0 -11
- package/lib/role/permission/permission.module.d.ts +0 -9
- package/lib/role/permission/permission.routes.d.ts +0 -7
- package/lib/role/permission/permissions-management.component.d.ts +0 -41
- package/lib/role/role-form-button.component.d.ts +0 -16
- package/lib/role/role-form.component.d.ts +0 -32
- package/lib/role/role-list/role-list.component.d.ts +0 -33
- package/lib/role/role-view/role-view-routing.module.d.ts +0 -7
- package/lib/role/role-view/role-view.component.d.ts +0 -16
- package/lib/role/role-view/role-view.module.d.ts +0 -9
- package/lib/role/role.model.d.ts +0 -29
- package/lib/role/role.module.d.ts +0 -11
- package/lib/role/role.routes.d.ts +0 -7
- package/lib/role/role.service.d.ts +0 -10
- package/lib/searchable-selector/index.d.ts +0 -1
- package/lib/searchable-selector/searchable-selector.component.d.ts +0 -95
- package/lib/searchable-selector/searchable-selector.module.d.ts +0 -11
- package/lib/shared.module.d.ts +0 -22
- package/lib/signup/index.d.ts +0 -2
- package/lib/signup/signup-routing.module.d.ts +0 -7
- package/lib/signup/signup.component.d.ts +0 -29
- package/lib/signup/signup.module.d.ts +0 -9
- package/lib/subscription/subscription-form/subscription-form-routing.module.d.ts +0 -7
- package/lib/subscription/subscription-form/subscription-form.component.d.ts +0 -31
- package/lib/subscription/subscription-form/subscription-form.module.d.ts +0 -9
- package/lib/subscription/subscription-listing/subscription-listing-routing.module.d.ts +0 -7
- package/lib/subscription/subscription-listing/subscription-listing.component.d.ts +0 -25
- package/lib/subscription/subscription-listing/subscription-listing.module.d.ts +0 -10
- package/lib/subscription/subscription-package-listing/subscription-package-listing-routing.module.d.ts +0 -7
- package/lib/subscription/subscription-package-listing/subscription-package-listing.component.d.ts +0 -28
- package/lib/subscription/subscription-package-listing/subscription-package-listing.module.d.ts +0 -9
- package/lib/subscription/subscription-package-view/subscription-package-view-routing.module.d.ts +0 -7
- package/lib/subscription/subscription-package-view/subscription-package-view.component.d.ts +0 -15
- package/lib/subscription/subscription-package-view/subscription-package-view.module.d.ts +0 -10
- package/lib/subscription/subscription-package.service.d.ts +0 -9
- package/lib/subscription/subscription-status.enum.d.ts +0 -4
- package/lib/subscription/subscription.service.d.ts +0 -12
- package/lib/subscription/techlify-subscription-directive.module.d.ts +0 -8
- package/lib/subscription/techlify-subscription.directive.d.ts +0 -14
- package/lib/tag/tag.service.d.ts +0 -8
- package/lib/tag/techlify-tagger-tag-form/techlify-tagger-tag-form.component.d.ts +0 -22
- package/lib/tag/techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model.d.ts +0 -12
- package/lib/tag/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.d.ts +0 -74
- package/lib/tag/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.module.d.ts +0 -8
- package/lib/tag/techlify-tagger-tag-list/techlify-tagger-tag-list.component.d.ts +0 -15
- package/lib/tag/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.d.ts +0 -61
- package/lib/tag/techlify-tagger-tag-selector/techlify-tagger-tag-selector.module.d.ts +0 -8
- package/lib/techlify-app-selector/techlify-app-selector.component.d.ts +0 -13
- package/lib/techlify-app-selector/techlify-app-selector.module.d.ts +0 -10
- package/lib/techlify-auto-complete-select/techlify-auto-complete-select.component.d.ts +0 -50
- package/lib/techlify-company-switcher/index.d.ts +0 -2
- package/lib/techlify-company-switcher/techlify-company-switcher/techlify-company-switcher.component.d.ts +0 -28
- package/lib/techlify-company-switcher/techlify-company-switcher.module.d.ts +0 -10
- package/lib/techlify-currency-pipe/techlify-currency-pipe.directive.d.ts +0 -8
- package/lib/techlify-feature/on-off-switch/on-off-switch.component.d.ts +0 -12
- package/lib/techlify-feature/techlify-feature-directive.module.d.ts +0 -8
- package/lib/techlify-feature/techlify-feature-enabled.directive.d.ts +0 -13
- package/lib/techlify-feature/techlify-feature-listing.component.d.ts +0 -32
- package/lib/techlify-feature/techlify-feature.module.d.ts +0 -11
- package/lib/techlify-feature/techlify-feature.routing.d.ts +0 -2
- package/lib/techlify-feature/techlify-feature.service.d.ts +0 -13
- package/lib/techlify-icon/techlify-icon.component.d.ts +0 -12
- package/lib/techlify-icon/techlify-icon.module.d.ts +0 -9
- package/lib/techlify-notifications/index.d.ts +0 -5
- package/lib/techlify-notifications/techlify-notification-for-user/techlify-notification-for-user-routing.module.d.ts +0 -7
- package/lib/techlify-notifications/techlify-notification-for-user/techlify-notification-for-user.component.d.ts +0 -17
- package/lib/techlify-notifications/techlify-notification-for-user/techlify-notification-for-user.module.d.ts +0 -9
- package/lib/techlify-notifications/techlify-notification-for-user/techlify-notification-subscription.service.d.ts +0 -8
- package/lib/techlify-notifications/techlify-notification-for-user/techlify-notification-type.service.d.ts +0 -8
- package/lib/techlify-notifications/techlify-notification-routing.module.d.ts +0 -7
- package/lib/techlify-notifications/techlify-notification.module.d.ts +0 -8
- package/lib/techlify-update/techlify-update-form/techlify-update-form.component.d.ts +0 -33
- package/lib/techlify-update/techlify-update-form/techlify-update-form.module.d.ts +0 -9
- package/lib/techlify-update/techlify-update-history/techlify-update-history-routing.module.d.ts +0 -7
- package/lib/techlify-update/techlify-update-history/techlify-update-history.component.d.ts +0 -34
- package/lib/techlify-update/techlify-update-history/techlify-update-history.module.d.ts +0 -9
- package/lib/techlify-update/techlify-update-routing.module.d.ts +0 -7
- package/lib/techlify-update/techlify-update.module.d.ts +0 -10
- package/lib/techlify-update/techlify-update.service.d.ts +0 -16
- package/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.d.ts +0 -33
- package/lib/techlify-update/techlify-updates-teaser/techlify-updates-teaser.component.d.ts +0 -20
- package/lib/techlify-update/techlify-updates-teaser/techlify-updates-teaser.module.d.ts +0 -8
- package/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.d.ts +0 -28
- package/lib/techlify-update/update-notifier/update-notifier.component.d.ts +0 -19
- package/lib/techlify-update/update-notifier/update-notifier.module.d.ts +0 -10
- package/lib/techlify-update/update-view/update-view.component.d.ts +0 -17
- package/lib/techlify-update/update-view/update-view.module.d.ts +0 -8
- package/lib/techlify-view/my-techlify-view-listing/my-techlify-view-listing.component.d.ts +0 -23
- package/lib/techlify-view/my-techlify-view-listing/my-techlify-view-listing.module.d.ts +0 -9
- package/lib/techlify-view/my-techlify-view-listing/my-techlify-view.service.d.ts +0 -8
- package/lib/techlify-view/techlify-view-form/techlify-view-form.component.d.ts +0 -30
- package/lib/techlify-view/techlify-view-form/techlify-view-form.module.d.ts +0 -8
- package/lib/techlify-view/techlify-view.service.d.ts +0 -8
- package/lib/timeline-activity/timeline-activity-button/timeline-activity-button-routing.module.d.ts +0 -7
- package/lib/timeline-activity/timeline-activity-button/timeline-activity-button.component.d.ts +0 -17
- package/lib/timeline-activity/timeline-activity-button/timeline-activity-button.module.d.ts +0 -10
- package/lib/timeline-activity/timeline-activity-list/timeline-activity-list-routing.module.d.ts +0 -7
- package/lib/timeline-activity/timeline-activity-list/timeline-activity-list.component.d.ts +0 -24
- package/lib/timeline-activity/timeline-activity-list/timeline-activity-list.module.d.ts +0 -9
- package/lib/timeline-activity/timeline-activity.service.d.ts +0 -8
- package/lib/timeline-filter/calculate-timeline.d.ts +0 -6
- package/lib/timeline-filter/index.d.ts +0 -3
- package/lib/timeline-filter/timeline-filter-routing.module.d.ts +0 -7
- package/lib/timeline-filter/timeline-filter.component.d.ts +0 -75
- package/lib/timeline-filter/timeline-filter.module.d.ts +0 -18
- package/lib/timeline-filter/timeline.model.d.ts +0 -17
- package/lib/user/app-admin-user-list/app-admin-user-list.component.d.ts +0 -40
- package/lib/user/app-admin-user-view/app-admin-user-view.component.d.ts +0 -26
- package/lib/user/app-admin-user-view/app-admin-user-view.module.d.ts +0 -13
- package/lib/user/app-admin-user-view/app-admin-user-view.routes.d.ts +0 -7
- package/lib/user/current-user.service.d.ts +0 -75
- package/lib/user/index.d.ts +0 -13
- package/lib/user/user-enable-button-component/user-enable-button.component.d.ts +0 -23
- package/lib/user/user-enable-button-component/user-enable-button.module.d.ts +0 -8
- package/lib/user/user-explore.component.d.ts +0 -26
- package/lib/user/user-form/user-form.component.d.ts +0 -43
- package/lib/user/user-list/user-list.component.d.ts +0 -38
- package/lib/user/user-sessions/user-session.service.d.ts +0 -8
- package/lib/user/user-sessions/user-sessions/user-sessions.component.d.ts +0 -15
- package/lib/user/user-sessions/user-sessions/user-sessions.module.d.ts +0 -8
- package/lib/user/user-type.enum.d.ts +0 -5
- package/lib/user/user-view.component.d.ts +0 -32
- package/lib/user/user.model.d.ts +0 -30
- package/lib/user/user.module.d.ts +0 -16
- package/lib/user/user.routes.d.ts +0 -7
- package/lib/user/user.service.d.ts +0 -15
- package/lib/user-client-enable-disable-button/user-client-enable-disable-button.component.d.ts +0 -22
- package/lib/user-client-enable-disable-button/user-client-enable-disable-button.module.d.ts +0 -8
- package/lib/user-clients-list/user-clients-list.component.d.ts +0 -15
- package/lib/user-clients-list/user-clients-list.module.d.ts +0 -9
- package/lib/user-clients-list/user-tenant.service.d.ts +0 -11
- package/lib/user-config/index.d.ts +0 -2
- package/lib/user-config/user-config.model.d.ts +0 -50
- package/lib/user-config/user-config.service.d.ts +0 -14
- package/lib/user-menu/user-menu.component.d.ts +0 -17
- package/lib/user-menu/user-menu.module.d.ts +0 -13
- package/lib/user-selector/index.d.ts +0 -2
- package/lib/user-selector/user-data.service.d.ts +0 -16
- package/lib/user-selector/user-selector.component.d.ts +0 -28
- package/lib/user-selector/user-selector.module.d.ts +0 -8
- package/lib/utility/date-utils.service.d.ts +0 -38
- package/lib/utility/index.d.ts +0 -2
- package/lib/utility/num-items-selector.component.d.ts +0 -19
- package/lib/utility/utility.module.d.ts +0 -8
- package/lib/validators/date.validator.d.ts +0 -6
- package/public-api.d.ts +0 -212
|
@@ -0,0 +1,677 @@
|
|
|
1
|
+
import { J as EnvironmentService, X as AlertService, Y as FormValidatorService } from "./ngx-techlify-core-shared.module-DROe5GRx.mjs";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Directive, ElementRef, EventEmitter, HostAttributeToken, Injectable, Input, Optional, Output, inject } from "@angular/core";
|
|
4
|
+
import { finalize, fromEvent, merge, of } from "rxjs";
|
|
5
|
+
import { debounceTime as debounceTime$1, distinctUntilChanged as distinctUntilChanged$1, filter, finalize as finalize$1, map as map$1, skip, startWith as startWith$1 } from "rxjs/operators";
|
|
6
|
+
import { Title } from "@angular/platform-browser";
|
|
7
|
+
import * as i1 from "@angular/router";
|
|
8
|
+
import { ActivatedRoute, convertToParamMap } from "@angular/router";
|
|
9
|
+
import * as i2 from "@angular/common";
|
|
10
|
+
import { fakeAsync, tick } from "@angular/core/testing";
|
|
11
|
+
var TechlifyService = class {
|
|
12
|
+
constructor(http, baseUrl) {
|
|
13
|
+
this.http = http;
|
|
14
|
+
this.baseUrl = "you-forgot-to-set-a-base-url";
|
|
15
|
+
this.baseUrl = baseUrl;
|
|
16
|
+
}
|
|
17
|
+
index(params, isCache) {
|
|
18
|
+
if (isCache) return this.http.cache().get(`api/${this.baseUrl}`, { params });
|
|
19
|
+
return this.http.get(`api/${this.baseUrl}`, { params });
|
|
20
|
+
}
|
|
21
|
+
store(model, params) {
|
|
22
|
+
return this.http.post(`api/${this.baseUrl}`, model, { params });
|
|
23
|
+
}
|
|
24
|
+
show(modelId, params) {
|
|
25
|
+
return this.http.get(`api/${this.baseUrl}/${modelId}`, { params });
|
|
26
|
+
}
|
|
27
|
+
update(model, params) {
|
|
28
|
+
return this.http.put(`api/${this.baseUrl}/${model.id}`, model, { params });
|
|
29
|
+
}
|
|
30
|
+
delete(model) {
|
|
31
|
+
return this.http.delete(`api/${this.baseUrl}/${model.id}`);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
var TechlifyFormComponent = class TechlifyFormComponent {
|
|
35
|
+
constructor(formValidatorService, service) {
|
|
36
|
+
this.formValidatorService = formValidatorService;
|
|
37
|
+
this.service = service;
|
|
38
|
+
this.isWorking = false;
|
|
39
|
+
this.createdEntries = [];
|
|
40
|
+
this.isUpdate = false;
|
|
41
|
+
this.isAllowCreateAnother = true;
|
|
42
|
+
this.success = new EventEmitter();
|
|
43
|
+
this.alertService = inject(AlertService, { optional: true });
|
|
44
|
+
}
|
|
45
|
+
submit(model) {
|
|
46
|
+
this.form.markAllAsTouched();
|
|
47
|
+
if (!this.service) throw new Error(`${this.constructor.name}: Service is required to submit the form`);
|
|
48
|
+
if (!this.form.valid) return;
|
|
49
|
+
if (!model) model = this.form.value;
|
|
50
|
+
this.isWorking = true;
|
|
51
|
+
(this.isUpdate ? this.service.update(model) : this.service.store(model)).pipe(finalize(() => this.isWorking = false)).subscribe((res) => {
|
|
52
|
+
this.createdEntries.unshift(res?.item);
|
|
53
|
+
if (model?.is_create_another) {
|
|
54
|
+
this.alertService.addAlert("Successfully Created", "success");
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
if (this.isUpdate) this.finalisedResponse(res?.item);
|
|
58
|
+
else this.finalisedResponse(this.createdEntries.length == 1 ? this.createdEntries[0] : this.createdEntries);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
finalisedResponse(response) {
|
|
62
|
+
this.success.emit(response);
|
|
63
|
+
if (this.dialogRef) this.dialogRef.close(response);
|
|
64
|
+
}
|
|
65
|
+
closeDialog() {
|
|
66
|
+
if (this.createdEntries?.length > 0) this.success.emit(this.createdEntries);
|
|
67
|
+
if (this.dialogRef) this.dialogRef.close();
|
|
68
|
+
}
|
|
69
|
+
resetFieldValue(event, field) {
|
|
70
|
+
this.form?.get(field)?.setValue("");
|
|
71
|
+
}
|
|
72
|
+
getFieldValue(field) {
|
|
73
|
+
return this.form?.get(field)?.value;
|
|
74
|
+
}
|
|
75
|
+
isFieldValid(field) {
|
|
76
|
+
return this.formValidatorService.isFieldValid(field, this.form);
|
|
77
|
+
}
|
|
78
|
+
getErrorMessage(field) {
|
|
79
|
+
return this.formValidatorService.getErrorMessage(field, this.form, this.errorMessages);
|
|
80
|
+
}
|
|
81
|
+
static {
|
|
82
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
83
|
+
minVersion: "12.0.0",
|
|
84
|
+
version: "22.2.3",
|
|
85
|
+
ngImport: i0,
|
|
86
|
+
type: TechlifyFormComponent,
|
|
87
|
+
deps: [{ token: FormValidatorService }, {
|
|
88
|
+
token: TechlifyService,
|
|
89
|
+
optional: true
|
|
90
|
+
}],
|
|
91
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
static {
|
|
95
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
96
|
+
minVersion: "14.0.0",
|
|
97
|
+
version: "22.2.3",
|
|
98
|
+
type: TechlifyFormComponent,
|
|
99
|
+
isStandalone: true,
|
|
100
|
+
inputs: {
|
|
101
|
+
isUpdate: "isUpdate",
|
|
102
|
+
isAllowCreateAnother: "isAllowCreateAnother"
|
|
103
|
+
},
|
|
104
|
+
outputs: { success: "success" },
|
|
105
|
+
ngImport: i0
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
110
|
+
minVersion: "12.0.0",
|
|
111
|
+
version: "22.2.3",
|
|
112
|
+
ngImport: i0,
|
|
113
|
+
type: TechlifyFormComponent,
|
|
114
|
+
decorators: [{ type: Directive }],
|
|
115
|
+
ctorParameters: () => [{ type: FormValidatorService }, {
|
|
116
|
+
type: TechlifyService,
|
|
117
|
+
decorators: [{ type: Optional }]
|
|
118
|
+
}],
|
|
119
|
+
propDecorators: {
|
|
120
|
+
isUpdate: [{ type: Input }],
|
|
121
|
+
isAllowCreateAnother: [{ type: Input }],
|
|
122
|
+
success: [{ type: Output }]
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
function techlifyFormContract(options) {
|
|
126
|
+
const fieldName = options.fieldName ?? "name";
|
|
127
|
+
const baseSubmitIt = options.hasCustomSubmit ? (() => void 0) : it;
|
|
128
|
+
describe("TechlifyFormComponent Contract", () => {
|
|
129
|
+
it("should pass a service to the base class", () => {
|
|
130
|
+
const component = options.getComponent();
|
|
131
|
+
expect(component.service).toBe(options.getService());
|
|
132
|
+
});
|
|
133
|
+
it("should initialize default values", () => {
|
|
134
|
+
const component = options.getComponent();
|
|
135
|
+
expect(component.isWorking).toBeFalse();
|
|
136
|
+
expect(component.isUpdate).toBeFalse();
|
|
137
|
+
expect(component.isAllowCreateAnother).toBeTrue();
|
|
138
|
+
expect(component.createdEntries).toEqual([]);
|
|
139
|
+
});
|
|
140
|
+
baseSubmitIt("should submit using store when creating", () => {
|
|
141
|
+
const component = options.getComponent();
|
|
142
|
+
component.form.patchValue({ [fieldName]: "Test" });
|
|
143
|
+
spyOn(component, "finalisedResponse");
|
|
144
|
+
options.getService().store.and.returnValue(of({ item: { id: 1 } }));
|
|
145
|
+
component.submit();
|
|
146
|
+
expect(options.getService().store).toHaveBeenCalledWith(component.form.value);
|
|
147
|
+
expect(component.createdEntries).toEqual([{ id: 1 }]);
|
|
148
|
+
expect(component.finalisedResponse).toHaveBeenCalled();
|
|
149
|
+
});
|
|
150
|
+
baseSubmitIt("should submit using update when isUpdate is true", () => {
|
|
151
|
+
const component = options.getComponent();
|
|
152
|
+
component.isUpdate = true;
|
|
153
|
+
component.form.patchValue({ [fieldName]: "Updated" });
|
|
154
|
+
spyOn(component, "finalisedResponse");
|
|
155
|
+
options.getService().update.and.returnValue(of({ item: { id: 1 } }));
|
|
156
|
+
component.submit();
|
|
157
|
+
expect(options.getService().update).toHaveBeenCalledWith(component.form.value);
|
|
158
|
+
expect(component.finalisedResponse).toHaveBeenCalledWith({ id: 1 });
|
|
159
|
+
});
|
|
160
|
+
it("should not submit invalid form", () => {
|
|
161
|
+
const component = options.getComponent();
|
|
162
|
+
component.form.setErrors({ invalid: true });
|
|
163
|
+
component.submit();
|
|
164
|
+
expect(options.getService().store).not.toHaveBeenCalled();
|
|
165
|
+
});
|
|
166
|
+
baseSubmitIt("should mark form as touched before submit", () => {
|
|
167
|
+
const component = options.getComponent();
|
|
168
|
+
spyOn(component.form, "markAllAsTouched");
|
|
169
|
+
component.submit();
|
|
170
|
+
expect(component.form.markAllAsTouched).toHaveBeenCalled();
|
|
171
|
+
});
|
|
172
|
+
baseSubmitIt("should set isWorking while submitting", () => {
|
|
173
|
+
const component = options.getComponent();
|
|
174
|
+
component.form.patchValue({ [fieldName]: "Test" });
|
|
175
|
+
options.getService().store.and.returnValue(of({ item: { id: 1 } }));
|
|
176
|
+
component.submit();
|
|
177
|
+
expect(component.isWorking).toBeFalse();
|
|
178
|
+
});
|
|
179
|
+
it("should emit success event on finalisedResponse", () => {
|
|
180
|
+
const component = options.getComponent();
|
|
181
|
+
spyOn(component.success, "emit");
|
|
182
|
+
component.finalisedResponse({ id: 1 });
|
|
183
|
+
expect(component.success.emit).toHaveBeenCalledWith({ id: 1 });
|
|
184
|
+
});
|
|
185
|
+
it("should close dialog on finalisedResponse when dialog exists", () => {
|
|
186
|
+
const component = options.getComponent();
|
|
187
|
+
component.dialogRef = { close: jasmine.createSpy("close") };
|
|
188
|
+
component.finalisedResponse({ id: 1 });
|
|
189
|
+
expect(component.dialogRef.close).toHaveBeenCalledWith({ id: 1 });
|
|
190
|
+
});
|
|
191
|
+
it("should reset field value", () => {
|
|
192
|
+
const component = options.getComponent();
|
|
193
|
+
component.form.patchValue({ [fieldName]: "Test" });
|
|
194
|
+
component.resetFieldValue(null, fieldName);
|
|
195
|
+
expect(component.getFieldValue(fieldName)).toBe("");
|
|
196
|
+
});
|
|
197
|
+
it("should return field value", () => {
|
|
198
|
+
const component = options.getComponent();
|
|
199
|
+
component.form.patchValue({ [fieldName]: "Test" });
|
|
200
|
+
expect(component.getFieldValue(fieldName)).toBe("Test");
|
|
201
|
+
});
|
|
202
|
+
it("should close dialog and emit created entries", () => {
|
|
203
|
+
const component = options.getComponent();
|
|
204
|
+
component.createdEntries = [{ id: 1 }];
|
|
205
|
+
component.dialogRef = { close: jasmine.createSpy("close") };
|
|
206
|
+
spyOn(component.success, "emit");
|
|
207
|
+
component.closeDialog();
|
|
208
|
+
expect(component.success.emit).toHaveBeenCalledWith([{ id: 1 }]);
|
|
209
|
+
expect(component.dialogRef.close).toHaveBeenCalled();
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
function parseLocalDate(dateStr) {
|
|
214
|
+
const [y, m, d] = dateStr.split("-").map(Number);
|
|
215
|
+
return new Date(y, m - 1, d);
|
|
216
|
+
}
|
|
217
|
+
var RequestHelperService = class RequestHelperService {
|
|
218
|
+
constructor(router, activatedRoute, datePipe) {
|
|
219
|
+
this.router = router;
|
|
220
|
+
this.activatedRoute = activatedRoute;
|
|
221
|
+
this.datePipe = datePipe;
|
|
222
|
+
}
|
|
223
|
+
updateFormWithQueryParams(formGroup, formConfig) {
|
|
224
|
+
this.updateFormWithParams(formGroup, this.activatedRoute.snapshot.queryParams, formConfig);
|
|
225
|
+
}
|
|
226
|
+
updateFormWithParams(formGroup, params, formConfig) {
|
|
227
|
+
for (const key in formGroup.controls) if (Object.prototype.hasOwnProperty.call(formGroup.controls, key) && params && Object.prototype.hasOwnProperty.call(params, key)) formGroup.get(key).patchValue(this.formatValue(params[key], formConfig?.[key]), { emitEvent: false });
|
|
228
|
+
}
|
|
229
|
+
convertToFormData(data) {
|
|
230
|
+
const newData = {};
|
|
231
|
+
for (const prop in data) if (Object.prototype.hasOwnProperty.call(data, prop)) {
|
|
232
|
+
if (Array.isArray(data[prop])) newData[prop] = data[prop].join(",");
|
|
233
|
+
else if (this.isDateString(data[prop])) newData[prop] = this.datePipe.transform(data[prop], "yyyy-MM-dd");
|
|
234
|
+
else newData[prop] = data[prop] ?? "";
|
|
235
|
+
}
|
|
236
|
+
return newData;
|
|
237
|
+
}
|
|
238
|
+
updateQueryParams(queryParams) {
|
|
239
|
+
return this.router.navigate([], {
|
|
240
|
+
relativeTo: this.activatedRoute,
|
|
241
|
+
queryParams,
|
|
242
|
+
queryParamsHandling: "merge"
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
formatValue(value, formGroupElement) {
|
|
246
|
+
if (value && formGroupElement?.multiple && formGroupElement?.multiple === true) return (value?.split(",")).map((val) => this.isNumeric(val) ? Number.parseInt(val) : val);
|
|
247
|
+
else if (value && formGroupElement?.date && formGroupElement?.date === true) return parseLocalDate(value);
|
|
248
|
+
else if (value && formGroupElement?.number && formGroupElement?.number === true) return Number.parseInt(value);
|
|
249
|
+
else if (value && formGroupElement?.boolean) return value === "true";
|
|
250
|
+
else return value;
|
|
251
|
+
}
|
|
252
|
+
isNumeric(str) {
|
|
253
|
+
if (typeof str !== "string") return false;
|
|
254
|
+
if (str.trim() === "") return false;
|
|
255
|
+
return !Number.isNaN(Number(str));
|
|
256
|
+
}
|
|
257
|
+
isDateString(value) {
|
|
258
|
+
if (typeof value !== "string") return false;
|
|
259
|
+
return /^\d{4}[-/](0[1-9]|1[0-2])[-/](0[1-9]|[12]\d|3[01])([T\s].*)?$/.test(value);
|
|
260
|
+
}
|
|
261
|
+
static {
|
|
262
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
263
|
+
minVersion: "12.0.0",
|
|
264
|
+
version: "22.2.3",
|
|
265
|
+
ngImport: i0,
|
|
266
|
+
type: RequestHelperService,
|
|
267
|
+
deps: [
|
|
268
|
+
{ token: i1.Router },
|
|
269
|
+
{ token: i1.ActivatedRoute },
|
|
270
|
+
{ token: i2.DatePipe }
|
|
271
|
+
],
|
|
272
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
static {
|
|
276
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
277
|
+
minVersion: "12.0.0",
|
|
278
|
+
version: "22.2.3",
|
|
279
|
+
ngImport: i0,
|
|
280
|
+
type: RequestHelperService,
|
|
281
|
+
providedIn: "root"
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
286
|
+
minVersion: "12.0.0",
|
|
287
|
+
version: "22.2.3",
|
|
288
|
+
ngImport: i0,
|
|
289
|
+
type: RequestHelperService,
|
|
290
|
+
decorators: [{
|
|
291
|
+
type: Injectable,
|
|
292
|
+
args: [{ providedIn: "root" }]
|
|
293
|
+
}],
|
|
294
|
+
ctorParameters: () => [
|
|
295
|
+
{ type: i1.Router },
|
|
296
|
+
{ type: i1.ActivatedRoute },
|
|
297
|
+
{ type: i2.DatePipe }
|
|
298
|
+
]
|
|
299
|
+
});
|
|
300
|
+
var TechlifyListComponent = class TechlifyListComponent {
|
|
301
|
+
get isWorking() {
|
|
302
|
+
return this._isWorking;
|
|
303
|
+
}
|
|
304
|
+
set isWorking(value) {
|
|
305
|
+
this._isWorking = value;
|
|
306
|
+
if (value) this.filterForm?.disable({ emitEvent: false });
|
|
307
|
+
else this.filterForm?.enable({ emitEvent: false });
|
|
308
|
+
}
|
|
309
|
+
get isFilterPatchFromRoute() {
|
|
310
|
+
return this._isFilterPatchFromRoute;
|
|
311
|
+
}
|
|
312
|
+
set isFilterPatchFromRoute(value) {
|
|
313
|
+
this._isFilterPatchFromRoute = value;
|
|
314
|
+
}
|
|
315
|
+
get pageTitle() {}
|
|
316
|
+
get filterDebounceTime() {
|
|
317
|
+
const filterTime = Number(this.environmentService?.get()?.filterTime);
|
|
318
|
+
return filterTime >= 0 ? filterTime : 500;
|
|
319
|
+
}
|
|
320
|
+
get filterTriggerAction() {
|
|
321
|
+
return String(this.environmentService?.get()?.filterAction ?? "") === "focusout" ? "focusout" : "keyup";
|
|
322
|
+
}
|
|
323
|
+
constructor(service) {
|
|
324
|
+
this.service = service;
|
|
325
|
+
this.models = [];
|
|
326
|
+
this.selectedModelIds = [];
|
|
327
|
+
this.isAllSelected = false;
|
|
328
|
+
this.page = 1;
|
|
329
|
+
this.perPage = 50;
|
|
330
|
+
this.lastPage = 0;
|
|
331
|
+
this.isViewLoaded = false;
|
|
332
|
+
this.columnConfigs = [];
|
|
333
|
+
this._isWorking = false;
|
|
334
|
+
this._isFilterPatchFromRoute = true;
|
|
335
|
+
this.titleService = inject(Title, { optional: true });
|
|
336
|
+
this.environmentService = inject(EnvironmentService, { optional: true });
|
|
337
|
+
this.hostElement = inject(ElementRef, { optional: true });
|
|
338
|
+
this.isSetPageTitle = inject(new HostAttributeToken("isSetPageTitle"), { optional: true }) !== "false";
|
|
339
|
+
this.requestHelperService = inject(RequestHelperService, { optional: true });
|
|
340
|
+
if (this.isSetPageTitle) {
|
|
341
|
+
const resolvedTitle = this.pageTitle && this.pageTitle.trim().length > 0 ? this.pageTitle : this.environmentService?.get().appTitle;
|
|
342
|
+
this.titleService?.setTitle(resolvedTitle);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
listenFilterChanges() {
|
|
346
|
+
let filterChanges$ = this.filterForm.valueChanges.pipe(debounceTime$1(this.filterDebounceTime));
|
|
347
|
+
if (this.filterTriggerAction === "focusout") filterChanges$ = merge(this.filterForm.valueChanges.pipe(filter(() => !this.isTypingInFilter()), debounceTime$1(this.filterDebounceTime)), fromEvent(this.hostElement?.nativeElement ?? document, "focusout")).pipe(map$1(() => JSON.stringify(this.filterForm.getRawValue())), startWith$1(JSON.stringify(this.filterForm.getRawValue())), distinctUntilChanged$1(), skip(1));
|
|
348
|
+
filterChanges$.subscribe((_) => {
|
|
349
|
+
if (this.isFilterPatchFromRoute) {
|
|
350
|
+
const unformatedFilters = JSON.parse(JSON.stringify(this.filterForm.value));
|
|
351
|
+
this.filters = this.requestHelperService?.convertToFormData(unformatedFilters);
|
|
352
|
+
this.requestHelperService?.updateQueryParams(this.filters);
|
|
353
|
+
}
|
|
354
|
+
this.reload();
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
isTypingInFilter() {
|
|
358
|
+
const element = document.activeElement;
|
|
359
|
+
return (element instanceof HTMLTextAreaElement || element instanceof HTMLInputElement && !["checkbox", "radio"].includes(element.type)) && !!this.hostElement?.nativeElement.contains(element);
|
|
360
|
+
}
|
|
361
|
+
patchFiltersFromRoute() {
|
|
362
|
+
this.requestHelperService?.updateFormWithQueryParams(this.filterForm, this.filterFormConfiguration);
|
|
363
|
+
}
|
|
364
|
+
loadData(filters) {
|
|
365
|
+
if (!this.service) throw new Error(`${this.constructor.name}: Service is required to load the data`);
|
|
366
|
+
this.isWorking = true;
|
|
367
|
+
if (!filters) {
|
|
368
|
+
filters = this.requestHelperService?.convertToFormData(JSON.parse(JSON.stringify(this.filterForm.value)));
|
|
369
|
+
filters.page = this.page;
|
|
370
|
+
filters.per_page = this.perPage;
|
|
371
|
+
}
|
|
372
|
+
this.service.index(filters).pipe(finalize$1(() => this.isWorking = false)).subscribe((result) => {
|
|
373
|
+
this.lastPage = result?.last_page || this.page;
|
|
374
|
+
if (result?.data?.length > 0) this.models = this.models.concat(result.data);
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
reload() {
|
|
378
|
+
this.models = [];
|
|
379
|
+
this.selectedModelIds = [];
|
|
380
|
+
this.page = 1;
|
|
381
|
+
if (!this.isWorking) this.loadData();
|
|
382
|
+
}
|
|
383
|
+
onScroll() {
|
|
384
|
+
if (!this.isWorking && this.page < this.lastPage) {
|
|
385
|
+
this.page += 1;
|
|
386
|
+
this.loadData();
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
resetFilter(field) {
|
|
390
|
+
this.filterForm.get(field).reset("");
|
|
391
|
+
}
|
|
392
|
+
modelsUpdatedById(models) {
|
|
393
|
+
if (!Array.isArray(models)) models = [models];
|
|
394
|
+
models.forEach((updatedModel) => {
|
|
395
|
+
const index = this.models.findIndex((m) => m.id === updatedModel.id);
|
|
396
|
+
if (index !== -1) this.models[index] = updatedModel;
|
|
397
|
+
});
|
|
398
|
+
this.models = [...this.models];
|
|
399
|
+
}
|
|
400
|
+
modelsDeletedById(models) {
|
|
401
|
+
if (!Array.isArray(models)) models = [models];
|
|
402
|
+
this.models = this.models.filter((m) => !models.some((item) => item.id === m.id));
|
|
403
|
+
}
|
|
404
|
+
clearSelectedModels() {
|
|
405
|
+
this.selectedModelIds = [];
|
|
406
|
+
}
|
|
407
|
+
modelCreated(model) {
|
|
408
|
+
if (Array.isArray(model)) this.models.unshift(...model);
|
|
409
|
+
else this.models.unshift(model);
|
|
410
|
+
this.models = [...this.models];
|
|
411
|
+
}
|
|
412
|
+
selectAll() {
|
|
413
|
+
this.selectedModelIds = [];
|
|
414
|
+
this.models.map((model) => {
|
|
415
|
+
model.is_selected = this.isAllSelected;
|
|
416
|
+
if (this.isAllSelected) this.selectedModelIds.push(model.id);
|
|
417
|
+
});
|
|
418
|
+
this.models = [...this.models];
|
|
419
|
+
}
|
|
420
|
+
isSelectionModified(event, model) {
|
|
421
|
+
this.isAllSelected = false;
|
|
422
|
+
if (event.checked) this.selectedModelIds.push(model?.id);
|
|
423
|
+
else this.selectedModelIds = this.selectedModelIds.filter((modelId) => modelId != model?.id);
|
|
424
|
+
}
|
|
425
|
+
sortColumn(event) {
|
|
426
|
+
const direction = event.direction.toString().toUpperCase();
|
|
427
|
+
this.models = [];
|
|
428
|
+
this.filterForm.get("sort_by").setValue(`${event?.active}|${direction}`);
|
|
429
|
+
}
|
|
430
|
+
resetFilterForm() {
|
|
431
|
+
if (this.filterForm) this.filterForm.reset();
|
|
432
|
+
}
|
|
433
|
+
resetColumnConfigs() {
|
|
434
|
+
this.columnConfigs = [];
|
|
435
|
+
}
|
|
436
|
+
setView(view) {
|
|
437
|
+
this.requestHelperService?.updateQueryParams({});
|
|
438
|
+
this.isViewLoaded = false;
|
|
439
|
+
this.resetColumnConfigs();
|
|
440
|
+
this.resetFilterForm();
|
|
441
|
+
setTimeout(() => {
|
|
442
|
+
if (view) {
|
|
443
|
+
this.requestHelperService?.updateFormWithParams(this.filterForm, view?.filters, this.filterFormConfiguration);
|
|
444
|
+
this.columnConfigs.forEach((column) => {
|
|
445
|
+
column.isSelected = (view?.columns).some((col) => col === column.def);
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
this.isViewLoaded = true;
|
|
449
|
+
}, 500);
|
|
450
|
+
}
|
|
451
|
+
static {
|
|
452
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
453
|
+
minVersion: "12.0.0",
|
|
454
|
+
version: "22.2.3",
|
|
455
|
+
ngImport: i0,
|
|
456
|
+
type: TechlifyListComponent,
|
|
457
|
+
deps: [{
|
|
458
|
+
token: TechlifyService,
|
|
459
|
+
optional: true
|
|
460
|
+
}],
|
|
461
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
static {
|
|
465
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
466
|
+
minVersion: "14.0.0",
|
|
467
|
+
version: "22.2.3",
|
|
468
|
+
type: TechlifyListComponent,
|
|
469
|
+
isStandalone: true,
|
|
470
|
+
ngImport: i0
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
475
|
+
minVersion: "12.0.0",
|
|
476
|
+
version: "22.2.3",
|
|
477
|
+
ngImport: i0,
|
|
478
|
+
type: TechlifyListComponent,
|
|
479
|
+
decorators: [{ type: Directive }],
|
|
480
|
+
ctorParameters: () => [{
|
|
481
|
+
type: TechlifyService,
|
|
482
|
+
decorators: [{ type: Optional }]
|
|
483
|
+
}]
|
|
484
|
+
});
|
|
485
|
+
function techlifyListContract(options) {
|
|
486
|
+
const routeFilterIt = options.patchesFiltersFromRoute === false ? (() => void 0) : it;
|
|
487
|
+
describe("TechlifyListComponent Contract", () => {
|
|
488
|
+
it("should pass a service to the base class", () => {
|
|
489
|
+
const component = options.getComponent();
|
|
490
|
+
expect(component.service).toBe(options.getService());
|
|
491
|
+
});
|
|
492
|
+
it("should have a filter form", () => {
|
|
493
|
+
const component = options.getComponent();
|
|
494
|
+
expect(component.filterForm).toBeTruthy();
|
|
495
|
+
});
|
|
496
|
+
it("should call loadData on init", () => {
|
|
497
|
+
const component = options.getComponent();
|
|
498
|
+
spyOn(component, "loadData");
|
|
499
|
+
component.ngOnInit();
|
|
500
|
+
expect(component.loadData).toHaveBeenCalled();
|
|
501
|
+
});
|
|
502
|
+
routeFilterIt("should patch filters from route on init", () => {
|
|
503
|
+
const component = options.getComponent();
|
|
504
|
+
spyOn(component, "patchFiltersFromRoute");
|
|
505
|
+
component.ngOnInit();
|
|
506
|
+
expect(component.patchFiltersFromRoute).toHaveBeenCalled();
|
|
507
|
+
});
|
|
508
|
+
it("should reload when filter changes", fakeAsync(() => {
|
|
509
|
+
const component = options.getComponent();
|
|
510
|
+
const filterField = options.filterField ?? "search";
|
|
511
|
+
if (!component.filterForm?.get(filterField)) {
|
|
512
|
+
pending(`Filter '${filterField}' does not exist.`);
|
|
513
|
+
return;
|
|
514
|
+
}
|
|
515
|
+
spyOn(component, "reload");
|
|
516
|
+
component.listenFilterChanges();
|
|
517
|
+
component.filterForm.get(filterField)?.setValue("abc");
|
|
518
|
+
tick(501);
|
|
519
|
+
expect(component.reload).toHaveBeenCalled();
|
|
520
|
+
}));
|
|
521
|
+
it("should load next page on scroll", () => {
|
|
522
|
+
const component = options.getComponent();
|
|
523
|
+
component.page = 1;
|
|
524
|
+
component.lastPage = 3;
|
|
525
|
+
component.isWorking = false;
|
|
526
|
+
spyOn(component, "loadData");
|
|
527
|
+
component.onScroll();
|
|
528
|
+
expect(component.page).toBe(2);
|
|
529
|
+
expect(component.loadData).toHaveBeenCalled();
|
|
530
|
+
});
|
|
531
|
+
it("should not load next page while already loading", () => {
|
|
532
|
+
const component = options.getComponent();
|
|
533
|
+
component.page = 1;
|
|
534
|
+
component.lastPage = 3;
|
|
535
|
+
component.isWorking = true;
|
|
536
|
+
spyOn(component, "loadData");
|
|
537
|
+
component.onScroll();
|
|
538
|
+
expect(component.loadData).not.toHaveBeenCalled();
|
|
539
|
+
});
|
|
540
|
+
it("should update sort_by filter", () => {
|
|
541
|
+
const component = options.getComponent();
|
|
542
|
+
const control = component.filterForm.get("sort_by");
|
|
543
|
+
if (!control) {
|
|
544
|
+
pending("No sort_by control.");
|
|
545
|
+
return;
|
|
546
|
+
}
|
|
547
|
+
spyOn(control, "setValue");
|
|
548
|
+
component.sortColumn({
|
|
549
|
+
active: "name",
|
|
550
|
+
direction: "asc"
|
|
551
|
+
});
|
|
552
|
+
expect(control.setValue).toHaveBeenCalledWith("name|ASC");
|
|
553
|
+
});
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
var TechlifyShowComponent = class TechlifyShowComponent {
|
|
557
|
+
get pageTitle() {}
|
|
558
|
+
constructor(service) {
|
|
559
|
+
this.service = service;
|
|
560
|
+
this.isWorking = false;
|
|
561
|
+
this.routeParamName = "id";
|
|
562
|
+
this.titleService = inject(Title, { optional: true });
|
|
563
|
+
this.environmentService = inject(EnvironmentService, { optional: true });
|
|
564
|
+
this.route = inject(ActivatedRoute, { optional: true });
|
|
565
|
+
const resolvedTitle = this.pageTitle && this.pageTitle.trim().length > 0 ? this.pageTitle : this.environmentService?.get().appTitle;
|
|
566
|
+
this.titleService?.setTitle(resolvedTitle);
|
|
567
|
+
}
|
|
568
|
+
listenRouteChanges() {
|
|
569
|
+
this.route?.paramMap.subscribe((params) => {
|
|
570
|
+
this.id = this.getIdFromRoute(params);
|
|
571
|
+
this.loadData();
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
getIdFromRoute(params) {
|
|
575
|
+
return (params ?? this.route?.snapshot?.paramMap)?.get(this.routeParamName) ?? null;
|
|
576
|
+
}
|
|
577
|
+
getShowParams() {
|
|
578
|
+
return {};
|
|
579
|
+
}
|
|
580
|
+
loadData() {
|
|
581
|
+
if (!this.service) throw new Error(`${this.constructor.name}: Service is required to load the data`);
|
|
582
|
+
if (!this.id) return;
|
|
583
|
+
this.loadSubscription?.unsubscribe();
|
|
584
|
+
this.isWorking = true;
|
|
585
|
+
this.loadSubscription = this.service.show(this.id, this.getShowParams()).pipe(finalize(() => this.isWorking = false)).subscribe((result) => {
|
|
586
|
+
this.model = result?.item;
|
|
587
|
+
this.modelLoaded(this.model);
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
reload() {
|
|
591
|
+
this.loadData();
|
|
592
|
+
}
|
|
593
|
+
modelLoaded(model) {}
|
|
594
|
+
modelUpdated(model) {
|
|
595
|
+
if (model) {
|
|
596
|
+
this.model = model;
|
|
597
|
+
this.modelLoaded(this.model);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
static {
|
|
601
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
602
|
+
minVersion: "12.0.0",
|
|
603
|
+
version: "22.2.3",
|
|
604
|
+
ngImport: i0,
|
|
605
|
+
type: TechlifyShowComponent,
|
|
606
|
+
deps: [{
|
|
607
|
+
token: TechlifyService,
|
|
608
|
+
optional: true
|
|
609
|
+
}],
|
|
610
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
static {
|
|
614
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
615
|
+
minVersion: "14.0.0",
|
|
616
|
+
version: "22.2.3",
|
|
617
|
+
type: TechlifyShowComponent,
|
|
618
|
+
isStandalone: true,
|
|
619
|
+
ngImport: i0
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
};
|
|
623
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
624
|
+
minVersion: "12.0.0",
|
|
625
|
+
version: "22.2.3",
|
|
626
|
+
ngImport: i0,
|
|
627
|
+
type: TechlifyShowComponent,
|
|
628
|
+
decorators: [{ type: Directive }],
|
|
629
|
+
ctorParameters: () => [{
|
|
630
|
+
type: TechlifyService,
|
|
631
|
+
decorators: [{ type: Optional }]
|
|
632
|
+
}]
|
|
633
|
+
});
|
|
634
|
+
function techlifyShowContract(options) {
|
|
635
|
+
describe("TechlifyShowComponent Contract", () => {
|
|
636
|
+
it("should pass a service to the base class", () => {
|
|
637
|
+
const component = options.getComponent();
|
|
638
|
+
expect(component.service).toBe(options.getService());
|
|
639
|
+
});
|
|
640
|
+
it("should listen route changes on init", () => {
|
|
641
|
+
const component = options.getComponent();
|
|
642
|
+
spyOn(component, "listenRouteChanges");
|
|
643
|
+
component.ngOnInit();
|
|
644
|
+
expect(component.listenRouteChanges).toHaveBeenCalled();
|
|
645
|
+
});
|
|
646
|
+
it("should get id from route params", () => {
|
|
647
|
+
const component = options.getComponent();
|
|
648
|
+
const routeParamName = options.routeParamName ?? "id";
|
|
649
|
+
const params = convertToParamMap({ [routeParamName]: "5" });
|
|
650
|
+
expect(component.getIdFromRoute(params)).toBe("5");
|
|
651
|
+
});
|
|
652
|
+
it("should load the model using show", () => {
|
|
653
|
+
const component = options.getComponent();
|
|
654
|
+
options.getService().show.and.returnValue(of({ item: { id: 5 } }));
|
|
655
|
+
component.id = 5;
|
|
656
|
+
component.loadData();
|
|
657
|
+
expect(options.getService().show).toHaveBeenCalledWith(5, jasmine.anything());
|
|
658
|
+
expect(component.model).toEqual({ id: 5 });
|
|
659
|
+
expect(component.isWorking).toBeFalse();
|
|
660
|
+
});
|
|
661
|
+
it("should not load without an id", () => {
|
|
662
|
+
const component = options.getComponent();
|
|
663
|
+
options.getService().show.calls.reset();
|
|
664
|
+
component.id = null;
|
|
665
|
+
component.loadData();
|
|
666
|
+
expect(options.getService().show).not.toHaveBeenCalled();
|
|
667
|
+
});
|
|
668
|
+
it("should replace the model on modelUpdated", () => {
|
|
669
|
+
const component = options.getComponent();
|
|
670
|
+
component.modelUpdated({ id: 7 });
|
|
671
|
+
expect(component.model).toEqual({ id: 7 });
|
|
672
|
+
});
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
export { RequestHelperService as a, TechlifyFormComponent as c, TechlifyListComponent as i, TechlifyService as l, TechlifyShowComponent as n, parseLocalDate as o, techlifyListContract as r, techlifyFormContract as s, techlifyShowContract as t };
|
|
676
|
+
|
|
677
|
+
//# sourceMappingURL=ngx-techlify-core-base-model-oCILHkdE.mjs.map
|