spiderly 0.0.8 → 19.0.1
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/eslint.config.js +32 -0
- package/ng-package.json +10 -0
- package/package.json +55 -65
- package/src/lib/components/auth/login/login.component.html +25 -0
- package/src/lib/components/auth/login/login.component.ts +77 -0
- package/src/lib/components/auth/partials/auth.component.html +29 -0
- package/src/lib/components/auth/partials/auth.component.ts +60 -0
- package/src/lib/components/auth/partials/login-verification.component.html +2 -0
- package/src/lib/components/auth/partials/login-verification.component.ts +41 -0
- package/src/lib/components/auth/partials/registration-verification.component.html +1 -0
- package/src/lib/components/auth/partials/registration-verification.component.ts +41 -0
- package/src/lib/components/auth/partials/verification-wrapper.component.html +39 -0
- package/src/lib/components/auth/partials/verification-wrapper.component.ts +68 -0
- package/src/lib/components/auth/registration/registration.component.html +31 -0
- package/src/lib/components/auth/registration/registration.component.ts +77 -0
- package/src/lib/components/base-details/role-base-details.component.html +33 -0
- package/src/lib/components/base-details/role-base-details.component.ts +194 -0
- package/src/lib/components/base-form/base-form copy.ts +356 -0
- package/src/lib/components/card-skeleton/card-skeleton.component.html +8 -0
- package/src/lib/components/card-skeleton/card-skeleton.component.ts +21 -0
- package/src/lib/components/footer/app.footer.component.ts +17 -0
- package/src/lib/components/footer/footer.component.html +3 -0
- package/src/lib/components/footer/footer.component.ts +17 -0
- package/src/lib/components/index-card/index-card.component.html +15 -0
- package/src/lib/components/index-card/index-card.component.ts +48 -0
- package/src/lib/components/info-card/info-card.component.html +18 -0
- package/src/lib/components/info-card/info-card.component.ts +29 -0
- package/src/lib/components/layout/layout-base.component.ts +140 -0
- package/src/lib/components/layout/sidebar/menuitem.component.html +40 -0
- package/src/lib/components/layout/sidebar/menuitem.component.ts +179 -0
- package/src/lib/components/layout/sidebar/sidebar-menu.component.html +6 -0
- package/src/lib/components/layout/sidebar/sidebar-menu.component.ts +44 -0
- package/src/lib/components/layout/sidebar/sidebar-menu.service.ts +22 -0
- package/src/lib/components/layout/sidebar/sidebar.component.html +1 -0
- package/src/lib/components/layout/sidebar/sidebar.component.ts +20 -0
- package/src/lib/components/layout/topbar/topbar.component.html +64 -0
- package/src/lib/components/layout/topbar/topbar.component.ts +137 -0
- package/src/lib/components/not-found/not-found.component.html +27 -0
- package/src/lib/components/not-found/not-found.component.ts +22 -0
- package/src/lib/components/required/required.component.html +1 -0
- package/src/lib/components/required/required.component.ts +13 -0
- package/src/lib/components/spiderly-buttons/google-button/google-button.component.html +5 -0
- package/src/lib/components/spiderly-buttons/google-button/google-button.component.ts +53 -0
- package/src/lib/components/spiderly-buttons/return-button/return-button.component.html +3 -0
- package/src/lib/components/spiderly-buttons/return-button/return-button.component.ts +35 -0
- package/src/lib/components/spiderly-buttons/spiderly-button/spiderly-button.component.html +14 -0
- package/src/lib/components/spiderly-buttons/spiderly-button/spiderly-button.component.ts +27 -0
- package/src/lib/components/spiderly-buttons/spiderly-button-base/spiderly-button-base.ts +61 -0
- package/src/lib/components/spiderly-buttons/spiderly-split-button/spiderly-split-button.component.html +15 -0
- package/src/lib/components/spiderly-buttons/spiderly-split-button/spiderly-split-button.component.ts +24 -0
- package/src/lib/components/spiderly-data-table/spiderly-data-table.component.html +93 -0
- package/{styles → src/lib}/components/spiderly-data-table/spiderly-data-table.component.scss +15 -0
- package/src/lib/components/spiderly-data-table/spiderly-data-table.component.ts +614 -0
- package/src/lib/components/spiderly-delete-dialog/spiderly-delete-confirmation.component.html +17 -0
- package/src/lib/components/spiderly-delete-dialog/spiderly-delete-confirmation.component.ts +39 -0
- package/src/lib/components/spiderly-form-control/spiderly-form-control.ts +60 -0
- package/src/lib/components/spiderly-panels/panel-body/panel-body.component.html +8 -0
- package/src/lib/components/spiderly-panels/panel-body/panel-body.component.ts +16 -0
- package/src/lib/components/spiderly-panels/panel-footer/panel-footer.component.html +8 -0
- package/{styles → src/lib}/components/spiderly-panels/panel-footer/panel-footer.component.scss +3 -3
- package/src/lib/components/spiderly-panels/panel-footer/panel-footer.component.ts +15 -0
- package/src/lib/components/spiderly-panels/panel-header/panel-header.component.html +25 -0
- package/src/lib/components/spiderly-panels/panel-header/panel-header.component.ts +69 -0
- package/src/lib/components/spiderly-panels/spiderly-card/spiderly-card.component.html +7 -0
- package/src/lib/components/spiderly-panels/spiderly-card/spiderly-card.component.ts +17 -0
- package/src/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.html +40 -0
- package/src/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.scss +11 -0
- package/src/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.ts +42 -0
- package/src/lib/components/spiderly-panels/spiderly-panels.module.ts +32 -0
- package/src/lib/controls/base-autocomplete-control.ts +17 -0
- package/src/lib/controls/base-control.ts +60 -0
- package/src/lib/controls/base-dropdown-control.ts +37 -0
- package/src/lib/controls/spiderly-autocomplete/spiderly-autocomplete.component.html +36 -0
- package/src/lib/controls/spiderly-autocomplete/spiderly-autocomplete.component.ts +56 -0
- package/src/lib/controls/spiderly-calendar/spiderly-calendar.component.html +21 -0
- package/src/lib/controls/spiderly-calendar/spiderly-calendar.component.ts +37 -0
- package/src/lib/controls/spiderly-checkbox/spiderly-checkbox.component.html +16 -0
- package/src/lib/controls/spiderly-checkbox/spiderly-checkbox.component.ts +38 -0
- package/src/lib/controls/spiderly-colorpick/spiderly-colorpick.component.html +33 -0
- package/src/lib/controls/spiderly-colorpick/spiderly-colorpick.component.ts +40 -0
- package/src/lib/controls/spiderly-controls.module.ts +61 -0
- package/src/lib/controls/spiderly-dropdown/spiderly-dropdown.component.html +27 -0
- package/src/lib/controls/spiderly-dropdown/spiderly-dropdown.component.ts +39 -0
- package/src/lib/controls/spiderly-editor/spiderly-editor.component.html +22 -0
- package/src/lib/controls/spiderly-editor/spiderly-editor.component.ts +58 -0
- package/src/lib/controls/spiderly-file/spiderly-file.component.html +54 -0
- package/src/lib/controls/spiderly-file/spiderly-file.component.ts +123 -0
- package/src/lib/controls/spiderly-multiautocomplete/spiderly-multiautocomplete.component.html +30 -0
- package/src/lib/controls/spiderly-multiautocomplete/spiderly-multiautocomplete.component.ts +38 -0
- package/src/lib/controls/spiderly-multiselect/spiderly-multiselect.component.html +23 -0
- package/src/lib/controls/spiderly-multiselect/spiderly-multiselect.component.ts +32 -0
- package/src/lib/controls/spiderly-number/spiderly-number.component.html +19 -0
- package/src/lib/controls/spiderly-number/spiderly-number.component.ts +37 -0
- package/src/lib/controls/spiderly-password/spiderly-password.component.html +17 -0
- package/src/lib/controls/spiderly-password/spiderly-password.component.ts +34 -0
- package/src/lib/controls/spiderly-textarea/spiderly-textarea.component.html +18 -0
- package/src/lib/controls/spiderly-textarea/spiderly-textarea.component.ts +32 -0
- package/src/lib/controls/spiderly-textbox/spiderly-textbox.component.html +23 -0
- package/src/lib/controls/spiderly-textbox/spiderly-textbox.component.ts +41 -0
- package/src/lib/entities/base-entity.ts +25 -0
- package/src/lib/entities/codebook.ts +23 -0
- package/src/lib/entities/init-company-auth-dialog-details.ts +22 -0
- package/src/lib/entities/init-top-bar-data.ts +35 -0
- package/src/lib/entities/is-authorized-for-save-event.ts +22 -0
- package/src/lib/entities/last-menu-icon-index-clicked.ts +18 -0
- package/src/lib/entities/lazy-load-selected-ids-result.ts +22 -0
- package/{lib/entities/menuchangeevent.d.ts → src/lib/entities/menuchangeevent.ts} +4 -4
- package/src/lib/entities/mime-type.ts +15 -0
- package/src/lib/entities/namebook.ts +22 -0
- package/src/lib/entities/primeng-option.ts +23 -0
- package/src/lib/entities/readonly-object.ts +1 -0
- package/src/lib/entities/security-entities.ts +548 -0
- package/src/lib/entities/simple-save-result.ts +19 -0
- package/src/lib/entities/spiderly-button.ts +30 -0
- package/{lib/entities/table-filter-context.d.ts → src/lib/entities/table-filter-context.ts} +6 -5
- package/src/lib/entities/table-filter-sort-meta.ts +5 -0
- package/{lib/entities/table-filter.d.ts → src/lib/entities/table-filter.ts} +48 -23
- package/src/lib/entities/table-response.ts +5 -0
- package/src/lib/enums/security-enums.ts +28 -0
- package/src/lib/enums/verification-type-codes.ts +5 -0
- package/src/lib/guards/auth.guard.ts +39 -0
- package/src/lib/guards/not-auth.guard.ts +32 -0
- package/src/lib/handlers/spiderly-error-handler.ts +32 -0
- package/src/lib/handlers/spiderly-transloco-fallback-strategy.ts +25 -0
- package/src/lib/interceptors/http-loading.interceptor.ts +21 -0
- package/src/lib/interceptors/json-parser.interceptor.ts +44 -0
- package/src/lib/interceptors/jwt.interceptor.ts +18 -0
- package/src/lib/interceptors/unauthorized.interceptor.ts +77 -0
- package/src/lib/modules/core.module.ts +22 -0
- package/src/lib/modules/primeng.module.ts +122 -0
- package/src/lib/modules/spiderly-transloco.module.ts +50 -0
- package/src/lib/services/api.service.security.ts +120 -0
- package/src/lib/services/app-initializer.ts +9 -0
- package/src/lib/services/app-layout-base.service.ts +184 -0
- package/src/lib/services/auth-base.service.ts +271 -0
- package/src/lib/services/base-form.service.ts +178 -0
- package/src/lib/services/config-base.service.ts +36 -0
- package/src/lib/services/helper-functions.ts +288 -0
- package/src/lib/services/spiderly-message.service.ts +66 -0
- package/src/lib/services/spiderly-transloco-loader.ts +15 -0
- package/src/lib/services/translate-labels-abstract.service.ts +13 -0
- package/src/lib/services/validator-abstract.service.ts +63 -0
- package/{styles → src/lib}/styles/layout/_config.scss +2 -2
- package/{styles → src/lib}/styles/layout/_content.scss +2 -0
- package/{styles → src/lib}/styles/layout/_footer.scss +2 -0
- package/{styles → src/lib}/styles/layout/_main.scss +6 -3
- package/{styles → src/lib}/styles/layout/_menu.scss +10 -7
- package/{styles → src/lib}/styles/layout/_mixins.scss +2 -2
- package/{styles → src/lib}/styles/layout/_preloading.scss +1 -1
- package/{styles → src/lib}/styles/layout/_responsive.scss +2 -0
- package/{styles → src/lib}/styles/layout/_spiderly-controls.scss +2 -0
- package/{styles → src/lib}/styles/layout/_topbar.scss +16 -11
- package/{styles → src/lib}/styles/layout/_typography.scss +1 -1
- package/{styles → src/lib}/styles/layout/_utils.scss +1 -1
- package/{styles → src/lib}/styles/layout/_variables.scss +59 -53
- package/src/lib/styles/layout/layout.scss +13 -0
- package/{styles → src/lib}/styles/shared.scss +70 -42
- package/src/lib/styles/styles.scss +3 -0
- package/{public-api.d.ts → src/public-api.ts} +103 -90
- package/tsconfig.lib.json +17 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/lib/components/auth/auth.module.mjs +0 -65
- package/esm2022/lib/components/auth/login/login.component.mjs +0 -60
- package/esm2022/lib/components/auth/partials/auth.component.mjs +0 -53
- package/esm2022/lib/components/auth/partials/login-verification.component.mjs +0 -39
- package/esm2022/lib/components/auth/partials/registration-verification.component.mjs +0 -37
- package/esm2022/lib/components/auth/partials/verification-wrapper.component.mjs +0 -74
- package/esm2022/lib/components/auth/registration/registration.component.mjs +0 -59
- package/esm2022/lib/components/base-details/role-base-details.component.mjs +0 -171
- package/esm2022/lib/components/base-form/base-form copy.mjs +0 -247
- package/esm2022/lib/components/card-skeleton/card-skeleton.component.mjs +0 -25
- package/esm2022/lib/components/footer/footer.component.mjs +0 -16
- package/esm2022/lib/components/index-card/index-card.component.mjs +0 -57
- package/esm2022/lib/components/info-card/info-card.component.mjs +0 -29
- package/esm2022/lib/components/layout/layout-base.component.mjs +0 -121
- package/esm2022/lib/components/layout/sidebar/menuitem.component.mjs +0 -161
- package/esm2022/lib/components/layout/sidebar/sidebar-menu.component.mjs +0 -34
- package/esm2022/lib/components/layout/sidebar/sidebar-menu.service.mjs +0 -26
- package/esm2022/lib/components/layout/sidebar/sidebar.component.mjs +0 -21
- package/esm2022/lib/components/layout/topbar/topbar.component.mjs +0 -115
- package/esm2022/lib/components/not-found/not-found.component.mjs +0 -20
- package/esm2022/lib/components/required/required.component.mjs +0 -12
- package/esm2022/lib/components/spiderly-buttons/google-button/google-button.component.mjs +0 -43
- package/esm2022/lib/components/spiderly-buttons/return-button/return-button.component.mjs +0 -37
- package/esm2022/lib/components/spiderly-buttons/spiderly-button/spiderly-button.component.mjs +0 -20
- package/esm2022/lib/components/spiderly-buttons/spiderly-button-base/spiderly-button-base.mjs +0 -68
- package/esm2022/lib/components/spiderly-buttons/spiderly-split-button/spiderly-split-button.component.mjs +0 -22
- package/esm2022/lib/components/spiderly-data-table/spiderly-data-table.component.mjs +0 -501
- package/esm2022/lib/components/spiderly-delete-dialog/spiderly-delete-confirmation.component.mjs +0 -42
- package/esm2022/lib/components/spiderly-form-control/spiderly-form-control.mjs +0 -36
- package/esm2022/lib/components/spiderly-panels/panel-body/panel-body.component.mjs +0 -19
- package/esm2022/lib/components/spiderly-panels/panel-footer/panel-footer.component.mjs +0 -14
- package/esm2022/lib/components/spiderly-panels/panel-header/panel-header.component.mjs +0 -49
- package/esm2022/lib/components/spiderly-panels/spiderly-card/spiderly-card.component.mjs +0 -20
- package/esm2022/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.mjs +0 -63
- package/esm2022/lib/components/spiderly-panels/spiderly-panels.module.mjs +0 -49
- package/esm2022/lib/controls/base-autocomplete-control.mjs +0 -18
- package/esm2022/lib/controls/base-control.mjs +0 -62
- package/esm2022/lib/controls/base-dropdown-control.mjs +0 -37
- package/esm2022/lib/controls/spiderly-autocomplete/spiderly-autocomplete.component.mjs +0 -60
- package/esm2022/lib/controls/spiderly-calendar/spiderly-calendar.component.mjs +0 -39
- package/esm2022/lib/controls/spiderly-checkbox/spiderly-checkbox.component.mjs +0 -45
- package/esm2022/lib/controls/spiderly-colorpick/spiderly-colorpick.component.mjs +0 -40
- package/esm2022/lib/controls/spiderly-controls.module.mjs +0 -112
- package/esm2022/lib/controls/spiderly-dropdown/spiderly-dropdown.component.mjs +0 -40
- package/esm2022/lib/controls/spiderly-editor/spiderly-editor.component.mjs +0 -59
- package/esm2022/lib/controls/spiderly-file/spiderly-file.component.mjs +0 -106
- package/esm2022/lib/controls/spiderly-multiautocomplete/spiderly-multiautocomplete.component.mjs +0 -38
- package/esm2022/lib/controls/spiderly-multiselect/spiderly-multiselect.component.mjs +0 -34
- package/esm2022/lib/controls/spiderly-number/spiderly-number.component.mjs +0 -44
- package/esm2022/lib/controls/spiderly-password/spiderly-password.component.mjs +0 -37
- package/esm2022/lib/controls/spiderly-textarea/spiderly-textarea.component.mjs +0 -34
- package/esm2022/lib/controls/spiderly-textbox/spiderly-textbox.component.mjs +0 -45
- package/esm2022/lib/entities/base-entity.mjs +0 -18
- package/esm2022/lib/entities/codebook.mjs +0 -10
- package/esm2022/lib/entities/init-company-auth-dialog-details.mjs +0 -9
- package/esm2022/lib/entities/init-top-bar-data.mjs +0 -12
- package/esm2022/lib/entities/is-authorized-for-save-event.mjs +0 -9
- package/esm2022/lib/entities/last-menu-icon-index-clicked.mjs +0 -8
- package/esm2022/lib/entities/lazy-load-selected-ids-result.mjs +0 -11
- package/esm2022/lib/entities/menuchangeevent.mjs +0 -3
- package/esm2022/lib/entities/mime-type.mjs +0 -15
- package/esm2022/lib/entities/namebook.mjs +0 -9
- package/esm2022/lib/entities/primeng-option.mjs +0 -9
- package/esm2022/lib/entities/security-entities.mjs +0 -169
- package/esm2022/lib/entities/simple-save-result.mjs +0 -9
- package/esm2022/lib/entities/spiderly-button.mjs +0 -11
- package/esm2022/lib/entities/table-filter-context.mjs +0 -3
- package/esm2022/lib/entities/table-filter-sort-meta.mjs +0 -3
- package/esm2022/lib/entities/table-filter.mjs +0 -15
- package/esm2022/lib/entities/table-response.mjs +0 -3
- package/esm2022/lib/enums/security-enums.mjs +0 -26
- package/esm2022/lib/enums/verification-type-codes.mjs +0 -6
- package/esm2022/lib/guards/auth.guard.mjs +0 -40
- package/esm2022/lib/guards/not-auth.guard.mjs +0 -32
- package/esm2022/lib/handlers/spiderly-error-handler.mjs +0 -30
- package/esm2022/lib/handlers/spiderly-transloco-fallback-strategy.mjs +0 -24
- package/esm2022/lib/interceptors/http-loading.interceptor.mjs +0 -27
- package/esm2022/lib/interceptors/json-parser.interceptor.mjs +0 -47
- package/esm2022/lib/interceptors/jwt.interceptor.mjs +0 -27
- package/esm2022/lib/interceptors/unauthorized.interceptor.mjs +0 -64
- package/esm2022/lib/modules/core.module.mjs +0 -140
- package/esm2022/lib/modules/primeng.module.mjs +0 -278
- package/esm2022/lib/modules/spiderly-transloco.module.mjs +0 -44
- package/esm2022/lib/services/api.service.security.mjs +0 -86
- package/esm2022/lib/services/app-initializer.mjs +0 -6
- package/esm2022/lib/services/app-layout-base.service.mjs +0 -132
- package/esm2022/lib/services/auth-base.service.mjs +0 -220
- package/esm2022/lib/services/base-form.service.mjs +0 -124
- package/esm2022/lib/services/config-base.service.mjs +0 -33
- package/esm2022/lib/services/helper-functions.mjs +0 -229
- package/esm2022/lib/services/spiderly-message.service.mjs +0 -64
- package/esm2022/lib/services/spiderly-transloco-loader.mjs +0 -20
- package/esm2022/lib/services/translate-labels-abstract.service.mjs +0 -15
- package/esm2022/lib/services/validator-abstract.service.mjs +0 -51
- package/esm2022/public-api.mjs +0 -94
- package/esm2022/spiderly.mjs +0 -5
- package/fesm2022/spiderly.mjs +0 -4807
- package/fesm2022/spiderly.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/components/auth/auth.module.d.ts +0 -17
- package/lib/components/auth/login/login.component.d.ts +0 -35
- package/lib/components/auth/partials/auth.component.d.ts +0 -21
- package/lib/components/auth/partials/login-verification.component.d.ts +0 -18
- package/lib/components/auth/partials/registration-verification.component.d.ts +0 -17
- package/lib/components/auth/partials/verification-wrapper.component.d.ts +0 -31
- package/lib/components/auth/registration/registration.component.d.ts +0 -34
- package/lib/components/base-details/role-base-details.component.d.ts +0 -50
- package/lib/components/base-form/base-form copy.d.ts +0 -54
- package/lib/components/card-skeleton/card-skeleton.component.d.ts +0 -12
- package/lib/components/footer/footer.component.d.ts +0 -9
- package/lib/components/index-card/index-card.component.d.ts +0 -22
- package/lib/components/info-card/info-card.component.d.ts +0 -11
- package/lib/components/layout/layout-base.component.d.ts +0 -37
- package/lib/components/layout/sidebar/menuitem.component.d.ts +0 -43
- package/lib/components/layout/sidebar/sidebar-menu.component.d.ts +0 -23
- package/lib/components/layout/sidebar/sidebar-menu.service.d.ts +0 -12
- package/lib/components/layout/sidebar/sidebar.component.d.ts +0 -11
- package/lib/components/layout/topbar/topbar.component.d.ts +0 -45
- package/lib/components/not-found/not-found.component.d.ts +0 -9
- package/lib/components/required/required.component.d.ts +0 -6
- package/lib/components/spiderly-buttons/google-button/google-button.component.d.ts +0 -17
- package/lib/components/spiderly-buttons/return-button/return-button.component.d.ts +0 -10
- package/lib/components/spiderly-buttons/spiderly-button/spiderly-button.component.d.ts +0 -6
- package/lib/components/spiderly-buttons/spiderly-button-base/spiderly-button-base.d.ts +0 -27
- package/lib/components/spiderly-buttons/spiderly-split-button/spiderly-split-button.component.d.ts +0 -8
- package/lib/components/spiderly-data-table/spiderly-data-table.component.d.ts +0 -157
- package/lib/components/spiderly-delete-dialog/spiderly-delete-confirmation.component.d.ts +0 -11
- package/lib/components/spiderly-form-control/spiderly-form-control.d.ts +0 -37
- package/lib/components/spiderly-panels/panel-body/panel-body.component.d.ts +0 -9
- package/lib/components/spiderly-panels/panel-footer/panel-footer.component.d.ts +0 -8
- package/lib/components/spiderly-panels/panel-header/panel-header.component.d.ts +0 -29
- package/lib/components/spiderly-panels/spiderly-card/spiderly-card.component.d.ts +0 -10
- package/lib/components/spiderly-panels/spiderly-panel/spiderly-panel.component.d.ts +0 -25
- package/lib/components/spiderly-panels/spiderly-panels.module.d.ts +0 -13
- package/lib/controls/base-autocomplete-control.d.ts +0 -9
- package/lib/controls/base-control.d.ts +0 -23
- package/lib/controls/base-dropdown-control.d.ts +0 -18
- package/lib/controls/spiderly-autocomplete/spiderly-autocomplete.component.d.ts +0 -18
- package/lib/controls/spiderly-calendar/spiderly-calendar.component.d.ts +0 -13
- package/lib/controls/spiderly-checkbox/spiderly-checkbox.component.d.ts +0 -14
- package/lib/controls/spiderly-colorpick/spiderly-colorpick.component.d.ts +0 -11
- package/lib/controls/spiderly-controls.module.d.ts +0 -22
- package/lib/controls/spiderly-dropdown/spiderly-dropdown.component.d.ts +0 -14
- package/lib/controls/spiderly-editor/spiderly-editor.component.d.ts +0 -16
- package/lib/controls/spiderly-file/spiderly-file.component.d.ts +0 -36
- package/lib/controls/spiderly-multiautocomplete/spiderly-multiautocomplete.component.d.ts +0 -13
- package/lib/controls/spiderly-multiselect/spiderly-multiselect.component.d.ts +0 -11
- package/lib/controls/spiderly-number/spiderly-number.component.d.ts +0 -15
- package/lib/controls/spiderly-password/spiderly-password.component.d.ts +0 -12
- package/lib/controls/spiderly-textarea/spiderly-textarea.component.d.ts +0 -11
- package/lib/controls/spiderly-textbox/spiderly-textbox.component.d.ts +0 -15
- package/lib/entities/base-entity.d.ts +0 -14
- package/lib/entities/codebook.d.ts +0 -9
- package/lib/entities/init-company-auth-dialog-details.d.ts +0 -9
- package/lib/entities/init-top-bar-data.d.ts +0 -16
- package/lib/entities/is-authorized-for-save-event.d.ts +0 -9
- package/lib/entities/last-menu-icon-index-clicked.d.ts +0 -7
- package/lib/entities/lazy-load-selected-ids-result.d.ts +0 -9
- package/lib/entities/mime-type.d.ts +0 -11
- package/lib/entities/namebook.d.ts +0 -9
- package/lib/entities/primeng-option.d.ts +0 -9
- package/lib/entities/security-entities.d.ts +0 -211
- package/lib/entities/simple-save-result.d.ts +0 -7
- package/lib/entities/spiderly-button.d.ts +0 -13
- package/lib/entities/table-filter-sort-meta.d.ts +0 -4
- package/lib/entities/table-response.d.ts +0 -4
- package/lib/enums/security-enums.d.ts +0 -22
- package/lib/enums/verification-type-codes.d.ts +0 -4
- package/lib/guards/auth.guard.d.ts +0 -15
- package/lib/guards/not-auth.guard.d.ts +0 -12
- package/lib/handlers/spiderly-error-handler.d.ts +0 -14
- package/lib/handlers/spiderly-transloco-fallback-strategy.d.ts +0 -13
- package/lib/interceptors/http-loading.interceptor.d.ts +0 -11
- package/lib/interceptors/json-parser.interceptor.d.ts +0 -11
- package/lib/interceptors/jwt.interceptor.d.ts +0 -11
- package/lib/interceptors/unauthorized.interceptor.d.ts +0 -16
- package/lib/modules/core.module.d.ts +0 -13
- package/lib/modules/primeng.module.d.ts +0 -42
- package/lib/modules/spiderly-transloco.module.d.ts +0 -9
- package/lib/services/api.service.security.d.ts +0 -35
- package/lib/services/app-initializer.d.ts +0 -4
- package/lib/services/app-layout-base.service.d.ts +0 -60
- package/lib/services/auth-base.service.d.ts +0 -55
- package/lib/services/base-form.service.d.ts +0 -27
- package/lib/services/config-base.service.d.ts +0 -24
- package/lib/services/helper-functions.d.ts +0 -37
- package/lib/services/spiderly-message.service.d.ts +0 -17
- package/lib/services/spiderly-transloco-loader.d.ts +0 -10
- package/lib/services/translate-labels-abstract.service.d.ts +0 -7
- package/lib/services/validator-abstract.service.d.ts +0 -13
- package/styles/styles/layout/layout.scss +0 -13
- package/styles/styles/styles.scss +0 -6
- package/styles/styles/theme/base/_colors.scss +0 -18
- package/styles/styles/theme/base/_common.scss +0 -75
- package/styles/styles/theme/base/_components.scss +0 -106
- package/styles/styles/theme/base/_mixins.scss +0 -343
- package/styles/styles/theme/base/components/button/_button.scss +0 -564
- package/styles/styles/theme/base/components/button/_speeddial.scss +0 -96
- package/styles/styles/theme/base/components/button/_splitbutton.scss +0 -381
- package/styles/styles/theme/base/components/data/_carousel.scss +0 -37
- package/styles/styles/theme/base/components/data/_datatable.scss +0 -338
- package/styles/styles/theme/base/components/data/_dataview.scss +0 -55
- package/styles/styles/theme/base/components/data/_filter.scss +0 -138
- package/styles/styles/theme/base/components/data/_orderlist.scss +0 -103
- package/styles/styles/theme/base/components/data/_organizationchart.scss +0 -50
- package/styles/styles/theme/base/components/data/_paginator.scss +0 -92
- package/styles/styles/theme/base/components/data/_picklist.scss +0 -103
- package/styles/styles/theme/base/components/data/_timeline.scss +0 -81
- package/styles/styles/theme/base/components/data/_tree.scss +0 -149
- package/styles/styles/theme/base/components/data/_treetable.scss +0 -256
- package/styles/styles/theme/base/components/data/_virtualscroller.scss +0 -28
- package/styles/styles/theme/base/components/file/_fileupload.scss +0 -64
- package/styles/styles/theme/base/components/input/_autocomplete.scss +0 -118
- package/styles/styles/theme/base/components/input/_calendar.scss +0 -263
- package/styles/styles/theme/base/components/input/_cascadeselect.scss +0 -130
- package/styles/styles/theme/base/components/input/_checkbox.scss +0 -90
- package/styles/styles/theme/base/components/input/_chips.scss +0 -55
- package/styles/styles/theme/base/components/input/_colorpicker.scss +0 -26
- package/styles/styles/theme/base/components/input/_dropdown.scss +0 -152
- package/styles/styles/theme/base/components/input/_editor.scss +0 -122
- package/styles/styles/theme/base/components/input/_inputgroup.scss +0 -75
- package/styles/styles/theme/base/components/input/_inputmask.scss +0 -16
- package/styles/styles/theme/base/components/input/_inputnumber.scss +0 -28
- package/styles/styles/theme/base/components/input/_inputswitch.scss +0 -60
- package/styles/styles/theme/base/components/input/_inputtext.scss +0 -100
- package/styles/styles/theme/base/components/input/_listbox.scss +0 -82
- package/styles/styles/theme/base/components/input/_multiselect.scss +0 -173
- package/styles/styles/theme/base/components/input/_password.scss +0 -52
- package/styles/styles/theme/base/components/input/_radiobutton.scss +0 -78
- package/styles/styles/theme/base/components/input/_rating.scss +0 -55
- package/styles/styles/theme/base/components/input/_selectbutton.scss +0 -50
- package/styles/styles/theme/base/components/input/_slider.scss +0 -71
- package/styles/styles/theme/base/components/input/_togglebutton.scss +0 -48
- package/styles/styles/theme/base/components/input/_treeselect.scss +0 -139
- package/styles/styles/theme/base/components/menu/_breadcrumb.scss +0 -42
- package/styles/styles/theme/base/components/menu/_contextmenu.scss +0 -39
- package/styles/styles/theme/base/components/menu/_dock.scss +0 -95
- package/styles/styles/theme/base/components/menu/_megamenu.scss +0 -55
- package/styles/styles/theme/base/components/menu/_menu.scss +0 -37
- package/styles/styles/theme/base/components/menu/_menubar.scss +0 -141
- package/styles/styles/theme/base/components/menu/_panelmenu.scss +0 -153
- package/styles/styles/theme/base/components/menu/_slidemenu.scss +0 -59
- package/styles/styles/theme/base/components/menu/_steps.scss +0 -56
- package/styles/styles/theme/base/components/menu/_tabmenu.scss +0 -74
- package/styles/styles/theme/base/components/menu/_tieredmenu.scss +0 -43
- package/styles/styles/theme/base/components/messages/_inlinemessage.scss +0 -69
- package/styles/styles/theme/base/components/messages/_message.scss +0 -107
- package/styles/styles/theme/base/components/messages/_toast.scss +0 -103
- package/styles/styles/theme/base/components/misc/_avatar.scss +0 -30
- package/styles/styles/theme/base/components/misc/_badge.scss +0 -48
- package/styles/styles/theme/base/components/misc/_blockui.scss +0 -0
- package/styles/styles/theme/base/components/misc/_chip.scss +0 -42
- package/styles/styles/theme/base/components/misc/_inplace.scss +0 -17
- package/styles/styles/theme/base/components/misc/_progressbar.scss +0 -17
- package/styles/styles/theme/base/components/misc/_scrolltop.scss +0 -25
- package/styles/styles/theme/base/components/misc/_skeleton.scss +0 -8
- package/styles/styles/theme/base/components/misc/_tag.scss +0 -40
- package/styles/styles/theme/base/components/misc/_terminal.scss +0 -12
- package/styles/styles/theme/base/components/multimedia/_galleria.scss +0 -155
- package/styles/styles/theme/base/components/multimedia/_image.scss +0 -49
- package/styles/styles/theme/base/components/overlay/_confirmpopup.scss +0 -72
- package/styles/styles/theme/base/components/overlay/_dialog.scss +0 -73
- package/styles/styles/theme/base/components/overlay/_overlaypanel.scss +0 -64
- package/styles/styles/theme/base/components/overlay/_sidebar.scss +0 -27
- package/styles/styles/theme/base/components/overlay/_tooltip.scss +0 -33
- package/styles/styles/theme/base/components/panel/_accordion.scss +0 -119
- package/styles/styles/theme/base/components/panel/_card.scss +0 -30
- package/styles/styles/theme/base/components/panel/_divider.scss +0 -31
- package/styles/styles/theme/base/components/panel/_fieldset.scss +0 -47
- package/styles/styles/theme/base/components/panel/_panel.scss +0 -58
- package/styles/styles/theme/base/components/panel/_scrollpanel.scss +0 -6
- package/styles/styles/theme/base/components/panel/_splitter.scss +0 -19
- package/styles/styles/theme/base/components/panel/_tabview.scss +0 -82
- package/styles/styles/theme/base/components/panel/_toolbar.scss +0 -11
- package/styles/styles/theme/saga/_extensions.scss +0 -27
- package/styles/styles/theme/saga/_variables.scss +0 -1
- package/styles/styles/theme/saga/saga-blue/_extensions.scss +0 -2
- package/styles/styles/theme/saga/saga-blue/_fonts.scss +0 -1
- package/styles/styles/theme/saga/saga-blue/_variables.scss +0 -1
- package/styles/styles/theme/saga/saga-blue/theme.scss +0 -4
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Component, Input } from "@angular/core";
|
|
2
|
+
import { SkeletonModule } from 'primeng/skeleton';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'card-skeleton',
|
|
6
|
+
templateUrl: './card-skeleton.component.html',
|
|
7
|
+
styles: [],
|
|
8
|
+
imports: [SkeletonModule]
|
|
9
|
+
})
|
|
10
|
+
export class CardSkeletonComponent {
|
|
11
|
+
@Input() height: number = 400;
|
|
12
|
+
titleHeight: number = 23;
|
|
13
|
+
dataHeight: number;
|
|
14
|
+
padding: number = 21;
|
|
15
|
+
titleMarginBottom: number = 14;
|
|
16
|
+
titleMarginTop: number = 4;
|
|
17
|
+
|
|
18
|
+
ngOnInit(){
|
|
19
|
+
this.dataHeight = this.height - (this.titleHeight + this.padding * 2 + this.titleMarginBottom + this.titleMarginTop)
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { ConfigBaseService } from '../../services/config-base.service'
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'footer',
|
|
6
|
+
templateUrl: './app.footer.component.html',
|
|
7
|
+
standalone: true
|
|
8
|
+
})
|
|
9
|
+
export class FooterComponent {
|
|
10
|
+
companyName: string = this.config.companyName;
|
|
11
|
+
|
|
12
|
+
constructor(
|
|
13
|
+
private config: ConfigBaseService
|
|
14
|
+
) {
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { ConfigBaseService } from '../../services/config-base.service'
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'footer',
|
|
6
|
+
templateUrl: './footer.component.html',
|
|
7
|
+
standalone: true
|
|
8
|
+
})
|
|
9
|
+
export class FooterComponent {
|
|
10
|
+
companyName: string = this.config.companyName;
|
|
11
|
+
|
|
12
|
+
constructor(
|
|
13
|
+
private config: ConfigBaseService
|
|
14
|
+
) {
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<div [ngClass]="{
|
|
2
|
+
'last-child-zero-margin': last,
|
|
3
|
+
'card-margin-bottom': true,
|
|
4
|
+
}">
|
|
5
|
+
<spiderly-panel [crudMenu]="crudMenu" [showCrudMenu]="showCrudMenu" (onMenuIconClick)="menuIconClick($event)" [showRemoveIcon]="showRemoveIcon" (onRemoveIconClick)="removeIconClick()" [index]="index">
|
|
6
|
+
<panel-header [title]="header" [index]="index" [showIcon]="false"></panel-header>
|
|
7
|
+
|
|
8
|
+
<panel-body>
|
|
9
|
+
<ng-content>
|
|
10
|
+
<!-- Custom things below description -->
|
|
11
|
+
</ng-content>
|
|
12
|
+
</panel-body>
|
|
13
|
+
|
|
14
|
+
</spiderly-panel>
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
3
|
+
import { FormBuilder } from '@angular/forms';
|
|
4
|
+
import { MenuItem } from 'primeng/api';
|
|
5
|
+
import { SpiderlyPanelsModule } from "../spiderly-panels/spiderly-panels.module";
|
|
6
|
+
import { PrimengModule } from '../../modules/primeng.module';
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: 'index-card',
|
|
10
|
+
templateUrl: './index-card.component.html',
|
|
11
|
+
imports: [
|
|
12
|
+
CommonModule,
|
|
13
|
+
PrimengModule,
|
|
14
|
+
SpiderlyPanelsModule
|
|
15
|
+
]
|
|
16
|
+
})
|
|
17
|
+
export class IndexCardComponent {
|
|
18
|
+
@Input() last: boolean;
|
|
19
|
+
@Input() index: number;
|
|
20
|
+
@Input() header: string = '';
|
|
21
|
+
@Input() description: string;
|
|
22
|
+
@Input() showRemoveIcon: boolean;
|
|
23
|
+
@Input() showCrudMenu: boolean = true;
|
|
24
|
+
|
|
25
|
+
@Input() crudMenu: MenuItem[];
|
|
26
|
+
|
|
27
|
+
@Output() onMenuIconClick = new EventEmitter<number>();
|
|
28
|
+
@Output() onRemoveIconClick = new EventEmitter<null>();
|
|
29
|
+
|
|
30
|
+
constructor(
|
|
31
|
+
protected formBuilder: FormBuilder,
|
|
32
|
+
) {
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
ngOnInit(){
|
|
37
|
+
// console.log(this.last);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
menuIconClick(index: number){
|
|
41
|
+
this.onMenuIconClick.next(index);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
removeIconClick(){
|
|
45
|
+
this.onRemoveIconClick.next(null);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<div class="card responsive-card-padding" style="background-color: var(--p-primary-100); position: relative; overflow: hidden;">
|
|
2
|
+
<!-- TODO FT: Translate -->
|
|
3
|
+
<div style="display: flex; align-items: center; gap: 21px; position: relative; z-index: 2;">
|
|
4
|
+
<i class="pi pi-info-circle" style="font-size: 26px; color: var(--p-primary-color);"></i>
|
|
5
|
+
<div>
|
|
6
|
+
<div class="header" style="color:var(--p-primary-color); font-weight: 600; text-align: left;">
|
|
7
|
+
{{header}}
|
|
8
|
+
</div>
|
|
9
|
+
<div style="text-align: left; margin-top: 8px;">
|
|
10
|
+
<ng-content></ng-content>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div class="card-overflow-icon" style="position: absolute; overflow: hidden; right: 8px; top: -25px; z-index: 1;">
|
|
16
|
+
<i class="pi pi-info-circle" style="font-size: 270px;"></i>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, Input } from '@angular/core';
|
|
3
|
+
import { FormBuilder } from '@angular/forms';
|
|
4
|
+
import { SpiderlyPanelsModule } from "../spiderly-panels/spiderly-panels.module";
|
|
5
|
+
import { PrimengModule } from '../../modules/primeng.module';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'info-card',
|
|
9
|
+
templateUrl: './info-card.component.html',
|
|
10
|
+
imports: [
|
|
11
|
+
CommonModule,
|
|
12
|
+
PrimengModule,
|
|
13
|
+
SpiderlyPanelsModule
|
|
14
|
+
]
|
|
15
|
+
})
|
|
16
|
+
export class InfoCardComponent {
|
|
17
|
+
@Input() public header: string = '';
|
|
18
|
+
@Input() public description: string;
|
|
19
|
+
|
|
20
|
+
constructor(
|
|
21
|
+
protected formBuilder: FormBuilder,
|
|
22
|
+
) {
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
ngOnInit(){
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { Component, OnDestroy, Renderer2, ViewChild } from '@angular/core';
|
|
2
|
+
import { NavigationEnd, Router } from '@angular/router';
|
|
3
|
+
import { filter, Subscription } from 'rxjs';
|
|
4
|
+
import { AppSidebarComponent } from './sidebar/sidebar.component';
|
|
5
|
+
import { AppTopBarComponent } from './topbar/topbar.component';
|
|
6
|
+
import { LayoutBaseService } from '../../services/app-layout-base.service';
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: 'layout-base',
|
|
10
|
+
template: '',
|
|
11
|
+
standalone: true
|
|
12
|
+
})
|
|
13
|
+
export class LayoutBaseComponent implements OnDestroy {
|
|
14
|
+
|
|
15
|
+
overlayMenuOpenSubscription: Subscription;
|
|
16
|
+
|
|
17
|
+
menuOutsideClickListener: any;
|
|
18
|
+
|
|
19
|
+
profileMenuOutsideClickListener: any;
|
|
20
|
+
|
|
21
|
+
@ViewChild(AppSidebarComponent) appSidebar!: AppSidebarComponent;
|
|
22
|
+
|
|
23
|
+
@ViewChild(AppTopBarComponent) appTopbar!: AppTopBarComponent;
|
|
24
|
+
|
|
25
|
+
constructor(
|
|
26
|
+
protected layoutService: LayoutBaseService,
|
|
27
|
+
protected renderer: Renderer2,
|
|
28
|
+
protected router: Router,
|
|
29
|
+
) {
|
|
30
|
+
this.overlayMenuOpenSubscription = this.layoutService.overlayOpen$.subscribe(() => {
|
|
31
|
+
if (!this.menuOutsideClickListener) {
|
|
32
|
+
this.menuOutsideClickListener = this.renderer.listen('document', 'click', event => {
|
|
33
|
+
const isOutsideClicked = !(
|
|
34
|
+
this.appSidebar.el.nativeElement.isSameNode(event.target) ||
|
|
35
|
+
this.appSidebar.el.nativeElement.contains(event.target) ||
|
|
36
|
+
this.appTopbar.menuButton.nativeElement.isSameNode(event.target) ||
|
|
37
|
+
this.appTopbar.menuButton.nativeElement.contains(event.target) ||
|
|
38
|
+
(event.target.closest('.p-autocomplete-items')) ||
|
|
39
|
+
(event.target.closest('.p-autocomplete-clear-icon'))
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
if (isOutsideClicked) {
|
|
43
|
+
this.hideMenu();
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (!this.profileMenuOutsideClickListener) {
|
|
49
|
+
this.profileMenuOutsideClickListener = this.renderer.listen('document', 'click', event => {
|
|
50
|
+
const isOutsideClicked = !(
|
|
51
|
+
this.appTopbar.menu.nativeElement.isSameNode(event.target) ||
|
|
52
|
+
this.appTopbar.menu.nativeElement.contains(event.target)
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
if (isOutsideClicked) {
|
|
56
|
+
this.hideProfileMenu();
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (this.layoutService.state.staticMenuMobileActive) {
|
|
62
|
+
this.blockBodyScroll();
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
this.router.events.pipe(filter(event => event instanceof NavigationEnd))
|
|
67
|
+
.subscribe(() => {
|
|
68
|
+
this.hideMenu();
|
|
69
|
+
this.hideProfileMenu();
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
hideMenu() {
|
|
74
|
+
this.layoutService.state.overlayMenuActive = false;
|
|
75
|
+
this.layoutService.state.staticMenuMobileActive = false;
|
|
76
|
+
this.layoutService.state.menuHoverActive = false;
|
|
77
|
+
if (this.menuOutsideClickListener) {
|
|
78
|
+
this.menuOutsideClickListener();
|
|
79
|
+
this.menuOutsideClickListener = null;
|
|
80
|
+
}
|
|
81
|
+
this.unblockBodyScroll();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
hideProfileMenu() {
|
|
85
|
+
this.layoutService.state.profileSidebarVisible = false;
|
|
86
|
+
if (this.profileMenuOutsideClickListener) {
|
|
87
|
+
this.profileMenuOutsideClickListener();
|
|
88
|
+
this.profileMenuOutsideClickListener = null;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
blockBodyScroll(): void {
|
|
93
|
+
if (document.body.classList) {
|
|
94
|
+
document.body.classList.add('blocked-scroll');
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
document.body.className += ' blocked-scroll';
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
unblockBodyScroll(): void {
|
|
102
|
+
if (document.body.classList) {
|
|
103
|
+
document.body.classList.remove('blocked-scroll');
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
document.body.className = document.body.className.replace(new RegExp('(^|\\b)' +
|
|
107
|
+
'blocked-scroll'.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
get containerClass() {
|
|
112
|
+
return {
|
|
113
|
+
'layout-theme-light': this.layoutService.layoutConfig.colorScheme === 'light',
|
|
114
|
+
'layout-theme-dark': this.layoutService.layoutConfig.colorScheme === 'dark',
|
|
115
|
+
'layout-overlay': this.layoutService.layoutConfig.menuMode === 'overlay',
|
|
116
|
+
'layout-static': this.layoutService.layoutConfig.menuMode === 'static',
|
|
117
|
+
'layout-static-inactive': this.layoutService.state.staticMenuDesktopInactive && this.layoutService.layoutConfig.menuMode === 'static',
|
|
118
|
+
'layout-overlay-active': this.layoutService.state.overlayMenuActive,
|
|
119
|
+
'layout-mobile-active': this.layoutService.state.staticMenuMobileActive,
|
|
120
|
+
'p-input-filled': this.layoutService.layoutConfig.inputStyle === 'filled',
|
|
121
|
+
'p-ripple-disabled': !this.layoutService.layoutConfig.ripple
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
ngOnDestroy() {
|
|
126
|
+
if (this.overlayMenuOpenSubscription) {
|
|
127
|
+
this.overlayMenuOpenSubscription.unsubscribe();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (this.menuOutsideClickListener) {
|
|
131
|
+
this.menuOutsideClickListener();
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
this.onAfterNgDestroy();
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
onAfterNgDestroy = () => {}
|
|
138
|
+
|
|
139
|
+
}
|
|
140
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<ng-container *transloco="let t">
|
|
2
|
+
<div *ngIf="root && item.visible === true" class="layout-menuitem-root-text">{{item.label}}</div>
|
|
3
|
+
<a *ngIf="(!item.routerLink || item.items) && item.visible === true" [attr.href]="item.url" (click)="itemClick($event)"
|
|
4
|
+
[ngClass]="item.styleClass" [attr.target]="item.target" tabindex="0" pRipple>
|
|
5
|
+
<i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
|
|
6
|
+
<span class="layout-menuitem-text">{{item.label}}</span>
|
|
7
|
+
<i class="pi pi-fw pi-angle-down layout-submenu-toggler" *ngIf="item.items"></i>
|
|
8
|
+
</a>
|
|
9
|
+
<a *ngIf="(item.routerLink && !item.items) && item.visible === true" (click)="itemClick($event)" [ngClass]="item.styleClass"
|
|
10
|
+
[routerLink]="item.routerLink" routerLinkActive="active-route" [routerLinkActiveOptions]="item.routerLinkActiveOptions||{ paths: 'exact', queryParams: 'ignored', matrixParams: 'ignored', fragment: 'ignored' }"
|
|
11
|
+
[fragment]="item.fragment" [queryParamsHandling]="item.queryParamsHandling" [preserveFragment]="item.preserveFragment"
|
|
12
|
+
[skipLocationChange]="item.skipLocationChange" [replaceUrl]="item.replaceUrl" [state]="item.state" [queryParams]="item.queryParams"
|
|
13
|
+
[attr.target]="item.target" tabindex="0" pRipple>
|
|
14
|
+
<i [ngClass]="item.icon" class="layout-menuitem-icon"></i>
|
|
15
|
+
<span class="layout-menuitem-text">{{item.label}}</span>
|
|
16
|
+
<i class="pi pi-fw pi-angle-down layout-submenu-toggler" *ngIf="item.items"></i>
|
|
17
|
+
</a>
|
|
18
|
+
|
|
19
|
+
<ul *ngIf="item.items && item.visible === true" [@children]="submenuAnimation">
|
|
20
|
+
<ng-template ngFor let-child let-i="index" [ngForOf]="item.items">
|
|
21
|
+
<li menuitem [item]="child" [index]="i" [parentKey]="key" [class]="child.badgeStyleClass"></li>
|
|
22
|
+
</ng-template>
|
|
23
|
+
</ul>
|
|
24
|
+
|
|
25
|
+
<!-- Delete this in the future iterations, make link to partner in /partners page -->
|
|
26
|
+
<spiderly-autocomplete
|
|
27
|
+
*ngIf="item.showPartnerDialog"
|
|
28
|
+
[control]="selectedPartner"
|
|
29
|
+
[options]="partnerOptions"
|
|
30
|
+
(onTextInput)="searchPartners($event)"
|
|
31
|
+
label=""
|
|
32
|
+
[placeholder]="t('SelectThePartner')"
|
|
33
|
+
[showAddon]="true"
|
|
34
|
+
(onButtonClick)="partnersAutocompleteButtonClick()"
|
|
35
|
+
addonIcon="pi pi-check"
|
|
36
|
+
[emptyMessage]="t('LeftCornerPartnersEmptyMessage')"
|
|
37
|
+
class="mobile-stay-open"
|
|
38
|
+
></spiderly-autocomplete>
|
|
39
|
+
|
|
40
|
+
</ng-container>
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Component, HostBinding, Input, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { NavigationEnd, Router, RouterModule } from '@angular/router';
|
|
3
|
+
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
4
|
+
import { Subscription } from 'rxjs';
|
|
5
|
+
import { filter } from 'rxjs/operators';
|
|
6
|
+
import { SidebarMenuService } from './sidebar-menu.service';
|
|
7
|
+
import { SpiderlyMenuItem } from './sidebar-menu.component';
|
|
8
|
+
import { AutoCompleteCompleteEvent } from 'primeng/autocomplete';
|
|
9
|
+
import { SpiderlyFormControl } from '../../spiderly-form-control/spiderly-form-control';
|
|
10
|
+
import { PrimengOption } from '../../../entities/primeng-option';
|
|
11
|
+
import { LayoutBaseService } from '../../../services/app-layout-base.service';
|
|
12
|
+
import { AuthBaseService } from '../../../services/auth-base.service';
|
|
13
|
+
import { ApiSecurityService } from '../../../services/api.service.security';
|
|
14
|
+
import { ConfigBaseService } from '../../../services/config-base.service';
|
|
15
|
+
import { CommonModule } from '@angular/common';
|
|
16
|
+
import { PrimengModule } from '../../../modules/primeng.module';
|
|
17
|
+
import { SpiderlyControlsModule } from '../../../controls/spiderly-controls.module';
|
|
18
|
+
import { TranslocoDirective } from '@jsverse/transloco';
|
|
19
|
+
|
|
20
|
+
@Component({
|
|
21
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
22
|
+
selector: '[menuitem]',
|
|
23
|
+
templateUrl: './menuitem.component.html',
|
|
24
|
+
animations: [
|
|
25
|
+
trigger('children', [
|
|
26
|
+
state('collapsed', style({
|
|
27
|
+
height: '0'
|
|
28
|
+
})),
|
|
29
|
+
state('expanded', style({
|
|
30
|
+
height: '*'
|
|
31
|
+
})),
|
|
32
|
+
transition('collapsed <=> expanded', animate('400ms cubic-bezier(0.86, 0, 0.07, 1)'))
|
|
33
|
+
])
|
|
34
|
+
],
|
|
35
|
+
imports: [
|
|
36
|
+
CommonModule,
|
|
37
|
+
RouterModule,
|
|
38
|
+
PrimengModule,
|
|
39
|
+
TranslocoDirective,
|
|
40
|
+
SpiderlyControlsModule,
|
|
41
|
+
]
|
|
42
|
+
})
|
|
43
|
+
export class MenuitemComponent implements OnInit, OnDestroy {
|
|
44
|
+
|
|
45
|
+
@Input() item: SpiderlyMenuItem;
|
|
46
|
+
|
|
47
|
+
@Input() index!: number;
|
|
48
|
+
|
|
49
|
+
@Input() @HostBinding('class.layout-root-menuitem') root!: boolean;
|
|
50
|
+
|
|
51
|
+
@Input() parentKey!: string;
|
|
52
|
+
|
|
53
|
+
active = false;
|
|
54
|
+
|
|
55
|
+
private menuSourceSubscription: Subscription;
|
|
56
|
+
|
|
57
|
+
private menuResetSubscription: Subscription;
|
|
58
|
+
|
|
59
|
+
private permissionSubscription: Subscription | null = null;
|
|
60
|
+
|
|
61
|
+
key: string = "";
|
|
62
|
+
|
|
63
|
+
selectedPartner: SpiderlyFormControl = new SpiderlyFormControl<string>(null, { updateOn: 'change' });
|
|
64
|
+
|
|
65
|
+
partnerOptions: PrimengOption[];
|
|
66
|
+
|
|
67
|
+
constructor(
|
|
68
|
+
public layoutService: LayoutBaseService,
|
|
69
|
+
private cd: ChangeDetectorRef,
|
|
70
|
+
public router: Router,
|
|
71
|
+
private menuService: SidebarMenuService,
|
|
72
|
+
private authService: AuthBaseService,
|
|
73
|
+
private apiService: ApiSecurityService,
|
|
74
|
+
private config: ConfigBaseService
|
|
75
|
+
) {
|
|
76
|
+
this.menuSourceSubscription = this.menuService.menuSource$.subscribe(value => {
|
|
77
|
+
Promise.resolve(null).then(() => {
|
|
78
|
+
if (value.routeEvent) {
|
|
79
|
+
this.active = (value.key === this.key || value.key.startsWith(this.key + '-')) ? true : false;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
if (value.key !== this.key && !value.key.startsWith(this.key + '-')) {
|
|
83
|
+
this.active = false;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
this.menuResetSubscription = this.menuService.resetSource$.subscribe(() => {
|
|
90
|
+
this.active = false;
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
this.router.events.pipe(filter(event => event instanceof NavigationEnd))
|
|
94
|
+
.subscribe(params => {
|
|
95
|
+
if (this.item.routerLink) {
|
|
96
|
+
this.updateActiveStateFromRoute();
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
ngOnInit() {
|
|
102
|
+
this.key = this.parentKey ? this.parentKey + '-' + this.index : String(this.index);
|
|
103
|
+
|
|
104
|
+
if (this.item.routerLink) {
|
|
105
|
+
this.updateActiveStateFromRoute();
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
this.permissionSubscription = this.authService.currentUserPermissionCodes$.subscribe((currentUserPermissionCodes: string[]) => {
|
|
109
|
+
if (this.item && typeof this.item.hasPermission === 'function') {
|
|
110
|
+
this.item.visible = this.item.hasPermission(currentUserPermissionCodes);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
updateActiveStateFromRoute() {
|
|
116
|
+
let activeRoute = this.router.isActive(this.item.routerLink[0], { paths: 'exact', queryParams: 'ignored', matrixParams: 'ignored', fragment: 'ignored' });
|
|
117
|
+
|
|
118
|
+
if (activeRoute) {
|
|
119
|
+
this.menuService.onMenuStateChange({ key: this.key, routeEvent: true });
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
itemClick(event: Event) {
|
|
124
|
+
// avoid processing disabled items
|
|
125
|
+
if (this.item.disabled || event === null) {
|
|
126
|
+
event.preventDefault();
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// execute command
|
|
131
|
+
if (this.item.command) {
|
|
132
|
+
this.item.command({ originalEvent: event, item: this.item });
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// toggle active state
|
|
136
|
+
if (this.item.items) {
|
|
137
|
+
this.active = !this.active;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
this.menuService.onMenuStateChange({ key: this.key });
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
get submenuAnimation() {
|
|
144
|
+
return this.root ? 'expanded' : (this.active ? 'expanded' : 'collapsed');
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@HostBinding('class.active-menuitem')
|
|
148
|
+
get activeClass() {
|
|
149
|
+
return this.active && !this.root;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
//#region FT HACK: Partner
|
|
153
|
+
|
|
154
|
+
searchPartners(event: AutoCompleteCompleteEvent) {
|
|
155
|
+
this.layoutService.searchPartners(event).subscribe(po => {
|
|
156
|
+
this.partnerOptions = po;
|
|
157
|
+
})
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
partnersAutocompleteButtonClick = async () => {
|
|
161
|
+
this.layoutService.partnersAutocompleteButtonClick(this.selectedPartner);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
//#endregion
|
|
165
|
+
|
|
166
|
+
ngOnDestroy() {
|
|
167
|
+
if (this.menuSourceSubscription) {
|
|
168
|
+
this.menuSourceSubscription.unsubscribe();
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (this.menuResetSubscription) {
|
|
172
|
+
this.menuResetSubscription.unsubscribe();
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (this.permissionSubscription) {
|
|
176
|
+
this.permissionSubscription.unsubscribe();
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<ul class="layout-menu">
|
|
2
|
+
<ng-container *ngFor="let item of menu; let i = index;">
|
|
3
|
+
<li menuitem *ngIf="!item.separator" [item]="item" [index]="i" [root]="true"></li>
|
|
4
|
+
<li *ngIf="item.separator" class="gray-separator" style="margin-top: 11px;"></li>
|
|
5
|
+
</ng-container>
|
|
6
|
+
</ul>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { TranslocoService } from '@jsverse/transloco';
|
|
2
|
+
import { Input, OnInit } from '@angular/core';
|
|
3
|
+
import { Component } from '@angular/core';
|
|
4
|
+
import { MenuItem } from 'primeng/api';
|
|
5
|
+
import { LayoutBaseService } from '../../../services/app-layout-base.service';
|
|
6
|
+
import { AuthBaseService } from '../../../services/auth-base.service';
|
|
7
|
+
import { ConfigBaseService } from '../../../services/config-base.service';
|
|
8
|
+
import { MenuitemComponent } from './menuitem.component';
|
|
9
|
+
import { CommonModule } from '@angular/common';
|
|
10
|
+
|
|
11
|
+
export interface SpiderlyMenuItem extends MenuItem{
|
|
12
|
+
hasPermission?: (permissionCodes: string[]) => boolean;
|
|
13
|
+
showPartnerDialog?: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@Component({
|
|
17
|
+
selector: 'sidebar-menu', // FT: Don't chane selector to 'menu', because other style will apply to it
|
|
18
|
+
templateUrl: './sidebar-menu.component.html',
|
|
19
|
+
imports: [
|
|
20
|
+
CommonModule,
|
|
21
|
+
MenuitemComponent
|
|
22
|
+
]
|
|
23
|
+
})
|
|
24
|
+
export class SidebarMenuComponent implements OnInit {
|
|
25
|
+
@Input() menu: SpiderlyMenuItem[];
|
|
26
|
+
|
|
27
|
+
constructor(
|
|
28
|
+
public layoutService: LayoutBaseService,
|
|
29
|
+
private authService: AuthBaseService,
|
|
30
|
+
private translocoService: TranslocoService,
|
|
31
|
+
private config: ConfigBaseService
|
|
32
|
+
) {
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
ngOnInit() {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
ngOnDestroy(): void {
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { MenuChangeEvent } from '../../../entities/menuchangeevent';
|
|
4
|
+
|
|
5
|
+
@Injectable({
|
|
6
|
+
providedIn: 'root'
|
|
7
|
+
})
|
|
8
|
+
export class SidebarMenuService {
|
|
9
|
+
private menuSource = new Subject<MenuChangeEvent>();
|
|
10
|
+
private resetSource = new Subject();
|
|
11
|
+
|
|
12
|
+
menuSource$ = this.menuSource.asObservable();
|
|
13
|
+
resetSource$ = this.resetSource.asObservable();
|
|
14
|
+
|
|
15
|
+
onMenuStateChange(event: MenuChangeEvent) {
|
|
16
|
+
this.menuSource.next(event);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
reset() {
|
|
20
|
+
this.resetSource.next(true);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<sidebar-menu [menu]="menu"></sidebar-menu>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component, ElementRef, Input } from '@angular/core';
|
|
2
|
+
import { SidebarMenuComponent, SpiderlyMenuItem } from './sidebar-menu.component';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'sidebar',
|
|
6
|
+
templateUrl: './sidebar.component.html',
|
|
7
|
+
imports: [
|
|
8
|
+
SidebarMenuComponent
|
|
9
|
+
]
|
|
10
|
+
})
|
|
11
|
+
export class AppSidebarComponent {
|
|
12
|
+
@Input() menu: SpiderlyMenuItem[];
|
|
13
|
+
|
|
14
|
+
constructor(public el: ElementRef) {
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
ngOnInit(){
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|