@updevs/components 1.0.0-alpha.6 → 1.0.0-alpha.9
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/.eslintrc.json +39 -0
- package/README.md +1 -11
- package/assets/styles/_bootstrap-components.scss +18 -1
- package/assets/styles/_seven-columns.scss +73 -0
- package/assets/styles/_updevs.scss +4 -0
- package/assets/styles/_variables.scss +1 -1
- package/badge/index.ts +1 -0
- package/badge/ng-package.json +6 -0
- package/badge/src/badge-config.model.ts +21 -0
- package/badge/src/badge.component.html +5 -0
- package/badge/src/badge.component.scss +1 -0
- package/badge/src/badge.component.spec.ts +21 -0
- package/badge/src/badge.component.ts +54 -0
- package/badge/src/badge.config.ts +13 -0
- package/badge/src/public-api.ts +3 -0
- package/badge/src/upd-badge.module.ts +17 -0
- package/button/index.ts +1 -0
- package/button/ng-package.json +6 -0
- package/button/src/button.component.html +45 -0
- package/button/src/button.component.scss +5 -0
- package/button/src/button.component.spec.ts +23 -0
- package/button/src/button.component.ts +176 -0
- package/button/src/upd-button.module.ts +21 -0
- package/calendar/index.ts +1 -0
- package/calendar/ng-package.json +6 -0
- package/calendar/src/assets/i18n/en.json +16 -0
- package/calendar/src/assets/i18n/pt.json +16 -0
- package/calendar/src/calendar.component.html +34 -0
- package/calendar/src/calendar.component.scss +1 -0
- package/calendar/src/calendar.component.spec.ts +21 -0
- package/calendar/src/calendar.component.ts +290 -0
- package/calendar/src/components/calendar-body/calendar-body.component.html +75 -0
- package/calendar/src/components/calendar-body/calendar-body.component.scss +1 -0
- package/calendar/src/components/calendar-body/calendar-body.component.spec.ts +21 -0
- package/calendar/src/components/calendar-body/calendar-body.component.ts +665 -0
- package/calendar/src/components/calendar-header/calendar-header.component.html +27 -0
- package/calendar/src/components/calendar-header/calendar-header.component.scss +1 -0
- package/calendar/src/components/calendar-header/calendar-header.component.spec.ts +21 -0
- package/calendar/src/components/calendar-header/calendar-header.component.ts +175 -0
- package/calendar/src/components/calendar-month-view/calendar-month-view.component.html +19 -0
- package/calendar/src/components/calendar-month-view/calendar-month-view.component.scss +1 -0
- package/calendar/src/components/calendar-month-view/calendar-month-view.component.spec.ts +21 -0
- package/calendar/src/components/calendar-month-view/calendar-month-view.component.ts +540 -0
- package/calendar/src/components/calendar-multi-year-view/calendar-multi-year-view.component.html +1 -0
- package/calendar/src/components/calendar-multi-year-view/calendar-multi-year-view.component.scss +1 -0
- package/calendar/src/components/calendar-multi-year-view/calendar-multi-year-view.component.spec.ts +21 -0
- package/calendar/src/components/calendar-multi-year-view/calendar-multi-year-view.component.ts +19 -0
- package/calendar/src/components/calendar-year-view/calendar-year-view.component.html +1 -0
- package/calendar/src/components/calendar-year-view/calendar-year-view.component.scss +1 -0
- package/calendar/src/components/calendar-year-view/calendar-year-view.component.spec.ts +21 -0
- package/calendar/src/components/calendar-year-view/calendar-year-view.component.ts +17 -0
- package/calendar/src/models/calendar-cell.model.ts +22 -0
- package/calendar/src/models/calendar-user-event.model.ts +4 -0
- package/calendar/src/models/date-range.model.ts +22 -0
- package/calendar/src/models/public-api.ts +2 -0
- package/calendar/src/public-api.ts +5 -0
- package/calendar/src/services/calendar-range-strategy.service.spec.ts +16 -0
- package/calendar/src/services/calendar-range-strategy.service.ts +103 -0
- package/calendar/src/services/calendar-signals.service.spec.ts +16 -0
- package/calendar/src/services/calendar-signals.service.ts +45 -0
- package/calendar/src/services/calendar.service.spec.ts +16 -0
- package/calendar/src/services/calendar.service.ts +42 -0
- package/calendar/src/services/public-api.ts +1 -0
- package/calendar/src/tools/events-options.ts +16 -0
- package/calendar/src/tools/keyboard-tools.ts +16 -0
- package/calendar/src/tools/passive-listeners.ts +36 -0
- package/calendar/src/types/calendar-cell-class-function.type.ts +4 -0
- package/calendar/src/types/calendar-cell-css-classes.type.ts +1 -0
- package/calendar/src/types/calendar-view.type.ts +1 -0
- package/calendar/src/types/modifier-key.type.ts +1 -0
- package/calendar/src/types/public-api.ts +1 -0
- package/calendar/src/upd-calendar.module.ts +48 -0
- package/card/index.ts +1 -0
- package/card/ng-package.json +6 -0
- package/card/src/card.component.html +105 -0
- package/card/src/card.component.scss +47 -0
- package/card/src/card.component.spec.ts +23 -0
- package/card/src/card.component.ts +112 -0
- package/card/src/directives/card-actions.directive.spec.ts +8 -0
- package/card/src/directives/card-actions.directive.ts +8 -0
- package/card/src/directives/card-footer.directive.spec.ts +8 -0
- package/card/src/directives/card-footer.directive.ts +8 -0
- package/card/src/directives/card-header.directive.spec.ts +8 -0
- package/card/src/directives/card-header.directive.ts +8 -0
- package/card/src/directives/card-image.directive.spec.ts +8 -0
- package/card/src/directives/card-image.directive.ts +8 -0
- package/card/src/types/public-api.ts +5 -0
- package/card/src/upd-card.module.ts +32 -0
- package/drag-and-drop/index.ts +1 -0
- package/drag-and-drop/ng-package.json +6 -0
- package/drag-and-drop/src/drag-and-drop.component.html +24 -0
- package/drag-and-drop/src/drag-and-drop.component.scss +4 -0
- package/drag-and-drop/src/drag-and-drop.component.spec.ts +22 -0
- package/drag-and-drop/src/drag-and-drop.component.ts +164 -0
- package/drag-and-drop/src/models/drag-and-drop-column.config.ts +10 -0
- package/drag-and-drop/src/models/drag-and-drop-column.model.ts +16 -0
- package/drag-and-drop/src/models/drag-and-drop-item.model.ts +21 -0
- package/drag-and-drop/src/models/drag-and-drop-item.ts +8 -0
- package/drag-and-drop/src/models/drag-and-drop.config.ts +7 -0
- package/drag-and-drop/src/models/public-api.ts +4 -0
- package/drag-and-drop/src/public-api.ts +3 -0
- package/drag-and-drop/src/upd-drag-and-drop.module.ts +19 -0
- package/dropdown/index.ts +1 -0
- package/dropdown/ng-package.json +6 -0
- package/dropdown/src/dropdown.component.html +70 -0
- package/dropdown/src/dropdown.component.scss +19 -0
- package/dropdown/src/dropdown.component.spec.ts +23 -0
- package/dropdown/src/dropdown.component.ts +233 -0
- package/dropdown/src/models/dropdown-action-clicked.model.ts +8 -0
- package/dropdown/{models/dropdown-item.d.ts → src/models/dropdown-item.ts} +8 -2
- package/dropdown/{models/dropdown-item.type.d.ts → src/models/dropdown-item.type.ts} +1 -1
- package/dropdown/src/models/public-api.ts +4 -0
- package/dropdown/src/models/toolbar.type.ts +1 -0
- package/dropdown/src/upd-dropdown.module.ts +25 -0
- package/form/index.ts +1 -0
- package/form/ng-package.json +6 -0
- package/form/src/assets/i18n/en.json +17 -0
- package/form/src/assets/i18n/pt.json +17 -0
- package/form/src/components/dynamic-field/dynamic-field.component.html +83 -0
- package/form/src/components/dynamic-field/dynamic-field.component.scss +1 -0
- package/form/src/components/dynamic-field/dynamic-field.component.spec.ts +21 -0
- package/form/src/components/dynamic-field/dynamic-field.component.ts +102 -0
- package/form/src/form.component.html +26 -0
- package/form/src/form.component.scss +1 -0
- package/form/src/form.component.spec.ts +21 -0
- package/form/src/form.component.ts +110 -0
- package/form/src/models/checkbox-field.model.ts +5 -0
- package/form/src/models/checkbox-group-field.model.ts +8 -0
- package/form/src/models/dynamic-field.model.ts +32 -0
- package/form/src/models/enums/dynamic-field.type.ts +12 -0
- package/form/src/models/enums/public-api.ts +1 -0
- package/form/src/models/form-config.ts +3 -0
- package/form/src/models/form-row.model.ts +10 -0
- package/form/src/models/public-api.ts +5 -0
- package/form/src/models/radio-field.model.ts +5 -0
- package/form/src/models/radio-group-field.model.ts +8 -0
- package/form/src/models/select-field.model.ts +30 -0
- package/form/src/models/single-select-field.model.ts +5 -0
- package/form/src/models/textarea-field.model.ts +11 -0
- package/form/src/models/validator-config.ts +5 -0
- package/form/src/public-api.ts +3 -0
- package/form/src/tools/errors-helper.ts +60 -0
- package/form/src/upd-form.module.ts +48 -0
- package/form-controls/abstractions/index.ts +1 -0
- package/form-controls/abstractions/ng-package.json +6 -0
- package/form-controls/abstractions/src/base-control.ts +34 -0
- package/form-controls/abstractions/src/public-api.ts +1 -0
- package/form-controls/checkbox/index.ts +1 -0
- package/form-controls/checkbox/ng-package.json +6 -0
- package/form-controls/checkbox/src/checkbox.component.html +34 -0
- package/form-controls/checkbox/src/checkbox.component.scss +0 -0
- package/form-controls/checkbox/src/checkbox.component.spec.ts +23 -0
- package/form-controls/checkbox/src/checkbox.component.ts +60 -0
- package/form-controls/checkbox/{public-api.d.ts → src/public-api.ts} +1 -0
- package/form-controls/checkbox/src/upd-checkbox.module.ts +21 -0
- package/form-controls/date-picker/index.ts +1 -0
- package/form-controls/date-picker/ng-package.json +6 -0
- package/form-controls/date-picker/src/date-picker.component.html +36 -0
- package/form-controls/date-picker/src/date-picker.component.scss +26 -0
- package/form-controls/date-picker/src/date-picker.component.spec.ts +22 -0
- package/form-controls/date-picker/src/date-picker.component.ts +177 -0
- package/form-controls/date-picker/src/public-api.ts +2 -0
- package/form-controls/date-picker/src/upd-date-picker.module.ts +25 -0
- package/form-controls/input/index.ts +1 -0
- package/form-controls/input/ng-package.json +6 -0
- package/form-controls/input/src/directives/input-append.directive.spec.ts +8 -0
- package/form-controls/input/src/directives/input-append.directive.ts +8 -0
- package/form-controls/input/src/directives/input-prepend.directive.spec.ts +8 -0
- package/form-controls/input/src/directives/input-prepend.directive.ts +8 -0
- package/form-controls/input/src/input.component.html +124 -0
- package/form-controls/input/src/input.component.scss +13 -0
- package/form-controls/input/src/input.component.spec.ts +23 -0
- package/form-controls/input/src/input.component.ts +161 -0
- package/form-controls/input/src/upd-input.module.ts +29 -0
- package/form-controls/radio/index.ts +1 -0
- package/form-controls/radio/ng-package.json +6 -0
- package/form-controls/radio/src/radio.component.html +35 -0
- package/form-controls/radio/src/radio.component.scss +0 -0
- package/form-controls/radio/src/radio.component.spec.ts +23 -0
- package/form-controls/radio/src/radio.component.ts +42 -0
- package/form-controls/radio/src/upd-radio.module.ts +21 -0
- package/form-controls/select/index.ts +1 -0
- package/form-controls/select/ng-package.json +6 -0
- package/form-controls/select/src/components/multiple/select-multiple.component.html +61 -0
- package/form-controls/select/src/components/multiple/select-multiple.component.scss +6 -0
- package/form-controls/select/src/components/multiple/select-multiple.component.spec.ts +21 -0
- package/form-controls/select/src/components/multiple/select-multiple.component.ts +80 -0
- package/form-controls/select/src/components/shared.scss +44 -0
- package/form-controls/select/src/components/single/select.component.html +118 -0
- package/form-controls/select/src/components/single/select.component.scss +3 -0
- package/form-controls/select/src/components/single/select.component.spec.ts +23 -0
- package/form-controls/select/src/components/single/select.component.ts +75 -0
- package/form-controls/select/src/models/abstractions/base-select.component.ts +286 -0
- package/form-controls/select/src/models/defaults.ts +9 -0
- package/form-controls/select/{models/public-api.d.ts → src/models/public-api.ts} +1 -0
- package/form-controls/select/{models/select-item.d.ts → src/models/select-item.ts} +1 -0
- package/form-controls/select/src/upd-select.module.ts +34 -0
- package/form-controls/textarea/index.ts +1 -0
- package/form-controls/textarea/ng-package.json +6 -0
- package/form-controls/textarea/src/textarea.component.html +13 -0
- package/form-controls/textarea/src/textarea.component.scss +0 -0
- package/form-controls/textarea/src/textarea.component.spec.ts +23 -0
- package/form-controls/textarea/src/textarea.component.ts +45 -0
- package/form-controls/textarea/src/upd-textarea.module.ts +17 -0
- package/form-controls/time-picker/index.ts +1 -0
- package/form-controls/time-picker/ng-package.json +6 -0
- package/form-controls/time-picker/src/time-picker.component.html +17 -0
- package/form-controls/time-picker/src/time-picker.component.scss +10 -0
- package/form-controls/time-picker/src/time-picker.component.spec.ts +21 -0
- package/form-controls/time-picker/src/time-picker.component.ts +110 -0
- package/form-controls/time-picker/src/time-selector/time-selector.component.html +50 -0
- package/form-controls/time-picker/src/time-selector/time-selector.component.scss +47 -0
- package/form-controls/time-picker/src/time-selector/time-selector.component.spec.ts +21 -0
- package/form-controls/time-picker/src/time-selector/time-selector.component.ts +107 -0
- package/form-controls/time-picker/src/upd-time-picker.module.ts +39 -0
- package/jest.config.ts +22 -0
- package/layout/index.ts +1 -0
- package/layout/ng-package.json +6 -0
- package/layout/src/abstractions/base-page.component.ts +16 -0
- package/layout/src/abstractions/base.layout.ts +27 -0
- package/layout/src/assets/i18n/en.json +20 -0
- package/layout/src/assets/i18n/pt.json +20 -0
- package/layout/src/index.ts +1 -0
- package/layout/src/layouts/blank-layout/blank-layout.component.html +1 -0
- package/layout/src/layouts/blank-layout/blank-layout.component.scss +0 -0
- package/layout/src/layouts/blank-layout/blank-layout.component.spec.ts +23 -0
- package/layout/src/layouts/blank-layout/blank-layout.component.ts +10 -0
- package/layout/src/layouts/blank-layout/blank-layout.module.ts +17 -0
- package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.html +16 -0
- package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.scss +0 -0
- package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.spec.ts +23 -0
- package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.ts +30 -0
- package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.module.ts +51 -0
- package/layout/src/models/login-page-config.model.ts +57 -0
- package/layout/src/models/login-page.config.ts +42 -0
- package/layout/{models/public-api.d.ts → src/models/public-api.ts} +1 -0
- package/layout/src/models/security-layout-config.model.ts +16 -0
- package/layout/src/models/security-layout.config.ts +11 -0
- package/layout/src/models/upd-layout-config.model.ts +69 -0
- package/layout/{models/upd-layout.config.d.ts → src/models/upd-layout.config.ts} +10 -0
- package/layout/src/pages/auth-flow/auth-flow-routing.module.ts +21 -0
- package/layout/src/pages/auth-flow/auth-flow.module.ts +40 -0
- package/layout/src/pages/auth-flow/logged-out/logged-out.component.html +1 -0
- package/layout/src/pages/auth-flow/logged-out/logged-out.component.scss +0 -0
- package/layout/src/pages/auth-flow/logged-out/logged-out.component.spec.ts +23 -0
- package/layout/src/pages/auth-flow/logged-out/logged-out.component.ts +10 -0
- package/layout/src/pages/auth-flow/login/login.component.html +103 -0
- package/layout/src/pages/auth-flow/login/login.component.scss +0 -0
- package/layout/src/pages/auth-flow/login/login.component.spec.ts +23 -0
- package/layout/src/pages/auth-flow/login/login.component.ts +97 -0
- package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.html +1 -0
- package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.scss +0 -0
- package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.spec.ts +23 -0
- package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.ts +10 -0
- package/layout/src/partials/footer/footer-copyright.directive.spec.ts +8 -0
- package/layout/src/partials/footer/footer-copyright.directive.ts +6 -0
- package/layout/src/partials/footer/footer.component.html +35 -0
- package/layout/src/partials/footer/footer.component.scss +0 -0
- package/layout/src/partials/footer/footer.component.spec.ts +23 -0
- package/layout/src/partials/footer/footer.component.ts +64 -0
- package/layout/src/partials/header/header.component.html +173 -0
- package/layout/src/partials/header/header.component.scss +0 -0
- package/layout/src/partials/header/header.component.spec.ts +23 -0
- package/layout/src/partials/header/header.component.ts +82 -0
- package/layout/src/partials/page-header/page-header.component.html +23 -0
- package/layout/src/partials/page-header/page-header.component.scss +0 -0
- package/layout/src/partials/page-header/page-header.component.spec.ts +23 -0
- package/layout/src/partials/page-header/page-header.component.ts +11 -0
- package/layout/src/partials/sidebar/sidebar.component.html +72 -0
- package/layout/src/partials/sidebar/sidebar.component.scss +0 -0
- package/layout/src/partials/sidebar/sidebar.component.spec.ts +23 -0
- package/layout/src/partials/sidebar/sidebar.component.ts +129 -0
- package/layout/src/services/upd-layout-config.service.spec.ts +16 -0
- package/layout/src/services/upd-layout-config.service.ts +20 -0
- package/layout/{tools/layout.constants.d.ts → src/tools/layout.constants.ts} +6 -3
- package/layout/src/upd-layout.module.ts +34 -0
- package/link/index.ts +1 -0
- package/link/ng-package.json +6 -0
- package/link/src/index.ts +1 -0
- package/link/src/link.component.html +3 -0
- package/link/src/link.component.scss +3 -0
- package/link/src/link.component.spec.ts +23 -0
- package/link/src/link.component.ts +48 -0
- package/link/src/upd-link.module.ts +17 -0
- package/list/index.ts +1 -0
- package/list/ng-package.json +6 -0
- package/list/src/assets/i18n/en.json +9 -0
- package/list/src/assets/i18n/pt.json +9 -0
- package/list/src/index.ts +1 -0
- package/list/src/list.component.html +67 -0
- package/list/src/list.component.scss +22 -0
- package/list/src/list.component.spec.ts +23 -0
- package/list/src/list.component.ts +129 -0
- package/list/src/models/list-item.model.ts +36 -0
- package/list/{models/list-item.d.ts → src/models/list-item.ts} +4 -1
- package/list/src/upd-list.module.ts +30 -0
- package/modal/index.ts +1 -0
- package/modal/ng-package.json +6 -0
- package/modal/src/assets/i18n/en.json +17 -0
- package/modal/src/assets/i18n/pt.json +17 -0
- package/modal/src/components/modal-container/modal-container.component.html +116 -0
- package/modal/src/components/modal-container/modal-container.component.scss +1 -0
- package/modal/src/components/modal-container/modal-container.component.spec.ts +22 -0
- package/modal/src/components/modal-container/modal-container.component.ts +243 -0
- package/modal/src/index.ts +1 -0
- package/modal/src/models/base.modal.ts +9 -0
- package/modal/src/models/modal-config.model.ts +39 -0
- package/modal/src/models/modal-ref.ts +9 -0
- package/modal/src/models/modal.config.ts +32 -0
- package/modal/src/models/public-api.ts +3 -0
- package/modal/src/public-api.ts +3 -0
- package/modal/src/services/modal-alert.service.spec.ts +16 -0
- package/modal/src/services/modal-alert.service.ts +167 -0
- package/modal/src/services/modal.service.spec.ts +16 -0
- package/modal/src/services/modal.service.ts +38 -0
- package/modal/src/services/public-api.ts +2 -0
- package/modal/src/types/modal-footer-style.type.ts +1 -0
- package/modal/src/types/modal-size.type.ts +1 -0
- package/modal/src/upd-modal.module.ts +74 -0
- package/ng-package.json +10 -0
- package/package.json +20 -114
- package/paginator/index.ts +1 -0
- package/paginator/ng-package.json +6 -0
- package/paginator/src/assets/i18n/en.json +15 -0
- package/paginator/src/assets/i18n/pt.json +15 -0
- package/paginator/src/index.ts +1 -0
- package/paginator/src/paginator.component.html +83 -0
- package/paginator/src/paginator.component.scss +1 -0
- package/paginator/src/paginator.component.spec.ts +21 -0
- package/paginator/src/paginator.component.ts +62 -0
- package/paginator/src/public-api.ts +2 -0
- package/paginator/src/upd-paginator.module.ts +32 -0
- package/popover/index.ts +1 -0
- package/popover/ng-package.json +6 -0
- package/popover/src/index.ts +1 -0
- package/popover/src/popover.component.html +21 -0
- package/popover/src/popover.component.scss +8 -0
- package/popover/src/popover.component.spec.ts +23 -0
- package/popover/src/popover.component.ts +53 -0
- package/popover/src/popover.directive.spec.ts +8 -0
- package/popover/src/popover.directive.ts +125 -0
- package/popover/src/upd-popover.module.ts +20 -0
- package/project.json +40 -0
- package/src/index.ts +1 -0
- package/src/lib/index.ts +1 -0
- package/src/lib/models/public-api.ts +1 -0
- package/src/lib/models/row-column-size.ts +5 -0
- package/{lib/public-api.d.ts → src/lib/public-api.ts} +2 -0
- package/src/lib/tools/column-size.helper.ts +19 -0
- package/src/lib/tools/public-api.ts +1 -0
- package/src/lib/types/horizontal-vertical.type.ts +1 -0
- package/{lib/types/public-api.d.ts → src/lib/types/public-api.ts} +1 -0
- package/src/lib/upd-components.module.ts +6 -0
- package/src/test-setup.ts +8 -0
- package/table/index.ts +1 -0
- package/table/ng-package.json +6 -0
- package/table/src/abstractions/base-column.model.ts +69 -0
- package/table/src/abstractions/base.column.ts +99 -0
- package/table/src/abstractions/filters-operands.service.ts +10 -0
- package/table/src/abstractions/public-api.ts +2 -0
- package/table/src/assets/i18n/en.json +74 -0
- package/table/src/assets/i18n/pt.json +74 -0
- package/table/src/components/columns/boolean-column/boolean-column.component.html +15 -0
- package/table/src/components/columns/boolean-column/boolean-column.component.scss +1 -0
- package/table/src/components/columns/boolean-column/boolean-column.component.spec.ts +21 -0
- package/table/src/components/columns/boolean-column/boolean-column.component.ts +26 -0
- package/table/src/components/columns/date-time-column/date-time-column.component.html +1 -0
- package/table/src/components/columns/date-time-column/date-time-column.component.scss +1 -0
- package/table/src/components/columns/date-time-column/date-time-column.component.spec.ts +21 -0
- package/table/src/components/columns/date-time-column/date-time-column.component.ts +11 -0
- package/table/src/components/columns/number-column/number-column.component.html +1 -0
- package/table/src/components/columns/number-column/number-column.component.scss +1 -0
- package/table/src/components/columns/number-column/number-column.component.spec.ts +21 -0
- package/table/src/components/columns/number-column/number-column.component.ts +11 -0
- package/table/src/components/columns/public-api.ts +0 -0
- package/table/src/components/columns/text-column/text-column.component.html +1 -0
- package/table/src/components/columns/text-column/text-column.component.scss +1 -0
- package/table/src/components/columns/text-column/text-column.component.spec.ts +21 -0
- package/table/src/components/columns/text-column/text-column.component.ts +31 -0
- package/table/src/components/columns-manager/columns-manager.component.html +3 -0
- package/table/src/components/columns-manager/columns-manager.component.scss +1 -0
- package/table/src/components/columns-manager/columns-manager.component.spec.ts +21 -0
- package/table/src/components/columns-manager/columns-manager.component.ts +37 -0
- package/table/src/components/filter-row/filter-row.component.html +29 -0
- package/table/src/components/filter-row/filter-row.component.scss +1 -0
- package/table/src/components/filter-row/filter-row.component.spec.ts +21 -0
- package/table/src/components/filter-row/filter-row.component.ts +127 -0
- package/table/src/components/public-api.ts +0 -0
- package/table/src/components/save-search/save-search.component.html +16 -0
- package/table/src/components/save-search/save-search.component.scss +1 -0
- package/table/src/components/save-search/save-search.component.spec.ts +21 -0
- package/table/src/components/save-search/save-search.component.ts +73 -0
- package/table/src/components/search-section/search-section.component.html +37 -0
- package/table/src/components/search-section/search-section.component.scss +1 -0
- package/table/src/components/search-section/search-section.component.spec.ts +21 -0
- package/table/src/components/search-section/search-section.component.ts +111 -0
- package/table/src/directives/public-api.ts +1 -0
- package/table/src/directives/table-column.directive.spec.ts +8 -0
- package/table/src/directives/table-column.directive.ts +52 -0
- package/table/src/index.ts +1 -0
- package/table/src/models/columns/boolean-column.model.ts +29 -0
- package/table/src/models/columns/date-time-column.model.ts +20 -0
- package/table/src/models/columns/guid-column.model.ts +16 -0
- package/table/src/models/columns/image-column.model.ts +15 -0
- package/table/src/models/columns/number-column.model.ts +19 -0
- package/table/src/models/columns/public-api.ts +6 -0
- package/table/src/models/columns/text-column.model.ts +16 -0
- package/table/src/models/enums/column-type.enum.ts +13 -0
- package/table/src/models/enums/public-api.ts +1 -0
- package/table/src/models/filter-item.model.ts +7 -0
- package/table/src/models/filter-operand.config.ts +10 -0
- package/table/src/models/operands-lists/boolean-filter-operands-list.model.ts +29 -0
- package/table/src/models/operands-lists/date-filter-operands-list.model.ts +28 -0
- package/table/src/models/operands-lists/date-or-number-operands-list.config.ts +35 -0
- package/table/src/models/operands-lists/filter-operands-list.config.ts +35 -0
- package/table/src/models/operands-lists/guid-filter-operands-list.model.ts +19 -0
- package/table/src/models/operands-lists/number-filter-operands-list.model.ts +28 -0
- package/table/src/models/operands-lists/string-filter-operands-list.model.ts +49 -0
- package/table/src/models/public-api.ts +4 -0
- package/table/src/models/saved-view.model.ts +13 -0
- package/table/src/models/table-config.model.ts +32 -0
- package/table/src/models/table.config.ts +24 -0
- package/table/src/models/upd-table-config.model.ts +12 -0
- package/table/src/models/upd-table.config.ts +7 -0
- package/table/src/public-api.ts +5 -0
- package/table/src/services/default-filters-operands.service.spec.ts +16 -0
- package/table/src/services/default-filters-operands.service.ts +62 -0
- package/table/src/services/storages/saved-views.storage.spec.ts +16 -0
- package/table/src/services/storages/saved-views.storage.ts +76 -0
- package/table/src/services/stores/filters-operands.store.spec.ts +16 -0
- package/table/src/services/stores/filters-operands.store.ts +17 -0
- package/table/src/services/upd-table-config.service.spec.ts +16 -0
- package/table/src/services/upd-table-config.service.ts +17 -0
- package/table/src/table.component.html +155 -0
- package/table/src/table.component.scss +14 -0
- package/table/src/table.component.spec.ts +21 -0
- package/table/src/table.component.ts +434 -0
- package/table/src/tools/filters.tools.ts +67 -0
- package/table/src/tools/table.constants.ts +18 -0
- package/table/src/upd-table.module.ts +104 -0
- package/tsconfig.json +29 -0
- package/tsconfig.lib.json +18 -0
- package/tsconfig.lib.prod.json +9 -0
- package/tsconfig.spec.json +16 -0
- package/button/button.component.d.ts +0 -43
- package/button/upd-button.module.d.ts +0 -8
- package/card/card.component.d.ts +0 -54
- package/card/directives/card-actions.directive.d.ts +0 -8
- package/card/directives/card-footer.directive.d.ts +0 -8
- package/card/directives/card-header.directive.d.ts +0 -8
- package/card/directives/card-image.directive.d.ts +0 -8
- package/card/upd-card.module.d.ts +0 -14
- package/dropdown/dropdown.component.d.ts +0 -63
- package/dropdown/models/public-api.d.ts +0 -2
- package/dropdown/upd-dropdown.module.d.ts +0 -12
- package/esm2022/button/button.component.mjs +0 -163
- package/esm2022/button/index.mjs +0 -2
- package/esm2022/button/public-api.mjs +0 -3
- package/esm2022/button/upd-button.module.mjs +0 -24
- package/esm2022/button/updevs-components-button.mjs +0 -5
- package/esm2022/card/card.component.mjs +0 -136
- package/esm2022/card/directives/card-actions.directive.mjs +0 -16
- package/esm2022/card/directives/card-footer.directive.mjs +0 -16
- package/esm2022/card/directives/card-header.directive.mjs +0 -16
- package/esm2022/card/directives/card-image.directive.mjs +0 -16
- package/esm2022/card/directives/public-api.mjs +0 -5
- package/esm2022/card/index.mjs +0 -2
- package/esm2022/card/public-api.mjs +0 -4
- package/esm2022/card/types/card-state.type.mjs +0 -2
- package/esm2022/card/types/card-style.type.mjs +0 -2
- package/esm2022/card/types/hover-effect.type.mjs +0 -2
- package/esm2022/card/types/ribbon-style.type.mjs +0 -2
- package/esm2022/card/types/status-position.type.mjs +0 -2
- package/esm2022/card/upd-card.module.mjs +0 -50
- package/esm2022/card/updevs-components-card.mjs +0 -5
- package/esm2022/dropdown/dropdown.component.mjs +0 -146
- package/esm2022/dropdown/index.mjs +0 -2
- package/esm2022/dropdown/models/dropdown-item.mjs +0 -2
- package/esm2022/dropdown/models/dropdown-item.type.mjs +0 -2
- package/esm2022/dropdown/models/public-api.mjs +0 -3
- package/esm2022/dropdown/public-api.mjs +0 -4
- package/esm2022/dropdown/upd-dropdown.module.mjs +0 -40
- package/esm2022/dropdown/updevs-components-dropdown.mjs +0 -5
- package/esm2022/form/form.module.mjs +0 -18
- package/esm2022/form/index.mjs +0 -2
- package/esm2022/form/public-api.mjs +0 -2
- package/esm2022/form/updevs-components-form.mjs +0 -5
- package/esm2022/form-controls/checkbox/checkbox.component.mjs +0 -68
- package/esm2022/form-controls/checkbox/index.mjs +0 -2
- package/esm2022/form-controls/checkbox/public-api.mjs +0 -3
- package/esm2022/form-controls/checkbox/upd-checkbox.module.mjs +0 -28
- package/esm2022/form-controls/checkbox/updevs-components-form-controls-checkbox.mjs +0 -5
- package/esm2022/form-controls/input/directives/input-append.directive.mjs +0 -16
- package/esm2022/form-controls/input/directives/input-prepend.directive.mjs +0 -16
- package/esm2022/form-controls/input/directives/public-api.mjs +0 -3
- package/esm2022/form-controls/input/index.mjs +0 -2
- package/esm2022/form-controls/input/input.component.mjs +0 -155
- package/esm2022/form-controls/input/public-api.mjs +0 -5
- package/esm2022/form-controls/input/types/input.type.mjs +0 -2
- package/esm2022/form-controls/input/types/loader-position.type.mjs +0 -2
- package/esm2022/form-controls/input/types/public-api.mjs +0 -3
- package/esm2022/form-controls/input/upd-input.module.mjs +0 -46
- package/esm2022/form-controls/input/updevs-components-form-controls-input.mjs +0 -5
- package/esm2022/form-controls/radio/index.mjs +0 -2
- package/esm2022/form-controls/radio/public-api.mjs +0 -3
- package/esm2022/form-controls/radio/radio.component.mjs +0 -64
- package/esm2022/form-controls/radio/upd-radio.module.mjs +0 -24
- package/esm2022/form-controls/radio/updevs-components-form-controls-radio.mjs +0 -5
- package/esm2022/form-controls/select/components/multiple/select-multiple.component.mjs +0 -66
- package/esm2022/form-controls/select/components/single/select.component.mjs +0 -54
- package/esm2022/form-controls/select/index.mjs +0 -2
- package/esm2022/form-controls/select/models/abstractions/base-select.component.mjs +0 -208
- package/esm2022/form-controls/select/models/public-api.mjs +0 -2
- package/esm2022/form-controls/select/models/select-item.mjs +0 -2
- package/esm2022/form-controls/select/public-api.mjs +0 -5
- package/esm2022/form-controls/select/upd-select.module.mjs +0 -53
- package/esm2022/form-controls/select/updevs-components-form-controls-select.mjs +0 -5
- package/esm2022/form-controls/textarea/index.mjs +0 -2
- package/esm2022/form-controls/textarea/public-api.mjs +0 -3
- package/esm2022/form-controls/textarea/textarea.component.mjs +0 -62
- package/esm2022/form-controls/textarea/upd-textarea.module.mjs +0 -24
- package/esm2022/form-controls/textarea/updevs-components-form-controls-textarea.mjs +0 -5
- package/esm2022/form-controls/time-picker/index.mjs +0 -2
- package/esm2022/form-controls/time-picker/public-api.mjs +0 -4
- package/esm2022/form-controls/time-picker/time-picker.component.mjs +0 -130
- package/esm2022/form-controls/time-picker/time-selector/time-selector.component.mjs +0 -125
- package/esm2022/form-controls/time-picker/upd-time-picker.module.mjs +0 -60
- package/esm2022/form-controls/time-picker/updevs-components-form-controls-time-picker.mjs +0 -5
- package/esm2022/layout/abstractions/base-page.component.mjs +0 -24
- package/esm2022/layout/abstractions/public-api.mjs +0 -2
- package/esm2022/layout/assets/i18n/en.json +0 -5
- package/esm2022/layout/assets/i18n/pt.json +0 -5
- package/esm2022/layout/index.mjs +0 -2
- package/esm2022/layout/layouts/blank-layout/blank-layout.component.mjs +0 -11
- package/esm2022/layout/layouts/blank-layout/blank-layout.module.mjs +0 -24
- package/esm2022/layout/layouts/public-api.mjs +0 -5
- package/esm2022/layout/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.mjs +0 -33
- package/esm2022/layout/layouts/vertical-sidebar-layout/vertical-sidebar-layout.module.mjs +0 -81
- package/esm2022/layout/models/public-api.mjs +0 -2
- package/esm2022/layout/models/upd-layout-config.model.mjs +0 -30
- package/esm2022/layout/models/upd-layout.config.mjs +0 -2
- package/esm2022/layout/pages/auth-flow/auth-flow-routing.module.mjs +0 -28
- package/esm2022/layout/pages/auth-flow/auth-flow.module.mjs +0 -46
- package/esm2022/layout/pages/auth-flow/logged-out/logged-out.component.mjs +0 -11
- package/esm2022/layout/pages/auth-flow/login/login.component.mjs +0 -27
- package/esm2022/layout/pages/auth-flow/oauth-callback/oauth-callback.component.mjs +0 -11
- package/esm2022/layout/pages/auth-flow/public-api.mjs +0 -6
- package/esm2022/layout/pages/public-api.mjs +0 -2
- package/esm2022/layout/partials/footer/footer-copyright.directive.mjs +0 -15
- package/esm2022/layout/partials/footer/footer.component.mjs +0 -66
- package/esm2022/layout/partials/footer/public-api.mjs +0 -3
- package/esm2022/layout/partials/header/header-style.type.mjs +0 -2
- package/esm2022/layout/partials/header/header.component.mjs +0 -79
- package/esm2022/layout/partials/header/public-api.mjs +0 -3
- package/esm2022/layout/partials/page-header/page-header.component.mjs +0 -15
- package/esm2022/layout/partials/page-header/public-api.mjs +0 -2
- package/esm2022/layout/partials/public-api.mjs +0 -5
- package/esm2022/layout/partials/sidebar/public-api.mjs +0 -2
- package/esm2022/layout/partials/sidebar/sidebar.component.mjs +0 -144
- package/esm2022/layout/public-api.mjs +0 -8
- package/esm2022/layout/services/public-api.mjs +0 -2
- package/esm2022/layout/services/upd-layout-config.service.mjs +0 -21
- package/esm2022/layout/tools/layout.constants.mjs +0 -15
- package/esm2022/layout/upd-layout.module.mjs +0 -43
- package/esm2022/layout/updevs-components-layout.mjs +0 -5
- package/esm2022/lib/index.mjs +0 -2
- package/esm2022/lib/public-api.mjs +0 -3
- package/esm2022/lib/types/component-size.type.mjs +0 -2
- package/esm2022/lib/types/public-api.mjs +0 -3
- package/esm2022/lib/types/validation-status.type.mjs +0 -2
- package/esm2022/lib/upd-components.module.mjs +0 -14
- package/esm2022/link/index.mjs +0 -2
- package/esm2022/link/link.component.mjs +0 -51
- package/esm2022/link/public-api.mjs +0 -4
- package/esm2022/link/target.type.mjs +0 -2
- package/esm2022/link/upd-link.module.mjs +0 -24
- package/esm2022/link/updevs-components-link.mjs +0 -5
- package/esm2022/list/assets/i18n/en.json +0 -5
- package/esm2022/list/assets/i18n/pt.json +0 -5
- package/esm2022/list/index.mjs +0 -2
- package/esm2022/list/list.component.mjs +0 -134
- package/esm2022/list/models/badge-position.type.mjs +0 -2
- package/esm2022/list/models/list-item.mjs +0 -2
- package/esm2022/list/models/list-item.model.mjs +0 -15
- package/esm2022/list/models/public-api.mjs +0 -3
- package/esm2022/list/public-api.mjs +0 -4
- package/esm2022/list/upd-list.module.mjs +0 -43
- package/esm2022/list/updevs-components-list.mjs +0 -5
- package/esm2022/popover/index.mjs +0 -2
- package/esm2022/popover/popover.component.mjs +0 -65
- package/esm2022/popover/popover.directive.mjs +0 -129
- package/esm2022/popover/public-api.mjs +0 -4
- package/esm2022/popover/upd-popover.module.mjs +0 -29
- package/esm2022/popover/updevs-components-popover.mjs +0 -5
- package/esm2022/public-api.mjs +0 -2
- package/esm2022/updevs-components.mjs +0 -5
- package/fesm2022/updevs-components-button.mjs +0 -191
- package/fesm2022/updevs-components-button.mjs.map +0 -1
- package/fesm2022/updevs-components-card.mjs +0 -238
- package/fesm2022/updevs-components-card.mjs.map +0 -1
- package/fesm2022/updevs-components-dropdown.mjs +0 -190
- package/fesm2022/updevs-components-dropdown.mjs.map +0 -1
- package/fesm2022/updevs-components-form-controls-checkbox.mjs +0 -100
- package/fesm2022/updevs-components-form-controls-checkbox.mjs.map +0 -1
- package/fesm2022/updevs-components-form-controls-input.mjs +0 -229
- package/fesm2022/updevs-components-form-controls-input.mjs.map +0 -1
- package/fesm2022/updevs-components-form-controls-radio.mjs +0 -92
- package/fesm2022/updevs-components-form-controls-radio.mjs.map +0 -1
- package/fesm2022/updevs-components-form-controls-select.mjs +0 -372
- package/fesm2022/updevs-components-form-controls-select.mjs.map +0 -1
- package/fesm2022/updevs-components-form-controls-textarea.mjs +0 -90
- package/fesm2022/updevs-components-form-controls-textarea.mjs.map +0 -1
- package/fesm2022/updevs-components-form-controls-time-picker.mjs +0 -345
- package/fesm2022/updevs-components-form-controls-time-picker.mjs.map +0 -1
- package/fesm2022/updevs-components-form.mjs +0 -25
- package/fesm2022/updevs-components-form.mjs.map +0 -1
- package/fesm2022/updevs-components-layout.mjs +0 -673
- package/fesm2022/updevs-components-layout.mjs.map +0 -1
- package/fesm2022/updevs-components-link.mjs +0 -79
- package/fesm2022/updevs-components-link.mjs.map +0 -1
- package/fesm2022/updevs-components-list.mjs +0 -226
- package/fesm2022/updevs-components-list.mjs.map +0 -1
- package/fesm2022/updevs-components-popover.mjs +0 -223
- package/fesm2022/updevs-components-popover.mjs.map +0 -1
- package/fesm2022/updevs-components.mjs +0 -21
- package/fesm2022/updevs-components.mjs.map +0 -1
- package/form/form.module.d.ts +0 -7
- package/form/public-api.d.ts +0 -1
- package/form-controls/checkbox/checkbox.component.d.ts +0 -25
- package/form-controls/checkbox/upd-checkbox.module.d.ts +0 -9
- package/form-controls/input/directives/input-append.directive.d.ts +0 -8
- package/form-controls/input/directives/input-prepend.directive.d.ts +0 -8
- package/form-controls/input/input.component.d.ts +0 -54
- package/form-controls/input/upd-input.module.d.ts +0 -13
- package/form-controls/radio/radio.component.d.ts +0 -24
- package/form-controls/radio/upd-radio.module.d.ts +0 -8
- package/form-controls/select/components/multiple/select-multiple.component.d.ts +0 -18
- package/form-controls/select/components/single/select.component.d.ts +0 -20
- package/form-controls/select/models/abstractions/base-select.component.d.ts +0 -80
- package/form-controls/select/upd-select.module.d.ts +0 -15
- package/form-controls/textarea/textarea.component.d.ts +0 -23
- package/form-controls/textarea/upd-textarea.module.d.ts +0 -8
- package/form-controls/time-picker/time-picker.component.d.ts +0 -78
- package/form-controls/time-picker/time-selector/time-selector.component.d.ts +0 -69
- package/form-controls/time-picker/upd-time-picker.module.d.ts +0 -17
- package/index.d.ts +0 -5
- package/layout/abstractions/base-page.component.d.ts +0 -13
- package/layout/layouts/blank-layout/blank-layout.component.d.ts +0 -5
- package/layout/layouts/blank-layout/blank-layout.module.d.ts +0 -8
- package/layout/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.d.ts +0 -13
- package/layout/layouts/vertical-sidebar-layout/vertical-sidebar-layout.module.d.ts +0 -20
- package/layout/models/upd-layout-config.model.d.ts +0 -39
- package/layout/pages/auth-flow/auth-flow-routing.module.d.ts +0 -12
- package/layout/pages/auth-flow/auth-flow.module.d.ts +0 -13
- package/layout/pages/auth-flow/logged-out/logged-out.component.d.ts +0 -5
- package/layout/pages/auth-flow/login/login.component.d.ts +0 -12
- package/layout/pages/auth-flow/oauth-callback/oauth-callback.component.d.ts +0 -5
- package/layout/partials/footer/footer-copyright.directive.d.ts +0 -6
- package/layout/partials/footer/footer.component.d.ts +0 -45
- package/layout/partials/header/header.component.d.ts +0 -33
- package/layout/partials/page-header/page-header.component.d.ts +0 -7
- package/layout/partials/sidebar/sidebar.component.d.ts +0 -21
- package/layout/services/upd-layout-config.service.d.ts +0 -15
- package/layout/upd-layout.module.d.ts +0 -18
- package/lib/upd-components.module.d.ts +0 -6
- package/link/link.component.d.ts +0 -22
- package/link/upd-link.module.d.ts +0 -8
- package/list/list.component.d.ts +0 -62
- package/list/models/list-item.model.d.ts +0 -24
- package/list/upd-list.module.d.ts +0 -13
- package/popover/popover.component.d.ts +0 -22
- package/popover/popover.directive.d.ts +0 -35
- package/popover/upd-popover.module.d.ts +0 -9
- /package/{button/index.d.ts → badge/src/index.ts} +0 -0
- /package/{card/index.d.ts → button/src/index.ts} +0 -0
- /package/button/{public-api.d.ts → src/public-api.ts} +0 -0
- /package/{dropdown/index.d.ts → calendar/src/index.ts} +0 -0
- /package/card/{directives/public-api.d.ts → src/directives/public-api.ts} +0 -0
- /package/{form-controls/checkbox/index.d.ts → card/src/index.ts} +0 -0
- /package/card/{public-api.d.ts → src/public-api.ts} +0 -0
- /package/card/{types/card-state.type.d.ts → src/types/card-state.type.ts} +0 -0
- /package/card/{types/card-style.type.d.ts → src/types/card-style.type.ts} +0 -0
- /package/card/{types/hover-effect.type.d.ts → src/types/hover-effect.type.ts} +0 -0
- /package/card/{types/ribbon-style.type.d.ts → src/types/ribbon-style.type.ts} +0 -0
- /package/card/{types/status-position.type.d.ts → src/types/status-position.type.ts} +0 -0
- /package/{form-controls/input/index.d.ts → drag-and-drop/src/index.ts} +0 -0
- /package/{form-controls/radio/index.d.ts → dropdown/src/index.ts} +0 -0
- /package/dropdown/{public-api.d.ts → src/public-api.ts} +0 -0
- /package/{popover/index.d.ts → form/src/index.ts} +0 -0
- /package/form-controls/{select/index.d.ts → abstractions/src/index.ts} +0 -0
- /package/form-controls/{textarea/index.d.ts → checkbox/src/index.ts} +0 -0
- /package/form-controls/{time-picker/index.d.ts → date-picker/src/index.ts} +0 -0
- /package/form-controls/input/{directives/public-api.d.ts → src/directives/public-api.ts} +0 -0
- /package/{form/index.d.ts → form-controls/input/src/index.ts} +0 -0
- /package/form-controls/input/{public-api.d.ts → src/public-api.ts} +0 -0
- /package/form-controls/input/{types/input.type.d.ts → src/types/input.type.ts} +0 -0
- /package/form-controls/input/{types/loader-position.type.d.ts → src/types/loader-position.type.ts} +0 -0
- /package/form-controls/input/{types/public-api.d.ts → src/types/public-api.ts} +0 -0
- /package/{layout/index.d.ts → form-controls/radio/src/index.ts} +0 -0
- /package/form-controls/radio/{public-api.d.ts → src/public-api.ts} +0 -0
- /package/{lib/index.d.ts → form-controls/select/src/index.ts} +0 -0
- /package/form-controls/select/{public-api.d.ts → src/public-api.ts} +0 -0
- /package/{link/index.d.ts → form-controls/textarea/src/index.ts} +0 -0
- /package/form-controls/textarea/{public-api.d.ts → src/public-api.ts} +0 -0
- /package/{esm2022/form-controls/time-picker → form-controls/time-picker/src}/assets/i18n/en.json +0 -0
- /package/{esm2022/form-controls/time-picker → form-controls/time-picker/src}/assets/i18n/pt.json +0 -0
- /package/{list/index.d.ts → form-controls/time-picker/src/index.ts} +0 -0
- /package/form-controls/time-picker/{public-api.d.ts → src/public-api.ts} +0 -0
- /package/layout/{abstractions/public-api.d.ts → src/abstractions/public-api.ts} +0 -0
- /package/layout/{layouts/public-api.d.ts → src/layouts/public-api.ts} +0 -0
- /package/layout/{pages/auth-flow/public-api.d.ts → src/pages/auth-flow/public-api.ts} +0 -0
- /package/layout/{pages/public-api.d.ts → src/pages/public-api.ts} +0 -0
- /package/layout/{partials/footer/public-api.d.ts → src/partials/footer/public-api.ts} +0 -0
- /package/layout/{partials/header/header-style.type.d.ts → src/partials/header/header-style.type.ts} +0 -0
- /package/layout/{partials/header/public-api.d.ts → src/partials/header/public-api.ts} +0 -0
- /package/layout/{partials/page-header/public-api.d.ts → src/partials/page-header/public-api.ts} +0 -0
- /package/layout/{partials/public-api.d.ts → src/partials/public-api.ts} +0 -0
- /package/layout/{partials/sidebar/public-api.d.ts → src/partials/sidebar/public-api.ts} +0 -0
- /package/layout/{public-api.d.ts → src/public-api.ts} +0 -0
- /package/layout/{services/public-api.d.ts → src/services/public-api.ts} +0 -0
- /package/link/{public-api.d.ts → src/public-api.ts} +0 -0
- /package/link/{target.type.d.ts → src/target.type.ts} +0 -0
- /package/list/{models/badge-position.type.d.ts → src/models/badge-position.type.ts} +0 -0
- /package/list/{models/public-api.d.ts → src/models/public-api.ts} +0 -0
- /package/list/{public-api.d.ts → src/public-api.ts} +0 -0
- /package/popover/{public-api.d.ts → src/public-api.ts} +0 -0
- /package/{lib/types/component-size.type.d.ts → src/lib/types/component-size.type.ts} +0 -0
- /package/{lib/types/validation-status.type.d.ts → src/lib/types/validation-status.type.ts} +0 -0
- /package/{public-api.d.ts → src/public-api.ts} +0 -0
@@ -1,673 +0,0 @@
|
|
1
|
-
import * as i0 from '@angular/core';
|
2
|
-
import { inject, Directive, Component, NgModule, TemplateRef, ViewEncapsulation, HostBinding, ContentChild, Input, InjectionToken, Injectable, Inject } from '@angular/core';
|
3
|
-
import * as i1$1 from '@updevs/sdk/layout';
|
4
|
-
import { BaseComponent, LayoutService, UpdCoreLayoutModule } from '@updevs/sdk/layout';
|
5
|
-
import * as i2 from '@angular/common';
|
6
|
-
import { CommonModule } from '@angular/common';
|
7
|
-
import * as i1$2 from '@angular/router';
|
8
|
-
import { NavigationStart, RouterModule } from '@angular/router';
|
9
|
-
import * as i4 from '@updevs/icons';
|
10
|
-
import { UpdIconsModule } from '@updevs/icons';
|
11
|
-
import * as i2$1 from '@updevs/components/button';
|
12
|
-
import { UpdButtonModule } from '@updevs/components/button';
|
13
|
-
import * as i5 from '@updevs/components/link';
|
14
|
-
import { UpdLinkModule } from '@updevs/components/link';
|
15
|
-
import * as i1 from '@ngneat/transloco';
|
16
|
-
import { TranslocoModule } from '@ngneat/transloco';
|
17
|
-
import { RouteDataModel } from '@updevs/sdk/routes';
|
18
|
-
import { filter } from 'rxjs';
|
19
|
-
import { AuthService } from '@updevs/sdk/security';
|
20
|
-
import * as i3 from '@angular/forms';
|
21
|
-
import { FormsModule } from '@angular/forms';
|
22
|
-
|
23
|
-
/**
|
24
|
-
* Basic page structure.
|
25
|
-
*/
|
26
|
-
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
27
|
-
class BasePageComponent extends BaseComponent {
|
28
|
-
constructor() {
|
29
|
-
super();
|
30
|
-
this._layoutService = inject(LayoutService);
|
31
|
-
}
|
32
|
-
ngOnDestroy() {
|
33
|
-
super.ngOnDestroy();
|
34
|
-
// TODO: clear subheader.
|
35
|
-
}
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BasePageComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
37
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.11", type: BasePageComponent, usesInheritance: true, ngImport: i0 }); }
|
38
|
-
}
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BasePageComponent, decorators: [{
|
40
|
-
type: Directive,
|
41
|
-
args: [{}]
|
42
|
-
}], ctorParameters: function () { return []; } });
|
43
|
-
|
44
|
-
class BlankLayoutComponent {
|
45
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BlankLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
46
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: BlankLayoutComponent, selector: "upd-blank-layout", ngImport: i0, template: "<p>blank-layout works!</p>\n", styles: [""] }); }
|
47
|
-
}
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BlankLayoutComponent, decorators: [{
|
49
|
-
type: Component,
|
50
|
-
args: [{ selector: 'upd-blank-layout', template: "<p>blank-layout works!</p>\n" }]
|
51
|
-
}] });
|
52
|
-
|
53
|
-
class BlankLayoutModule {
|
54
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BlankLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
55
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.11", ngImport: i0, type: BlankLayoutModule, declarations: [BlankLayoutComponent], imports: [CommonModule], exports: [BlankLayoutComponent] }); }
|
56
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BlankLayoutModule, imports: [CommonModule] }); }
|
57
|
-
}
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: BlankLayoutModule, decorators: [{
|
59
|
-
type: NgModule,
|
60
|
-
args: [{
|
61
|
-
imports: [
|
62
|
-
CommonModule
|
63
|
-
],
|
64
|
-
declarations: [
|
65
|
-
BlankLayoutComponent
|
66
|
-
],
|
67
|
-
exports: [
|
68
|
-
BlankLayoutComponent
|
69
|
-
]
|
70
|
-
}]
|
71
|
-
}] });
|
72
|
-
|
73
|
-
var Footer$1 = {
|
74
|
-
AllRightsReserved: "All rights reserved."
|
75
|
-
};
|
76
|
-
var en = {
|
77
|
-
Footer: Footer$1
|
78
|
-
};
|
79
|
-
|
80
|
-
var en$1 = /*#__PURE__*/Object.freeze({
|
81
|
-
__proto__: null,
|
82
|
-
Footer: Footer$1,
|
83
|
-
default: en
|
84
|
-
});
|
85
|
-
|
86
|
-
var Footer = {
|
87
|
-
AllRightsReserved: "Todos os direitos reservados."
|
88
|
-
};
|
89
|
-
var pt = {
|
90
|
-
Footer: Footer
|
91
|
-
};
|
92
|
-
|
93
|
-
var pt$1 = /*#__PURE__*/Object.freeze({
|
94
|
-
__proto__: null,
|
95
|
-
Footer: Footer,
|
96
|
-
default: pt
|
97
|
-
});
|
98
|
-
|
99
|
-
class FooterCopyrightDirective {
|
100
|
-
constructor() {
|
101
|
-
}
|
102
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: FooterCopyrightDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
103
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.11", type: FooterCopyrightDirective, selector: "[updFooterCopyright]", ngImport: i0 }); }
|
104
|
-
}
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: FooterCopyrightDirective, decorators: [{
|
106
|
-
type: Directive,
|
107
|
-
args: [{
|
108
|
-
selector: '[updFooterCopyright]'
|
109
|
-
}]
|
110
|
-
}], ctorParameters: function () { return []; } });
|
111
|
-
|
112
|
-
class FooterComponent extends BaseComponent {
|
113
|
-
constructor(translocoService) {
|
114
|
-
super();
|
115
|
-
this.translocoService = translocoService;
|
116
|
-
this.wrapperClasses = '';
|
117
|
-
/**
|
118
|
-
* Whether the footer will always be shown.
|
119
|
-
*/
|
120
|
-
this.isSticky = false;
|
121
|
-
/**
|
122
|
-
* Whether the footer is transparent or not.
|
123
|
-
*/
|
124
|
-
this.isTransparent = true;
|
125
|
-
/**
|
126
|
-
* Links.
|
127
|
-
*/
|
128
|
-
this.links = [];
|
129
|
-
/**
|
130
|
-
* Current year.
|
131
|
-
*/
|
132
|
-
this.currentYear = new Date().getFullYear();
|
133
|
-
/**
|
134
|
-
* Text displayed in the copyright section before the symbol and year.
|
135
|
-
*/
|
136
|
-
this.copyrightPrefix = 'Copyright';
|
137
|
-
/**
|
138
|
-
* Text displayed in the copyright section after the symbol and year.
|
139
|
-
*/
|
140
|
-
this.copyrightSuffix = '';
|
141
|
-
this.baseWrapperClasses = 'footer d-print-none';
|
142
|
-
}
|
143
|
-
ngOnInit() {
|
144
|
-
const footerCpsSub = this.translocoService.selectTranslate('Footer.AllRightsReserved').subscribe(r => this.copyrightSuffix = r);
|
145
|
-
this.updateWrapperClasses();
|
146
|
-
this.addSubscriptions(footerCpsSub);
|
147
|
-
}
|
148
|
-
ngOnChanges(changes) {
|
149
|
-
if (!!changes['isSticky'].currentValue || !!changes['isTransparent'].currentValue) {
|
150
|
-
this.updateWrapperClasses();
|
151
|
-
}
|
152
|
-
}
|
153
|
-
updateWrapperClasses() {
|
154
|
-
const stickyBottomCls = this.isSticky ? ' sticky-bottom' : '';
|
155
|
-
const transparentCls = this.isTransparent ? ' footer-transparent' : '';
|
156
|
-
this.wrapperClasses = `${this.baseWrapperClasses}${stickyBottomCls}${transparentCls}`;
|
157
|
-
}
|
158
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: FooterComponent, deps: [{ token: i1.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
|
159
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: FooterComponent, selector: "upd-footer", host: { properties: { "class": "this.wrapperClasses" } }, queries: [{ propertyName: "footerCopyrightTemplate", first: true, predicate: FooterCopyrightDirective, descendants: true, read: TemplateRef, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"container-xl\">\n <div class=\"row text-center align-items-center flex-row-reverse\">\n <div class=\"col-lg-auto ms-lg-auto\">\n <ul *ngIf=\"links.length > 0\" class=\"list-inline list-inline-dots mb-0\">\n <li *ngFor=\"let link of links\" class=\"list-inline-item\">\n <a href=\"{{link.url}}\" target=\"{{link.target}}\" class=\"link-secondary\">\n <span [innerHTML]=\"link.text\"></span>\n <ng-container *transloco=\"let t\">\n {{t('Layout.Aloha')}}\n </ng-container>\n </a>\n </li>\n </ul>\n </div>\n <div class=\"col-12 col-lg-auto mt-3 mt-lg-0\">\n <ng-container *ngIf=\"!!footerCopyrightTemplate; else defaultFooterTpl\"\n [ngTemplateOutlet]=\"footerCopyrightTemplate\"></ng-container>\n <ng-template #defaultFooterTpl>\n <ul class=\"list-inline list-inline-dots mb-0\">\n <li class=\"list-inline-item\">\n {{copyrightPrefix}} © {{currentYear}} {{copyrightSuffix}}\n </li>\n <li *ngIf=\"!!version\" class=\"list-inline-item\">\n {{version}}\n </li>\n </ul>\n </ng-template>\n </div>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
160
|
-
}
|
161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: FooterComponent, decorators: [{
|
162
|
-
type: Component,
|
163
|
-
args: [{ selector: 'upd-footer', encapsulation: ViewEncapsulation.None, template: "<div class=\"container-xl\">\n <div class=\"row text-center align-items-center flex-row-reverse\">\n <div class=\"col-lg-auto ms-lg-auto\">\n <ul *ngIf=\"links.length > 0\" class=\"list-inline list-inline-dots mb-0\">\n <li *ngFor=\"let link of links\" class=\"list-inline-item\">\n <a href=\"{{link.url}}\" target=\"{{link.target}}\" class=\"link-secondary\">\n <span [innerHTML]=\"link.text\"></span>\n <ng-container *transloco=\"let t\">\n {{t('Layout.Aloha')}}\n </ng-container>\n </a>\n </li>\n </ul>\n </div>\n <div class=\"col-12 col-lg-auto mt-3 mt-lg-0\">\n <ng-container *ngIf=\"!!footerCopyrightTemplate; else defaultFooterTpl\"\n [ngTemplateOutlet]=\"footerCopyrightTemplate\"></ng-container>\n <ng-template #defaultFooterTpl>\n <ul class=\"list-inline list-inline-dots mb-0\">\n <li class=\"list-inline-item\">\n {{copyrightPrefix}} © {{currentYear}} {{copyrightSuffix}}\n </li>\n <li *ngIf=\"!!version\" class=\"list-inline-item\">\n {{version}}\n </li>\n </ul>\n </ng-template>\n </div>\n </div>\n</div>\n" }]
|
164
|
-
}], ctorParameters: function () { return [{ type: i1.TranslocoService }]; }, propDecorators: { wrapperClasses: [{
|
165
|
-
type: HostBinding,
|
166
|
-
args: ['class']
|
167
|
-
}], footerCopyrightTemplate: [{
|
168
|
-
type: ContentChild,
|
169
|
-
args: [FooterCopyrightDirective, { read: TemplateRef, static: true }]
|
170
|
-
}] } });
|
171
|
-
|
172
|
-
class HeaderComponent extends BaseComponent {
|
173
|
-
constructor(coreLayoutConfigService, layoutService, translocoService) {
|
174
|
-
super();
|
175
|
-
this.coreLayoutConfigService = coreLayoutConfigService;
|
176
|
-
this.layoutService = layoutService;
|
177
|
-
this.translocoService = translocoService;
|
178
|
-
this.wrapperClasses = '';
|
179
|
-
this.style = 'light';
|
180
|
-
this.showSearchBar = true;
|
181
|
-
this.nextThemeIcon = 'moon';
|
182
|
-
this.nextThemeColor = 'black';
|
183
|
-
this.currentNotificationsIcon = 'bell';
|
184
|
-
this.hasNewNotifications = false;
|
185
|
-
this.showNotifications = false;
|
186
|
-
this.showLanguageSwitcher = true; // TODO: add on config.
|
187
|
-
this.showUserMenu = false;
|
188
|
-
this.baseWrapperClasses = 'navbar navbar-expand-md d-none d-lg-flex d-print-none';
|
189
|
-
}
|
190
|
-
ngOnInit() {
|
191
|
-
this.updateWrapperClasses();
|
192
|
-
if (this.coreLayoutConfigService.config.showNotificationsButton) {
|
193
|
-
this.setupNotifications();
|
194
|
-
}
|
195
|
-
if (this.coreLayoutConfigService.config.showUserMenu) {
|
196
|
-
this.showUserMenu = true;
|
197
|
-
}
|
198
|
-
}
|
199
|
-
ngOnChanges(changes) {
|
200
|
-
if (!!changes['style'].currentValue) {
|
201
|
-
this.updateWrapperClasses();
|
202
|
-
}
|
203
|
-
}
|
204
|
-
switchTheme() {
|
205
|
-
const isDarkMode = this.nextThemeIcon === 'moon';
|
206
|
-
this.nextThemeIcon = isDarkMode ? 'sun' : 'moon';
|
207
|
-
this.nextThemeColor = isDarkMode ? 'white' : 'black';
|
208
|
-
this.layoutService.toggleDarkMode(isDarkMode);
|
209
|
-
}
|
210
|
-
// TODO: implement.
|
211
|
-
switchLanguage() {
|
212
|
-
const currentLang = this.translocoService.getActiveLang();
|
213
|
-
this.translocoService.setActiveLang(currentLang === 'en' ? 'pt' : 'en');
|
214
|
-
}
|
215
|
-
openNotifications() {
|
216
|
-
this.updateNotificationsIcon();
|
217
|
-
}
|
218
|
-
setupNotifications() {
|
219
|
-
this.showNotifications = true;
|
220
|
-
}
|
221
|
-
updateNotificationsIcon() {
|
222
|
-
this.currentNotificationsIcon = this.currentNotificationsIcon === 'bell' ? 'bell-ringing' : 'bell';
|
223
|
-
this.hasNewNotifications = !this.hasNewNotifications;
|
224
|
-
}
|
225
|
-
updateWrapperClasses() {
|
226
|
-
this.wrapperClasses = `${this.baseWrapperClasses} navbar-${this.style}`;
|
227
|
-
}
|
228
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: HeaderComponent, deps: [{ token: i1$1.UpdCoreLayoutConfigService }, { token: i1$1.LayoutService }, { token: i1.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
|
229
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: HeaderComponent, selector: "upd-header", inputs: { style: "style", showSearchBar: "showSearchBar" }, host: { properties: { "class": "this.wrapperClasses" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"container-xl\">\n <button class=\"navbar-toggler\" type=\"button\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n <div class=\"navbar-nav flex-row order-md-last\">\n <div class=\"d-none d-md-flex me-3\">\n <div class=\"nav-item\">\n <upd-link [isNavigation]=\"true\" [customClasses]=\"['px-0']\" (clicked)=\"switchTheme()\">\n <upd-icon [tablerIcon]=\"nextThemeIcon\"></upd-icon>\n </upd-link>\n </div>\n <div *ngIf=\"showLanguageSwitcher\" class=\"nav-item\">\n <upd-link [isNavigation]=\"true\" [customClasses]=\"['px-0']\" (clicked)=\"switchLanguage()\">\n <upd-icon tablerIcon=\"flag\"></upd-icon>\n </upd-link>\n </div>\n <div *ngIf=\"showNotifications\" class=\"nav-item dropdown d-none d-md-flex\">\n <upd-link [isNavigation]=\"true\" [customClasses]=\"['px-0']\" (clicked)=\"openNotifications()\">\n <upd-icon [tablerIcon]=\"currentNotificationsIcon\"></upd-icon>\n <span *ngIf=\"hasNewNotifications\" class=\"badge bg-red\"></span>\n </upd-link>\n <div class=\"dropdown-menu dropdown-menu-arrow dropdown-menu-end dropdown-menu-card\">\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">Last updates</h3>\n </div>\n <div class=\"list-group list-group-flush list-group-hoverable\">\n <div class=\"list-group-item\">\n <div class=\"row align-items-center\">\n <div class=\"col-auto\"><span\n class=\"status-dot status-dot-animated bg-red d-block\"></span></div>\n <div class=\"col text-truncate\">\n <a href=\"#\" class=\"text-body d-block\">Example 1</a>\n <div class=\"d-block text-muted text-truncate mt-n1\">\n Change deprecated html tags to text decoration classes (#29604)\n </div>\n </div>\n <div class=\"col-auto\">\n <a href=\"#\" class=\"list-group-item-actions\">\n <!-- Download SVG icon from http://tabler-icons.io/i/star -->\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon text-muted\"\n width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" stroke-width=\"2\"\n stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path\n d=\"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z\"/>\n </svg>\n </a>\n </div>\n </div>\n </div>\n <div class=\"list-group-item\">\n <div class=\"row align-items-center\">\n <div class=\"col-auto\"><span class=\"status-dot d-block\"></span></div>\n <div class=\"col text-truncate\">\n <a href=\"#\" class=\"text-body d-block\">Example 2</a>\n <div class=\"d-block text-muted text-truncate mt-n1\">\n justify-content:between \u21D2 justify-content:space-between (#29734)\n </div>\n </div>\n <div class=\"col-auto\">\n <a href=\"#\" class=\"list-group-item-actions show\">\n <!-- Download SVG icon from http://tabler-icons.io/i/star -->\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon text-yellow\"\n width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" stroke-width=\"2\"\n stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path\n d=\"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z\"/>\n </svg>\n </a>\n </div>\n </div>\n </div>\n <div class=\"list-group-item\">\n <div class=\"row align-items-center\">\n <div class=\"col-auto\"><span class=\"status-dot d-block\"></span></div>\n <div class=\"col text-truncate\">\n <a href=\"#\" class=\"text-body d-block\">Example 3</a>\n <div class=\"d-block text-muted text-truncate mt-n1\">\n Update change-version.js (#29736)\n </div>\n </div>\n <div class=\"col-auto\">\n <a href=\"#\" class=\"list-group-item-actions\">\n <!-- Download SVG icon from http://tabler-icons.io/i/star -->\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon text-muted\"\n width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" stroke-width=\"2\"\n stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path\n d=\"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z\"/>\n </svg>\n </a>\n </div>\n </div>\n </div>\n <div class=\"list-group-item\">\n <div class=\"row align-items-center\">\n <div class=\"col-auto\"><span\n class=\"status-dot status-dot-animated bg-green d-block\"></span></div>\n <div class=\"col text-truncate\">\n <a href=\"#\" class=\"text-body d-block\">Example 4</a>\n <div class=\"d-block text-muted text-truncate mt-n1\">\n Regenerate package-lock.json (#29730)\n </div>\n </div>\n <div class=\"col-auto\">\n <a href=\"#\" class=\"list-group-item-actions\">\n <!-- Download SVG icon from http://tabler-icons.io/i/star -->\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon text-muted\"\n width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" stroke-width=\"2\"\n stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path\n d=\"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z\"/>\n </svg>\n </a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"showUserMenu\" class=\"nav-item dropdown\">\n <a href=\"#\" class=\"nav-link d-flex lh-1 text-reset p-0\" data-bs-toggle=\"dropdown\"\n aria-label=\"Open user menu\">\n <!--<span class=\"avatar avatar-sm\" style=\"background-image: url(./static/avatars/000m.jpg)\"></span>-->\n <span class=\"avatar avatar-sm\"></span>\n <div class=\"d-none d-xl-block ps-2\">\n <div>Eros Stein</div>\n <div class=\"mt-1 small text-muted\">Administrator</div>\n </div>\n </a>\n <div class=\"dropdown-menu dropdown-menu-end dropdown-menu-arrow\">\n <a href=\"#\" class=\"dropdown-item\">Status</a>\n <a href=\"./profile.html\" class=\"dropdown-item\">Profile</a>\n <a href=\"#\" class=\"dropdown-item\">Feedback</a>\n <div class=\"dropdown-divider\"></div>\n <a href=\"./settings.html\" class=\"dropdown-item\">Settings</a>\n <a href=\"./sign-in.html\" class=\"dropdown-item\">Logout</a>\n </div>\n </div>\n </div>\n <div *ngIf=\"showSearchBar\" class=\"collapse navbar-collapse\">\n <div>\n <form autocomplete=\"off\" novalidate>\n <div class=\"input-icon\">\n <span class=\"input-icon-addon\">\n <upd-icon tablerIcon=\"search\"></upd-icon>\n </span>\n <input type=\"text\" value=\"\" class=\"form-control\" placeholder=\"Search\u2026\">\n </div>\n </form>\n </div>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.IconComponent, selector: "upd-icon", inputs: ["model", "wrapperClasses", "color", "removeDefaultClasses", "customClasses", "tablerIcon", "heroIcon", "heroIconSize", "heroIconType"] }, { kind: "component", type: i5.LinkComponent, selector: "upd-link", inputs: ["href", "target", "customClasses", "isNavigation"], outputs: ["clicked"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
230
|
-
}
|
231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: HeaderComponent, decorators: [{
|
232
|
-
type: Component,
|
233
|
-
args: [{ selector: 'upd-header', encapsulation: ViewEncapsulation.None, template: "<div class=\"container-xl\">\n <button class=\"navbar-toggler\" type=\"button\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n <div class=\"navbar-nav flex-row order-md-last\">\n <div class=\"d-none d-md-flex me-3\">\n <div class=\"nav-item\">\n <upd-link [isNavigation]=\"true\" [customClasses]=\"['px-0']\" (clicked)=\"switchTheme()\">\n <upd-icon [tablerIcon]=\"nextThemeIcon\"></upd-icon>\n </upd-link>\n </div>\n <div *ngIf=\"showLanguageSwitcher\" class=\"nav-item\">\n <upd-link [isNavigation]=\"true\" [customClasses]=\"['px-0']\" (clicked)=\"switchLanguage()\">\n <upd-icon tablerIcon=\"flag\"></upd-icon>\n </upd-link>\n </div>\n <div *ngIf=\"showNotifications\" class=\"nav-item dropdown d-none d-md-flex\">\n <upd-link [isNavigation]=\"true\" [customClasses]=\"['px-0']\" (clicked)=\"openNotifications()\">\n <upd-icon [tablerIcon]=\"currentNotificationsIcon\"></upd-icon>\n <span *ngIf=\"hasNewNotifications\" class=\"badge bg-red\"></span>\n </upd-link>\n <div class=\"dropdown-menu dropdown-menu-arrow dropdown-menu-end dropdown-menu-card\">\n <div class=\"card\">\n <div class=\"card-header\">\n <h3 class=\"card-title\">Last updates</h3>\n </div>\n <div class=\"list-group list-group-flush list-group-hoverable\">\n <div class=\"list-group-item\">\n <div class=\"row align-items-center\">\n <div class=\"col-auto\"><span\n class=\"status-dot status-dot-animated bg-red d-block\"></span></div>\n <div class=\"col text-truncate\">\n <a href=\"#\" class=\"text-body d-block\">Example 1</a>\n <div class=\"d-block text-muted text-truncate mt-n1\">\n Change deprecated html tags to text decoration classes (#29604)\n </div>\n </div>\n <div class=\"col-auto\">\n <a href=\"#\" class=\"list-group-item-actions\">\n <!-- Download SVG icon from http://tabler-icons.io/i/star -->\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon text-muted\"\n width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" stroke-width=\"2\"\n stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path\n d=\"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z\"/>\n </svg>\n </a>\n </div>\n </div>\n </div>\n <div class=\"list-group-item\">\n <div class=\"row align-items-center\">\n <div class=\"col-auto\"><span class=\"status-dot d-block\"></span></div>\n <div class=\"col text-truncate\">\n <a href=\"#\" class=\"text-body d-block\">Example 2</a>\n <div class=\"d-block text-muted text-truncate mt-n1\">\n justify-content:between \u21D2 justify-content:space-between (#29734)\n </div>\n </div>\n <div class=\"col-auto\">\n <a href=\"#\" class=\"list-group-item-actions show\">\n <!-- Download SVG icon from http://tabler-icons.io/i/star -->\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon text-yellow\"\n width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" stroke-width=\"2\"\n stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path\n d=\"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z\"/>\n </svg>\n </a>\n </div>\n </div>\n </div>\n <div class=\"list-group-item\">\n <div class=\"row align-items-center\">\n <div class=\"col-auto\"><span class=\"status-dot d-block\"></span></div>\n <div class=\"col text-truncate\">\n <a href=\"#\" class=\"text-body d-block\">Example 3</a>\n <div class=\"d-block text-muted text-truncate mt-n1\">\n Update change-version.js (#29736)\n </div>\n </div>\n <div class=\"col-auto\">\n <a href=\"#\" class=\"list-group-item-actions\">\n <!-- Download SVG icon from http://tabler-icons.io/i/star -->\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon text-muted\"\n width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" stroke-width=\"2\"\n stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path\n d=\"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z\"/>\n </svg>\n </a>\n </div>\n </div>\n </div>\n <div class=\"list-group-item\">\n <div class=\"row align-items-center\">\n <div class=\"col-auto\"><span\n class=\"status-dot status-dot-animated bg-green d-block\"></span></div>\n <div class=\"col text-truncate\">\n <a href=\"#\" class=\"text-body d-block\">Example 4</a>\n <div class=\"d-block text-muted text-truncate mt-n1\">\n Regenerate package-lock.json (#29730)\n </div>\n </div>\n <div class=\"col-auto\">\n <a href=\"#\" class=\"list-group-item-actions\">\n <!-- Download SVG icon from http://tabler-icons.io/i/star -->\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon text-muted\"\n width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" stroke-width=\"2\"\n stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path\n d=\"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z\"/>\n </svg>\n </a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"showUserMenu\" class=\"nav-item dropdown\">\n <a href=\"#\" class=\"nav-link d-flex lh-1 text-reset p-0\" data-bs-toggle=\"dropdown\"\n aria-label=\"Open user menu\">\n <!--<span class=\"avatar avatar-sm\" style=\"background-image: url(./static/avatars/000m.jpg)\"></span>-->\n <span class=\"avatar avatar-sm\"></span>\n <div class=\"d-none d-xl-block ps-2\">\n <div>Eros Stein</div>\n <div class=\"mt-1 small text-muted\">Administrator</div>\n </div>\n </a>\n <div class=\"dropdown-menu dropdown-menu-end dropdown-menu-arrow\">\n <a href=\"#\" class=\"dropdown-item\">Status</a>\n <a href=\"./profile.html\" class=\"dropdown-item\">Profile</a>\n <a href=\"#\" class=\"dropdown-item\">Feedback</a>\n <div class=\"dropdown-divider\"></div>\n <a href=\"./settings.html\" class=\"dropdown-item\">Settings</a>\n <a href=\"./sign-in.html\" class=\"dropdown-item\">Logout</a>\n </div>\n </div>\n </div>\n <div *ngIf=\"showSearchBar\" class=\"collapse navbar-collapse\">\n <div>\n <form autocomplete=\"off\" novalidate>\n <div class=\"input-icon\">\n <span class=\"input-icon-addon\">\n <upd-icon tablerIcon=\"search\"></upd-icon>\n </span>\n <input type=\"text\" value=\"\" class=\"form-control\" placeholder=\"Search\u2026\">\n </div>\n </form>\n </div>\n </div>\n</div>\n" }]
|
234
|
-
}], ctorParameters: function () { return [{ type: i1$1.UpdCoreLayoutConfigService }, { type: i1$1.LayoutService }, { type: i1.TranslocoService }]; }, propDecorators: { wrapperClasses: [{
|
235
|
-
type: HostBinding,
|
236
|
-
args: ['class']
|
237
|
-
}], style: [{
|
238
|
-
type: Input
|
239
|
-
}], showSearchBar: [{
|
240
|
-
type: Input
|
241
|
-
}] } });
|
242
|
-
|
243
|
-
class SidebarComponent extends BaseComponent {
|
244
|
-
constructor(router) {
|
245
|
-
super();
|
246
|
-
this.router = router;
|
247
|
-
this.wrapperClasses = 'navbar navbar-vertical navbar-expand-lg';
|
248
|
-
this.theme = 'dark';
|
249
|
-
this.menuItems = [];
|
250
|
-
}
|
251
|
-
ngOnInit() {
|
252
|
-
// TODO: remove demo code.
|
253
|
-
const sampleCardsItem = new RouteDataModel({
|
254
|
-
title: 'Sample cards',
|
255
|
-
icon: { tablerIcon: 'home' }
|
256
|
-
});
|
257
|
-
const cardActionsItem = new RouteDataModel({
|
258
|
-
title: 'Card actions',
|
259
|
-
icon: { tablerIcon: 'folder' }
|
260
|
-
});
|
261
|
-
const emptyPageItem = new RouteDataModel({
|
262
|
-
title: 'Empty page',
|
263
|
-
icon: { tablerIcon: 'home' }
|
264
|
-
});
|
265
|
-
const cardsItem = new RouteDataModel({
|
266
|
-
title: 'Cards',
|
267
|
-
icon: { tablerIcon: 'user' },
|
268
|
-
children: [
|
269
|
-
sampleCardsItem,
|
270
|
-
cardActionsItem
|
271
|
-
]
|
272
|
-
});
|
273
|
-
const interfaceItem = new RouteDataModel({
|
274
|
-
title: 'Interface',
|
275
|
-
icon: { tablerIcon: 'device-desktop' },
|
276
|
-
children: [
|
277
|
-
emptyPageItem,
|
278
|
-
cardsItem
|
279
|
-
]
|
280
|
-
});
|
281
|
-
sampleCardsItem.parent = cardsItem;
|
282
|
-
cardActionsItem.parent = cardsItem;
|
283
|
-
emptyPageItem.parent = interfaceItem;
|
284
|
-
cardsItem.parent = interfaceItem;
|
285
|
-
this.menuItems = [
|
286
|
-
new RouteDataModel({
|
287
|
-
title: 'Home',
|
288
|
-
icon: { tablerIcon: 'home' }
|
289
|
-
}),
|
290
|
-
new RouteDataModel({
|
291
|
-
title: 'Archives',
|
292
|
-
icon: { tablerIcon: 'folder' }
|
293
|
-
}),
|
294
|
-
interfaceItem,
|
295
|
-
new RouteDataModel({
|
296
|
-
title: 'Library',
|
297
|
-
icon: { tablerIcon: 'building' }
|
298
|
-
})
|
299
|
-
];
|
300
|
-
// END demo code
|
301
|
-
const routerSub = this.router.events.pipe(filter(event => event instanceof NavigationStart)).subscribe(event => this.updateActiveRoute(event.url));
|
302
|
-
this.updateActiveRoute(this.router.url);
|
303
|
-
this.addSubscriptions(routerSub);
|
304
|
-
}
|
305
|
-
onMenuItemClick(item) {
|
306
|
-
this.resetMenuState(this.menuItems);
|
307
|
-
item.isActive = true;
|
308
|
-
this.updateParents(item);
|
309
|
-
if (!!item.clickFunction) {
|
310
|
-
item.clickFunction();
|
311
|
-
return;
|
312
|
-
}
|
313
|
-
if ((item.children?.length || 0) > 0) {
|
314
|
-
return;
|
315
|
-
}
|
316
|
-
this.router.navigate(item.getFullPath()).then();
|
317
|
-
}
|
318
|
-
hasChildren(item) {
|
319
|
-
return (item.children?.length || 0) > 0;
|
320
|
-
}
|
321
|
-
findActiveNode(item, fullPath) {
|
322
|
-
if (item.fullPath === fullPath) {
|
323
|
-
return item;
|
324
|
-
}
|
325
|
-
else if (item.children.length > 0) {
|
326
|
-
let result;
|
327
|
-
for (let i = 0; !result && i < item.children.length; i++) {
|
328
|
-
result = this.findActiveNode(item.children[i], fullPath);
|
329
|
-
}
|
330
|
-
return result;
|
331
|
-
}
|
332
|
-
return undefined;
|
333
|
-
}
|
334
|
-
updateActiveRoute(newPath) {
|
335
|
-
this.resetMenuState(this.menuItems);
|
336
|
-
let item;
|
337
|
-
for (const mi of this.menuItems) {
|
338
|
-
item = this.findActiveNode(mi, newPath);
|
339
|
-
if (!!item) {
|
340
|
-
break;
|
341
|
-
}
|
342
|
-
}
|
343
|
-
while (!!item) {
|
344
|
-
item.isActive = true;
|
345
|
-
item = item.parent;
|
346
|
-
}
|
347
|
-
}
|
348
|
-
resetMenuState(items) {
|
349
|
-
items.forEach(i => {
|
350
|
-
i.isActive = false;
|
351
|
-
if (i.children.length > 0) {
|
352
|
-
this.resetMenuState(i.children);
|
353
|
-
}
|
354
|
-
});
|
355
|
-
}
|
356
|
-
updateParents(menuItem) {
|
357
|
-
let item = menuItem;
|
358
|
-
while (!!item) {
|
359
|
-
item.isActive = true;
|
360
|
-
item = item.parent;
|
361
|
-
}
|
362
|
-
}
|
363
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SidebarComponent, deps: [{ token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
364
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: SidebarComponent, selector: "upd-sidebar", host: { properties: { "class": "this.wrapperClasses", "attr.data-bs-theme": "this.theme" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"container-fluid\">\n <button class=\"navbar-toggler\" type=\"button\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n <h1 class=\"navbar-brand navbar-brand-autodark\">\n <a href=\".\">\n <img width=\"110\" height=\"32\" class=\"navbar-brand-image upd-brand-logo\"/>\n </a>\n </h1>\n <div class=\"collapse navbar-collapse\">\n <ul class=\"navbar-nav pt-lg-3\">\n <li *ngFor=\"let item of menuItems\" class=\"nav-item\" [class.dropdown]=\"hasChildren(item)\"\n [class.active]=\"item.isActive\">\n <ng-container [ngTemplateOutlet]=\"itemTpl\" [ngTemplateOutletContext]=\"{menuItem: item}\">\n </ng-container>\n </li>\n </ul>\n </div>\n</div>\n\n<ng-template #itemTpl let-item=\"menuItem\">\n <upd-link [isNavigation]=\"true\" (clicked)=\"onMenuItemClick(item)\"\n [customClasses]=\"[hasChildren(item) ? 'dropdown-toggle' : '', item.isActive ? 'show' : '']\">\n <span class=\"nav-link-icon d-md-none d-lg-inline-block\">\n <upd-icon [model]=\"item.icon\"></upd-icon>\n </span>\n <span class=\"nav-link-title\">{{item.title}}</span>\n </upd-link>\n <ng-container *ngIf=\"hasChildren(item)\" [ngTemplateOutlet]=\"childrenTpl\" [ngTemplateOutletContext]=\"{menuItem: item}\">\n </ng-container>\n</ng-template>\n\n<ng-template #childrenTpl let-item=\"menuItem\">\n <div class=\"dropdown-menu\" [class.show]=\"item.isActive\">\n <div class=\"dropdown-menu-columns\">\n <div class=\"dropdown-menu-column\">\n <ng-container *ngFor=\"let child of item.children\">\n <upd-link *ngIf=\"!hasChildren(child); else grandchildTpl\" (clicked)=\"onMenuItemClick(child)\"\n [customClasses]=\"['dropdown-item', child.isActive ? 'active' : '']\">\n {{child.title}}\n </upd-link>\n <ng-template #grandchildTpl>\n <div class=\"dropend\">\n <upd-link (clicked)=\"onMenuItemClick(child)\"\n [customClasses]=\"['dropdown-item', 'dropdown-toggle', child.isActive ? 'active' : '']\">\n {{child.title}}\n </upd-link>\n <div class=\"dropdown-menu\" [class.show]=\"child.isActive\">\n <ng-container *ngFor=\"let grandchild of child.children\">\n <upd-link (clicked)=\"onMenuItemClick(grandchild)\"\n [customClasses]=\"['dropdown-item', grandchild.isActive ? 'active' : '']\">\n {{grandchild.title}}\n </upd-link>\n </ng-container>\n </div>\n </div>\n </ng-template>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i4.IconComponent, selector: "upd-icon", inputs: ["model", "wrapperClasses", "color", "removeDefaultClasses", "customClasses", "tablerIcon", "heroIcon", "heroIconSize", "heroIconType"] }, { kind: "component", type: i5.LinkComponent, selector: "upd-link", inputs: ["href", "target", "customClasses", "isNavigation"], outputs: ["clicked"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
365
|
-
}
|
366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: SidebarComponent, decorators: [{
|
367
|
-
type: Component,
|
368
|
-
args: [{ selector: 'upd-sidebar', encapsulation: ViewEncapsulation.None, template: "<div class=\"container-fluid\">\n <button class=\"navbar-toggler\" type=\"button\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n <h1 class=\"navbar-brand navbar-brand-autodark\">\n <a href=\".\">\n <img width=\"110\" height=\"32\" class=\"navbar-brand-image upd-brand-logo\"/>\n </a>\n </h1>\n <div class=\"collapse navbar-collapse\">\n <ul class=\"navbar-nav pt-lg-3\">\n <li *ngFor=\"let item of menuItems\" class=\"nav-item\" [class.dropdown]=\"hasChildren(item)\"\n [class.active]=\"item.isActive\">\n <ng-container [ngTemplateOutlet]=\"itemTpl\" [ngTemplateOutletContext]=\"{menuItem: item}\">\n </ng-container>\n </li>\n </ul>\n </div>\n</div>\n\n<ng-template #itemTpl let-item=\"menuItem\">\n <upd-link [isNavigation]=\"true\" (clicked)=\"onMenuItemClick(item)\"\n [customClasses]=\"[hasChildren(item) ? 'dropdown-toggle' : '', item.isActive ? 'show' : '']\">\n <span class=\"nav-link-icon d-md-none d-lg-inline-block\">\n <upd-icon [model]=\"item.icon\"></upd-icon>\n </span>\n <span class=\"nav-link-title\">{{item.title}}</span>\n </upd-link>\n <ng-container *ngIf=\"hasChildren(item)\" [ngTemplateOutlet]=\"childrenTpl\" [ngTemplateOutletContext]=\"{menuItem: item}\">\n </ng-container>\n</ng-template>\n\n<ng-template #childrenTpl let-item=\"menuItem\">\n <div class=\"dropdown-menu\" [class.show]=\"item.isActive\">\n <div class=\"dropdown-menu-columns\">\n <div class=\"dropdown-menu-column\">\n <ng-container *ngFor=\"let child of item.children\">\n <upd-link *ngIf=\"!hasChildren(child); else grandchildTpl\" (clicked)=\"onMenuItemClick(child)\"\n [customClasses]=\"['dropdown-item', child.isActive ? 'active' : '']\">\n {{child.title}}\n </upd-link>\n <ng-template #grandchildTpl>\n <div class=\"dropend\">\n <upd-link (clicked)=\"onMenuItemClick(child)\"\n [customClasses]=\"['dropdown-item', 'dropdown-toggle', child.isActive ? 'active' : '']\">\n {{child.title}}\n </upd-link>\n <div class=\"dropdown-menu\" [class.show]=\"child.isActive\">\n <ng-container *ngFor=\"let grandchild of child.children\">\n <upd-link (clicked)=\"onMenuItemClick(grandchild)\"\n [customClasses]=\"['dropdown-item', grandchild.isActive ? 'active' : '']\">\n {{grandchild.title}}\n </upd-link>\n </ng-container>\n </div>\n </div>\n </ng-template>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-template>\n" }]
|
369
|
-
}], ctorParameters: function () { return [{ type: i1$2.Router }]; }, propDecorators: { wrapperClasses: [{
|
370
|
-
type: HostBinding,
|
371
|
-
args: ['class']
|
372
|
-
}], theme: [{
|
373
|
-
type: HostBinding,
|
374
|
-
args: ['attr.data-bs-theme']
|
375
|
-
}] } });
|
376
|
-
|
377
|
-
class PageHeaderComponent {
|
378
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: PageHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
379
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: PageHeaderComponent, selector: "upd-page-header", inputs: { model: "model" }, ngImport: i0, template: "<div class=\"page-header d-print-none\">\n <div class=\"container-xl\">\n <div class=\"row g-2 align-items-center\">\n <div class=\"col\">\n <div class=\"page-pretitle\">\n {{model.titleHeader}}\n </div>\n <h2 class=\"page-title\">\n {{model.title}}\n </h2>\n </div>\n <div *ngIf=\"(model.actionButtons?.length || 0) > 0\" class=\"col-auto ms-auto d-print-none\">\n <div class=\"btn-list\">\n <upd-button *ngFor=\"let btn of model.actionButtons\" [model]=\"btn!\"></upd-button>\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.ButtonComponent, selector: "upd-button", inputs: ["text", "model", "colorStyle", "brandColorStyle", "customClasses", "isActive", "isDisabled", "isOutline", "isGhost", "isSquare", "isPill", "isIcon", "isLoading", "isList", "isFloating", "isAction", "isNavigationLink", "shouldIgnoreBtnClass"], outputs: ["clicked"] }] }); }
|
380
|
-
}
|
381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: PageHeaderComponent, decorators: [{
|
382
|
-
type: Component,
|
383
|
-
args: [{ selector: 'upd-page-header', template: "<div class=\"page-header d-print-none\">\n <div class=\"container-xl\">\n <div class=\"row g-2 align-items-center\">\n <div class=\"col\">\n <div class=\"page-pretitle\">\n {{model.titleHeader}}\n </div>\n <h2 class=\"page-title\">\n {{model.title}}\n </h2>\n </div>\n <div *ngIf=\"(model.actionButtons?.length || 0) > 0\" class=\"col-auto ms-auto d-print-none\">\n <div class=\"btn-list\">\n <upd-button *ngFor=\"let btn of model.actionButtons\" [model]=\"btn!\"></upd-button>\n </div>\n </div>\n </div>\n </div>\n</div>\n" }]
|
384
|
-
}], propDecorators: { model: [{
|
385
|
-
type: Input
|
386
|
-
}] } });
|
387
|
-
|
388
|
-
class VerticalSidebarLayoutComponent extends BaseComponent {
|
389
|
-
constructor(changeDetectorRef, layoutService) {
|
390
|
-
super();
|
391
|
-
this.changeDetectorRef = changeDetectorRef;
|
392
|
-
this.layoutService = layoutService;
|
393
|
-
this.showPageHeader = false;
|
394
|
-
}
|
395
|
-
ngOnInit() {
|
396
|
-
const pHeaderSub = this.layoutService.onPageHeaderChange.subscribe(ph => {
|
397
|
-
this.showPageHeader = !!ph;
|
398
|
-
this.pageHeader = ph;
|
399
|
-
this.changeDetectorRef.detectChanges();
|
400
|
-
});
|
401
|
-
this.addSubscriptions(pHeaderSub);
|
402
|
-
}
|
403
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: VerticalSidebarLayoutComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.LayoutService }], target: i0.ɵɵFactoryTarget.Component }); }
|
404
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: VerticalSidebarLayoutComponent, selector: "upd-vertical-sidebar-layout", usesInheritance: true, ngImport: i0, template: "<div class=\"page\">\n <upd-sidebar></upd-sidebar>\n <upd-header></upd-header>\n\n <div class=\"page-wrapper\">\n <upd-page-header *ngIf=\"showPageHeader\" [model]=\"pageHeader!\"></upd-page-header>\n <div class=\"page-body\">\n <div class=\"container-xl\">\n <router-outlet></router-outlet>\n </div>\n </div>\n <upd-footer></upd-footer>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: FooterComponent, selector: "upd-footer" }, { kind: "component", type: HeaderComponent, selector: "upd-header", inputs: ["style", "showSearchBar"] }, { kind: "component", type: SidebarComponent, selector: "upd-sidebar" }, { kind: "component", type: PageHeaderComponent, selector: "upd-page-header", inputs: ["model"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
405
|
-
}
|
406
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: VerticalSidebarLayoutComponent, decorators: [{
|
407
|
-
type: Component,
|
408
|
-
args: [{ selector: 'upd-vertical-sidebar-layout', encapsulation: ViewEncapsulation.None, template: "<div class=\"page\">\n <upd-sidebar></upd-sidebar>\n <upd-header></upd-header>\n\n <div class=\"page-wrapper\">\n <upd-page-header *ngIf=\"showPageHeader\" [model]=\"pageHeader!\"></upd-page-header>\n <div class=\"page-body\">\n <div class=\"container-xl\">\n <router-outlet></router-outlet>\n </div>\n </div>\n <upd-footer></upd-footer>\n </div>\n</div>\n" }]
|
409
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.LayoutService }]; } });
|
410
|
-
|
411
|
-
class VerticalSidebarLayoutModule {
|
412
|
-
constructor(translocoService) {
|
413
|
-
translocoService.setTranslation(en$1, 'en');
|
414
|
-
translocoService.setTranslation(pt$1, 'pt');
|
415
|
-
}
|
416
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: VerticalSidebarLayoutModule, deps: [{ token: i1.TranslocoService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
417
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.11", ngImport: i0, type: VerticalSidebarLayoutModule, declarations: [VerticalSidebarLayoutComponent,
|
418
|
-
FooterComponent,
|
419
|
-
HeaderComponent,
|
420
|
-
SidebarComponent,
|
421
|
-
PageHeaderComponent], imports: [CommonModule,
|
422
|
-
RouterModule,
|
423
|
-
TranslocoModule,
|
424
|
-
UpdIconsModule,
|
425
|
-
UpdCoreLayoutModule,
|
426
|
-
UpdButtonModule,
|
427
|
-
UpdLinkModule], exports: [VerticalSidebarLayoutComponent,
|
428
|
-
FooterComponent,
|
429
|
-
HeaderComponent,
|
430
|
-
SidebarComponent,
|
431
|
-
PageHeaderComponent] }); }
|
432
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: VerticalSidebarLayoutModule, providers: [
|
433
|
-
FooterCopyrightDirective
|
434
|
-
], imports: [CommonModule,
|
435
|
-
RouterModule,
|
436
|
-
TranslocoModule,
|
437
|
-
UpdIconsModule,
|
438
|
-
UpdCoreLayoutModule,
|
439
|
-
UpdButtonModule,
|
440
|
-
UpdLinkModule] }); }
|
441
|
-
}
|
442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: VerticalSidebarLayoutModule, decorators: [{
|
443
|
-
type: NgModule,
|
444
|
-
args: [{
|
445
|
-
imports: [
|
446
|
-
CommonModule,
|
447
|
-
RouterModule,
|
448
|
-
TranslocoModule,
|
449
|
-
UpdIconsModule,
|
450
|
-
UpdCoreLayoutModule,
|
451
|
-
UpdButtonModule,
|
452
|
-
UpdLinkModule
|
453
|
-
],
|
454
|
-
declarations: [
|
455
|
-
VerticalSidebarLayoutComponent,
|
456
|
-
FooterComponent,
|
457
|
-
HeaderComponent,
|
458
|
-
SidebarComponent,
|
459
|
-
PageHeaderComponent
|
460
|
-
],
|
461
|
-
exports: [
|
462
|
-
VerticalSidebarLayoutComponent,
|
463
|
-
FooterComponent,
|
464
|
-
HeaderComponent,
|
465
|
-
SidebarComponent,
|
466
|
-
PageHeaderComponent
|
467
|
-
],
|
468
|
-
providers: [
|
469
|
-
FooterCopyrightDirective
|
470
|
-
]
|
471
|
-
}]
|
472
|
-
}], ctorParameters: function () { return [{ type: i1.TranslocoService }]; } });
|
473
|
-
|
474
|
-
class LoggedOutComponent {
|
475
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: LoggedOutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
476
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: LoggedOutComponent, selector: "upd-logged-out", ngImport: i0, template: "<p>logged-out works!</p>\n", styles: [""] }); }
|
477
|
-
}
|
478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: LoggedOutComponent, decorators: [{
|
479
|
-
type: Component,
|
480
|
-
args: [{ selector: 'upd-logged-out', template: "<p>logged-out works!</p>\n" }]
|
481
|
-
}] });
|
482
|
-
|
483
|
-
class LoginComponent {
|
484
|
-
constructor() {
|
485
|
-
this.layout = 'centered-box';
|
486
|
-
this.username = '';
|
487
|
-
this.password = '';
|
488
|
-
this.authService = inject(AuthService);
|
489
|
-
this.layoutService = inject(LayoutService);
|
490
|
-
this.layoutService.addBodyClasses('border-top-wide', 'border-primary', 'd-flex', 'flex-column');
|
491
|
-
}
|
492
|
-
login() {
|
493
|
-
this.authService.login(this.username, this.password).subscribe();
|
494
|
-
}
|
495
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: LoginComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
496
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: LoginComponent, selector: "upd-login", ngImport: i0, template: "<div class=\"page page-center\">\n <ng-container [ngSwitch]=\"layout\">\n <div *ngSwitchCase=\"'centered-box'\" class=\"container container-tight py-4\">\n <ng-container [ngTemplateOutlet]=\"loginCard\"></ng-container>\n </div>\n <div *ngSwitchCase=\"'box-with-picture'\" class=\"container container-normal py-4\">\n <div class=\"row align-items-center g-4\">\n <div class=\"col-lg\">\n <div class=\"container-tight\">\n <ng-container [ngTemplateOutlet]=\"loginCard\"></ng-container>\n </div>\n </div>\n <div class=\"col-lg d-none d-lg-block\">\n <img height=\"300\" class=\"d-block mx-auto upd-right-login-image\"/>\n </div>\n </div>\n </div>\n </ng-container>\n</div>\n\n<ng-template #loginCard>\n <div class=\"text-center mb-4\">\n <a href=\".\" class=\"navbar-brand navbar-brand-autodark\">\n <img height=\"36\" class=\"navbar-brand-image upd-brand-logo\"/>\n </a>\n </div>\n <div class=\"card card-md\">\n <div class=\"card-body\">\n <h2 class=\"h2 text-center mb-4\" i18n>Login to your account</h2>\n <form action=\"./\" method=\"get\" autocomplete=\"off\" novalidate>\n <div class=\"mb-3\">\n <label class=\"form-label\">Email address</label>\n <input type=\"email\" class=\"form-control\" name=\"username\" [(ngModel)]=\"username\">\n </div>\n <div class=\"mb-2\">\n <label class=\"form-label\">\n Password\n <span class=\"form-label-description\">\n <a href=\"./forgot-password.html\" i18n>I forgot my password</a>\n </span>\n </label>\n <div class=\"input-group input-group-flat\">\n <input type=\"password\" class=\"form-control\" name=\"password\" [(ngModel)]=\"password\">\n <span class=\"input-group-text\">\n <a href=\"#\" class=\"link-secondary\" title=\"Show password\" data-bs-toggle=\"tooltip\"><!-- Download SVG icon from http://tabler-icons.io/i/eye -->\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" stroke-width=\"2\"\n stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\"\n d=\"M0 0h24v24H0z\" fill=\"none\"/><circle cx=\"12\" cy=\"12\" r=\"2\"/><path\n d=\"M22 12c-2.667 4.667 -6 7 -10 7s-7.333 -2.333 -10 -7c2.667 -4.667 6 -7 10 -7s7.333 2.333 10 7\"/></svg>\n </a>\n </span>\n </div>\n </div>\n <div class=\"mb-2\">\n <label class=\"form-check\">\n <input type=\"checkbox\" class=\"form-check-input\"/>\n <span class=\"form-check-label\" i18n>Remember me on this device</span>\n </label>\n </div>\n <div class=\"form-footer\">\n <upd-button (clicked)=\"login()\" customClasses=\"w-100\">\n <span i18n>Sign in</span>\n </upd-button>\n </div>\n </form>\n </div>\n <div class=\"hr-text\" i18n>or</div>\n <div class=\"card-body\">\n <div class=\"row\">\n <div class=\"col\"><a href=\"#\" class=\"btn w-100\">\n <!-- Download SVG icon from http://tabler-icons.io/i/brand-github -->\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon text-github\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"\n stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path\n d=\"M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5\"/>\n </svg>\n Login with Github\n </a></div>\n <div class=\"col\"><a href=\"#\" class=\"btn w-100\">\n <!-- Download SVG icon from http://tabler-icons.io/i/brand-twitter -->\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon text-twitter\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"\n stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path\n d=\"M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z\"/>\n </svg>\n Login with Twitter\n </a></div>\n </div>\n </div>\n </div>\n <div class=\"text-center text-muted mt-3\">\n Don't have account yet? <a href=\"./sign-up.html\" tabindex=\"-1\" i18n>Sign up</a>\n </div>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i2$1.ButtonComponent, selector: "upd-button", inputs: ["text", "model", "colorStyle", "brandColorStyle", "customClasses", "isActive", "isDisabled", "isOutline", "isGhost", "isSquare", "isPill", "isIcon", "isLoading", "isList", "isFloating", "isAction", "isNavigationLink", "shouldIgnoreBtnClass"], outputs: ["clicked"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
497
|
-
}
|
498
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: LoginComponent, decorators: [{
|
499
|
-
type: Component,
|
500
|
-
args: [{ selector: 'upd-login', encapsulation: ViewEncapsulation.None, template: "<div class=\"page page-center\">\n <ng-container [ngSwitch]=\"layout\">\n <div *ngSwitchCase=\"'centered-box'\" class=\"container container-tight py-4\">\n <ng-container [ngTemplateOutlet]=\"loginCard\"></ng-container>\n </div>\n <div *ngSwitchCase=\"'box-with-picture'\" class=\"container container-normal py-4\">\n <div class=\"row align-items-center g-4\">\n <div class=\"col-lg\">\n <div class=\"container-tight\">\n <ng-container [ngTemplateOutlet]=\"loginCard\"></ng-container>\n </div>\n </div>\n <div class=\"col-lg d-none d-lg-block\">\n <img height=\"300\" class=\"d-block mx-auto upd-right-login-image\"/>\n </div>\n </div>\n </div>\n </ng-container>\n</div>\n\n<ng-template #loginCard>\n <div class=\"text-center mb-4\">\n <a href=\".\" class=\"navbar-brand navbar-brand-autodark\">\n <img height=\"36\" class=\"navbar-brand-image upd-brand-logo\"/>\n </a>\n </div>\n <div class=\"card card-md\">\n <div class=\"card-body\">\n <h2 class=\"h2 text-center mb-4\" i18n>Login to your account</h2>\n <form action=\"./\" method=\"get\" autocomplete=\"off\" novalidate>\n <div class=\"mb-3\">\n <label class=\"form-label\">Email address</label>\n <input type=\"email\" class=\"form-control\" name=\"username\" [(ngModel)]=\"username\">\n </div>\n <div class=\"mb-2\">\n <label class=\"form-label\">\n Password\n <span class=\"form-label-description\">\n <a href=\"./forgot-password.html\" i18n>I forgot my password</a>\n </span>\n </label>\n <div class=\"input-group input-group-flat\">\n <input type=\"password\" class=\"form-control\" name=\"password\" [(ngModel)]=\"password\">\n <span class=\"input-group-text\">\n <a href=\"#\" class=\"link-secondary\" title=\"Show password\" data-bs-toggle=\"tooltip\"><!-- Download SVG icon from http://tabler-icons.io/i/eye -->\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" stroke-width=\"2\"\n stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\"\n d=\"M0 0h24v24H0z\" fill=\"none\"/><circle cx=\"12\" cy=\"12\" r=\"2\"/><path\n d=\"M22 12c-2.667 4.667 -6 7 -10 7s-7.333 -2.333 -10 -7c2.667 -4.667 6 -7 10 -7s7.333 2.333 10 7\"/></svg>\n </a>\n </span>\n </div>\n </div>\n <div class=\"mb-2\">\n <label class=\"form-check\">\n <input type=\"checkbox\" class=\"form-check-input\"/>\n <span class=\"form-check-label\" i18n>Remember me on this device</span>\n </label>\n </div>\n <div class=\"form-footer\">\n <upd-button (clicked)=\"login()\" customClasses=\"w-100\">\n <span i18n>Sign in</span>\n </upd-button>\n </div>\n </form>\n </div>\n <div class=\"hr-text\" i18n>or</div>\n <div class=\"card-body\">\n <div class=\"row\">\n <div class=\"col\"><a href=\"#\" class=\"btn w-100\">\n <!-- Download SVG icon from http://tabler-icons.io/i/brand-github -->\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon text-github\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"\n stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path\n d=\"M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5\"/>\n </svg>\n Login with Github\n </a></div>\n <div class=\"col\"><a href=\"#\" class=\"btn w-100\">\n <!-- Download SVG icon from http://tabler-icons.io/i/brand-twitter -->\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon text-twitter\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"\n stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path\n d=\"M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z\"/>\n </svg>\n Login with Twitter\n </a></div>\n </div>\n </div>\n </div>\n <div class=\"text-center text-muted mt-3\">\n Don't have account yet? <a href=\"./sign-up.html\" tabindex=\"-1\" i18n>Sign up</a>\n </div>\n</ng-template>\n" }]
|
501
|
-
}], ctorParameters: function () { return []; } });
|
502
|
-
|
503
|
-
class OauthCallbackComponent {
|
504
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: OauthCallbackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
505
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: OauthCallbackComponent, selector: "upd-oauth-callback", ngImport: i0, template: "<p>oauth-callback works!</p>\n", styles: [""] }); }
|
506
|
-
}
|
507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: OauthCallbackComponent, decorators: [{
|
508
|
-
type: Component,
|
509
|
-
args: [{ selector: 'upd-oauth-callback', template: "<p>oauth-callback works!</p>\n" }]
|
510
|
-
}] });
|
511
|
-
|
512
|
-
/**
|
513
|
-
* Auth flow routes.
|
514
|
-
*/
|
515
|
-
const routes = [
|
516
|
-
{ path: 'oauth/callback', component: OauthCallbackComponent },
|
517
|
-
{ path: 'logged-out', component: LoggedOutComponent },
|
518
|
-
{ path: 'login', component: LoginComponent }
|
519
|
-
];
|
520
|
-
class AuthFlowRoutingModule {
|
521
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: AuthFlowRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
522
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.11", ngImport: i0, type: AuthFlowRoutingModule, imports: [i1$2.RouterModule], exports: [RouterModule] }); }
|
523
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: AuthFlowRoutingModule, imports: [RouterModule.forRoot(routes, { useHash: true }), RouterModule] }); }
|
524
|
-
}
|
525
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: AuthFlowRoutingModule, decorators: [{
|
526
|
-
type: NgModule,
|
527
|
-
args: [{
|
528
|
-
imports: [RouterModule.forRoot(routes, { useHash: true })],
|
529
|
-
exports: [RouterModule]
|
530
|
-
}]
|
531
|
-
}] });
|
532
|
-
|
533
|
-
class AuthFlowModule {
|
534
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: AuthFlowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
535
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.11", ngImport: i0, type: AuthFlowModule, declarations: [LoginComponent,
|
536
|
-
OauthCallbackComponent,
|
537
|
-
LoggedOutComponent], imports: [CommonModule,
|
538
|
-
AuthFlowRoutingModule,
|
539
|
-
UpdButtonModule,
|
540
|
-
FormsModule], exports: [LoginComponent,
|
541
|
-
OauthCallbackComponent,
|
542
|
-
LoggedOutComponent] }); }
|
543
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: AuthFlowModule, imports: [CommonModule,
|
544
|
-
AuthFlowRoutingModule,
|
545
|
-
UpdButtonModule,
|
546
|
-
FormsModule] }); }
|
547
|
-
}
|
548
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: AuthFlowModule, decorators: [{
|
549
|
-
type: NgModule,
|
550
|
-
args: [{
|
551
|
-
imports: [
|
552
|
-
CommonModule,
|
553
|
-
AuthFlowRoutingModule,
|
554
|
-
UpdButtonModule,
|
555
|
-
FormsModule
|
556
|
-
],
|
557
|
-
declarations: [
|
558
|
-
LoginComponent,
|
559
|
-
OauthCallbackComponent,
|
560
|
-
LoggedOutComponent
|
561
|
-
],
|
562
|
-
exports: [
|
563
|
-
LoginComponent,
|
564
|
-
OauthCallbackComponent,
|
565
|
-
LoggedOutComponent
|
566
|
-
]
|
567
|
-
}]
|
568
|
-
}] });
|
569
|
-
|
570
|
-
/**
|
571
|
-
* Layout configuration.
|
572
|
-
*/
|
573
|
-
class UpdLayoutConfigModel {
|
574
|
-
constructor(init) {
|
575
|
-
Object.assign(this, init);
|
576
|
-
if (this.mainLogo === undefined) {
|
577
|
-
// this.mainLogo = LogoConstants.defaultLogo; // TODO: add images
|
578
|
-
}
|
579
|
-
if (this.smallLogo === undefined) {
|
580
|
-
// this.smallLogo = LogoConstants.smallLogo;
|
581
|
-
}
|
582
|
-
if (this.loggedOutBackground === undefined) {
|
583
|
-
// this.loggedOutBackground = ImageConstants.loggedOutBackground;
|
584
|
-
}
|
585
|
-
if (this.menuTitle === undefined) {
|
586
|
-
this.menuTitle = 'UpDevs';
|
587
|
-
}
|
588
|
-
if (this.showNotificationsButton === undefined) {
|
589
|
-
this.showNotificationsButton = true;
|
590
|
-
}
|
591
|
-
if (this.showUserMenu === undefined) {
|
592
|
-
this.showUserMenu = true;
|
593
|
-
}
|
594
|
-
if (this.displayReportErrorButton === undefined) {
|
595
|
-
this.displayReportErrorButton = false;
|
596
|
-
}
|
597
|
-
}
|
598
|
-
}
|
599
|
-
|
600
|
-
/**
|
601
|
-
* Layout constants.
|
602
|
-
*/
|
603
|
-
class LayoutConstants {
|
604
|
-
/**
|
605
|
-
* Key to inject the default configuration.
|
606
|
-
*/
|
607
|
-
static { this.defaultOptionsKey = 'upd-layout-default-options'; }
|
608
|
-
/**
|
609
|
-
* Injection token for the default configuration.
|
610
|
-
*/
|
611
|
-
static { this.defaultOptionsInjectionToken = new InjectionToken(LayoutConstants.defaultOptionsKey); }
|
612
|
-
}
|
613
|
-
|
614
|
-
/**
|
615
|
-
* Layout configuration data.
|
616
|
-
*/
|
617
|
-
class UpdLayoutConfigService {
|
618
|
-
constructor(layoutConfig) {
|
619
|
-
this.config = new UpdLayoutConfigModel(layoutConfig);
|
620
|
-
}
|
621
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: UpdLayoutConfigService, deps: [{ token: LayoutConstants.defaultOptionsInjectionToken }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
622
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: UpdLayoutConfigService }); }
|
623
|
-
}
|
624
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: UpdLayoutConfigService, decorators: [{
|
625
|
-
type: Injectable
|
626
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
627
|
-
type: Inject,
|
628
|
-
args: [LayoutConstants.defaultOptionsInjectionToken]
|
629
|
-
}] }]; } });
|
630
|
-
|
631
|
-
/**
|
632
|
-
* Layout module.
|
633
|
-
*/
|
634
|
-
class UpdLayoutModule {
|
635
|
-
/**
|
636
|
-
* Sets up the layout module with the provided configuration.
|
637
|
-
* @param config Configuration (See: #updsee[p:abstractions, i:UpdCoreLayoutConfig]).
|
638
|
-
*/
|
639
|
-
static forRoot(config) {
|
640
|
-
return {
|
641
|
-
ngModule: UpdLayoutModule,
|
642
|
-
providers: [
|
643
|
-
{ provide: LayoutConstants.defaultOptionsInjectionToken, useValue: config }
|
644
|
-
]
|
645
|
-
};
|
646
|
-
}
|
647
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: UpdLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
648
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.11", ngImport: i0, type: UpdLayoutModule, imports: [CommonModule,
|
649
|
-
UpdCoreLayoutModule] }); }
|
650
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: UpdLayoutModule, providers: [
|
651
|
-
UpdLayoutConfigService
|
652
|
-
], imports: [CommonModule,
|
653
|
-
UpdCoreLayoutModule] }); }
|
654
|
-
}
|
655
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: UpdLayoutModule, decorators: [{
|
656
|
-
type: NgModule,
|
657
|
-
args: [{
|
658
|
-
imports: [
|
659
|
-
CommonModule,
|
660
|
-
UpdCoreLayoutModule
|
661
|
-
],
|
662
|
-
providers: [
|
663
|
-
UpdLayoutConfigService
|
664
|
-
]
|
665
|
-
}]
|
666
|
-
}] });
|
667
|
-
|
668
|
-
/**
|
669
|
-
* Generated bundle index. Do not edit.
|
670
|
-
*/
|
671
|
-
|
672
|
-
export { AuthFlowModule, AuthFlowRoutingModule, BasePageComponent, BlankLayoutComponent, BlankLayoutModule, FooterComponent, FooterCopyrightDirective, HeaderComponent, LoggedOutComponent, LoginComponent, OauthCallbackComponent, PageHeaderComponent, SidebarComponent, UpdLayoutConfigService, UpdLayoutModule, VerticalSidebarLayoutComponent, VerticalSidebarLayoutModule, routes };
|
673
|
-
//# sourceMappingURL=updevs-components-layout.mjs.map
|