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,60 @@
|
|
|
1
|
+
import { FormArray, FormControl, FormControlOptions, FormControlState, FormGroup, ValidatorFn } from '@angular/forms';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { BaseEntity } from '../../entities/base-entity';
|
|
4
|
+
|
|
5
|
+
export interface SpiderlyValidatorFn extends ValidatorFn {
|
|
6
|
+
hasNotEmptyRule?: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// It's made like generic type because of <number>, <string> etc. not to put class like User.
|
|
10
|
+
export class SpiderlyFormControl<T = any> extends FormControl<T> {
|
|
11
|
+
public label: string;
|
|
12
|
+
public labelForDisplay: string;
|
|
13
|
+
public required: boolean;
|
|
14
|
+
private _spiderlyValidator: SpiderlyValidatorFn | null;
|
|
15
|
+
|
|
16
|
+
constructor(value: any, opts: FormControlOptions=null, required:boolean=false) {
|
|
17
|
+
opts = opts ?? {updateOn: 'blur'};
|
|
18
|
+
super(value, opts);
|
|
19
|
+
this.required = required;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
override getRawValue(): T { // Doing this because .value gets only not disabled values
|
|
23
|
+
return super.getRawValue() as T;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
public override get validator(): SpiderlyValidatorFn | null {
|
|
27
|
+
return this._spiderlyValidator;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public override set validator(validator: SpiderlyValidatorFn | null) {
|
|
31
|
+
this._spiderlyValidator = validator;
|
|
32
|
+
this.setValidators(validator);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export class SpiderlyFormGroup<TValue = any> extends FormGroup {
|
|
37
|
+
declare controls: { [P in keyof TValue]: SpiderlyFormControl<TValue[P]> };
|
|
38
|
+
|
|
39
|
+
constructor(controls: { [P in keyof TValue]: SpiderlyFormControl<TValue[P]> }) {
|
|
40
|
+
super(controls);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
override getRawValue(): TValue { // Doing this because .value gets only not disabled values
|
|
44
|
+
return super.getRawValue() as TValue;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public name?: string; // Using for nested form groups
|
|
48
|
+
public mainDTOName?: string;
|
|
49
|
+
public saveObservableMethod?: (saveBody: any) => Observable<any>;
|
|
50
|
+
public initSaveBody?: () => BaseEntity = () => null;
|
|
51
|
+
public controlNamesFromHtml?: string[] = [];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export class SpiderlyFormArray<TValue = any> extends FormArray {
|
|
55
|
+
override value: TValue[]; // There is no getRawValue in FormArray
|
|
56
|
+
public required: boolean;
|
|
57
|
+
public modelConstructor: TValue;
|
|
58
|
+
public translationKey: string;
|
|
59
|
+
public controlNamesFromHtml?: string[] = [];
|
|
60
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'panel-body',
|
|
5
|
+
templateUrl: './panel-body.component.html',
|
|
6
|
+
styles: [],
|
|
7
|
+
standalone: false
|
|
8
|
+
})
|
|
9
|
+
export class PanelBodyComponent implements OnInit {
|
|
10
|
+
@Input() normalBottomPadding: boolean = false; // FT: By default we set to false, when the grid is inside the body.
|
|
11
|
+
|
|
12
|
+
constructor() { }
|
|
13
|
+
|
|
14
|
+
ngOnInit(): void {
|
|
15
|
+
}
|
|
16
|
+
}
|
package/{styles → src/lib}/components/spiderly-panels/panel-footer/panel-footer.component.scss
RENAMED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
justify-content: space-between;
|
|
5
5
|
gap: 10px;
|
|
6
6
|
border-top: 1px solid #dee2e6;
|
|
7
|
-
border-bottom-right-radius:
|
|
8
|
-
border-bottom-left-radius:
|
|
9
|
-
padding:
|
|
7
|
+
border-bottom-right-radius: var(--p-content-border-radius);
|
|
8
|
+
border-bottom-left-radius: var(--p-content-border-radius);
|
|
9
|
+
padding: 18px;
|
|
10
10
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'panel-footer',
|
|
5
|
+
templateUrl: './panel-footer.component.html',
|
|
6
|
+
styleUrl: './panel-footer.component.scss',
|
|
7
|
+
standalone: false
|
|
8
|
+
})
|
|
9
|
+
export class PanelFooterComponent implements OnInit {
|
|
10
|
+
|
|
11
|
+
constructor() { }
|
|
12
|
+
|
|
13
|
+
ngOnInit(): void {
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<div style="display: flex; align-items: center; gap: 24px; flex-wrap: wrap;">
|
|
2
|
+
@if (tabs == null) {
|
|
3
|
+
<div style="display: flex; align-items: center; gap: 14px;">
|
|
4
|
+
<span *ngIf="index != null" class="number-circle">{{index + 1}}</span>
|
|
5
|
+
<i class="{{icon}} primary-color" [style]="showBigTitle ? 'font-size: 19px' : 'font-size: 16px;'"></i>
|
|
6
|
+
<h2 [style]="(showBigTitle ? 'font-size: 16px;' : '')" class="remove-h-css">{{title}}</h2>
|
|
7
|
+
</div>
|
|
8
|
+
}
|
|
9
|
+
@else {
|
|
10
|
+
@for (tab of tabs; track $index) {
|
|
11
|
+
<div (click)="setTabIsSelected(tab)"
|
|
12
|
+
[style]="{
|
|
13
|
+
display: 'flex',
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
gap: '14px',
|
|
16
|
+
cursor: 'pointer',
|
|
17
|
+
fontWeight: tab.isSelected ? '700' : 'normal'
|
|
18
|
+
}">
|
|
19
|
+
<span *ngIf="index != null" class="number-circle">{{index + 1}}</span>
|
|
20
|
+
<i class="{{tab.icon}} primary-color" [style]="showBigTitle ? 'font-size: 19px' : 'font-size: 16px;'"></i>
|
|
21
|
+
<div [style]="showBigTitle ? 'font-size: 16px' : ''">{{tab.label}}</div>
|
|
22
|
+
</div>
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
</div>
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { TranslocoService } from '@jsverse/transloco';
|
|
2
|
+
import { Component, OnInit, Input } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'panel-header',
|
|
6
|
+
templateUrl: './panel-header.component.html',
|
|
7
|
+
styles: [`
|
|
8
|
+
.p-panel-icons-end {
|
|
9
|
+
font-size: 50px;
|
|
10
|
+
}
|
|
11
|
+
`],
|
|
12
|
+
standalone: false
|
|
13
|
+
})
|
|
14
|
+
export class PanelHeaderComponent implements OnInit {
|
|
15
|
+
@Input() title: string;
|
|
16
|
+
@Input() showBigTitle: boolean;
|
|
17
|
+
@Input() showIcon: boolean = true;
|
|
18
|
+
@Input() icon: string;
|
|
19
|
+
@Input() index: number;
|
|
20
|
+
@Input() tabs: SpiderlyTab[];
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
private translocoService: TranslocoService
|
|
24
|
+
) { }
|
|
25
|
+
|
|
26
|
+
ngOnInit(): void {
|
|
27
|
+
if (this.title == null)
|
|
28
|
+
this.title = this.translocoService.translate('Details');
|
|
29
|
+
|
|
30
|
+
if (this.showIcon === true && this.icon == null)
|
|
31
|
+
this.icon = 'pi pi-file-edit';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
setTabIsSelected(tab: SpiderlyTab){
|
|
35
|
+
this.tabs.forEach(t => {
|
|
36
|
+
t.isSelected = false;
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
tab.isSelected = true;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export class SpiderlyTab
|
|
44
|
+
{
|
|
45
|
+
label?: string;
|
|
46
|
+
id?: number;
|
|
47
|
+
icon?: string;
|
|
48
|
+
isSelected?: boolean;
|
|
49
|
+
|
|
50
|
+
constructor(
|
|
51
|
+
{
|
|
52
|
+
label,
|
|
53
|
+
id,
|
|
54
|
+
icon,
|
|
55
|
+
isSelected,
|
|
56
|
+
}:{
|
|
57
|
+
label?: string;
|
|
58
|
+
id?: number;
|
|
59
|
+
icon?: string;
|
|
60
|
+
isSelected?: boolean;
|
|
61
|
+
} = {}
|
|
62
|
+
) {
|
|
63
|
+
this.label = label;
|
|
64
|
+
this.id = id;
|
|
65
|
+
this.icon = icon;
|
|
66
|
+
this.isSelected = isSelected;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<div class="card responsive-card-padding">
|
|
2
|
+
<div style="display: flex; align-items: center; margin-bottom: 14px; gap: 12px;">
|
|
3
|
+
<i style="font-size: 20px;" class="{{icon}} primary-color"></i>
|
|
4
|
+
<h5 style="margin: 0;">{{title}}</h5>
|
|
5
|
+
</div>
|
|
6
|
+
<ng-content></ng-content>
|
|
7
|
+
</div>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'spiderly-card',
|
|
5
|
+
templateUrl: './spiderly-card.component.html',
|
|
6
|
+
styles: [],
|
|
7
|
+
standalone: false
|
|
8
|
+
})
|
|
9
|
+
export class SpiderlyCardComponent implements OnInit {
|
|
10
|
+
@Input() icon: string = 'pi pi-file-edit';
|
|
11
|
+
@Input() title: string;
|
|
12
|
+
|
|
13
|
+
constructor() { }
|
|
14
|
+
|
|
15
|
+
ngOnInit(): void {
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<p-panel
|
|
2
|
+
[showHeader]="showPanelHeader"
|
|
3
|
+
[ngClass]="{
|
|
4
|
+
'multiple-panel-first-without-header': isFirstMultiplePanel && !showPanelHeader,
|
|
5
|
+
'multiple-panel-first': isFirstMultiplePanel,
|
|
6
|
+
'multiple-panel-middle-without-header': isMiddleMultiplePanel && !showPanelHeader,
|
|
7
|
+
'multiple-panel-middle': isMiddleMultiplePanel,
|
|
8
|
+
'multiple-panel-last-without-header': isLastMultiplePanel && !showPanelHeader,
|
|
9
|
+
'multiple-panel-last': isLastMultiplePanel,
|
|
10
|
+
'panel-border': !isFirstMultiplePanel,
|
|
11
|
+
'spiderly-panel': true,
|
|
12
|
+
}"
|
|
13
|
+
[toggleable]="toggleable"
|
|
14
|
+
[collapsed]="toggleable && collapsed"
|
|
15
|
+
expandIcon="pi pi-chevron-up"
|
|
16
|
+
collapseIcon="pi pi-chevron-down"
|
|
17
|
+
>
|
|
18
|
+
<ng-template pTemplate="header">
|
|
19
|
+
<div>
|
|
20
|
+
<ng-content select="panel-header"></ng-content>
|
|
21
|
+
</div>
|
|
22
|
+
</ng-template>
|
|
23
|
+
|
|
24
|
+
<ng-template pTemplate="icons">
|
|
25
|
+
<div *ngIf="showCrudMenu && crudMenu" class="mr-2">
|
|
26
|
+
<i class="pi pi-ellipsis-h icon-hover" (click)="menuItemClick(index, $event)"></i>
|
|
27
|
+
<p-menu #menu [model]="crudMenu" [popup]="true" appendTo="body"></p-menu>
|
|
28
|
+
</div>
|
|
29
|
+
<div *ngIf="showRemoveIcon" class="mr-2">
|
|
30
|
+
<i class="pi pi-minus icon-hover error-color-light" (click)="removeItemClick()"></i>
|
|
31
|
+
</div>
|
|
32
|
+
</ng-template>
|
|
33
|
+
|
|
34
|
+
<div class="panel-body-wrapper">
|
|
35
|
+
<ng-content select="panel-body"></ng-content>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<ng-content select="panel-footer"></ng-content>
|
|
39
|
+
|
|
40
|
+
</p-panel>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
|
|
2
|
+
import { MenuItem } from 'primeng/api';
|
|
3
|
+
import { Menu } from 'primeng/menu';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'spiderly-panel',
|
|
7
|
+
templateUrl: './spiderly-panel.component.html',
|
|
8
|
+
styleUrl: './spiderly-panel.component.scss',
|
|
9
|
+
standalone: false
|
|
10
|
+
})
|
|
11
|
+
export class SpiderlyPanelComponent implements OnInit {
|
|
12
|
+
@Input() isFirstMultiplePanel: boolean = false;
|
|
13
|
+
@Input() isMiddleMultiplePanel: boolean = false;
|
|
14
|
+
@Input() isLastMultiplePanel: boolean = false;
|
|
15
|
+
@Input() toggleable: boolean = false;
|
|
16
|
+
@Input() collapsed: boolean = false;
|
|
17
|
+
@Input() crudMenu: MenuItem[];
|
|
18
|
+
@Input() showCrudMenu: boolean = true;
|
|
19
|
+
@Input() showRemoveIcon: boolean = false;
|
|
20
|
+
@Input() index: number;
|
|
21
|
+
@Input() showPanelHeader: boolean = true;
|
|
22
|
+
|
|
23
|
+
@Output() onMenuIconClick: EventEmitter<number> = new EventEmitter();
|
|
24
|
+
@Output() onRemoveIconClick: EventEmitter<null> = new EventEmitter();
|
|
25
|
+
|
|
26
|
+
@ViewChild('menu') menu: Menu;
|
|
27
|
+
|
|
28
|
+
constructor() { }
|
|
29
|
+
|
|
30
|
+
ngOnInit(): void {
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
menuItemClick(index: number, event){
|
|
34
|
+
this.menu.toggle(event);
|
|
35
|
+
this.onMenuIconClick.next(index);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
removeItemClick(){
|
|
39
|
+
this.onRemoveIconClick.next(null);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { PanelBodyComponent } from './panel-body/panel-body.component';
|
|
4
|
+
import { PanelFooterComponent } from './panel-footer/panel-footer.component';
|
|
5
|
+
import { PanelHeaderComponent } from './panel-header/panel-header.component';
|
|
6
|
+
import { SpiderlyPanelComponent } from './spiderly-panel/spiderly-panel.component';
|
|
7
|
+
import { SpiderlyCardComponent } from './spiderly-card/spiderly-card.component';
|
|
8
|
+
import { PrimengModule } from '../../modules/primeng.module';
|
|
9
|
+
|
|
10
|
+
@NgModule({
|
|
11
|
+
imports: [
|
|
12
|
+
CommonModule,
|
|
13
|
+
PrimengModule,
|
|
14
|
+
],
|
|
15
|
+
exports: [
|
|
16
|
+
PanelHeaderComponent,
|
|
17
|
+
PanelBodyComponent,
|
|
18
|
+
PanelFooterComponent,
|
|
19
|
+
SpiderlyPanelComponent,
|
|
20
|
+
SpiderlyCardComponent
|
|
21
|
+
],
|
|
22
|
+
declarations: [
|
|
23
|
+
PanelHeaderComponent,
|
|
24
|
+
PanelBodyComponent,
|
|
25
|
+
PanelFooterComponent,
|
|
26
|
+
SpiderlyPanelComponent,
|
|
27
|
+
SpiderlyCardComponent
|
|
28
|
+
],
|
|
29
|
+
providers: [
|
|
30
|
+
]
|
|
31
|
+
})
|
|
32
|
+
export class SpiderlyPanelsModule {}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
EventEmitter,
|
|
4
|
+
Output,
|
|
5
|
+
} from '@angular/core';
|
|
6
|
+
import { AutoCompleteCompleteEvent } from 'primeng/autocomplete';
|
|
7
|
+
import { BaseDropdownControl } from './base-dropdown-control';
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: 'base-autocomplete-control',
|
|
11
|
+
template: '',
|
|
12
|
+
styles: [],
|
|
13
|
+
standalone: false
|
|
14
|
+
})
|
|
15
|
+
export class BaseAutocompleteControl extends BaseDropdownControl {
|
|
16
|
+
@Output() onTextInput: EventEmitter<AutoCompleteCompleteEvent> = new EventEmitter();
|
|
17
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component, Input,
|
|
3
|
+
} from '@angular/core';
|
|
4
|
+
import { SpiderlyFormControl } from '../components/spiderly-form-control/spiderly-form-control';
|
|
5
|
+
import { TranslocoService } from '@jsverse/transloco';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'base-control',
|
|
9
|
+
template: '',
|
|
10
|
+
styles: [],
|
|
11
|
+
standalone: false
|
|
12
|
+
})
|
|
13
|
+
export class BaseControl {
|
|
14
|
+
@Input() control: SpiderlyFormControl; // FT: if you name it formControl: https://stackoverflow.com/a/54755671/21209982
|
|
15
|
+
@Input() disabled: boolean = false;
|
|
16
|
+
@Input() showLabel: boolean = true;
|
|
17
|
+
@Input() label: string = null; // NgModel/Want custom translation
|
|
18
|
+
@Input() controlValid: boolean = true; // NgModel
|
|
19
|
+
@Input() placeholder: string = '';
|
|
20
|
+
@Input() showTooltip: boolean = false;
|
|
21
|
+
@Input() tooltipText: string = null;
|
|
22
|
+
@Input() tooltipIcon: string = 'pi pi-info-circle';
|
|
23
|
+
errorMessageTooltipEvent: 'hover' | 'focus';
|
|
24
|
+
|
|
25
|
+
constructor(
|
|
26
|
+
protected translocoService: TranslocoService,
|
|
27
|
+
) {
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
ngOnInit(){
|
|
32
|
+
if(this.control != null && this.disabled == true)
|
|
33
|
+
this.control.disable();
|
|
34
|
+
|
|
35
|
+
// TODO FT: Delete if you don't need
|
|
36
|
+
// if(this.control?.validator?.hasNotEmptyRule == true) // FT HACK: Be carefull with this name, if you change it in generator you need to change it here also
|
|
37
|
+
// this.control.required = true;
|
|
38
|
+
|
|
39
|
+
this.errorMessageTooltipEvent = window.innerWidth > 1000 ? 'hover' : 'focus'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
ngAfterViewInit(){
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
getTranslatedLabel(): string{
|
|
47
|
+
return this.label ?? this.control.labelForDisplay;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
getValidationErrrorMessages(){
|
|
51
|
+
if(this.control?.errors && this.control?.dirty){
|
|
52
|
+
// FT: it should always be one error message for single form control,
|
|
53
|
+
// also i don't need to reassign it to null because it will be shown only when control.valid == false
|
|
54
|
+
return this.control.errors['_'];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
EventEmitter,
|
|
4
|
+
Input,
|
|
5
|
+
Output,
|
|
6
|
+
} from '@angular/core';
|
|
7
|
+
import { BaseControl } from './base-control';
|
|
8
|
+
import { PrimengOption } from '../entities/primeng-option';
|
|
9
|
+
import { TranslocoService } from '@jsverse/transloco';
|
|
10
|
+
|
|
11
|
+
@Component({
|
|
12
|
+
selector: 'base-dropdown-control',
|
|
13
|
+
template: '',
|
|
14
|
+
styles: [],
|
|
15
|
+
standalone: false
|
|
16
|
+
})
|
|
17
|
+
export class BaseDropdownControl extends BaseControl {
|
|
18
|
+
@Input() options: PrimengOption[];
|
|
19
|
+
@Input() showAddon: boolean = false;
|
|
20
|
+
@Input() addonIcon: string = 'pi pi-ellipsis-h';
|
|
21
|
+
@Input() override placeholder: string = this.translocoService.translate('SelectFromTheList');
|
|
22
|
+
@Output() onButtonClick: EventEmitter<null> = new EventEmitter();
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
protected override translocoService: TranslocoService,
|
|
26
|
+
) {
|
|
27
|
+
super(translocoService);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
dropdownMarkAsDirty(){
|
|
31
|
+
this.control.markAsDirty();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
addonClick(){
|
|
35
|
+
this.onButtonClick.next(null);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<ng-container *transloco="let t">
|
|
2
|
+
<div class="flex flex-column gap-2">
|
|
3
|
+
<div *ngIf="getTranslatedLabel() != '' && getTranslatedLabel() != null">
|
|
4
|
+
<label>{{getTranslatedLabel()}}</label>
|
|
5
|
+
<required *ngIf="control?.required"></required>
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
<p-inputgroup>
|
|
9
|
+
<p-autocomplete
|
|
10
|
+
*ngIf="control"
|
|
11
|
+
[pTooltip]="getValidationErrrorMessages()" [tooltipEvent]="errorMessageTooltipEvent" tooltipPosition="bottom" [tooltipDisabled]="control.valid" tooltipStyleClass="spiderly-tooltip-invalid"
|
|
12
|
+
[id]="label"
|
|
13
|
+
[formControl]="control"
|
|
14
|
+
[placeholder]="placeholder"
|
|
15
|
+
[suggestions]="options"
|
|
16
|
+
optionLabel="label"
|
|
17
|
+
optionValue="code"
|
|
18
|
+
(completeMethod)="search($event)"
|
|
19
|
+
[forceSelection]="true"
|
|
20
|
+
[dropdown]="false"
|
|
21
|
+
[showClear]="showClear"
|
|
22
|
+
(onHide)="dropdownMarkAsDirty()"
|
|
23
|
+
(onSelect)="select($event)"
|
|
24
|
+
[completeOnFocus]="true"
|
|
25
|
+
[style]="{'width': '100%'}"
|
|
26
|
+
[fluid]="true"
|
|
27
|
+
[appendTo]="appendTo"
|
|
28
|
+
[emptyMessage]="emptyMessage"
|
|
29
|
+
[lazy]="true"
|
|
30
|
+
/>
|
|
31
|
+
<p-inputgroup-addon *ngIf="showAddon" (click)="addonClick()" [style]="{'cursor': 'pointer', 'background-color': 'var(--p-primary-color)', 'border-color': 'var(--p-primary-color)'}">
|
|
32
|
+
<i class="{{addonIcon}}" style="color: #fff;"></i>
|
|
33
|
+
</p-inputgroup-addon>
|
|
34
|
+
</p-inputgroup>
|
|
35
|
+
</div>
|
|
36
|
+
</ng-container>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
import { AutoCompleteCompleteEvent } from 'primeng/autocomplete';
|
|
3
|
+
import { BaseAutocompleteControl } from '../base-autocomplete-control';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
6
|
+
import { RequiredComponent } from '../../components/required/required.component';
|
|
7
|
+
import { TranslocoDirective, TranslocoService } from '@jsverse/transloco';
|
|
8
|
+
import { PrimengModule } from '../../modules/primeng.module';
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: 'spiderly-autocomplete',
|
|
12
|
+
templateUrl: './spiderly-autocomplete.component.html',
|
|
13
|
+
styles: [],
|
|
14
|
+
imports: [
|
|
15
|
+
ReactiveFormsModule,
|
|
16
|
+
FormsModule,
|
|
17
|
+
PrimengModule,
|
|
18
|
+
CommonModule,
|
|
19
|
+
RequiredComponent,
|
|
20
|
+
TranslocoDirective,
|
|
21
|
+
]
|
|
22
|
+
})
|
|
23
|
+
export class SpiderlyAutocompleteComponent extends BaseAutocompleteControl implements OnInit {
|
|
24
|
+
@Input() appendTo: any = 'body';
|
|
25
|
+
@Input() showClear: boolean = true;
|
|
26
|
+
@Input() emptyMessage: string;
|
|
27
|
+
@Input() displayName: string; // Added because when we initialize the object options are null
|
|
28
|
+
|
|
29
|
+
constructor(
|
|
30
|
+
protected override translocoService: TranslocoService,
|
|
31
|
+
) {
|
|
32
|
+
super(translocoService);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
override ngOnInit(){
|
|
36
|
+
super.ngOnInit();
|
|
37
|
+
|
|
38
|
+
if (this.options == null && this.control.value != null) {
|
|
39
|
+
this.options = [
|
|
40
|
+
{ label: this.displayName, code: this.control.value }
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (this.emptyMessage == null) {
|
|
45
|
+
this.emptyMessage = this.translocoService.translate('EmptyMessage');
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
search(event: AutoCompleteCompleteEvent){
|
|
50
|
+
this.onTextInput.next(event);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
select(event){
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<div class="flex flex-column gap-2">
|
|
2
|
+
<div *ngIf="getTranslatedLabel() != '' && getTranslatedLabel() != null">
|
|
3
|
+
<label>{{getTranslatedLabel()}}</label>
|
|
4
|
+
<required *ngIf="control?.required"></required>
|
|
5
|
+
<!-- tabindex="-1": Makes the element focusable, but removes it from the tab order. -->
|
|
6
|
+
<i *ngIf="showTooltip" class="{{tooltipIcon}}" style="margin-left: 5px; cursor: pointer;" [pTooltip]="tooltipText" tabindex="-1" tooltipEvent="focus"></i>
|
|
7
|
+
</div>
|
|
8
|
+
<p-datepicker
|
|
9
|
+
*ngIf="control"
|
|
10
|
+
[pTooltip]="getValidationErrrorMessages()" [tooltipEvent]="errorMessageTooltipEvent" tooltipPosition="bottom" [tooltipDisabled]="control.valid" tooltipStyleClass="spiderly-tooltip-invalid"
|
|
11
|
+
[formControl]="control"
|
|
12
|
+
(onBlur)="control.markAsDirty()"
|
|
13
|
+
dateFormat="dd.mm.yy."
|
|
14
|
+
iconDisplay="input"
|
|
15
|
+
[showIcon]="true"
|
|
16
|
+
[showTime]="showTime"
|
|
17
|
+
(onSelect)="setDate($event)"
|
|
18
|
+
appendTo="body"
|
|
19
|
+
[fluid]="true"
|
|
20
|
+
/>
|
|
21
|
+
</div>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
import { BaseControl } from '../base-control';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
5
|
+
import { RequiredComponent } from '../../components/required/required.component';
|
|
6
|
+
import { TranslocoService } from '@jsverse/transloco';
|
|
7
|
+
import { PrimengModule } from '../../modules/primeng.module';
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: 'spiderly-calendar',
|
|
11
|
+
templateUrl: './spiderly-calendar.component.html',
|
|
12
|
+
styles: [],
|
|
13
|
+
imports: [
|
|
14
|
+
CommonModule,
|
|
15
|
+
ReactiveFormsModule,
|
|
16
|
+
FormsModule,
|
|
17
|
+
PrimengModule,
|
|
18
|
+
RequiredComponent
|
|
19
|
+
]
|
|
20
|
+
})
|
|
21
|
+
export class SpiderlyCalendarComponent extends BaseControl implements OnInit {
|
|
22
|
+
@Input() showTime: boolean = false;
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
protected override translocoService: TranslocoService,
|
|
26
|
+
) {
|
|
27
|
+
super(translocoService);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
override ngOnInit(){
|
|
31
|
+
super.ngOnInit();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
setDate(event:Date) {
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<div class="flex flex-column gap-2">
|
|
2
|
+
<div *ngIf="inlineLabel === false && getTranslatedLabel() != '' && getTranslatedLabel() != null">
|
|
3
|
+
<label>{{getTranslatedLabel()}}</label>
|
|
4
|
+
<required *ngIf="control?.required"></required>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="p-inputgroup p-fluid" style="margin-top: 0.5rem;">
|
|
7
|
+
<p-checkbox
|
|
8
|
+
*ngIf="control"
|
|
9
|
+
[pTooltip]="getValidationErrrorMessages()" [tooltipEvent]="errorMessageTooltipEvent" tooltipPosition="bottom" [tooltipDisabled]="control.valid" tooltipStyleClass="spiderly-tooltip-invalid"
|
|
10
|
+
[formControl]="control"
|
|
11
|
+
[value]="inlineLabel ? label : null"
|
|
12
|
+
[id]="label"
|
|
13
|
+
[binary]="true"
|
|
14
|
+
/>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|