@colijnit/sharedcomponents 1.0.56 → 1.0.57
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/README.md +8 -11
- package/bundles/colijnit-sharedcomponents.umd.js +6748 -0
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -0
- package/colijnit-sharedcomponents.d.ts +74 -0
- package/colijnit-sharedcomponents.metadata.json +1 -0
- package/esm2015/colijnit-sharedcomponents.js +75 -0
- package/esm2015/lib/assets/dictionary/text.properties.js +11 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-base-view.component.js +61 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-day-view.component.js +36 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-event.component.js +56 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-events.component.js +47 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.js +68 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-header.component.js +243 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-cell.component.js +36 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.js +50 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-view.component.js +46 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-month-view.component.js +61 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-select-event.component.js +39 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-view.component.js +35 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-week-select-view.component.js +64 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-week-view.component.js +48 -0
- package/esm2015/lib/components/date-planning/component/agenda/view-select.component.js +42 -0
- package/esm2015/lib/components/date-planning/component/calendar/calendar-all-months.component.js +34 -0
- package/esm2015/lib/components/date-planning/component/calendar/calendar-all-years.component.js +48 -0
- package/esm2015/lib/components/date-planning/component/calendar/calendar-header.component.js +107 -0
- package/esm2015/lib/components/date-planning/component/calendar/calendar-view.component.js +178 -0
- package/esm2015/lib/components/date-planning/component/calendar/calendar.component.js +34 -0
- package/esm2015/lib/components/date-planning/date-planning.component.js +113 -0
- package/esm2015/lib/components/date-planning/date-planning.module.js +63 -0
- package/esm2015/lib/components/docsign/component/signature/signature.component.js +75 -0
- package/esm2015/lib/components/docsign/component/signatures/signatures.component.js +44 -0
- package/esm2015/lib/components/docsign/docsign.component.js +242 -0
- package/esm2015/lib/components/docsign/docsign.module.js +23 -0
- package/esm2015/lib/components/key-pad/key-pad.component.js +200 -0
- package/esm2015/lib/components/key-pad/key-pad.module.js +22 -0
- package/esm2015/lib/components/layout-switcher/layout-switcher.component.js +74 -0
- package/esm2015/lib/components/layout-switcher/layout-switcher.module.js +21 -0
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.component.js +59 -0
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.module.js +19 -0
- package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.js +79 -0
- package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.js +21 -0
- package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.js +85 -0
- package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.module.js +21 -0
- package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.js +64 -0
- package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.js +26 -0
- package/esm2015/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.js +40 -0
- package/esm2015/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.js +23 -0
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +61 -0
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.js +28 -0
- package/esm2015/lib/components/send-method-dialog/components/signature-button/signature-button.component.js +38 -0
- package/esm2015/lib/components/send-method-dialog/components/signature-button/signature-button.module.js +21 -0
- package/esm2015/lib/components/send-method-dialog/model/email-address-viewmodel.js +7 -0
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +258 -0
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.module.js +35 -0
- package/esm2015/lib/components/send-method-dialog/send-method-params.interface.js +2 -0
- package/esm2015/lib/components/send-method-dialog/service/send-method.service.js +59 -0
- package/esm2015/lib/components/simple-tags/simple-tags.component.js +229 -0
- package/esm2015/lib/components/simple-tags/simple-tags.module.js +26 -0
- package/esm2015/lib/components/statusbar/statusbar-popup.component.js +97 -0
- package/esm2015/lib/components/statusbar/statusbar.component.js +81 -0
- package/esm2015/lib/components/statusbar/statusbar.module.js +27 -0
- package/esm2015/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.js +47 -0
- package/esm2015/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.js +47 -0
- package/esm2015/lib/components/stock/components/order-stock-history/order-stock-history.component.js +47 -0
- package/esm2015/lib/components/stock/components/order-stock-tab/order-stock-tab.component.js +47 -0
- package/esm2015/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.js +47 -0
- package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +67 -0
- package/esm2015/lib/components/stock/components/stock-history/stock-history.component.js +53 -0
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +240 -0
- package/esm2015/lib/components/stock/components/stock-prognose/stock-prognose.component.js +52 -0
- package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +41 -0
- package/esm2015/lib/components/stock/localization/translation.js +63 -0
- package/esm2015/lib/components/stock/stock-history-tabs/stock-history-tabs.component.js +33 -0
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +48 -0
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +457 -0
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +241 -0
- package/esm2015/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.js +2 -0
- package/esm2015/lib/components/stock/stock-transfer/stock-change-amount.component.js +72 -0
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +149 -0
- package/esm2015/lib/components/stock/stock.component.js +193 -0
- package/esm2015/lib/components/stock/stock.module.js +80 -0
- package/esm2015/lib/components/stock-statusbar/stock-statusbar.component.js +23 -0
- package/esm2015/lib/components/stock-statusbar/stock-statusbar.module.js +19 -0
- package/esm2015/lib/components/tab-bar/tab-bar.component.js +88 -0
- package/esm2015/lib/components/tab-bar/tab-bar.module.js +21 -0
- package/esm2015/lib/components/tab-bar/tab.interface.js +2 -0
- package/esm2015/lib/enum/calendar-view.enum.js +9 -0
- package/esm2015/lib/enum/gauge-color.enum.js +10 -0
- package/esm2015/lib/enum/icon.enum.js +38 -0
- package/esm2015/lib/enum/keyboard-code.enum.js +32 -0
- package/esm2015/lib/enum/language-code.enum.js +8 -0
- package/esm2015/lib/enum/month.enum.js +17 -0
- package/esm2015/lib/enum/thumb-three-way-state.js +19 -0
- package/esm2015/lib/enum/time-period.enum.js +11 -0
- package/esm2015/lib/localization/localization.module.js +19 -0
- package/esm2015/lib/localization/localize.pipe.js +26 -0
- package/esm2015/lib/localization/localize.service.js +30 -0
- package/esm2015/lib/localization/translation.js +3 -0
- package/esm2015/lib/model/agenda-event-per-day.model.js +6 -0
- package/esm2015/lib/model/agenda-event.model.js +8 -0
- package/esm2015/lib/model/agenda-null-objects.js +11 -0
- package/esm2015/lib/model/constant/all-months.js +17 -0
- package/esm2015/lib/model/date-range.js +5 -0
- package/esm2015/lib/model/day.model.js +7 -0
- package/esm2015/lib/model/icon-svg.js +37 -0
- package/esm2015/lib/model/month.model.js +11 -0
- package/esm2015/lib/model/send-method.js +8 -0
- package/esm2015/lib/model/settings.js +4 -0
- package/esm2015/lib/model/time-window.bo.js +26 -0
- package/esm2015/lib/model/week.model.js +6 -0
- package/esm2015/lib/model/weekday.model.js +10 -0
- package/esm2015/lib/pipe/array-number.pipe.js +15 -0
- package/esm2015/lib/pipe/master-pipes.js +7 -0
- package/esm2015/lib/pipe/ucfirst.pipe.js +16 -0
- package/esm2015/lib/service/dictionary.service.js +76 -0
- package/esm2015/lib/service/icon-cache.service.js +51 -0
- package/esm2015/lib/service/options.service.js +48 -0
- package/esm2015/lib/service/shared-connector.service.js +424 -0
- package/esm2015/lib/service/shared.service.js +60 -0
- package/esm2015/lib/service/stock.service.js +110 -0
- package/esm2015/lib/utils/calendar.utils.js +68 -0
- package/esm2015/lib/utils/date-utils.js +264 -0
- package/esm2015/lib/utils/function/not-nill.function.js +5 -0
- package/esm2015/lib/utils/map-utils.js +41 -0
- package/esm2015/lib/utils/string-utils.js +64 -0
- package/esm2015/public-api.js +27 -0
- package/fesm2015/colijnit-sharedcomponents.js +7033 -0
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -0
- package/lib/assets/dictionary/text.properties.d.ts +3 -0
- package/lib/components/date-planning/component/agenda/agenda-base-view.component.d.ts +21 -0
- package/lib/components/date-planning/component/agenda/agenda-day-view.component.d.ts +7 -0
- package/lib/components/date-planning/component/agenda/agenda-event.component.d.ts +18 -0
- package/lib/components/date-planning/component/agenda/agenda-events.component.d.ts +13 -0
- package/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.d.ts +18 -0
- package/lib/components/date-planning/component/agenda/agenda-header.component.d.ts +48 -0
- package/lib/components/date-planning/component/agenda/agenda-hour-cell.component.d.ts +9 -0
- package/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.d.ts +8 -0
- package/lib/components/date-planning/component/agenda/agenda-hour-view.component.d.ts +7 -0
- package/lib/components/date-planning/component/agenda/agenda-month-view.component.d.ts +10 -0
- package/lib/components/date-planning/component/agenda/agenda-select-event.component.d.ts +12 -0
- package/lib/components/date-planning/component/agenda/agenda-view.component.d.ts +12 -0
- package/lib/components/date-planning/component/agenda/agenda-week-select-view.component.d.ts +10 -0
- package/lib/components/date-planning/component/agenda/agenda-week-view.component.d.ts +9 -0
- package/lib/components/date-planning/component/agenda/view-select.component.d.ts +11 -0
- package/lib/components/date-planning/component/calendar/calendar-all-months.component.d.ts +9 -0
- package/lib/components/date-planning/component/calendar/calendar-all-years.component.d.ts +9 -0
- package/lib/components/date-planning/component/calendar/calendar-header.component.d.ts +23 -0
- package/lib/components/date-planning/component/calendar/calendar-view.component.d.ts +31 -0
- package/lib/components/date-planning/component/calendar/calendar.component.d.ts +10 -0
- package/lib/components/date-planning/date-planning.component.d.ts +28 -0
- package/lib/components/date-planning/date-planning.module.d.ts +2 -0
- package/lib/components/docsign/component/signature/signature.component.d.ts +16 -0
- package/lib/components/docsign/component/signatures/signatures.component.d.ts +12 -0
- package/lib/components/docsign/docsign.component.d.ts +94 -0
- package/lib/components/docsign/docsign.module.d.ts +2 -0
- package/lib/components/key-pad/key-pad.component.d.ts +38 -0
- package/lib/components/key-pad/key-pad.module.d.ts +2 -0
- package/lib/components/layout-switcher/layout-switcher.component.d.ts +16 -0
- package/lib/components/layout-switcher/layout-switcher.module.d.ts +2 -0
- package/lib/components/linear-gauge/co-linear-gauge.component.d.ts +11 -0
- package/lib/components/linear-gauge/co-linear-gauge.module.d.ts +2 -0
- package/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.d.ts +19 -0
- package/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.d.ts +2 -0
- package/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.d.ts +19 -0
- package/lib/components/send-method-dialog/components/printer-selection/printer-selection.module.d.ts +2 -0
- package/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.d.ts +14 -0
- package/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.d.ts +2 -0
- package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.d.ts +8 -0
- package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.d.ts +2 -0
- package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.d.ts +13 -0
- package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.d.ts +2 -0
- package/lib/components/send-method-dialog/components/signature-button/signature-button.component.d.ts +12 -0
- package/lib/components/send-method-dialog/components/signature-button/signature-button.module.d.ts +2 -0
- package/lib/components/send-method-dialog/model/email-address-viewmodel.d.ts +5 -0
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +71 -0
- package/lib/components/send-method-dialog/send-method-dialog.module.d.ts +2 -0
- package/lib/components/send-method-dialog/send-method-params.interface.d.ts +13 -0
- package/lib/components/send-method-dialog/service/send-method.service.d.ts +23 -0
- package/lib/components/simple-tags/simple-tags.component.d.ts +31 -0
- package/lib/components/simple-tags/simple-tags.module.d.ts +2 -0
- package/lib/components/statusbar/statusbar-popup.component.d.ts +21 -0
- package/lib/components/statusbar/statusbar.component.d.ts +26 -0
- package/lib/components/statusbar/statusbar.module.d.ts +2 -0
- package/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.d.ts +9 -0
- package/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.d.ts +9 -0
- package/lib/components/stock/components/order-stock-history/order-stock-history.component.d.ts +9 -0
- package/lib/components/stock/components/order-stock-tab/order-stock-tab.component.d.ts +11 -0
- package/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.d.ts +9 -0
- package/lib/components/stock/components/order-tab/order-tab.component.d.ts +20 -0
- package/lib/components/stock/components/stock-history/stock-history.component.d.ts +13 -0
- package/lib/components/stock/components/stock-location/stock-location.component.d.ts +50 -0
- package/lib/components/stock/components/stock-prognose/stock-prognose.component.d.ts +11 -0
- package/lib/components/stock/components/stock-tab/stock-tab.component.d.ts +9 -0
- package/lib/components/stock/localization/translation.d.ts +60 -0
- package/lib/components/stock/stock-history-tabs/stock-history-tabs.component.d.ts +7 -0
- package/lib/components/stock/stock-information/stock-information.component.d.ts +8 -0
- package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +75 -0
- package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +56 -0
- package/{projects/sharedcomponents/src/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.ts → lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.d.ts} +2 -2
- package/lib/components/stock/stock-transfer/stock-change-amount.component.d.ts +18 -0
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +42 -0
- package/lib/components/stock/stock.component.d.ts +57 -0
- package/lib/components/stock/stock.module.d.ts +2 -0
- package/lib/components/stock-statusbar/stock-statusbar.component.d.ts +4 -0
- package/lib/components/stock-statusbar/stock-statusbar.module.d.ts +2 -0
- package/lib/components/tab-bar/tab-bar.component.d.ts +21 -0
- package/lib/components/tab-bar/tab-bar.module.d.ts +2 -0
- package/lib/components/tab-bar/tab.interface.d.ts +5 -0
- package/{projects/sharedcomponents/src/lib/enum/calendar-view.enum.ts → lib/enum/calendar-view.enum.d.ts} +2 -3
- package/lib/enum/gauge-color.enum.d.ts +8 -0
- package/{projects/sharedcomponents/src/lib/enum/icon.enum.ts → lib/enum/icon.enum.d.ts} +2 -3
- package/lib/enum/keyboard-code.enum.d.ts +30 -0
- package/lib/enum/language-code.enum.d.ts +6 -0
- package/{projects/sharedcomponents/src/lib/enum/month.enum.ts → lib/enum/month.enum.d.ts} +1 -2
- package/lib/enum/thumb-three-way-state.d.ts +6 -0
- package/{projects/sharedcomponents/src/lib/enum/time-period.enum.ts → lib/enum/time-period.enum.d.ts} +1 -2
- package/lib/localization/localization.module.d.ts +2 -0
- package/lib/localization/localize.pipe.d.ts +7 -0
- package/lib/localization/localize.service.d.ts +7 -0
- package/lib/localization/translation.d.ts +2 -0
- package/lib/model/agenda-event-per-day.model.d.ts +5 -0
- package/lib/model/agenda-event.model.d.ts +17 -0
- package/lib/model/agenda-null-objects.d.ts +10 -0
- package/lib/model/constant/all-months.d.ts +2 -0
- package/lib/model/date-range.d.ts +7 -0
- package/lib/model/day.model.d.ts +8 -0
- package/lib/model/icon-svg.d.ts +4 -0
- package/lib/model/month.model.d.ts +5 -0
- package/lib/model/send-method.d.ts +7 -0
- package/lib/model/settings.d.ts +3 -0
- package/lib/model/time-window.bo.d.ts +13 -0
- package/lib/model/week.model.d.ts +4 -0
- package/lib/model/weekday.model.d.ts +16 -0
- package/lib/pipe/array-number.pipe.d.ts +4 -0
- package/lib/pipe/master-pipes.d.ts +1 -0
- package/lib/pipe/ucfirst.pipe.d.ts +4 -0
- package/lib/service/dictionary.service.d.ts +21 -0
- package/lib/service/icon-cache.service.d.ts +18 -0
- package/lib/service/options.service.d.ts +13 -0
- package/lib/service/shared-connector.service.d.ts +53 -0
- package/lib/service/shared.service.d.ts +18 -0
- package/lib/service/stock.service.d.ts +41 -0
- package/lib/utils/calendar.utils.d.ts +10 -0
- package/lib/utils/date-utils.d.ts +44 -0
- package/lib/utils/function/not-nill.function.d.ts +1 -0
- package/lib/utils/map-utils.d.ts +16 -0
- package/lib/utils/string-utils.d.ts +22 -0
- package/package.json +31 -68
- package/{projects/sharedcomponents/src/public-api.ts → public-api.d.ts} +0 -4
- package/.browserslistrc +0 -16
- package/.editorconfig +0 -16
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -20
- package/.vscode/tasks.json +0 -42
- package/Sharedcomponents.iml +0 -11
- package/angular.json +0 -177
- package/custom-login-bundle.webpack.config.js +0 -3
- package/karma.conf.js +0 -44
- package/move-assets.js +0 -14
- package/projects/sharedcomponents/.browserslistrc +0 -16
- package/projects/sharedcomponents/README.md +0 -24
- package/projects/sharedcomponents/karma.conf.js +0 -44
- package/projects/sharedcomponents/ng-package.json +0 -17
- package/projects/sharedcomponents/package.json +0 -23
- package/projects/sharedcomponents/src/lib/assets/dictionary/text.properties.ts +0 -8
- package/projects/sharedcomponents/src/lib/assets/icons/account.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/angle_left_solid.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/angle_right_solid.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/arrow_fat_right.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/arrow_point_left.svg +0 -8
- package/projects/sharedcomponents/src/lib/assets/icons/arrow_point_right.svg +0 -4
- package/projects/sharedcomponents/src/lib/assets/icons/at_solid.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/bring_forward_regular.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/check_duotone.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/check_round.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/cross_skinny.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/delete_left_regular.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/delivery_truck.svg +0 -12
- package/projects/sharedcomponents/src/lib/assets/icons/email.svg +0 -5
- package/projects/sharedcomponents/src/lib/assets/icons/envelope_regular.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/eye_regular.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/file_export_regular.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/file_export_solid.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/file_pdf_regular.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/file_pdf_solid.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/file_signature_regular.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/house_blank_regular.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/lock.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/message_sms_regular.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/message_sms_solid.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/pdf.svg +0 -15
- package/projects/sharedcomponents/src/lib/assets/icons/print.svg +0 -10
- package/projects/sharedcomponents/src/lib/assets/icons/print_regular.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/print_solid.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/signature_field.svg +0 -9
- package/projects/sharedcomponents/src/lib/assets/icons/tag_regular.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/x_solid.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/xml.svg +0 -1
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-base-view.component.ts +0 -68
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-day-view.component.ts +0 -35
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-event.component.ts +0 -73
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-events.component.ts +0 -53
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.ts +0 -81
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-header.component.ts +0 -275
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-cell.component.ts +0 -38
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.ts +0 -50
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-view.component.ts +0 -46
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-month-view.component.ts +0 -65
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-select-event.component.ts +0 -39
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-view.component.ts +0 -41
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-week-select-view.component.ts +0 -63
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-week-view.component.ts +0 -50
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/view-select.component.ts +0 -43
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-all-months.component.ts +0 -37
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-all-years.component.ts +0 -52
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-header.component.ts +0 -123
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-view.component.ts +0 -200
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar.component.ts +0 -35
- package/projects/sharedcomponents/src/lib/components/date-planning/date-planning.component.ts +0 -141
- package/projects/sharedcomponents/src/lib/components/date-planning/date-planning.module.ts +0 -61
- package/projects/sharedcomponents/src/lib/components/docsign/component/signature/signature.component.ts +0 -82
- package/projects/sharedcomponents/src/lib/components/docsign/component/signatures/signatures.component.ts +0 -50
- package/projects/sharedcomponents/src/lib/components/docsign/docsign.component.ts +0 -270
- package/projects/sharedcomponents/src/lib/components/docsign/docsign.module.ts +0 -22
- package/projects/sharedcomponents/src/lib/components/key-pad/key-pad.component.ts +0 -216
- package/projects/sharedcomponents/src/lib/components/key-pad/key-pad.module.ts +0 -20
- package/projects/sharedcomponents/src/lib/components/layout-switcher/layout-switcher.component.ts +0 -98
- package/projects/sharedcomponents/src/lib/components/layout-switcher/layout-switcher.module.ts +0 -21
- package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.component.ts +0 -57
- package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.module.ts +0 -17
- package/projects/sharedcomponents/src/lib/components/login/components/login-base.component.ts +0 -98
- package/projects/sharedcomponents/src/lib/components/login/components/login-change-password.component.ts +0 -194
- package/projects/sharedcomponents/src/lib/components/login/components/login-mfa-code-entry.component.ts +0 -41
- package/projects/sharedcomponents/src/lib/components/login/components/login-mfa-code-setup.component.ts +0 -44
- package/projects/sharedcomponents/src/lib/components/login/components/login-username-password.component.ts +0 -167
- package/projects/sharedcomponents/src/lib/components/login/localization/login-translation.ts +0 -15
- package/projects/sharedcomponents/src/lib/components/login/login.component.ts +0 -137
- package/projects/sharedcomponents/src/lib/components/login/login.module.ts +0 -53
- package/projects/sharedcomponents/src/lib/components/login/service/login-adapter.service.ts +0 -58
- package/projects/sharedcomponents/src/lib/components/login/service/login.service.ts +0 -50
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/enums/field-type.enum.ts +0 -9
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Config.ts +0 -6
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Field.ts +0 -8
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Header.ts +0 -8
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Module.ts +0 -6
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Rubric.ts +0 -10
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/ScreenConfig.ts +0 -9
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/SubCat.ts +0 -9
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/SubRubric.ts +0 -8
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/screen-config-generator.component.ts +0 -539
- package/projects/sharedcomponents/src/lib/components/screen-config-generator/screen-config-generator.module.ts +0 -21
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.ts +0 -91
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.ts +0 -19
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.ts +0 -84
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/printer-selection/printer-selection.module.ts +0 -19
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.ts +0 -63
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.ts +0 -24
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.ts +0 -38
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.ts +0 -21
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.ts +0 -60
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.ts +0 -26
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/signature-button/signature-button.component.ts +0 -42
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/signature-button/signature-button.module.ts +0 -19
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/model/email-address-viewmodel.ts +0 -9
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.component.ts +0 -325
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.module.ts +0 -32
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-params.interface.ts +0 -13
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/service/send-method.service.ts +0 -63
- package/projects/sharedcomponents/src/lib/components/simple-tags/simple-tags.component.ts +0 -243
- package/projects/sharedcomponents/src/lib/components/simple-tags/simple-tags.module.ts +0 -24
- package/projects/sharedcomponents/src/lib/components/statusbar/statusbar-popup.component.ts +0 -100
- package/projects/sharedcomponents/src/lib/components/statusbar/statusbar.component.ts +0 -107
- package/projects/sharedcomponents/src/lib/components/statusbar/statusbar.module.ts +0 -25
- package/projects/sharedcomponents/src/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.ts +0 -45
- package/projects/sharedcomponents/src/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.ts +0 -45
- package/projects/sharedcomponents/src/lib/components/stock/components/order-stock-history/order-stock-history.component.ts +0 -45
- package/projects/sharedcomponents/src/lib/components/stock/components/order-stock-tab/order-stock-tab.component.ts +0 -43
- package/projects/sharedcomponents/src/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.ts +0 -45
- package/projects/sharedcomponents/src/lib/components/stock/components/order-tab/order-tab.component.ts +0 -71
- package/projects/sharedcomponents/src/lib/components/stock/components/stock-history/stock-history.component.ts +0 -52
- package/projects/sharedcomponents/src/lib/components/stock/components/stock-location/stock-location.component.ts +0 -276
- package/projects/sharedcomponents/src/lib/components/stock/components/stock-prognose/stock-prognose.component.ts +0 -49
- package/projects/sharedcomponents/src/lib/components/stock/components/stock-tab/stock-tab.component.ts +0 -40
- package/projects/sharedcomponents/src/lib/components/stock/localization/translation.ts +0 -60
- package/projects/sharedcomponents/src/lib/components/stock/stock-history-tabs/stock-history-tabs.component.ts +0 -32
- package/projects/sharedcomponents/src/lib/components/stock/stock-information/stock-information.component.ts +0 -56
- package/projects/sharedcomponents/src/lib/components/stock/stock-information-grid/stock-information-grid.component.ts +0 -500
- package/projects/sharedcomponents/src/lib/components/stock/stock-tabs/stock-tabs.component.ts +0 -276
- package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-change-amount.component.ts +0 -77
- package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-transfer.component.ts +0 -178
- package/projects/sharedcomponents/src/lib/components/stock/stock.component.ts +0 -228
- package/projects/sharedcomponents/src/lib/components/stock/stock.module.ts +0 -97
- package/projects/sharedcomponents/src/lib/components/stock-statusbar/stock-statusbar.component.ts +0 -23
- package/projects/sharedcomponents/src/lib/components/stock-statusbar/stock-statusbar.module.ts +0 -17
- package/projects/sharedcomponents/src/lib/components/tab-bar/tab-bar.component.ts +0 -106
- package/projects/sharedcomponents/src/lib/components/tab-bar/tab-bar.module.ts +0 -20
- package/projects/sharedcomponents/src/lib/components/tab-bar/tab.interface.ts +0 -5
- package/projects/sharedcomponents/src/lib/components/tags/component/tag-join-label/tag-join-label.component.ts +0 -61
- package/projects/sharedcomponents/src/lib/components/tags/component/tag-label/tag-label.component.ts +0 -47
- package/projects/sharedcomponents/src/lib/components/tags/component/treeview/model/tree-view-node-item.ts +0 -132
- package/projects/sharedcomponents/src/lib/components/tags/component/treeview/treeview.component.ts +0 -258
- package/projects/sharedcomponents/src/lib/components/tags/tags.component.ts +0 -192
- package/projects/sharedcomponents/src/lib/components/tags/tags.module.ts +0 -27
- package/projects/sharedcomponents/src/lib/directives/click-outside.directive.ts +0 -25
- package/projects/sharedcomponents/src/lib/enum/gauge-color.enum.ts +0 -8
- package/projects/sharedcomponents/src/lib/enum/keyboard-code.enum.ts +0 -30
- package/projects/sharedcomponents/src/lib/enum/language-code.enum.ts +0 -6
- package/projects/sharedcomponents/src/lib/enum/login-component-extra-action-type.enum.ts +0 -4
- package/projects/sharedcomponents/src/lib/enum/login-component-page.type.enum.ts +0 -6
- package/projects/sharedcomponents/src/lib/enum/login-component-query-variables-name.enum.ts +0 -5
- package/projects/sharedcomponents/src/lib/enum/tag-category.enum.ts +0 -20
- package/projects/sharedcomponents/src/lib/enum/thumb-three-way-state.ts +0 -18
- package/projects/sharedcomponents/src/lib/localization/localization.module.ts +0 -17
- package/projects/sharedcomponents/src/lib/localization/localize.pipe.ts +0 -21
- package/projects/sharedcomponents/src/lib/localization/localize.service.ts +0 -28
- package/projects/sharedcomponents/src/lib/localization/translation.ts +0 -2
- package/projects/sharedcomponents/src/lib/model/agenda-event-per-day.model.ts +0 -6
- package/projects/sharedcomponents/src/lib/model/agenda-event.model.ts +0 -19
- package/projects/sharedcomponents/src/lib/model/agenda-null-objects.ts +0 -11
- package/projects/sharedcomponents/src/lib/model/constant/all-months.ts +0 -17
- package/projects/sharedcomponents/src/lib/model/date-range.ts +0 -10
- package/projects/sharedcomponents/src/lib/model/day.model.ts +0 -9
- package/projects/sharedcomponents/src/lib/model/icon-svg.ts +0 -37
- package/projects/sharedcomponents/src/lib/model/month.model.ts +0 -11
- package/projects/sharedcomponents/src/lib/model/send-method.ts +0 -13
- package/projects/sharedcomponents/src/lib/model/settings.ts +0 -5
- package/projects/sharedcomponents/src/lib/model/tag-tree-item.bo.ts +0 -28
- package/projects/sharedcomponents/src/lib/model/time-window.bo.ts +0 -21
- package/projects/sharedcomponents/src/lib/model/tree-object.ts +0 -13
- package/projects/sharedcomponents/src/lib/model/tree-view-default.model.ts +0 -107
- package/projects/sharedcomponents/src/lib/model/tree-view-node-default.model.ts +0 -196
- package/projects/sharedcomponents/src/lib/model/tree-view-node-item-options.model.ts +0 -12
- package/projects/sharedcomponents/src/lib/model/tree-view-node.model.ts +0 -150
- package/projects/sharedcomponents/src/lib/model/tree-view.model.ts +0 -57
- package/projects/sharedcomponents/src/lib/model/week.model.ts +0 -5
- package/projects/sharedcomponents/src/lib/model/weekday.model.ts +0 -17
- package/projects/sharedcomponents/src/lib/pipe/array-number.pipe.ts +0 -14
- package/projects/sharedcomponents/src/lib/pipe/master-pipes.ts +0 -7
- package/projects/sharedcomponents/src/lib/pipe/ucfirst.pipe.ts +0 -14
- package/projects/sharedcomponents/src/lib/service/dictionary.service.ts +0 -86
- package/projects/sharedcomponents/src/lib/service/icon-cache.service.ts +0 -51
- package/projects/sharedcomponents/src/lib/service/options.service.ts +0 -43
- package/projects/sharedcomponents/src/lib/service/shared-connector.service.ts +0 -401
- package/projects/sharedcomponents/src/lib/service/shared-initializer.service.ts +0 -29
- package/projects/sharedcomponents/src/lib/service/shared.service.ts +0 -49
- package/projects/sharedcomponents/src/lib/service/stock.service.ts +0 -124
- package/projects/sharedcomponents/src/lib/utils/array-utils.ts +0 -225
- package/projects/sharedcomponents/src/lib/utils/calendar.utils.ts +0 -75
- package/projects/sharedcomponents/src/lib/utils/check-precision-and-scale-result.ts +0 -5
- package/projects/sharedcomponents/src/lib/utils/check-within-stepped-bounds-result.ts +0 -8
- package/projects/sharedcomponents/src/lib/utils/css-utils.ts +0 -275
- package/projects/sharedcomponents/src/lib/utils/date-utils.ts +0 -302
- package/projects/sharedcomponents/src/lib/utils/function/not-nill.function.ts +0 -4
- package/projects/sharedcomponents/src/lib/utils/is-nill.function.ts +0 -4
- package/projects/sharedcomponents/src/lib/utils/map-utils.ts +0 -44
- package/projects/sharedcomponents/src/lib/utils/number-utils.ts +0 -439
- package/projects/sharedcomponents/src/lib/utils/object-utils.ts +0 -310
- package/projects/sharedcomponents/src/lib/utils/string-utils.ts +0 -67
- package/projects/sharedcomponents/src/lib/utils/tree-utils.ts +0 -63
- package/projects/sharedcomponents/src/test.ts +0 -27
- package/projects/sharedcomponents/tsconfig.lib.json +0 -18
- package/projects/sharedcomponents/tsconfig.lib.prod.json +0 -10
- package/projects/sharedcomponents/tsconfig.spec.json +0 -17
- package/script/create-bundle-version.js +0 -19
- package/script/merge-icons.js +0 -39
- package/src/app/app.component.scss +0 -31
- package/src/app/app.component.spec.ts +0 -31
- package/src/app/app.component.ts +0 -454
- package/src/app/app.module.ts +0 -69
- package/src/app/bundle/index.html +0 -14
- package/src/app/bundle/login/login-bundle.component.scss +0 -6
- package/src/app/bundle/login/login-bundle.component.ts +0 -111
- package/src/app/bundle/login/login-bundle.module.ts +0 -30
- package/src/app/bundle/main-login-bundle.ts +0 -11
- package/src/app/bundle/polyfills.ts +0 -63
- package/src/app/test-data.service.ts +0 -60
- package/src/assets/.gitkeep +0 -0
- package/src/environments/environment.bundle.prod.ts +0 -3
- package/src/environments/environment.prod.ts +0 -3
- package/src/environments/environment.ts +0 -16
- package/src/favicon.ico +0 -0
- package/src/index.html +0 -13
- package/src/main.ts +0 -12
- package/src/polyfills.ts +0 -53
- package/src/styles.scss +0 -54
- package/src/test.ts +0 -26
- package/tsconfig.app.json +0 -15
- package/tsconfig.bundle.json +0 -38
- package/tsconfig.json +0 -64
- package/tsconfig.spec.json +0 -18
- package/webpack.login.bundle.config.js +0 -32
- /package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/component/agenda/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/component/agenda/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/component/agenda/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/component/agenda/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/component/calendar/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/component/calendar/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/component/calendar/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/component/calendar/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/docsign/component/signature/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/docsign/component/signature/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/docsign/component/signature/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/docsign/component/signature/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/docsign/component/signatures/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/docsign/component/signatures/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/docsign/component/signatures/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/docsign/component/signatures/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/docsign/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/docsign/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/docsign/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/docsign/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/key-pad/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/key-pad/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/key-pad/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/key-pad/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/layout-switcher/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/layout-switcher/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/layout-switcher/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/layout-switcher/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/linear-gauge/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/linear-gauge/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/linear-gauge/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/linear-gauge/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/login/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/login/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/login/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/login/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/screen-config-generator/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/screen-config-generator/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/screen-config-generator/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/screen-config-generator/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/layout-selection/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/layout-selection/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/layout-selection/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/layout-selection/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/printer-selection/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/printer-selection/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/printer-selection/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/printer-selection/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/send-method-email/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/send-method-email/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/send-method-email/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/send-method-email/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/send-method-pdf/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/send-method-pdf/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/send-method-pdf/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/send-method-pdf/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/send-method-printer/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/send-method-printer/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/send-method-printer/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/send-method-printer/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/signature-button/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/signature-button/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/signature-button/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/components/signature-button/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/simple-tags/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/simple-tags/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/simple-tags/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/simple-tags/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/statusbar/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/statusbar/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/statusbar/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/statusbar/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/stock/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/stock/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/stock/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/stock/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/stock-statusbar/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/stock-statusbar/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/stock-statusbar/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/stock-statusbar/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/tab-bar/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/tab-bar/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/tab-bar/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/tab-bar/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/tags/component/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/tags/component/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/tags/component/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/tags/component/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/tags/component/tag-join-label/style/_layout.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/tags/component/tag-join-label/style/_material-definition.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/tags/component/tag-join-label/style/_theme.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/components/tags/component/tag-join-label/style/material.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/style/_mixin.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/style/_variables.scss +0 -0
- /package/{projects/sharedcomponents/src/lib → lib}/style/sharedcomponents-globals.scss +0 -0
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import {Component, ElementRef, EventEmitter, HostBinding, Input, OnInit, Output, ViewChild, ViewEncapsulation} from "@angular/core";
|
|
2
|
-
import SignaturePad from "signature_pad";
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: "co-signature",
|
|
6
|
-
template: `
|
|
7
|
-
<div class="signature-wrapper">
|
|
8
|
-
<div class="signature-header">
|
|
9
|
-
<span *ngIf="title" class="title" [textContent]="title"></span>
|
|
10
|
-
<div class="button-wrapper">
|
|
11
|
-
<input type="button" (click)="handleSave($event)" [value]="saveButtonLabel"/>
|
|
12
|
-
<input type="button" (click)="handleClear($event)" [value]="clearButtonLabel">
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="canvas">
|
|
16
|
-
<canvas #signature></canvas>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
`,
|
|
20
|
-
encapsulation: ViewEncapsulation.None
|
|
21
|
-
})
|
|
22
|
-
export class SignatureComponent {
|
|
23
|
-
@ViewChild("signature", {read: ElementRef}) set content(content: ElementRef) {
|
|
24
|
-
if (content) {
|
|
25
|
-
this.signatureCanvas = content;
|
|
26
|
-
this._initCanvas();
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@Input()
|
|
31
|
-
public title: string;
|
|
32
|
-
|
|
33
|
-
@Input()
|
|
34
|
-
public saveButtonLabel: string = 'SAVE';
|
|
35
|
-
|
|
36
|
-
@Input()
|
|
37
|
-
public clearButtonLabel: string = 'CLEAR';
|
|
38
|
-
|
|
39
|
-
@Output()
|
|
40
|
-
public save: EventEmitter<string> = new EventEmitter<string>();
|
|
41
|
-
|
|
42
|
-
@HostBinding("class.co-signature")
|
|
43
|
-
public showClass() {
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
public signature: SignaturePad;
|
|
48
|
-
public signatureCanvas: ElementRef;
|
|
49
|
-
|
|
50
|
-
public handleSave(event: MouseEvent): void {
|
|
51
|
-
// save canvas as svg
|
|
52
|
-
// const sig: string = this.signature.toDataURL("image/svg+xml");
|
|
53
|
-
const sig: string = this.signature.toDataURL("image/png");
|
|
54
|
-
// emit signature string
|
|
55
|
-
this.save.next(sig);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
public handleClear(event: MouseEvent): void {
|
|
59
|
-
if (this.signature) {
|
|
60
|
-
this.signature.clear();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
private _initCanvas(): void {
|
|
65
|
-
if (this.signatureCanvas && this.signatureCanvas.nativeElement) {
|
|
66
|
-
this.signature = new SignaturePad(this.signatureCanvas.nativeElement);
|
|
67
|
-
setTimeout(() => {
|
|
68
|
-
this._resizeSignatureCanvas(this.signature, this.signatureCanvas);
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
private _resizeSignatureCanvas(signature: SignaturePad, signatureCanvas: ElementRef): void {
|
|
74
|
-
const imageBeforeResize: string = signature.toDataURL();
|
|
75
|
-
const ratio: number = Math.max(window.devicePixelRatio || 1, 1);
|
|
76
|
-
signatureCanvas.nativeElement.width = signatureCanvas.nativeElement.offsetWidth * ratio;
|
|
77
|
-
signatureCanvas.nativeElement.height = signatureCanvas.nativeElement.offsetHeight * ratio;
|
|
78
|
-
signatureCanvas.nativeElement.getContext("2d").scale(ratio, ratio);
|
|
79
|
-
signature.fromDataURL(imageBeforeResize);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import {Component, EventEmitter, HostBinding, Input, Output, ViewEncapsulation} from "@angular/core";
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: "co-signatures",
|
|
5
|
-
template: `
|
|
6
|
-
<co-signature *ngIf="showFirstSignature"
|
|
7
|
-
[title]="firstSignatureTitle"
|
|
8
|
-
[saveButtonLabel]="saveButtonLabel"
|
|
9
|
-
[clearButtonLabel]="clearButtonLabel"
|
|
10
|
-
(save)="saveFirstSignature.emit($event)"></co-signature>
|
|
11
|
-
<co-signature *ngIf="showSecondSignature"
|
|
12
|
-
[title]="secondSignatureTitle"
|
|
13
|
-
[saveButtonLabel]="saveButtonLabel"
|
|
14
|
-
[clearButtonLabel]="clearButtonLabel"
|
|
15
|
-
(save)="saveSecondSignature.emit($event)"></co-signature>
|
|
16
|
-
`,
|
|
17
|
-
encapsulation: ViewEncapsulation.None
|
|
18
|
-
})
|
|
19
|
-
export class SignaturesComponent {
|
|
20
|
-
|
|
21
|
-
@Input()
|
|
22
|
-
public showFirstSignature: boolean = false;
|
|
23
|
-
|
|
24
|
-
@Input()
|
|
25
|
-
public firstSignatureTitle: string;
|
|
26
|
-
|
|
27
|
-
@Input()
|
|
28
|
-
public showSecondSignature: boolean = false;
|
|
29
|
-
|
|
30
|
-
@Input()
|
|
31
|
-
public secondSignatureTitle: string;
|
|
32
|
-
|
|
33
|
-
@Input()
|
|
34
|
-
public saveButtonLabel: string = 'SAVE';
|
|
35
|
-
|
|
36
|
-
@Input()
|
|
37
|
-
public clearButtonLabel: string = 'CLEAR';
|
|
38
|
-
|
|
39
|
-
@Output()
|
|
40
|
-
public saveFirstSignature: EventEmitter<string> = new EventEmitter<string>();
|
|
41
|
-
|
|
42
|
-
@Output()
|
|
43
|
-
public saveSecondSignature: EventEmitter<string> = new EventEmitter<string>();
|
|
44
|
-
|
|
45
|
-
@HostBinding("class.co-signatures")
|
|
46
|
-
public showClass() {
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
}
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
import {Component, ElementRef, EventEmitter, HostBinding, Input, Output, ViewChild, ViewEncapsulation} from "@angular/core";
|
|
2
|
-
import {animate, state, style, transition, trigger} from "@angular/animations";
|
|
3
|
-
import {PDFDocument} from "pdf-lib";
|
|
4
|
-
import * as PDFJS from "pdfjs-dist/legacy/build/pdf";
|
|
5
|
-
import pdfjsWorker from "pdfjs-dist/build/pdf.worker.entry";
|
|
6
|
-
import {TextItem} from "pdfjs-dist/types/src/display/api";
|
|
7
|
-
|
|
8
|
-
export interface TextDimension {
|
|
9
|
-
x: number,
|
|
10
|
-
y: number,
|
|
11
|
-
width: number,
|
|
12
|
-
height: number,
|
|
13
|
-
page: number
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@Component({
|
|
17
|
-
selector: "co-docsign",
|
|
18
|
-
template: `
|
|
19
|
-
<iframe #iframe></iframe>
|
|
20
|
-
<co-signatures *ngIf="showSignatures" @showHideSignature
|
|
21
|
-
[showFirstSignature]="showSigBuyer"
|
|
22
|
-
[firstSignatureTitle]="firstSignatureLabel"
|
|
23
|
-
[showSecondSignature]="showSigSeller"
|
|
24
|
-
[secondSignatureTitle]="secondSignatureLabel"
|
|
25
|
-
[saveButtonLabel]="saveButtonLabel"
|
|
26
|
-
[clearButtonLabel]="clearButtonLabel"
|
|
27
|
-
(saveFirstSignature)="saveFirstSignature($event)"
|
|
28
|
-
(saveSecondSignature)="saveSecondSignature($event)"
|
|
29
|
-
></co-signatures>
|
|
30
|
-
<input type="button" *ngIf="(showSigBuyer || showSigSeller) && !showSignatures" class="button button-sign-document"
|
|
31
|
-
[value]="signDocumentButtonLabel"
|
|
32
|
-
(click)="showSignatures = true"
|
|
33
|
-
/>
|
|
34
|
-
<input type="button" class="button button-cancel"
|
|
35
|
-
[value]="cancelButtonLabel"
|
|
36
|
-
(click)="cancelClick.emit($event)"
|
|
37
|
-
/>
|
|
38
|
-
`,
|
|
39
|
-
animations: [
|
|
40
|
-
trigger("showHideSignature", [
|
|
41
|
-
state("void", style({transform: "translate(-50%, -50%) scale(0)"})),
|
|
42
|
-
state("*", style({transform: "translate(-50%, -50%) scale(1)"})),
|
|
43
|
-
transition("void <=> *", animate("200ms ease-in-out")),
|
|
44
|
-
])
|
|
45
|
-
],
|
|
46
|
-
encapsulation: ViewEncapsulation.None
|
|
47
|
-
})
|
|
48
|
-
export class DocsignComponent {
|
|
49
|
-
@ViewChild("iframe", { read: ElementRef })
|
|
50
|
-
public iframe: ElementRef;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Load an existing [[PDFDocument]]. The input data can be provided in
|
|
54
|
-
* multiple formats:
|
|
55
|
-
*
|
|
56
|
-
* | Type | Contents |
|
|
57
|
-
* | ------------- | ------------------------------------------------------ |
|
|
58
|
-
* | `string` | A base64 encoded string (or data URI) containing a PDF |
|
|
59
|
-
* | `Uint8Array` | The raw bytes of a PDF |
|
|
60
|
-
* | `ArrayBuffer` | The raw bytes of a PDF |
|
|
61
|
-
*
|
|
62
|
-
* For example:
|
|
63
|
-
* ```js
|
|
64
|
-
* import { PDFDocument } from 'pdf-lib'
|
|
65
|
-
*
|
|
66
|
-
* // pdf=string
|
|
67
|
-
* const base64 =
|
|
68
|
-
* 'JVBERi0xLjcKJYGBgYEKCjUgMCBvYmoKPDwKL0ZpbHRlciAvRmxhdGVEZWNvZGUKL0xlbm' +
|
|
69
|
-
* 'd0aCAxMDQKPj4Kc3RyZWFtCniccwrhMlAAwaJ0Ln2P1Jyy1JLM5ERdc0MjCwUjE4WQNC4Q' +
|
|
70
|
-
* '6cNlCFZkqGCqYGSqEJLLZWNuYGZiZmbkYuZsZmlmZGRgZmluDCQNzc3NTM2NzdzMXMxMjQ' +
|
|
71
|
-
* 'ztFEKyuEK0uFxDuAAOERdVCmVuZHN0cmVhbQplbmRvYmoKCjYgMCBvYmoKPDwKL0ZpbHRl' +
|
|
72
|
-
* 'ciAvRmxhdGVEZWNvZGUKL1R5cGUgL09ialN0bQovTiA0Ci9GaXJzdCAyMAovTGVuZ3RoID' +
|
|
73
|
-
* 'IxNQo+PgpzdHJlYW0KeJxVj9GqwjAMhu/zFHkBzTo3nCCCiiKIHPEICuJF3cKoSCu2E8/b' +
|
|
74
|
-
* '20wPIr1p8v9/8kVhgilmGfawX2CGaVrgcAi0/bsy0lrX7IGWpvJ4iJYEN3gEmrrGBlQwGs' +
|
|
75
|
-
* 'HHO9VBX1wNrxAqMX87RBD5xpJuddqwd82tjAHxzV1U5LPgy52DKXWnr1Lheg+j/c/pzGVr' +
|
|
76
|
-
* 'iqV0VlwZPXGPCJjElw/ybkwUmeoWgxesDXGhHJC/D/iikp1Av80ptKU0FdBEe25pPihAM1' +
|
|
77
|
-
* 'u6ytgaaWfs2Hrz35CJT1+EWmAKZW5kc3RyZWFtCmVuZG9iagoKNyAwIG9iago8PAovU2l6' +
|
|
78
|
-
* 'ZSA4Ci9Sb290IDIgMCBSCi9GaWx0ZXIgL0ZsYXRlRGVjb2RlCi9UeXBlIC9YUmVmCi9MZW' +
|
|
79
|
-
* '5ndGggMzgKL1cgWyAxIDIgMiBdCi9JbmRleCBbIDAgOCBdCj4+CnN0cmVhbQp4nBXEwREA' +
|
|
80
|
-
* 'EBAEsCwz3vrvRmOOyyOoGhZdutHN2MT55fIAVocD+AplbmRzdHJlYW0KZW5kb2JqCgpzdG' +
|
|
81
|
-
* 'FydHhyZWYKNTEwCiUlRU9G'
|
|
82
|
-
*
|
|
83
|
-
* const dataUri = 'data:application/pdf;base64,' + base64
|
|
84
|
-
*
|
|
85
|
-
* const pdfDoc1 = await PDFDocument.load(base64)
|
|
86
|
-
* const pdfDoc2 = await PDFDocument.load(dataUri)
|
|
87
|
-
*
|
|
88
|
-
* // pdf=Uint8Array
|
|
89
|
-
* import fs from 'fs'
|
|
90
|
-
* const uint8Array = fs.readFileSync('with_update_sections.pdf')
|
|
91
|
-
* const pdfDoc3 = await PDFDocument.load(uint8Array)
|
|
92
|
-
*
|
|
93
|
-
* // pdf=ArrayBuffer
|
|
94
|
-
* const url = 'https://pdf-lib.js.org/assets/with_update_sections.pdf'
|
|
95
|
-
* const arrayBuffer = await fetch(url).then(res => res.arrayBuffer())
|
|
96
|
-
* const pdfDoc4 = await PDFDocument.load(arrayBuffer)
|
|
97
|
-
*
|
|
98
|
-
* ```
|
|
99
|
-
*
|
|
100
|
-
* @param pdf The input data containing a PDF document.
|
|
101
|
-
* @param options The options to be used when loading the document.
|
|
102
|
-
* @returns Resolves with a document loaded from the input.
|
|
103
|
-
*/
|
|
104
|
-
@Input()
|
|
105
|
-
public set pdf(value: any) {
|
|
106
|
-
if (value) {
|
|
107
|
-
this._handlePdfData(value);
|
|
108
|
-
this._openPDF();
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
public get pdf(): any {
|
|
113
|
-
return this._pdf;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
@Input()
|
|
117
|
-
public firstSignatureLabel: string;
|
|
118
|
-
|
|
119
|
-
@Input()
|
|
120
|
-
public firstSignatureField: string;
|
|
121
|
-
|
|
122
|
-
@Input()
|
|
123
|
-
public secondSignatureLabel: string;
|
|
124
|
-
|
|
125
|
-
@Input()
|
|
126
|
-
public secondSignatureField: string;
|
|
127
|
-
|
|
128
|
-
@Input()
|
|
129
|
-
public saveButtonLabel: string = 'SAVE';
|
|
130
|
-
|
|
131
|
-
@Input()
|
|
132
|
-
public clearButtonLabel: string = 'CLEAR';
|
|
133
|
-
|
|
134
|
-
@Input()
|
|
135
|
-
public signDocumentButtonLabel: string = 'SIGN_DOCUMENT';
|
|
136
|
-
|
|
137
|
-
@Input()
|
|
138
|
-
public cancelButtonLabel: string = 'CANCEL';
|
|
139
|
-
|
|
140
|
-
@Output()
|
|
141
|
-
public pdfSaved: EventEmitter<string> = new EventEmitter<string>();
|
|
142
|
-
|
|
143
|
-
@Output()
|
|
144
|
-
public cancelClick: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();
|
|
145
|
-
|
|
146
|
-
@HostBinding('class.co-docsign')
|
|
147
|
-
public showClass() {
|
|
148
|
-
return true;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
public showSignaturePopup: boolean = false;
|
|
152
|
-
public showSigBuyer: boolean = false;
|
|
153
|
-
public sigBuyerPosition: TextDimension;
|
|
154
|
-
public showSigSeller: boolean = false;
|
|
155
|
-
public sigSellerPosition: TextDimension;
|
|
156
|
-
public showSignatures: boolean = false;
|
|
157
|
-
|
|
158
|
-
public pdfDoc: PDFDocument;
|
|
159
|
-
|
|
160
|
-
private _pdf: any;
|
|
161
|
-
|
|
162
|
-
public saveFirstSignature(sig: string): void {
|
|
163
|
-
this._saveSignature(sig, this.sigBuyerPosition);
|
|
164
|
-
this.showSigBuyer = false;
|
|
165
|
-
this._savePdf();
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
public saveSecondSignature(sig: string): void {
|
|
169
|
-
this._saveSignature(sig, this.sigSellerPosition);
|
|
170
|
-
this.showSigSeller = false;
|
|
171
|
-
this._savePdf();
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
private async _openPDF(): Promise<void> {
|
|
175
|
-
// first create reader to check signatures
|
|
176
|
-
this._checkSignatures();
|
|
177
|
-
|
|
178
|
-
this.pdfDoc = await PDFDocument.load(this._pdf, {
|
|
179
|
-
updateMetadata: false
|
|
180
|
-
});
|
|
181
|
-
const pdfDataUri = await this.pdfDoc.saveAsBase64({ dataUri: true });
|
|
182
|
-
this.iframe.nativeElement.src = pdfDataUri;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
private async _savePdf(): Promise<void> {
|
|
186
|
-
if (!this.showSigBuyer && !this.showSigSeller) {
|
|
187
|
-
// ready, save the pdf and emit result
|
|
188
|
-
const result = await this.pdfDoc.saveAsBase64();
|
|
189
|
-
this.pdfSaved.next(result);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
private async _checkSignatures(): Promise<void> {
|
|
194
|
-
let pdfWorkerSrc;
|
|
195
|
-
if (window.hasOwnProperty('pdfWorkerSrc') &&
|
|
196
|
-
typeof (window as any).pdfWorkerSrc === 'string' &&
|
|
197
|
-
(window as any).pdfWorkerSrc) {
|
|
198
|
-
pdfWorkerSrc = (window as any).pdfWorkerSrc;
|
|
199
|
-
}
|
|
200
|
-
else {
|
|
201
|
-
pdfWorkerSrc = pdfjsWorker;
|
|
202
|
-
}
|
|
203
|
-
PDFJS.GlobalWorkerOptions.workerSrc = pdfWorkerSrc;
|
|
204
|
-
const pdfReader = await PDFJS.getDocument(this._pdf).promise;
|
|
205
|
-
const numPages = pdfReader.numPages;
|
|
206
|
-
for (let i = 0; i < numPages; i++) {
|
|
207
|
-
const page = await pdfReader.getPage(i + 1);
|
|
208
|
-
const text = await page.getTextContent();
|
|
209
|
-
page.cleanup();
|
|
210
|
-
if (this.firstSignatureField) {
|
|
211
|
-
this.sigBuyerPosition = this._getPositionSignature(text, this.firstSignatureField);
|
|
212
|
-
if (this.sigBuyerPosition.width > 0 && this.sigBuyerPosition.height > 0) {
|
|
213
|
-
this.sigBuyerPosition.page = i;
|
|
214
|
-
this.showSigBuyer = true;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
if (this.secondSignatureField) {
|
|
218
|
-
this.sigSellerPosition = this._getPositionSignature(text, this.secondSignatureField);
|
|
219
|
-
if (this.sigSellerPosition.width > 0 && this.sigSellerPosition.height > 0) {
|
|
220
|
-
this.sigSellerPosition.page = i;
|
|
221
|
-
this.showSigSeller = true;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
private _getPositionSignature(textItem: any, signatureField: string): TextDimension {
|
|
228
|
-
const sigItem: TextItem = <TextItem>textItem.items.find((i: any) => i.str.toLowerCase() === signatureField.toLowerCase());
|
|
229
|
-
if (sigItem) {
|
|
230
|
-
textItem.items.slice(textItem.items.indexOf(sigItem), 1);
|
|
231
|
-
return {
|
|
232
|
-
x: sigItem.transform[4],
|
|
233
|
-
y: sigItem.transform[5],
|
|
234
|
-
width: sigItem.width,
|
|
235
|
-
height: sigItem.height,
|
|
236
|
-
page: 0
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
return {x: 0, y: 0, width: 0, height: 0, page: 0}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
private async _saveSignature(sig: string, dimensions: TextDimension): Promise<void> {
|
|
243
|
-
const jpgImage = await this.pdfDoc.embedPng(sig);
|
|
244
|
-
const page = await this.pdfDoc.getPage(dimensions.page);
|
|
245
|
-
page.drawImage(jpgImage, {
|
|
246
|
-
x: ((dimensions.x + (dimensions.width / 2)) - (200 / 2)),
|
|
247
|
-
y: ((dimensions.y + (dimensions.height / 2)) - (100 / 2)),
|
|
248
|
-
width: 200,
|
|
249
|
-
height: 100
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
private _handlePdfData(pdfData: any) {
|
|
254
|
-
if (typeof pdfData === 'string') {
|
|
255
|
-
this._preparePDF(pdfData);
|
|
256
|
-
} else {
|
|
257
|
-
this._pdf = pdfData;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
private _preparePDF(base64: string): void {
|
|
262
|
-
var binary_string = window.atob(base64);
|
|
263
|
-
var len = binary_string.length;
|
|
264
|
-
var bytes = new Uint8Array(len);
|
|
265
|
-
for (var i = 0; i < len; i++) {
|
|
266
|
-
bytes[i] = binary_string.charCodeAt(i);
|
|
267
|
-
}
|
|
268
|
-
this._pdf = bytes;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import {NgModule} from "@angular/core";
|
|
2
|
-
import {CommonModule} from "@angular/common";
|
|
3
|
-
import {DocsignComponent} from "./docsign.component";
|
|
4
|
-
import {SignatureComponent} from "./component/signature/signature.component";
|
|
5
|
-
import {SignaturesComponent} from "./component/signatures/signatures.component";
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
imports: [
|
|
9
|
-
CommonModule
|
|
10
|
-
],
|
|
11
|
-
declarations: [
|
|
12
|
-
DocsignComponent,
|
|
13
|
-
SignatureComponent,
|
|
14
|
-
SignaturesComponent
|
|
15
|
-
],
|
|
16
|
-
exports: [
|
|
17
|
-
DocsignComponent
|
|
18
|
-
]
|
|
19
|
-
})
|
|
20
|
-
export class DocsignModule {
|
|
21
|
-
|
|
22
|
-
}
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import {Component, EventEmitter, HostBinding, HostListener, Input, OnInit, Output, ViewEncapsulation} from '@angular/core';
|
|
2
|
-
import {Icon} from '../../enum/icon.enum';
|
|
3
|
-
import {IconCacheService} from '../../service/icon-cache.service';
|
|
4
|
-
import {KeyboardCode} from '../../enum/keyboard-code.enum';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'co-key-pad',
|
|
8
|
-
template: `
|
|
9
|
-
<div class="key-pad-wrapper">
|
|
10
|
-
<div class="key-pad-model-wrapper" *ngIf="showValue">
|
|
11
|
-
<co-responsive-text class="key-pad-model" [text]="internalModel" [class.negative]="isNegative"></co-responsive-text>
|
|
12
|
-
</div>
|
|
13
|
-
<div class="key-pad-button-wrapper">
|
|
14
|
-
<div class="key-pad-button button-7" (click)="handleButtonClick('7')"><co-responsive-text class="key-pad-button-text" [text]="'7'"></co-responsive-text></div>
|
|
15
|
-
<div class="key-pad-button button-8" (click)="handleButtonClick('8')"><co-responsive-text class="key-pad-button-text" [text]="'8'"></co-responsive-text></div>
|
|
16
|
-
<div class="key-pad-button button-9" (click)="handleButtonClick('9')"><co-responsive-text class="key-pad-button-text" [text]="'9'"></co-responsive-text></div>
|
|
17
|
-
<div class="key-pad-button button-bs" (click)="handleBsClick($event)">
|
|
18
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.DeleteLeftRegular)"></co-icon>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="key-pad-button button-4" (click)="handleButtonClick('4')"><co-responsive-text class="key-pad-button-text" [text]="'4'"></co-responsive-text></div>
|
|
21
|
-
<div class="key-pad-button button-5" (click)="handleButtonClick('5')"><co-responsive-text class="key-pad-button-text" [text]="'5'"></co-responsive-text></div>
|
|
22
|
-
<div class="key-pad-button button-6" (click)="handleButtonClick('6')"><co-responsive-text class="key-pad-button-text" [text]="'6'"></co-responsive-text></div>
|
|
23
|
-
<div class="key-pad-button button-minus" (click)="handleMinusClick($event)"><co-responsive-text class="key-pad-button-text" [text]="'-'"></co-responsive-text></div>
|
|
24
|
-
<div class="key-pad-button button-1" (click)="handleButtonClick('1')"><co-responsive-text class="key-pad-button-text" [text]="'1'"></co-responsive-text></div>
|
|
25
|
-
<div class="key-pad-button button-2" (click)="handleButtonClick('2')"><co-responsive-text class="key-pad-button-text" [text]="'2'"></co-responsive-text></div>
|
|
26
|
-
<div class="key-pad-button button-3" (click)="handleButtonClick('3')"><co-responsive-text class="key-pad-button-text" [text]="'3'"></co-responsive-text></div>
|
|
27
|
-
<div class="key-pad-button button-enter" (click)="handleEnterClick($event)">
|
|
28
|
-
<co-responsive-text class="key-pad-button-text" [text]="'enter'"></co-responsive-text>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="key-pad-button button-0" (click)="handleButtonClick('0')"><co-responsive-text class="key-pad-button-text" [text]="'0'"></co-responsive-text></div>
|
|
31
|
-
<div class="key-pad-button button-dot" (click)="handleButtonClick('.')"><co-responsive-text class="key-pad-button-text" [text]="'.'"></co-responsive-text></div>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
`,
|
|
35
|
-
encapsulation: ViewEncapsulation.None
|
|
36
|
-
})
|
|
37
|
-
export class KeyPadComponent {
|
|
38
|
-
public icons: typeof Icon = Icon;
|
|
39
|
-
|
|
40
|
-
@Input()
|
|
41
|
-
public set model(value: number) {
|
|
42
|
-
this._model = value;
|
|
43
|
-
this._internalModel = this._model + "";
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
public get model(): number {
|
|
47
|
-
return this._model;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@Input()
|
|
51
|
-
public showValue: boolean = true;
|
|
52
|
-
|
|
53
|
-
@Input()
|
|
54
|
-
public resetModelOnInit: boolean = true;
|
|
55
|
-
|
|
56
|
-
@Input()
|
|
57
|
-
public emitModelChangeOnEnter: boolean = true;
|
|
58
|
-
|
|
59
|
-
@Output()
|
|
60
|
-
public modelChange: EventEmitter<number> = new EventEmitter<number>();
|
|
61
|
-
|
|
62
|
-
@Output()
|
|
63
|
-
public internalModelChange: EventEmitter<string> = new EventEmitter<string>();
|
|
64
|
-
|
|
65
|
-
@Output()
|
|
66
|
-
public enterClick: EventEmitter<void> = new EventEmitter<void>();
|
|
67
|
-
|
|
68
|
-
@HostBinding('class.co-key-pad')
|
|
69
|
-
public showClass() {
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@HostListener('window:keydown', ['$event'])
|
|
74
|
-
public handleKeyDown(event: KeyboardEvent) {
|
|
75
|
-
if (document.activeElement instanceof HTMLBodyElement) {
|
|
76
|
-
this._keyDown(event);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
private readonly _validKeyMap: Map<KeyboardCode | string, string> = new Map<KeyboardCode, string>([
|
|
81
|
-
[KeyboardCode.Digit0, "0"],
|
|
82
|
-
[KeyboardCode.Digit1, "1"],
|
|
83
|
-
[KeyboardCode.Digit2, "2"],
|
|
84
|
-
[KeyboardCode.Digit3, "3"],
|
|
85
|
-
[KeyboardCode.Digit4, "4"],
|
|
86
|
-
[KeyboardCode.Digit5, "5"],
|
|
87
|
-
[KeyboardCode.Digit6, "6"],
|
|
88
|
-
[KeyboardCode.Digit7, "7"],
|
|
89
|
-
[KeyboardCode.Digit8, "8"],
|
|
90
|
-
[KeyboardCode.Digit9, "9"],
|
|
91
|
-
[KeyboardCode.Numpad0, "0"],
|
|
92
|
-
[KeyboardCode.Numpad1, "1"],
|
|
93
|
-
[KeyboardCode.Numpad2, "2"],
|
|
94
|
-
[KeyboardCode.Numpad3, "3"],
|
|
95
|
-
[KeyboardCode.Numpad4, "4"],
|
|
96
|
-
[KeyboardCode.Numpad5, "5"],
|
|
97
|
-
[KeyboardCode.Numpad6, "6"],
|
|
98
|
-
[KeyboardCode.Numpad7, "7"],
|
|
99
|
-
[KeyboardCode.Numpad8, "8"],
|
|
100
|
-
[KeyboardCode.Numpad9, "9"],
|
|
101
|
-
[KeyboardCode.NumpadDecimal, "."],
|
|
102
|
-
[KeyboardCode.Period, "."]
|
|
103
|
-
])
|
|
104
|
-
|
|
105
|
-
private _init: boolean = true;
|
|
106
|
-
|
|
107
|
-
constructor(public iconCacheService: IconCacheService) {
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
public set internalModel(value: string) {
|
|
111
|
-
this._internalModel = value;
|
|
112
|
-
this.isNegative = parseFloat(this._internalModel) < 0;
|
|
113
|
-
this.internalModelChange.emit(this._internalModel);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
public get internalModel(): string {
|
|
117
|
-
return this._internalModel;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
public isNegative: boolean = false;
|
|
121
|
-
|
|
122
|
-
private _model: number = 0;
|
|
123
|
-
private _internalModel: string = "0";
|
|
124
|
-
private _maxCharacters: number = 11;
|
|
125
|
-
|
|
126
|
-
public handleMinusClick(event: MouseEvent | KeyboardEvent): void {
|
|
127
|
-
const model: number = parseFloat(this.internalModel);
|
|
128
|
-
if (model !== 0) {
|
|
129
|
-
if (model < 0) {
|
|
130
|
-
this.internalModel = Math.abs(model) + "";
|
|
131
|
-
} else {
|
|
132
|
-
this.internalModel = -model + "";
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
this._emitModelChange();
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
public handleClearClick(event: MouseEvent | KeyboardEvent): void {
|
|
139
|
-
this.internalModel = "0";
|
|
140
|
-
this._emitModelChange();
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
public handleBsClick(event: MouseEvent | KeyboardEvent): void {
|
|
144
|
-
let wish: string = this.internalModel;
|
|
145
|
-
wish = wish.slice(0, wish.length - 1) || "0";
|
|
146
|
-
if (!isNaN(parseFloat(wish))) {
|
|
147
|
-
this.internalModel = parseFloat(wish) + "";
|
|
148
|
-
}
|
|
149
|
-
this._emitModelChange();
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
public handleButtonClick(chr: string): void {
|
|
153
|
-
this._updateModel(chr);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
public handleEnterClick(event: MouseEvent | KeyboardEvent): void {
|
|
157
|
-
this._emitModelChange(true);
|
|
158
|
-
this.enterClick.emit();
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
private _updateModel(value: string): void {
|
|
162
|
-
if (this.resetModelOnInit && this._init) {
|
|
163
|
-
this._internalModel = "0";
|
|
164
|
-
this._init = false;
|
|
165
|
-
}
|
|
166
|
-
if (value === undefined || value === null ||
|
|
167
|
-
(value === '.' && this.internalModel.indexOf('.') > -1) ||
|
|
168
|
-
this.internalModel.length >= this._maxCharacters) {
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
this.internalModel = this.internalModel !== "0" ? this.internalModel + value : value;
|
|
172
|
-
this._emitModelChange();
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
private _keyDown(event: KeyboardEvent): void {
|
|
176
|
-
if (this._isEnter(event)) {
|
|
177
|
-
this.handleEnterClick(event);
|
|
178
|
-
} else if (this._isMinus(event)) {
|
|
179
|
-
this.handleMinusClick(event);
|
|
180
|
-
} else if (this._isEscape(event)) {
|
|
181
|
-
this.handleClearClick(event);
|
|
182
|
-
} else if (this._isBackspace(event)) {
|
|
183
|
-
this.handleBsClick(event);
|
|
184
|
-
} else {
|
|
185
|
-
this._updateModel(this._validKeyMap.get(event.code));
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
private _isEnter(event: KeyboardEvent): boolean {
|
|
190
|
-
return event.code === KeyboardCode.Enter || event.code === KeyboardCode.NumpadEnter;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
private _isMinus(event: KeyboardEvent): boolean {
|
|
194
|
-
return event.code === KeyboardCode.Minus || event.code === KeyboardCode.NumpadSubtract;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
private _isEscape(event: KeyboardEvent): boolean {
|
|
198
|
-
return event.code === KeyboardCode.Escape;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
private _isBackspace(event: KeyboardEvent): boolean {
|
|
202
|
-
return event.code === KeyboardCode.Backspace;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
private _emitModelChange(enter: boolean = false): void {
|
|
206
|
-
if ((enter && this.emitModelChangeOnEnter) || (!enter && !this.emitModelChangeOnEnter)) {
|
|
207
|
-
const model: number = parseFloat(this.internalModel);
|
|
208
|
-
if (!isNaN(model)) {
|
|
209
|
-
if (enter && this.emitModelChangeOnEnter) {
|
|
210
|
-
this.model = model;
|
|
211
|
-
}
|
|
212
|
-
this.modelChange.emit(model);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import {NgModule} from '@angular/core';
|
|
2
|
-
import {CommonModule} from '@angular/common';
|
|
3
|
-
import {KeyPadComponent} from './key-pad.component';
|
|
4
|
-
import {IconModule, ResponsiveTextModule} from '@colijnit/corecomponents_v12';
|
|
5
|
-
|
|
6
|
-
@NgModule({
|
|
7
|
-
imports: [
|
|
8
|
-
CommonModule,
|
|
9
|
-
IconModule,
|
|
10
|
-
ResponsiveTextModule
|
|
11
|
-
],
|
|
12
|
-
declarations: [
|
|
13
|
-
KeyPadComponent
|
|
14
|
-
],
|
|
15
|
-
exports: [
|
|
16
|
-
KeyPadComponent
|
|
17
|
-
]
|
|
18
|
-
})
|
|
19
|
-
export class KeyPadModule {
|
|
20
|
-
}
|