@colijnit/sharedcomponents 1.0.55 → 1.0.56
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/.browserslistrc +16 -0
- package/.editorconfig +16 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/tasks.json +42 -0
- package/README.md +11 -8
- package/Sharedcomponents.iml +11 -0
- package/angular.json +177 -0
- package/custom-login-bundle.webpack.config.js +3 -0
- package/karma.conf.js +44 -0
- package/move-assets.js +14 -0
- package/package.json +68 -31
- package/projects/sharedcomponents/.browserslistrc +16 -0
- package/projects/sharedcomponents/README.md +24 -0
- package/projects/sharedcomponents/karma.conf.js +44 -0
- package/projects/sharedcomponents/ng-package.json +17 -0
- package/projects/sharedcomponents/package.json +23 -0
- package/projects/sharedcomponents/src/lib/assets/dictionary/text.properties.ts +8 -0
- package/projects/sharedcomponents/src/lib/assets/icons/account.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/angle_left_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/angle_right_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/arrow_fat_right.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/arrow_point_left.svg +8 -0
- package/projects/sharedcomponents/src/lib/assets/icons/arrow_point_right.svg +4 -0
- package/projects/sharedcomponents/src/lib/assets/icons/at_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/bring_forward_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/check_duotone.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/check_round.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/cross_skinny.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/delete_left_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/delivery_truck.svg +12 -0
- package/projects/sharedcomponents/src/lib/assets/icons/email.svg +5 -0
- package/projects/sharedcomponents/src/lib/assets/icons/envelope_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/eye_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/file_export_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/file_export_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/file_pdf_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/file_pdf_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/file_signature_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/house_blank_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/lock.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/message_sms_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/message_sms_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/pdf.svg +15 -0
- package/projects/sharedcomponents/src/lib/assets/icons/print.svg +10 -0
- package/projects/sharedcomponents/src/lib/assets/icons/print_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/print_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/signature_field.svg +9 -0
- package/projects/sharedcomponents/src/lib/assets/icons/tag_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/x_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/xml.svg +1 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-base-view.component.ts +68 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-day-view.component.ts +35 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-event.component.ts +73 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-events.component.ts +53 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.ts +81 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-header.component.ts +275 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-cell.component.ts +38 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.ts +50 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-view.component.ts +46 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-month-view.component.ts +65 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-select-event.component.ts +39 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-view.component.ts +41 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-week-select-view.component.ts +63 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-week-view.component.ts +50 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/agenda/style/_layout.scss +12 -12
- package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/agenda/style/_material-definition.scss +2 -1
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/view-select.component.ts +43 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-all-months.component.ts +37 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-all-years.component.ts +52 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-header.component.ts +123 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-view.component.ts +200 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar.component.ts +35 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/date-planning.component.ts +141 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/date-planning.module.ts +61 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/style/material.scss +7 -0
- package/projects/sharedcomponents/src/lib/components/docsign/component/signature/signature.component.ts +82 -0
- package/projects/sharedcomponents/src/lib/components/docsign/component/signatures/signatures.component.ts +50 -0
- package/projects/sharedcomponents/src/lib/components/docsign/docsign.component.ts +270 -0
- package/projects/sharedcomponents/src/lib/components/docsign/docsign.module.ts +22 -0
- package/projects/sharedcomponents/src/lib/components/key-pad/key-pad.component.ts +216 -0
- package/projects/sharedcomponents/src/lib/components/key-pad/key-pad.module.ts +20 -0
- package/projects/sharedcomponents/src/lib/components/layout-switcher/layout-switcher.component.ts +98 -0
- package/projects/sharedcomponents/src/lib/components/layout-switcher/layout-switcher.module.ts +21 -0
- package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.component.ts +57 -0
- package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.module.ts +17 -0
- package/projects/sharedcomponents/src/lib/components/login/components/login-base.component.ts +98 -0
- package/projects/sharedcomponents/src/lib/components/login/components/login-change-password.component.ts +194 -0
- package/projects/sharedcomponents/src/lib/components/login/components/login-mfa-code-entry.component.ts +41 -0
- package/projects/sharedcomponents/src/lib/components/login/components/login-mfa-code-setup.component.ts +44 -0
- package/projects/sharedcomponents/src/lib/components/login/components/login-username-password.component.ts +167 -0
- package/projects/sharedcomponents/src/lib/components/login/localization/login-translation.ts +15 -0
- package/projects/sharedcomponents/src/lib/components/login/login.component.ts +137 -0
- package/projects/sharedcomponents/src/lib/components/login/login.module.ts +53 -0
- package/projects/sharedcomponents/src/lib/components/login/service/login-adapter.service.ts +58 -0
- package/projects/sharedcomponents/src/lib/components/login/service/login.service.ts +50 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/enums/field-type.enum.ts +9 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Config.ts +6 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Field.ts +8 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Header.ts +8 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Module.ts +6 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Rubric.ts +10 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/ScreenConfig.ts +9 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/SubCat.ts +9 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/SubRubric.ts +8 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/screen-config-generator.component.ts +539 -0
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/screen-config-generator.module.ts +21 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.ts +91 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.ts +19 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.ts +84 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/printer-selection/printer-selection.module.ts +19 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.ts +63 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.ts +24 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.ts +38 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.ts +21 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.ts +60 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.ts +26 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/signature-button/signature-button.component.ts +42 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/signature-button/signature-button.module.ts +19 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/model/email-address-viewmodel.ts +9 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.component.ts +325 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.module.ts +32 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-params.interface.ts +13 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/service/send-method.service.ts +63 -0
- package/projects/sharedcomponents/src/lib/components/simple-tags/simple-tags.component.ts +243 -0
- package/projects/sharedcomponents/src/lib/components/simple-tags/simple-tags.module.ts +24 -0
- package/projects/sharedcomponents/src/lib/components/statusbar/statusbar-popup.component.ts +100 -0
- package/projects/sharedcomponents/src/lib/components/statusbar/statusbar.component.ts +107 -0
- package/projects/sharedcomponents/src/lib/components/statusbar/statusbar.module.ts +25 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.ts +45 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.ts +45 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/order-stock-history/order-stock-history.component.ts +45 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/order-stock-tab/order-stock-tab.component.ts +43 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.ts +45 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/order-tab/order-tab.component.ts +71 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/stock-history/stock-history.component.ts +52 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/stock-location/stock-location.component.ts +276 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/stock-prognose/stock-prognose.component.ts +49 -0
- package/projects/sharedcomponents/src/lib/components/stock/components/stock-tab/stock-tab.component.ts +40 -0
- package/projects/sharedcomponents/src/lib/components/stock/localization/translation.ts +60 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-history-tabs/stock-history-tabs.component.ts +32 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-information/stock-information.component.ts +56 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-information-grid/stock-information-grid.component.ts +500 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-tabs/stock-tabs.component.ts +276 -0
- package/{lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.d.ts → projects/sharedcomponents/src/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.ts} +2 -2
- package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-change-amount.component.ts +77 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-transfer.component.ts +178 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock.component.ts +228 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock.module.ts +97 -0
- package/projects/sharedcomponents/src/lib/components/stock-statusbar/stock-statusbar.component.ts +23 -0
- package/projects/sharedcomponents/src/lib/components/stock-statusbar/stock-statusbar.module.ts +17 -0
- package/projects/sharedcomponents/src/lib/components/tab-bar/tab-bar.component.ts +106 -0
- package/projects/sharedcomponents/src/lib/components/tab-bar/tab-bar.module.ts +20 -0
- package/projects/sharedcomponents/src/lib/components/tab-bar/tab.interface.ts +5 -0
- package/projects/sharedcomponents/src/lib/components/tags/component/tag-join-label/tag-join-label.component.ts +61 -0
- package/projects/sharedcomponents/src/lib/components/tags/component/tag-label/tag-label.component.ts +47 -0
- package/projects/sharedcomponents/src/lib/components/tags/component/treeview/model/tree-view-node-item.ts +132 -0
- package/projects/sharedcomponents/src/lib/components/tags/component/treeview/treeview.component.ts +258 -0
- package/projects/sharedcomponents/src/lib/components/tags/tags.component.ts +192 -0
- package/projects/sharedcomponents/src/lib/components/tags/tags.module.ts +27 -0
- package/projects/sharedcomponents/src/lib/directives/click-outside.directive.ts +25 -0
- package/projects/sharedcomponents/src/lib/enum/calendar-view.enum.ts +8 -0
- package/projects/sharedcomponents/src/lib/enum/gauge-color.enum.ts +8 -0
- package/{lib/enum/icon.enum.d.ts → projects/sharedcomponents/src/lib/enum/icon.enum.ts} +3 -2
- package/projects/sharedcomponents/src/lib/enum/keyboard-code.enum.ts +30 -0
- package/projects/sharedcomponents/src/lib/enum/language-code.enum.ts +6 -0
- package/projects/sharedcomponents/src/lib/enum/login-component-extra-action-type.enum.ts +4 -0
- package/projects/sharedcomponents/src/lib/enum/login-component-page.type.enum.ts +6 -0
- package/projects/sharedcomponents/src/lib/enum/login-component-query-variables-name.enum.ts +5 -0
- package/{lib/enum/month.enum.d.ts → projects/sharedcomponents/src/lib/enum/month.enum.ts} +2 -1
- package/projects/sharedcomponents/src/lib/enum/tag-category.enum.ts +20 -0
- package/projects/sharedcomponents/src/lib/enum/thumb-three-way-state.ts +18 -0
- package/{lib/enum/time-period.enum.d.ts → projects/sharedcomponents/src/lib/enum/time-period.enum.ts} +2 -1
- package/projects/sharedcomponents/src/lib/localization/localization.module.ts +17 -0
- package/projects/sharedcomponents/src/lib/localization/localize.pipe.ts +21 -0
- package/projects/sharedcomponents/src/lib/localization/localize.service.ts +28 -0
- package/projects/sharedcomponents/src/lib/localization/translation.ts +2 -0
- package/projects/sharedcomponents/src/lib/model/agenda-event-per-day.model.ts +6 -0
- package/projects/sharedcomponents/src/lib/model/agenda-event.model.ts +19 -0
- package/projects/sharedcomponents/src/lib/model/agenda-null-objects.ts +11 -0
- package/projects/sharedcomponents/src/lib/model/constant/all-months.ts +17 -0
- package/projects/sharedcomponents/src/lib/model/date-range.ts +10 -0
- package/projects/sharedcomponents/src/lib/model/day.model.ts +9 -0
- package/projects/sharedcomponents/src/lib/model/icon-svg.ts +37 -0
- package/projects/sharedcomponents/src/lib/model/month.model.ts +11 -0
- package/projects/sharedcomponents/src/lib/model/send-method.ts +13 -0
- package/projects/sharedcomponents/src/lib/model/settings.ts +5 -0
- package/projects/sharedcomponents/src/lib/model/tag-tree-item.bo.ts +28 -0
- package/projects/sharedcomponents/src/lib/model/time-window.bo.ts +21 -0
- package/projects/sharedcomponents/src/lib/model/tree-object.ts +13 -0
- package/projects/sharedcomponents/src/lib/model/tree-view-default.model.ts +107 -0
- package/projects/sharedcomponents/src/lib/model/tree-view-node-default.model.ts +196 -0
- package/projects/sharedcomponents/src/lib/model/tree-view-node-item-options.model.ts +12 -0
- package/projects/sharedcomponents/src/lib/model/tree-view-node.model.ts +150 -0
- package/projects/sharedcomponents/src/lib/model/tree-view.model.ts +57 -0
- package/projects/sharedcomponents/src/lib/model/week.model.ts +5 -0
- package/projects/sharedcomponents/src/lib/model/weekday.model.ts +17 -0
- package/projects/sharedcomponents/src/lib/pipe/array-number.pipe.ts +14 -0
- package/projects/sharedcomponents/src/lib/pipe/master-pipes.ts +7 -0
- package/projects/sharedcomponents/src/lib/pipe/ucfirst.pipe.ts +14 -0
- package/projects/sharedcomponents/src/lib/service/dictionary.service.ts +86 -0
- package/projects/sharedcomponents/src/lib/service/icon-cache.service.ts +51 -0
- package/projects/sharedcomponents/src/lib/service/options.service.ts +43 -0
- package/projects/sharedcomponents/src/lib/service/shared-connector.service.ts +401 -0
- package/projects/sharedcomponents/src/lib/service/shared-initializer.service.ts +29 -0
- package/projects/sharedcomponents/src/lib/service/shared.service.ts +49 -0
- package/projects/sharedcomponents/src/lib/service/stock.service.ts +124 -0
- package/projects/sharedcomponents/src/lib/utils/array-utils.ts +225 -0
- package/projects/sharedcomponents/src/lib/utils/calendar.utils.ts +75 -0
- package/projects/sharedcomponents/src/lib/utils/check-precision-and-scale-result.ts +5 -0
- package/projects/sharedcomponents/src/lib/utils/check-within-stepped-bounds-result.ts +8 -0
- package/projects/sharedcomponents/src/lib/utils/css-utils.ts +275 -0
- package/projects/sharedcomponents/src/lib/utils/date-utils.ts +302 -0
- package/projects/sharedcomponents/src/lib/utils/function/not-nill.function.ts +4 -0
- package/projects/sharedcomponents/src/lib/utils/is-nill.function.ts +4 -0
- package/projects/sharedcomponents/src/lib/utils/map-utils.ts +44 -0
- package/projects/sharedcomponents/src/lib/utils/number-utils.ts +439 -0
- package/projects/sharedcomponents/src/lib/utils/object-utils.ts +310 -0
- package/projects/sharedcomponents/src/lib/utils/string-utils.ts +67 -0
- package/projects/sharedcomponents/src/lib/utils/tree-utils.ts +63 -0
- package/{public-api.d.ts → projects/sharedcomponents/src/public-api.ts} +7 -0
- package/projects/sharedcomponents/src/test.ts +27 -0
- package/projects/sharedcomponents/tsconfig.lib.json +18 -0
- package/projects/sharedcomponents/tsconfig.lib.prod.json +10 -0
- package/projects/sharedcomponents/tsconfig.spec.json +17 -0
- package/script/create-bundle-version.js +19 -0
- package/script/merge-icons.js +39 -0
- package/src/app/app.component.scss +31 -0
- package/src/app/app.component.spec.ts +31 -0
- package/src/app/app.component.ts +454 -0
- package/src/app/app.module.ts +69 -0
- package/src/app/bundle/index.html +14 -0
- package/src/app/bundle/login/login-bundle.component.scss +6 -0
- package/src/app/bundle/login/login-bundle.component.ts +111 -0
- package/src/app/bundle/login/login-bundle.module.ts +30 -0
- package/src/app/bundle/main-login-bundle.ts +11 -0
- package/src/app/bundle/polyfills.ts +63 -0
- package/src/app/test-data.service.ts +60 -0
- package/src/assets/.gitkeep +0 -0
- package/src/environments/environment.bundle.prod.ts +3 -0
- package/src/environments/environment.prod.ts +3 -0
- package/src/environments/environment.ts +16 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +13 -0
- package/src/main.ts +12 -0
- package/src/polyfills.ts +53 -0
- package/src/styles.scss +54 -0
- package/src/test.ts +26 -0
- package/tsconfig.app.json +15 -0
- package/tsconfig.bundle.json +38 -0
- package/tsconfig.json +64 -0
- package/tsconfig.spec.json +18 -0
- package/webpack.login.bundle.config.js +32 -0
- package/bundles/colijnit-sharedcomponents.umd.js +0 -6733
- package/bundles/colijnit-sharedcomponents.umd.js.map +0 -1
- package/colijnit-sharedcomponents.d.ts +0 -74
- package/colijnit-sharedcomponents.metadata.json +0 -1
- package/esm2015/colijnit-sharedcomponents.js +0 -75
- package/esm2015/lib/assets/dictionary/text.properties.js +0 -11
- package/esm2015/lib/components/date-planning/component/agenda/agenda-base-view.component.js +0 -61
- package/esm2015/lib/components/date-planning/component/agenda/agenda-day-view.component.js +0 -32
- package/esm2015/lib/components/date-planning/component/agenda/agenda-event.component.js +0 -54
- package/esm2015/lib/components/date-planning/component/agenda/agenda-events.component.js +0 -43
- package/esm2015/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.js +0 -68
- package/esm2015/lib/components/date-planning/component/agenda/agenda-header.component.js +0 -232
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-cell.component.js +0 -36
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.js +0 -50
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-view.component.js +0 -46
- package/esm2015/lib/components/date-planning/component/agenda/agenda-month-view.component.js +0 -61
- package/esm2015/lib/components/date-planning/component/agenda/agenda-select-event.component.js +0 -39
- package/esm2015/lib/components/date-planning/component/agenda/agenda-view.component.js +0 -35
- package/esm2015/lib/components/date-planning/component/agenda/agenda-week-select-view.component.js +0 -64
- package/esm2015/lib/components/date-planning/component/agenda/agenda-week-view.component.js +0 -48
- package/esm2015/lib/components/date-planning/component/agenda/view-select.component.js +0 -42
- package/esm2015/lib/components/date-planning/component/calendar/calendar-all-months.component.js +0 -34
- package/esm2015/lib/components/date-planning/component/calendar/calendar-all-years.component.js +0 -48
- package/esm2015/lib/components/date-planning/component/calendar/calendar-header.component.js +0 -107
- package/esm2015/lib/components/date-planning/component/calendar/calendar-view.component.js +0 -178
- package/esm2015/lib/components/date-planning/component/calendar/calendar.component.js +0 -34
- package/esm2015/lib/components/date-planning/date-planning.component.js +0 -108
- package/esm2015/lib/components/date-planning/date-planning.module.js +0 -63
- package/esm2015/lib/components/docsign/component/signature/signature.component.js +0 -75
- package/esm2015/lib/components/docsign/component/signatures/signatures.component.js +0 -44
- package/esm2015/lib/components/docsign/docsign.component.js +0 -242
- package/esm2015/lib/components/docsign/docsign.module.js +0 -23
- package/esm2015/lib/components/key-pad/key-pad.component.js +0 -200
- package/esm2015/lib/components/key-pad/key-pad.module.js +0 -22
- package/esm2015/lib/components/layout-switcher/layout-switcher.component.js +0 -74
- package/esm2015/lib/components/layout-switcher/layout-switcher.module.js +0 -21
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.component.js +0 -59
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.module.js +0 -19
- package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.js +0 -79
- package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.js +0 -21
- package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.js +0 -85
- package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.module.js +0 -21
- package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.js +0 -64
- package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.js +0 -26
- package/esm2015/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.js +0 -40
- package/esm2015/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.js +0 -23
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +0 -59
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.js +0 -28
- package/esm2015/lib/components/send-method-dialog/components/signature-button/signature-button.component.js +0 -38
- package/esm2015/lib/components/send-method-dialog/components/signature-button/signature-button.module.js +0 -21
- package/esm2015/lib/components/send-method-dialog/model/email-address-viewmodel.js +0 -7
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +0 -255
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.module.js +0 -35
- package/esm2015/lib/components/send-method-dialog/send-method-params.interface.js +0 -2
- package/esm2015/lib/components/send-method-dialog/service/send-method.service.js +0 -59
- package/esm2015/lib/components/simple-tags/simple-tags.component.js +0 -229
- package/esm2015/lib/components/simple-tags/simple-tags.module.js +0 -26
- package/esm2015/lib/components/statusbar/statusbar-popup.component.js +0 -97
- package/esm2015/lib/components/statusbar/statusbar.component.js +0 -81
- package/esm2015/lib/components/statusbar/statusbar.module.js +0 -27
- package/esm2015/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.js +0 -47
- package/esm2015/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.js +0 -47
- package/esm2015/lib/components/stock/components/order-stock-history/order-stock-history.component.js +0 -47
- package/esm2015/lib/components/stock/components/order-stock-tab/order-stock-tab.component.js +0 -47
- package/esm2015/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.js +0 -47
- package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +0 -67
- package/esm2015/lib/components/stock/components/stock-history/stock-history.component.js +0 -53
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +0 -240
- package/esm2015/lib/components/stock/components/stock-prognose/stock-prognose.component.js +0 -52
- package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +0 -41
- package/esm2015/lib/components/stock/localization/translation.js +0 -63
- package/esm2015/lib/components/stock/stock-history-tabs/stock-history-tabs.component.js +0 -33
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +0 -48
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +0 -457
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +0 -241
- package/esm2015/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.js +0 -2
- package/esm2015/lib/components/stock/stock-transfer/stock-change-amount.component.js +0 -72
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +0 -149
- package/esm2015/lib/components/stock/stock.component.js +0 -193
- package/esm2015/lib/components/stock/stock.module.js +0 -80
- package/esm2015/lib/components/stock-statusbar/stock-statusbar.component.js +0 -23
- package/esm2015/lib/components/stock-statusbar/stock-statusbar.module.js +0 -19
- package/esm2015/lib/components/tab-bar/tab-bar.component.js +0 -88
- package/esm2015/lib/components/tab-bar/tab-bar.module.js +0 -21
- package/esm2015/lib/components/tab-bar/tab.interface.js +0 -2
- package/esm2015/lib/enum/calendar-view.enum.js +0 -8
- package/esm2015/lib/enum/gauge-color.enum.js +0 -10
- package/esm2015/lib/enum/icon.enum.js +0 -38
- package/esm2015/lib/enum/keyboard-code.enum.js +0 -32
- package/esm2015/lib/enum/language-code.enum.js +0 -8
- package/esm2015/lib/enum/month.enum.js +0 -17
- package/esm2015/lib/enum/thumb-three-way-state.js +0 -19
- package/esm2015/lib/enum/time-period.enum.js +0 -11
- package/esm2015/lib/localization/localization.module.js +0 -19
- package/esm2015/lib/localization/localize.pipe.js +0 -26
- package/esm2015/lib/localization/localize.service.js +0 -30
- package/esm2015/lib/localization/translation.js +0 -3
- package/esm2015/lib/model/agenda-event-per-day.model.js +0 -6
- package/esm2015/lib/model/agenda-event.model.js +0 -8
- package/esm2015/lib/model/agenda-null-objects.js +0 -11
- package/esm2015/lib/model/constant/all-months.js +0 -17
- package/esm2015/lib/model/date-range.js +0 -5
- package/esm2015/lib/model/day.model.js +0 -7
- package/esm2015/lib/model/icon-svg.js +0 -37
- package/esm2015/lib/model/month.model.js +0 -11
- package/esm2015/lib/model/send-method.js +0 -8
- package/esm2015/lib/model/settings.js +0 -4
- package/esm2015/lib/model/time-window.bo.js +0 -26
- package/esm2015/lib/model/week.model.js +0 -6
- package/esm2015/lib/model/weekday.model.js +0 -10
- package/esm2015/lib/pipe/array-number.pipe.js +0 -15
- package/esm2015/lib/pipe/master-pipes.js +0 -7
- package/esm2015/lib/pipe/ucfirst.pipe.js +0 -16
- package/esm2015/lib/service/dictionary.service.js +0 -76
- package/esm2015/lib/service/icon-cache.service.js +0 -51
- package/esm2015/lib/service/options.service.js +0 -48
- package/esm2015/lib/service/shared-connector.service.js +0 -424
- package/esm2015/lib/service/shared.service.js +0 -60
- package/esm2015/lib/service/stock.service.js +0 -110
- package/esm2015/lib/utils/calendar.utils.js +0 -69
- package/esm2015/lib/utils/date-utils.js +0 -264
- package/esm2015/lib/utils/function/not-nill.function.js +0 -5
- package/esm2015/lib/utils/map-utils.js +0 -41
- package/esm2015/lib/utils/string-utils.js +0 -64
- package/esm2015/public-api.js +0 -24
- package/fesm2015/colijnit-sharedcomponents.js +0 -7001
- package/fesm2015/colijnit-sharedcomponents.js.map +0 -1
- package/lib/assets/dictionary/text.properties.d.ts +0 -3
- package/lib/components/date-planning/component/agenda/agenda-base-view.component.d.ts +0 -21
- package/lib/components/date-planning/component/agenda/agenda-day-view.component.d.ts +0 -6
- package/lib/components/date-planning/component/agenda/agenda-event.component.d.ts +0 -17
- package/lib/components/date-planning/component/agenda/agenda-events.component.d.ts +0 -12
- package/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.d.ts +0 -18
- package/lib/components/date-planning/component/agenda/agenda-header.component.d.ts +0 -47
- package/lib/components/date-planning/component/agenda/agenda-hour-cell.component.d.ts +0 -9
- package/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.d.ts +0 -8
- package/lib/components/date-planning/component/agenda/agenda-hour-view.component.d.ts +0 -7
- package/lib/components/date-planning/component/agenda/agenda-month-view.component.d.ts +0 -10
- package/lib/components/date-planning/component/agenda/agenda-select-event.component.d.ts +0 -12
- package/lib/components/date-planning/component/agenda/agenda-view.component.d.ts +0 -11
- package/lib/components/date-planning/component/agenda/agenda-week-select-view.component.d.ts +0 -10
- package/lib/components/date-planning/component/agenda/agenda-week-view.component.d.ts +0 -8
- package/lib/components/date-planning/component/agenda/view-select.component.d.ts +0 -11
- package/lib/components/date-planning/component/calendar/calendar-all-months.component.d.ts +0 -9
- package/lib/components/date-planning/component/calendar/calendar-all-years.component.d.ts +0 -9
- package/lib/components/date-planning/component/calendar/calendar-header.component.d.ts +0 -23
- package/lib/components/date-planning/component/calendar/calendar-view.component.d.ts +0 -31
- package/lib/components/date-planning/component/calendar/calendar.component.d.ts +0 -10
- package/lib/components/date-planning/date-planning.component.d.ts +0 -26
- package/lib/components/date-planning/date-planning.module.d.ts +0 -2
- package/lib/components/date-planning/style/material.scss +0 -5
- package/lib/components/docsign/component/signature/signature.component.d.ts +0 -16
- package/lib/components/docsign/component/signatures/signatures.component.d.ts +0 -12
- package/lib/components/docsign/docsign.component.d.ts +0 -94
- package/lib/components/docsign/docsign.module.d.ts +0 -2
- package/lib/components/key-pad/key-pad.component.d.ts +0 -38
- package/lib/components/key-pad/key-pad.module.d.ts +0 -2
- package/lib/components/layout-switcher/layout-switcher.component.d.ts +0 -16
- package/lib/components/layout-switcher/layout-switcher.module.d.ts +0 -2
- package/lib/components/linear-gauge/co-linear-gauge.component.d.ts +0 -11
- package/lib/components/linear-gauge/co-linear-gauge.module.d.ts +0 -2
- package/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.d.ts +0 -19
- package/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.d.ts +0 -2
- package/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.d.ts +0 -19
- package/lib/components/send-method-dialog/components/printer-selection/printer-selection.module.d.ts +0 -2
- package/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.d.ts +0 -14
- package/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.d.ts +0 -2
- package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.d.ts +0 -8
- package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.d.ts +0 -2
- package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.d.ts +0 -12
- package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.d.ts +0 -2
- package/lib/components/send-method-dialog/components/signature-button/signature-button.component.d.ts +0 -12
- package/lib/components/send-method-dialog/components/signature-button/signature-button.module.d.ts +0 -2
- package/lib/components/send-method-dialog/model/email-address-viewmodel.d.ts +0 -5
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +0 -70
- package/lib/components/send-method-dialog/send-method-dialog.module.d.ts +0 -2
- package/lib/components/send-method-dialog/send-method-params.interface.d.ts +0 -13
- package/lib/components/send-method-dialog/service/send-method.service.d.ts +0 -23
- package/lib/components/simple-tags/simple-tags.component.d.ts +0 -31
- package/lib/components/simple-tags/simple-tags.module.d.ts +0 -2
- package/lib/components/statusbar/statusbar-popup.component.d.ts +0 -21
- package/lib/components/statusbar/statusbar.component.d.ts +0 -26
- package/lib/components/statusbar/statusbar.module.d.ts +0 -2
- package/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.d.ts +0 -9
- package/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.d.ts +0 -9
- package/lib/components/stock/components/order-stock-history/order-stock-history.component.d.ts +0 -9
- package/lib/components/stock/components/order-stock-tab/order-stock-tab.component.d.ts +0 -11
- package/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.d.ts +0 -9
- package/lib/components/stock/components/order-tab/order-tab.component.d.ts +0 -20
- package/lib/components/stock/components/stock-history/stock-history.component.d.ts +0 -13
- package/lib/components/stock/components/stock-location/stock-location.component.d.ts +0 -50
- package/lib/components/stock/components/stock-prognose/stock-prognose.component.d.ts +0 -11
- package/lib/components/stock/components/stock-tab/stock-tab.component.d.ts +0 -9
- package/lib/components/stock/localization/translation.d.ts +0 -60
- package/lib/components/stock/stock-history-tabs/stock-history-tabs.component.d.ts +0 -7
- package/lib/components/stock/stock-information/stock-information.component.d.ts +0 -8
- package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +0 -75
- package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +0 -56
- package/lib/components/stock/stock-transfer/stock-change-amount.component.d.ts +0 -18
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +0 -42
- package/lib/components/stock/stock.component.d.ts +0 -57
- package/lib/components/stock/stock.module.d.ts +0 -2
- package/lib/components/stock-statusbar/stock-statusbar.component.d.ts +0 -4
- package/lib/components/stock-statusbar/stock-statusbar.module.d.ts +0 -2
- package/lib/components/tab-bar/tab-bar.component.d.ts +0 -21
- package/lib/components/tab-bar/tab-bar.module.d.ts +0 -2
- package/lib/components/tab-bar/tab.interface.d.ts +0 -5
- package/lib/enum/calendar-view.enum.d.ts +0 -6
- package/lib/enum/gauge-color.enum.d.ts +0 -8
- package/lib/enum/keyboard-code.enum.d.ts +0 -30
- package/lib/enum/language-code.enum.d.ts +0 -6
- package/lib/enum/thumb-three-way-state.d.ts +0 -6
- package/lib/localization/localization.module.d.ts +0 -2
- package/lib/localization/localize.pipe.d.ts +0 -7
- package/lib/localization/localize.service.d.ts +0 -7
- package/lib/localization/translation.d.ts +0 -2
- package/lib/model/agenda-event-per-day.model.d.ts +0 -5
- package/lib/model/agenda-event.model.d.ts +0 -16
- package/lib/model/agenda-null-objects.d.ts +0 -10
- package/lib/model/constant/all-months.d.ts +0 -2
- package/lib/model/date-range.d.ts +0 -7
- package/lib/model/day.model.d.ts +0 -8
- package/lib/model/icon-svg.d.ts +0 -4
- package/lib/model/month.model.d.ts +0 -5
- package/lib/model/send-method.d.ts +0 -7
- package/lib/model/settings.d.ts +0 -3
- package/lib/model/time-window.bo.d.ts +0 -13
- package/lib/model/week.model.d.ts +0 -4
- package/lib/model/weekday.model.d.ts +0 -16
- package/lib/pipe/array-number.pipe.d.ts +0 -4
- package/lib/pipe/master-pipes.d.ts +0 -1
- package/lib/pipe/ucfirst.pipe.d.ts +0 -4
- package/lib/service/dictionary.service.d.ts +0 -21
- package/lib/service/icon-cache.service.d.ts +0 -18
- package/lib/service/options.service.d.ts +0 -13
- package/lib/service/shared-connector.service.d.ts +0 -53
- package/lib/service/shared.service.d.ts +0 -18
- package/lib/service/stock.service.d.ts +0 -41
- package/lib/utils/calendar.utils.d.ts +0 -10
- package/lib/utils/date-utils.d.ts +0 -44
- package/lib/utils/function/not-nill.function.d.ts +0 -1
- package/lib/utils/map-utils.d.ts +0 -16
- package/lib/utils/string-utils.d.ts +0 -22
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/agenda/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/agenda/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/calendar/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/calendar/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/calendar/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/calendar/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/key-pad/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/key-pad/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/key-pad/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/key-pad/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/linear-gauge/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/linear-gauge/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/linear-gauge/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/linear-gauge/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/login/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/login/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/login/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/login/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/screen-config-generator/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/screen-config-generator/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/screen-config-generator/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/screen-config-generator/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/layout-selection/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/layout-selection/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/layout-selection/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/layout-selection/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/printer-selection/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/printer-selection/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/printer-selection/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/printer-selection/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-email/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-email/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-email/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-email/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-pdf/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-pdf/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-pdf/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-pdf/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-printer/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-printer/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-printer/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-printer/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/signature-button/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/signature-button/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/signature-button/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/signature-button/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/simple-tags/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/simple-tags/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/simple-tags/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/simple-tags/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/statusbar/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/statusbar/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/statusbar/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/statusbar/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/stock-statusbar/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/stock-statusbar/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/stock-statusbar/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/stock-statusbar/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tab-bar/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tab-bar/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tab-bar/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tab-bar/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/tag-join-label/style/_layout.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/tag-join-label/style/_material-definition.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/tag-join-label/style/_theme.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/tag-join-label/style/material.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/style/_mixin.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/style/_variables.scss +0 -0
- /package/{lib → projects/sharedcomponents/src/lib}/style/sharedcomponents-globals.scss +0 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import {Component, HostBinding, ViewChild, ViewEncapsulation} from '@angular/core';
|
|
2
|
+
import {LoginBaseComponent} from './login-base.component';
|
|
3
|
+
import {equalValidator, FormComponent, InputTextComponent, passwordValidator} from '@colijnit/corecomponents_v12';
|
|
4
|
+
import {LoginStatus} from '@colijnit/ioneconnector/build/enum/login-status.enum';
|
|
5
|
+
import {ValidatorFn} from '@angular/forms';
|
|
6
|
+
import {LoginComponentExtraActionType} from '../../../enum/login-component-extra-action-type.enum';
|
|
7
|
+
import {ActivateUserAccountStatus} from '@colijnit/ioneconnector/build/enum/activate-user-account-status.enum';
|
|
8
|
+
import {HttpErrorResponse} from '@angular/common/http';
|
|
9
|
+
import {LoginResponse} from '@colijnit/ioneconnector/build/model/login-response';
|
|
10
|
+
import {LoginRequest} from '@colijnit/ioneconnector/build/model/login-request';
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'co-login-change-password',
|
|
14
|
+
template: `
|
|
15
|
+
<co-form #formChangePassword (validityChange)="onFormValidityChange($event)">
|
|
16
|
+
<h2 [textContent]="(extraAction === extraActions.ChangePasswordAndActivateUser ? 'ACTIVATE_ACCOUNT' : 'CHANGE_PASSWORD') | localize"></h2>
|
|
17
|
+
<p *ngIf="extraAction === extraActions.ChangePasswordAndActivateUser"
|
|
18
|
+
[textContent]="'CHANGE_PASSWORD_ACTIVATE_USER_MSG' | localize"></p>
|
|
19
|
+
<div class="field-wrapper">
|
|
20
|
+
<co-input-text [(model)]="username" [placeholder]="'EMAIL_OR_USERNAME' | localize"
|
|
21
|
+
[leftIconData]="iconCacheService.getIcon(icons.Account)"
|
|
22
|
+
#userNameInput [disabled]="true"></co-input-text>
|
|
23
|
+
<div class="input-text-and-button-container">
|
|
24
|
+
<co-input-text [(model)]="password" type="password" class="password" [placeholder]="'NEW_PASSWORD' | localize" required
|
|
25
|
+
#passwordInput
|
|
26
|
+
[leftIconData]="iconCacheService.getIcon(icons.Lock)"
|
|
27
|
+
[rightIconData]="iconCacheService.getIcon(icons.EyeRegular)"
|
|
28
|
+
[validators]="[passwordValidatorFn]"
|
|
29
|
+
(rightIconMouseDown)="handlePasswordShow($event)"
|
|
30
|
+
(rightIconMouseUp)="handlePasswordHide($event)"
|
|
31
|
+
></co-input-text>
|
|
32
|
+
<!--
|
|
33
|
+
<co-button icon="magic_wand"
|
|
34
|
+
tabindex="-1"
|
|
35
|
+
(click)="generateRandomPassword()"
|
|
36
|
+
(mouseenter)="handleGenerateButtonMouseEnter($event)"
|
|
37
|
+
(mouseleave)="handleGenerateButtonMouseLeave($event)"></co-button>
|
|
38
|
+
-->
|
|
39
|
+
</div>
|
|
40
|
+
<co-input-text [(model)]="repeatPassword" type="password" class="repeat-password"
|
|
41
|
+
[placeholder]="'PASSWORD_REPEAT' | localize" required #passwordRepeatInput
|
|
42
|
+
[leftIconData]="iconCacheService.getIcon(icons.Lock)"
|
|
43
|
+
[rightIconData]="iconCacheService.getIcon(icons.EyeRegular)"
|
|
44
|
+
[validators]="[repeatPasswordValidatorFn]"
|
|
45
|
+
(rightIconMouseDown)="handlePasswordRepeatShow($event)"
|
|
46
|
+
(rightIconMouseUp)="handlePasswordRepeatHide($event)"
|
|
47
|
+
></co-input-text>
|
|
48
|
+
<div class="login-validation-error-message" [textContent]="validationErrorMessage | localize"></div>
|
|
49
|
+
|
|
50
|
+
<!--
|
|
51
|
+
<co-list-of-values *ngIf="showLanguageSelect" doNotLoadCollection [collection]="languages" icon="dictionary" [(selectedModel)]="language"
|
|
52
|
+
label="LANGUAGE" descriptionField="description" required></co-list-of-values>
|
|
53
|
+
-->
|
|
54
|
+
</div>
|
|
55
|
+
<div class="login-extended-wrapper">
|
|
56
|
+
<span class="password-requirement-message" [textContent]="'PASSWORD_REQUIREMENT_MESSAGE' | localize"></span>
|
|
57
|
+
</div>
|
|
58
|
+
<co-button class="login-submit-button" [label]="'COMPLETE' | localize" [disabled]="!submitButtonEnabled"
|
|
59
|
+
(click)="onChangePasswordButtonClick()"></co-button>
|
|
60
|
+
</co-form>
|
|
61
|
+
<re-captcha class="login-recaptcha" [class.hidden]="!showRecaptcha"
|
|
62
|
+
[siteKey]="reCaptchaSiteKey"
|
|
63
|
+
(resolved)="onChangePasswordSubmit($event)"
|
|
64
|
+
(clickOutside)="hideRecaptcha()"></re-captcha>
|
|
65
|
+
`,
|
|
66
|
+
encapsulation: ViewEncapsulation.None
|
|
67
|
+
})
|
|
68
|
+
export class LoginChangePasswordComponent extends LoginBaseComponent {
|
|
69
|
+
@ViewChild('formChangePassword')
|
|
70
|
+
public formChangePassword: FormComponent;
|
|
71
|
+
|
|
72
|
+
@ViewChild('passwordInput')
|
|
73
|
+
public inputPassword: InputTextComponent;
|
|
74
|
+
|
|
75
|
+
@ViewChild('passwordRepeatInput')
|
|
76
|
+
public inputPasswordRepeat: InputTextComponent;
|
|
77
|
+
|
|
78
|
+
@HostBinding('class.co-login-change-password')
|
|
79
|
+
public showClass() {
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
public repeatPassword: string;
|
|
84
|
+
|
|
85
|
+
public handlePasswordShow(event: MouseEvent): void {
|
|
86
|
+
if (this.inputPassword) {
|
|
87
|
+
this.inputPassword.type = undefined;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public handlePasswordHide(event: MouseEvent): void {
|
|
92
|
+
if (this.inputPassword) {
|
|
93
|
+
this.inputPassword.type = 'password';
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
public handlePasswordRepeatShow(event: MouseEvent): void {
|
|
98
|
+
if (this.inputPasswordRepeat) {
|
|
99
|
+
this.inputPasswordRepeat.type = undefined;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
public handlePasswordRepeatHide(event: MouseEvent): void {
|
|
104
|
+
if (this.inputPasswordRepeat) {
|
|
105
|
+
this.inputPasswordRepeat.type = 'password';
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
public async onChangePasswordButtonClick(): Promise<void> {
|
|
110
|
+
this.formChangePassword.submit();
|
|
111
|
+
this.showRecaptcha = true;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
public async onChangePasswordSubmit(reCaptchaResponse: string): Promise<void> {
|
|
115
|
+
if (!reCaptchaResponse) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
// if (!this.isChangePasswordFormValid()) {
|
|
119
|
+
// return;
|
|
120
|
+
// }
|
|
121
|
+
|
|
122
|
+
let isChangePwSuccess: boolean;
|
|
123
|
+
try {
|
|
124
|
+
if (this.extraAction === LoginComponentExtraActionType.ChangePasswordAndActivateUser) {
|
|
125
|
+
let activateUserAccountStatus: ActivateUserAccountStatus;
|
|
126
|
+
activateUserAccountStatus = await this.loginService.changePasswordAndActivateUser(this.repeatPassword, this.securityCode, this.upId, reCaptchaResponse);
|
|
127
|
+
if (activateUserAccountStatus === ActivateUserAccountStatus.SUCCESS) {
|
|
128
|
+
isChangePwSuccess = true;
|
|
129
|
+
} else {
|
|
130
|
+
isChangePwSuccess = false;
|
|
131
|
+
if (activateUserAccountStatus === ActivateUserAccountStatus.NOT_VALID_SECURITY_CODE) {
|
|
132
|
+
this.validationErrorMessage = "SECURITY_CODE_NOT_VALID";
|
|
133
|
+
} else if (activateUserAccountStatus === ActivateUserAccountStatus.ACCOUNT_IS_ALREADY_ACTIVE) {
|
|
134
|
+
this.validationErrorMessage = "ACCOUNT_IS_ALREADY_ACTIVE";
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
} else {
|
|
138
|
+
isChangePwSuccess = await this.loginService.changePassword(this.repeatPassword, this.securityCode, this.upId);
|
|
139
|
+
}
|
|
140
|
+
} catch (error) {
|
|
141
|
+
if (error instanceof HttpErrorResponse) {
|
|
142
|
+
this.validationErrorMessage = "CODE_NOT_FOUND_POSSIBLY_EXPIRED";
|
|
143
|
+
}
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
if (isChangePwSuccess) {
|
|
148
|
+
// this.userService.userName = this._userNameInInitialUrl;
|
|
149
|
+
// this.userService.password = this.repeatPassword;
|
|
150
|
+
const loginRequest: LoginRequest = new LoginRequest();
|
|
151
|
+
loginRequest.upId = this.upId;
|
|
152
|
+
loginRequest.userName = this.username;
|
|
153
|
+
loginRequest.userPassword = this.password;
|
|
154
|
+
loginRequest.clientVersion = this.clientVersion;
|
|
155
|
+
loginRequest.clientLanguage = this.clientLanguage;
|
|
156
|
+
loginRequest.clientDeviceFingerprint = this.clientDeviceFingerprint;
|
|
157
|
+
let loginResponse: LoginResponse;
|
|
158
|
+
try {
|
|
159
|
+
loginResponse = await this.loginService.login(loginRequest);
|
|
160
|
+
} catch (error) {
|
|
161
|
+
if (error instanceof HttpErrorResponse) {
|
|
162
|
+
this.validationErrorMessage = error.message;
|
|
163
|
+
}
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
this.loginReponseReceived.emit(loginResponse);
|
|
167
|
+
if (loginResponse && loginResponse.isLogInStatusSuccess()) {
|
|
168
|
+
return;
|
|
169
|
+
} else if (loginResponse
|
|
170
|
+
&& (loginResponse.loginStatus === LoginStatus.MFA_SMS_CODE_CONFIRMATION_SENT
|
|
171
|
+
|| loginResponse.loginStatus === LoginStatus.MFA_EMAIL_CODE_CONFIRMATION_SENT
|
|
172
|
+
|| loginResponse.loginStatus === LoginStatus.MFA_GOOGLE_CODE_CONFIRMATION_AWAIT)
|
|
173
|
+
) {
|
|
174
|
+
this.showMFAForm.emit(this.getEnterVerificationCodeLabel(loginResponse.loginStatus));
|
|
175
|
+
} else if (loginResponse.loginStatus === LoginStatus.SERVER_NOT_READY) {
|
|
176
|
+
this.validationErrorMessage = "MESSAGE_SERVER_NOT_READY";
|
|
177
|
+
} else if (loginResponse.loginStatus === LoginStatus.SERVER_FAILED_TO_START) {
|
|
178
|
+
this.validationErrorMessage = "MESSAGE_SERVER_FAILED_TO_START";
|
|
179
|
+
} else {
|
|
180
|
+
this.validationErrorMessage = "MESSAGE_LOGIN_FAILURE2";
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
this.recaptchaComponent.reset();
|
|
184
|
+
this.showRecaptcha = false;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
public passwordValidatorFn: ValidatorFn = passwordValidator(() => {
|
|
188
|
+
return this.username;
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
public repeatPasswordValidatorFn: ValidatorFn = equalValidator(() => {
|
|
192
|
+
return this.password;
|
|
193
|
+
});
|
|
194
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {Component, HostBinding, Input, ViewEncapsulation} from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'co-login-mfa-code-entry',
|
|
5
|
+
template: `
|
|
6
|
+
<!--
|
|
7
|
+
<co-form fxLayout="column" fxLayoutGap="40px" fxLayoutAlign="center center"
|
|
8
|
+
(validityChange)="onFormValidityChange($event)">
|
|
9
|
+
<h2 localize="VERIFICATION_CODE" fxFlexAlign="left"></h2>
|
|
10
|
+
<span [localize]="enterVerificationCodeLabel"></span>
|
|
11
|
+
<input-code [(model)]="userService.confirmationCode" [codePattern]="'3-3'"
|
|
12
|
+
(completeChange)="onConfirmationCodeCompleteChange($event)"
|
|
13
|
+
(keydown.enter)="onSendVerificationCodeBttnClick(verificationCodeBttn)">
|
|
14
|
+
</input-code>
|
|
15
|
+
<co-button #verificationCodeBttn type="submit" label="SEND" class="login" fxFlexAlign="center"
|
|
16
|
+
(click)="onSendVerificationCodeBttnClick(verificationCodeBttn)"
|
|
17
|
+
[disabled]="sendConfirmationCodeBttnDisabled"></co-button>
|
|
18
|
+
<co-button *ngIf="isAvailableToResetGoogleAuth()" label="RESET_GOOGLE_AUTHENTICATOR"
|
|
19
|
+
(click)="onResetGoogleAuthClick()"></co-button>
|
|
20
|
+
|
|
21
|
+
</co-form>
|
|
22
|
+
<div class="footer" fxLayout fxLayoutAlign="space-between center">
|
|
23
|
+
<div fxLayout fxLayoutGap="5px" (click)="onMfaGoBackClick()" class="pointer-hover"
|
|
24
|
+
fxLayoutAlign="start center">
|
|
25
|
+
<co-icon [icon]="Icons.ArrowLeftRoundOpen" class="dark"></co-icon>
|
|
26
|
+
<span localize="BACK"></span>
|
|
27
|
+
</div>
|
|
28
|
+
<co-input-checkbox [(model)]="rememberDevice" [label]="'REMEMBER_DEVICE' | localize"></co-input-checkbox>
|
|
29
|
+
</div>
|
|
30
|
+
-->
|
|
31
|
+
`,
|
|
32
|
+
encapsulation: ViewEncapsulation.None
|
|
33
|
+
})
|
|
34
|
+
export class LoginMfaCodeEntryComponent {
|
|
35
|
+
|
|
36
|
+
@HostBinding('class.login-mfa-code-entry')
|
|
37
|
+
public showClass() {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {Component, HostBinding, Input, ViewEncapsulation} from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'co-login-mfa-code-setup',
|
|
5
|
+
template: `
|
|
6
|
+
<!--
|
|
7
|
+
<div>
|
|
8
|
+
<ng-container *ngIf="showBarcode">
|
|
9
|
+
<co-form fxLayout="column" fxLayoutGap="40px" fxLayoutAlign="center center">
|
|
10
|
+
<span localize="SCAN_GOOGLE_AUTHENTICATION_BARCODE"></span>
|
|
11
|
+
<img class='barcode' [src]="imageSource">
|
|
12
|
+
<default-ok-cancel-buttons [okLabel]="'SCANNED'"
|
|
13
|
+
[cancelLabel]="'DO_NOT_ACTIVATE_AUTH_APP'"
|
|
14
|
+
(okClick)="onScanBarcodeButtonClick()"
|
|
15
|
+
(cancelClick)="handlePopupClose()"></default-ok-cancel-buttons>
|
|
16
|
+
</co-form>
|
|
17
|
+
</ng-container>
|
|
18
|
+
<ng-container *ngIf="showCodeConfirmation">
|
|
19
|
+
<co-form fxLayout="column" fxLayoutGap="40px" fxLayoutAlign="center center">
|
|
20
|
+
<span localize="CONFIRM_GOOGLE_AUTHENTICATION"></span>
|
|
21
|
+
<input-code [(model)]="googleConfirmCode" [codePattern]="'3-3'"></input-code>
|
|
22
|
+
<button-colijn label="CONFIRM" fxFlexAlign="center"
|
|
23
|
+
(click)="onCheckCodeClick()"></button-colijn>
|
|
24
|
+
</co-form>
|
|
25
|
+
<div class="back-button-container"
|
|
26
|
+
fxLayout fxLayoutGap="5px" (click)="onBackButtonClick()"
|
|
27
|
+
fxLayoutAlign="start center">
|
|
28
|
+
<co-icon [icon]="Icons.ArrowLeftRoundOpen"></co-icon>
|
|
29
|
+
<span localize="BACK"></span>
|
|
30
|
+
</div>
|
|
31
|
+
</ng-container>
|
|
32
|
+
</div>
|
|
33
|
+
-->
|
|
34
|
+
`,
|
|
35
|
+
encapsulation: ViewEncapsulation.None
|
|
36
|
+
})
|
|
37
|
+
export class LoginMfaCodeSetupComponent {
|
|
38
|
+
|
|
39
|
+
@HostBinding('class.login-mfa-code-setup')
|
|
40
|
+
public showClass() {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import {Component, HostBinding, ViewChild, ViewEncapsulation} from '@angular/core';
|
|
2
|
+
import {LoginBaseComponent} from './login-base.component';
|
|
3
|
+
import {LoginResponse} from '@colijnit/ioneconnector/build/model/login-response';
|
|
4
|
+
import {FormComponent, InputTextComponent} from '@colijnit/corecomponents_v12';
|
|
5
|
+
import {LoginRequest} from '@colijnit/ioneconnector/build/model/login-request';
|
|
6
|
+
import {LoginStatus} from '@colijnit/ioneconnector/build/enum/login-status.enum';
|
|
7
|
+
import {HttpErrorResponse} from '@angular/common/http';
|
|
8
|
+
import {ResetPasswordStatus} from '@colijnit/ioneconnector/build/enum/reset-password-status.enum';
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: 'co-login-username-password',
|
|
12
|
+
template: `
|
|
13
|
+
<co-form #loginForm *ngIf="!showRecaptcha" class="user-and-pass" (validSubmit)="onLoginSubmit()"
|
|
14
|
+
(validityChange)="onFormValidityChange($event)">
|
|
15
|
+
<div class="login-header" *ngIf="title" [textContent]="title"></div>
|
|
16
|
+
<div class="field-wrapper">
|
|
17
|
+
<co-input-text #userNameInput required
|
|
18
|
+
[(model)]="username"
|
|
19
|
+
[placeholder]="'EMAIL_OR_USERNAME' | localize"
|
|
20
|
+
[leftIconData]="iconCacheService.getIcon(icons.Account)"
|
|
21
|
+
(keyDown)="handleInputKeyDown($event)"
|
|
22
|
+
></co-input-text>
|
|
23
|
+
<co-input-text #passwordInput type="password" class="password" required
|
|
24
|
+
[(model)]="password"
|
|
25
|
+
[placeholder]="'PASSWORD' | localize"
|
|
26
|
+
[leftIconData]="iconCacheService.getIcon(icons.Lock)"
|
|
27
|
+
[rightIconData]="iconCacheService.getIcon(icons.EyeRegular)"
|
|
28
|
+
(rightIconMouseDown)="handlePasswordShow($event)"
|
|
29
|
+
(rightIconMouseUp)="handlePasswordHide($event)"
|
|
30
|
+
(keyDown)="handleInputKeyDown($event)"
|
|
31
|
+
></co-input-text>
|
|
32
|
+
<div *ngIf="validationErrorMessage" class="login-validation-error-message" [textContent]="validationErrorMessage | localize"></div>
|
|
33
|
+
<div *ngIf="validationMessage" class="login-validation-message" [textContent]="validationMessage | localize"></div>
|
|
34
|
+
<!--
|
|
35
|
+
<co-list-of-values *ngIf="showLanguageSelect" doNotLoadCollection [collection]="languages" icon="dictionary" [(selectedModel)]="language"
|
|
36
|
+
label="LANGUAGE" descriptionField="description" required></co-list-of-values>
|
|
37
|
+
-->
|
|
38
|
+
</div>
|
|
39
|
+
<co-button class="login-submit-button" [label]="'LOGIN' | localize" [disabled]="!submitButtonEnabled"
|
|
40
|
+
(click)="submitForm()"></co-button>
|
|
41
|
+
<div class="login-extended-wrapper">
|
|
42
|
+
<a [class.undefined-username]="!username" class="login-password-forget-text"
|
|
43
|
+
[textContent]="'PASSWORD_FORGOTTEN_TEXT' | localize"
|
|
44
|
+
(click)="onPasswordForgottenLinkClick()"></a>
|
|
45
|
+
<span [class.undefined-username]="!username" class="login-no-username-text"
|
|
46
|
+
[textContent]="'PASSWORD_FORGOTTEN_TEXT_EXTRA' | localize"></span>
|
|
47
|
+
</div>
|
|
48
|
+
</co-form>
|
|
49
|
+
<re-captcha class="login-recaptcha" [class.hidden]="!showRecaptcha"
|
|
50
|
+
[siteKey]="reCaptchaSiteKey"
|
|
51
|
+
(resolved)="onReCaptchaResolved($event)"
|
|
52
|
+
(clickOutside)="hideRecaptcha()"></re-captcha>
|
|
53
|
+
`,
|
|
54
|
+
encapsulation: ViewEncapsulation.None
|
|
55
|
+
})
|
|
56
|
+
export class LoginUsernamePasswordComponent extends LoginBaseComponent {
|
|
57
|
+
@ViewChild('loginForm')
|
|
58
|
+
public form: FormComponent;
|
|
59
|
+
|
|
60
|
+
@ViewChild('passwordInput')
|
|
61
|
+
public inputPassword: InputTextComponent;
|
|
62
|
+
|
|
63
|
+
@HostBinding('class.co-login-username-password')
|
|
64
|
+
public showClass() {
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
public async onReCaptchaResolved(reCaptchaResponse: string): Promise<void> {
|
|
69
|
+
if (!reCaptchaResponse) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
let resetPasswordSuccess: ResetPasswordStatus;
|
|
74
|
+
try {
|
|
75
|
+
resetPasswordSuccess = await this.loginService.sendResetPasswordOrInviteMessage(this.upId, this.username, reCaptchaResponse);
|
|
76
|
+
} catch (error) {
|
|
77
|
+
this.validationErrorMessage = "EMAIL_FORGOT_PW_NOT_SENT";
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
switch (resetPasswordSuccess) {
|
|
81
|
+
case ResetPasswordStatus.SUCCESS:
|
|
82
|
+
this.validationMessage = "EMAIL_SENT";
|
|
83
|
+
break;
|
|
84
|
+
case ResetPasswordStatus.ACCOUNT_IS_DEACTIVATED:
|
|
85
|
+
this.validationMessage = "ACCOUNT_INACTIVE_PW_NOT_SENT";
|
|
86
|
+
break;
|
|
87
|
+
case ResetPasswordStatus.USER_DOESNT_HAVE_EMAIL:
|
|
88
|
+
this.validationErrorMessage = "USER_DOESNT_HAVE_EMAIL_PW_NOT_SENT";
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
if (this.recaptchaComponent) {
|
|
92
|
+
this.recaptchaComponent.reset();
|
|
93
|
+
}
|
|
94
|
+
this.showRecaptcha = false;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
public async onLoginSubmit(): Promise<void> {
|
|
98
|
+
const loginRequest: LoginRequest = new LoginRequest();
|
|
99
|
+
loginRequest.upId = this.upId;
|
|
100
|
+
loginRequest.userName = this.username;
|
|
101
|
+
loginRequest.userPassword = this.password;
|
|
102
|
+
loginRequest.clientVersion = this.clientVersion;
|
|
103
|
+
loginRequest.clientLanguage = this.clientLanguage;
|
|
104
|
+
loginRequest.clientDeviceFingerprint = this.clientDeviceFingerprint;
|
|
105
|
+
// this._toolTip.destroyAllErrorTooltips();
|
|
106
|
+
// this.passwordInput.forceBlur();
|
|
107
|
+
|
|
108
|
+
// this._saveLanguage();
|
|
109
|
+
|
|
110
|
+
this.submitButtonEnabled = false;
|
|
111
|
+
let loginResponse: LoginResponse;
|
|
112
|
+
try {
|
|
113
|
+
loginResponse = await this.loginService.login(loginRequest);
|
|
114
|
+
} catch (error) {
|
|
115
|
+
if (error instanceof HttpErrorResponse) {
|
|
116
|
+
this.validationErrorMessage = error.message;
|
|
117
|
+
}
|
|
118
|
+
return;
|
|
119
|
+
} finally {
|
|
120
|
+
this.submitButtonEnabled = true;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// for security reasons are both inputfields highlighted red when a login attempt failed (doesn't matter what kind of login failure)
|
|
124
|
+
if (loginResponse.loginStatus === LoginStatus.LOGIN_INCORRECT) {
|
|
125
|
+
this.validationErrorMessage = "LOGIN_INCORRECT";
|
|
126
|
+
} else if (loginResponse.loginStatus === LoginStatus.SERVER_NOT_READY) {
|
|
127
|
+
this.validationErrorMessage = "MESSAGE_SERVER_NOT_READY";
|
|
128
|
+
} else if (loginResponse.loginStatus === LoginStatus.SERVER_FAILED_TO_START) {
|
|
129
|
+
this.validationErrorMessage = "MESSAGE_SERVER_FAILED_TO_START";
|
|
130
|
+
} else if (loginResponse.loginStatus === LoginStatus.MFA_SMS_CODE_CONFIRMATION_SENT
|
|
131
|
+
|| loginResponse.loginStatus === LoginStatus.MFA_EMAIL_CODE_CONFIRMATION_SENT
|
|
132
|
+
|| loginResponse.loginStatus === LoginStatus.MFA_GOOGLE_CODE_CONFIRMATION_AWAIT) {
|
|
133
|
+
this.showMFAForm.emit(this.getEnterVerificationCodeLabel(loginResponse.loginStatus));
|
|
134
|
+
}
|
|
135
|
+
this.loginReponseReceived.emit(loginResponse);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
public onPasswordForgottenLinkClick(): void {
|
|
139
|
+
if (this.username) {
|
|
140
|
+
this.showChangePasswordForm.emit(this.username);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
public handlePasswordShow(event: MouseEvent): void {
|
|
145
|
+
if (this.inputPassword) {
|
|
146
|
+
this.inputPassword.type = undefined;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
public handlePasswordHide(event: MouseEvent): void {
|
|
151
|
+
if (this.inputPassword) {
|
|
152
|
+
this.inputPassword.type = 'password';
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
public submitForm(): void {
|
|
157
|
+
if (this.form) {
|
|
158
|
+
this.form.submit();
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
public handleInputKeyDown(event: KeyboardEvent): void {
|
|
163
|
+
if (event.key === 'Enter' || event.key === 'NumPadEnter') {
|
|
164
|
+
this.submitForm();
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {Translation} from '../../../localization/translation';
|
|
2
|
+
|
|
3
|
+
export class LoginTranslation extends Translation {
|
|
4
|
+
public ACTIVATE_ACCOUNT?: string = 'ACTIVATE_ACCOUNT';
|
|
5
|
+
public CHANGE_PASSWORD?: string = 'CHANGE_PASSWORD';
|
|
6
|
+
public CHANGE_PASSWORD_ACTIVATE_USER_MSG?: string = 'CHANGE_PASSWORD_ACTIVATE_USER_MSG';
|
|
7
|
+
public EMAIL_OR_USERNAME?: string = 'EMAIL_OR_USERNAME';
|
|
8
|
+
public NEW_PASSWORD?: string = 'NEW_PASSWORD';
|
|
9
|
+
public PASSWORD?: string = 'PASSWORD';
|
|
10
|
+
public PASSWORD_FORGOTTEN_TEXT?: string = 'PASSWORD_FORGOTTEN_TEXT';
|
|
11
|
+
public PASSWORD_FORGOTTEN_TEXT_EXTRA?: string = 'PASSWORD_FORGOTTEN_TEXT_EXTRA';
|
|
12
|
+
public PASSWORD_REPEAT?: string = 'PASSWORD_REPEAT';
|
|
13
|
+
public LOGIN?: string = 'LOGIN';
|
|
14
|
+
public LOGIN_INCORRECT?: string = 'LOGIN_INCORRECT';
|
|
15
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import {ChangeDetectorRef, Component, EventEmitter, HostBinding, Input, Output, ViewEncapsulation} from '@angular/core';
|
|
2
|
+
import {LoginComponentPageType} from '../../enum/login-component-page.type.enum';
|
|
3
|
+
import {LocalizeService} from '../../localization/localize.service';
|
|
4
|
+
import {LoginTranslation} from './localization/login-translation';
|
|
5
|
+
import {LoginService} from './service/login.service';
|
|
6
|
+
import {LoginResponse} from '@colijnit/ioneconnector/build/model/login-response';
|
|
7
|
+
import {LoginStatus} from '@colijnit/ioneconnector/build/enum/login-status.enum';
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: 'co-login',
|
|
11
|
+
template: `
|
|
12
|
+
<div class="co-login-wrapper" *ngIf="!loggedIn">
|
|
13
|
+
<ng-container *ngIf="loginType === loginTypes.UserNameAndPasswordEntry">
|
|
14
|
+
<co-login-username-password
|
|
15
|
+
[username]="username"
|
|
16
|
+
[password]="password"
|
|
17
|
+
[upId]="upId"
|
|
18
|
+
[clientVersion]="clientVersion"
|
|
19
|
+
[clientDeviceFingerprint]="clientDeviceFingerprint"
|
|
20
|
+
[clientLanguage]="clientLanguage"
|
|
21
|
+
[reCaptchaSiteKey]="reCaptchaSiteKey"
|
|
22
|
+
(showChangePasswordForm)="handleShowChangePasswordForm($event)"
|
|
23
|
+
(loginReponseReceived)="handleLogin($event)"
|
|
24
|
+
></co-login-username-password>
|
|
25
|
+
</ng-container>
|
|
26
|
+
<ng-container *ngIf="loginType === loginTypes.MFACodeSetup">
|
|
27
|
+
<co-login-mfa-code-setup></co-login-mfa-code-setup>
|
|
28
|
+
</ng-container>
|
|
29
|
+
<ng-container *ngIf="loginType === loginTypes.MFACodeEntry">
|
|
30
|
+
<co-login-mfa-code-entry></co-login-mfa-code-entry>
|
|
31
|
+
</ng-container>
|
|
32
|
+
<ng-container *ngIf="loginType === loginTypes.ChangePasswordAndOptionallyActivateUser">
|
|
33
|
+
<co-login-change-password
|
|
34
|
+
[username]="username"
|
|
35
|
+
[upId]="upId"
|
|
36
|
+
[securityCode]="securityCode"
|
|
37
|
+
[clientVersion]="clientVersion"
|
|
38
|
+
[clientDeviceFingerprint]="clientDeviceFingerprint"
|
|
39
|
+
[clientLanguage]="clientLanguage"
|
|
40
|
+
[reCaptchaSiteKey]="reCaptchaSiteKey"
|
|
41
|
+
(showMFAForm)="handleShowMFAForm($event)"
|
|
42
|
+
(loginReponseReceived)="handleLogin($event)"
|
|
43
|
+
></co-login-change-password>
|
|
44
|
+
</ng-container>
|
|
45
|
+
</div>
|
|
46
|
+
<co-button *ngIf="loggedIn" [label]="'Log uit'" (click)="logOut()"></co-button>
|
|
47
|
+
`,
|
|
48
|
+
encapsulation: ViewEncapsulation.None
|
|
49
|
+
})
|
|
50
|
+
export class LoginComponent {
|
|
51
|
+
public readonly loginTypes: typeof LoginComponentPageType = LoginComponentPageType;
|
|
52
|
+
|
|
53
|
+
@Input()
|
|
54
|
+
public username: string;
|
|
55
|
+
|
|
56
|
+
@Input()
|
|
57
|
+
public password: string;
|
|
58
|
+
|
|
59
|
+
@Input()
|
|
60
|
+
public upId: number;
|
|
61
|
+
|
|
62
|
+
@Input()
|
|
63
|
+
public securityCode: string;
|
|
64
|
+
|
|
65
|
+
@Input()
|
|
66
|
+
public clientType: string;
|
|
67
|
+
|
|
68
|
+
@Input()
|
|
69
|
+
public clientVersion: string;
|
|
70
|
+
|
|
71
|
+
@Input()
|
|
72
|
+
public clientCompileRevision: string;
|
|
73
|
+
|
|
74
|
+
@Input()
|
|
75
|
+
public clientLanguage: string;
|
|
76
|
+
|
|
77
|
+
@Input()
|
|
78
|
+
public clientDeviceFingerprint: string;
|
|
79
|
+
|
|
80
|
+
@Input()
|
|
81
|
+
public loginType: LoginComponentPageType = LoginComponentPageType.UserNameAndPasswordEntry;
|
|
82
|
+
|
|
83
|
+
@Input()
|
|
84
|
+
public reCaptchaSiteKey: string;
|
|
85
|
+
|
|
86
|
+
@Input()
|
|
87
|
+
public set translation(value: LoginTranslation) {
|
|
88
|
+
this._localizeService.translation = value;
|
|
89
|
+
this._changeDetector.markForCheck();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@Input()
|
|
93
|
+
public set settings(value: any) {
|
|
94
|
+
this._loginService.init(value);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@Output()
|
|
98
|
+
public userLoggedIn: EventEmitter<LoginResponse> = new EventEmitter<LoginResponse>();
|
|
99
|
+
|
|
100
|
+
@HostBinding('class.co-login')
|
|
101
|
+
public showClass() {
|
|
102
|
+
return true;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
public reCaptchaVisible: boolean = false;
|
|
106
|
+
public verificationCodeLabel: string;
|
|
107
|
+
public loggedIn: boolean = false;
|
|
108
|
+
|
|
109
|
+
constructor(
|
|
110
|
+
private _localizeService: LocalizeService,
|
|
111
|
+
private _changeDetector: ChangeDetectorRef,
|
|
112
|
+
private _loginService: LoginService
|
|
113
|
+
) {
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
public async logOut(): Promise<void> {
|
|
117
|
+
if (await this._loginService.logout()) {
|
|
118
|
+
this.loggedIn = false;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
public handleShowMFAForm(verificationCodeLabel: string): void {
|
|
123
|
+
this.verificationCodeLabel = verificationCodeLabel;
|
|
124
|
+
this.loginType = LoginComponentPageType.MFACodeEntry;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
public handleShowChangePasswordForm(username: string): void {
|
|
128
|
+
this.username = username;
|
|
129
|
+
this.loginType = LoginComponentPageType.ChangePasswordAndOptionallyActivateUser;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
public handleLogin(loginResponse: LoginResponse): void {
|
|
133
|
+
this.loggedIn = loginResponse.loginStatus === LoginStatus.SUCCESS;
|
|
134
|
+
this.userLoggedIn.next(loginResponse);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import {NgModule} from '@angular/core';
|
|
2
|
+
import {CommonModule} from '@angular/common';
|
|
3
|
+
import {LoginComponent} from './login.component';
|
|
4
|
+
import {
|
|
5
|
+
ButtonModule,
|
|
6
|
+
CoreComponentsTranslationModule,
|
|
7
|
+
FormModule,
|
|
8
|
+
IconModule,
|
|
9
|
+
InputCheckboxModule,
|
|
10
|
+
InputTextModule,
|
|
11
|
+
ListOfValuesModule
|
|
12
|
+
} from '@colijnit/corecomponents_v12';
|
|
13
|
+
import {LoginUsernamePasswordComponent} from './components/login-username-password.component';
|
|
14
|
+
import {LoginMfaCodeSetupComponent} from './components/login-mfa-code-setup.component';
|
|
15
|
+
import {LoginMfaCodeEntryComponent} from './components/login-mfa-code-entry.component';
|
|
16
|
+
import {LoginChangePasswordComponent} from './components/login-change-password.component';
|
|
17
|
+
import {RecaptchaModule} from 'ng-recaptcha';
|
|
18
|
+
import {LocalizationModule} from '../../localization/localization.module';
|
|
19
|
+
import {LocalizeService} from '../../localization/localize.service';
|
|
20
|
+
import {LoginService} from './service/login.service';
|
|
21
|
+
import {LoginAdapterService} from './service/login-adapter.service';
|
|
22
|
+
|
|
23
|
+
@NgModule({
|
|
24
|
+
imports: [
|
|
25
|
+
CommonModule,
|
|
26
|
+
FormModule,
|
|
27
|
+
InputTextModule,
|
|
28
|
+
ListOfValuesModule,
|
|
29
|
+
ButtonModule,
|
|
30
|
+
IconModule,
|
|
31
|
+
InputCheckboxModule,
|
|
32
|
+
RecaptchaModule,
|
|
33
|
+
CoreComponentsTranslationModule.forRoot()/*,
|
|
34
|
+
LocalizationModule*/
|
|
35
|
+
],
|
|
36
|
+
declarations: [
|
|
37
|
+
LoginComponent,
|
|
38
|
+
LoginUsernamePasswordComponent,
|
|
39
|
+
LoginMfaCodeSetupComponent,
|
|
40
|
+
LoginMfaCodeEntryComponent,
|
|
41
|
+
LoginChangePasswordComponent
|
|
42
|
+
],
|
|
43
|
+
providers: [
|
|
44
|
+
LoginAdapterService,
|
|
45
|
+
LoginService/*,
|
|
46
|
+
LocalizeService*/
|
|
47
|
+
],
|
|
48
|
+
exports: [
|
|
49
|
+
LoginComponent
|
|
50
|
+
]
|
|
51
|
+
})
|
|
52
|
+
export class LoginModule {
|
|
53
|
+
}
|