@colijnit/sharedcomponents 1.0.24 → 1.0.25
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 +133 -0
- package/karma.conf.js +44 -0
- package/move-assets.js +14 -0
- package/package.json +74 -26
- 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 +18 -0
- package/projects/sharedcomponents/src/lib/assets/dictionary/text.properties.ts +8 -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/bring_forward_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/check_round.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/pdf.svg +15 -0
- package/projects/sharedcomponents/src/lib/assets/icons/print.svg +10 -0
- package/projects/sharedcomponents/src/lib/assets/icons/signature_field.svg +9 -0
- package/projects/sharedcomponents/src/lib/assets/icons/xml.svg +9 -0
- package/projects/sharedcomponents/src/lib/components/circular-gauge/co-circular-gauge.component.ts +139 -0
- package/projects/sharedcomponents/src/lib/components/circular-gauge/co-circular-gauge.module.ts +19 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/circular-gauge/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/circular-gauge/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/circular-gauge/style/_theme.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/circular-gauge/style/material.scss +0 -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 +31 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-event.component.ts +67 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-events.component.ts +48 -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 +265 -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-view.component.ts +38 -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 +46 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/style/_layout.scss +443 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/style/_material-definition.scss +11 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/style/_theme.scss +7 -0
- package/{lib/components/layout-switcher → projects/sharedcomponents/src/lib/components/date-planning/component/agenda}/style/material.scss +0 -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 +124 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-view.component.ts +201 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar.component.ts +35 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/style/_layout.scss +167 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/style/_material-definition.scss +7 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/style/_theme.scss +7 -0
- package/{lib/components/linear-gauge → projects/sharedcomponents/src/lib/components/date-planning/component/calendar}/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/date-planning.component.ts +133 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/date-planning.module.ts +56 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/style/_layout.scss +47 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/style/_material-definition.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/style/_theme.scss +7 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/style/material.scss +5 -0
- package/projects/sharedcomponents/src/lib/components/docsign/component/signature/signature.component.ts +82 -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/projects/sharedcomponents/src/lib/components/docsign/component/signatures/signatures.component.ts +50 -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/projects/sharedcomponents/src/lib/components/docsign/docsign.component.ts +252 -0
- package/projects/sharedcomponents/src/lib/components/docsign/docsign.module.ts +22 -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/projects/sharedcomponents/src/lib/components/key-pad/key-pad.component.ts +205 -0
- package/projects/sharedcomponents/src/lib/components/key-pad/key-pad.module.ts +19 -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/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/{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/projects/sharedcomponents/src/lib/components/layout-switcher/style/material.scss +5 -0
- package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.component.ts +56 -0
- package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.module.ts +17 -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/projects/sharedcomponents/src/lib/components/linear-gauge/style/material.scss +5 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/enums/send-option.ts +6 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.component.ts +342 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.module.ts +33 -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/projects/sharedcomponents/src/lib/components/statusbar/statusbar.component.ts +97 -0
- package/projects/sharedcomponents/src/lib/components/statusbar/statusbar.module.ts +21 -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/projects/sharedcomponents/src/lib/components/stock/stock-in-order/stock-in-order.component.ts +0 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-information/stock-information.component.ts +64 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-information-grid/stock-information-grid.component.ts +384 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-location/stock-location.component.ts +84 -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 +73 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-transfer.component.ts +153 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock.component.ts +165 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock.module.ts +51 -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/projects/sharedcomponents/src/lib/enum/calendar-view.enum.ts +6 -0
- package/{lib/enum/icon.enum.d.ts → projects/sharedcomponents/src/lib/enum/icon.enum.ts} +5 -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/month.enum.ts +15 -0
- package/projects/sharedcomponents/src/lib/enum/time-period.enum.ts +9 -0
- package/projects/sharedcomponents/src/lib/factory/business-object-factory.ts +120 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/boolean.decorator.ts +113 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/complex-array.decorator.ts +61 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/complex-field.decorator.ts +63 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/date-field.decorator.ts +41 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/string-number.decorator.ts +48 -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 +17 -0
- package/projects/sharedcomponents/src/lib/model/agenda-null-objects.ts +11 -0
- package/projects/sharedcomponents/src/lib/model/business-object.ts +85 -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 +18 -0
- package/projects/sharedcomponents/src/lib/model/month.model.ts +11 -0
- package/projects/sharedcomponents/src/lib/model/time-window.bo.ts +21 -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 +66 -0
- package/projects/sharedcomponents/src/lib/service/shared-connector.service.ts +258 -0
- package/projects/sharedcomponents/src/lib/service/shared-initializer.service.ts +29 -0
- package/projects/sharedcomponents/src/lib/service/shared.service.ts +21 -0
- package/projects/sharedcomponents/src/lib/service/stock.service.ts +95 -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
- package/projects/sharedcomponents/src/lib/utils/array-utils.ts +202 -0
- package/projects/sharedcomponents/src/lib/utils/calendar.utils.ts +75 -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/string-utils.ts +67 -0
- package/{public-api.d.ts → projects/sharedcomponents/src/public-api.ts} +5 -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/merge-icons.js +39 -0
- package/src/app/app.component.scss +9 -0
- package/src/app/app.component.spec.ts +31 -0
- package/src/app/app.component.ts +156 -0
- package/src/app/app.module.ts +60 -0
- package/src/assets/.gitkeep +0 -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 +40 -0
- package/src/test.ts +26 -0
- package/tsconfig.app.json +15 -0
- package/tsconfig.json +65 -0
- package/tsconfig.spec.json +18 -0
- package/bundles/colijnit-sharedcomponents.umd.js +0 -3701
- package/bundles/colijnit-sharedcomponents.umd.js.map +0 -1
- package/colijnit-sharedcomponents.d.ts +0 -16
- package/colijnit-sharedcomponents.metadata.json +0 -1
- package/esm2015/colijnit-sharedcomponents.js +0 -17
- package/esm2015/lib/assets/dictionary/text.properties.js +0 -11
- package/esm2015/lib/components/circular-gauge/co-circular-gauge.component.js +0 -125
- package/esm2015/lib/components/circular-gauge/co-circular-gauge.module.js +0 -21
- 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 -225
- package/esm2015/lib/components/docsign/docsign.module.js +0 -23
- package/esm2015/lib/components/key-pad/key-pad.component.js +0 -191
- package/esm2015/lib/components/key-pad/key-pad.module.js +0 -21
- 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 -55
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.module.js +0 -19
- package/esm2015/lib/components/send-method-dialog/enums/send-option.js +0 -8
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +0 -309
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.module.js +0 -31
- package/esm2015/lib/components/statusbar/statusbar.component.js +0 -81
- package/esm2015/lib/components/statusbar/statusbar.module.js +0 -23
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +0 -54
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +0 -350
- package/esm2015/lib/components/stock/stock-location/stock-location.component.js +0 -62
- 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 -68
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +0 -130
- package/esm2015/lib/components/stock/stock.component.js +0 -140
- package/esm2015/lib/components/stock/stock.module.js +0 -48
- package/esm2015/lib/enum/icon.enum.js +0 -17
- package/esm2015/lib/enum/keyboard-code.enum.js +0 -32
- package/esm2015/lib/enum/language-code.enum.js +0 -8
- package/esm2015/lib/factory/business-object-factory.js +0 -120
- package/esm2015/lib/factory/decorators/boolean.decorator.js +0 -102
- package/esm2015/lib/factory/decorators/complex-array.decorator.js +0 -55
- package/esm2015/lib/factory/decorators/complex-field.decorator.js +0 -57
- package/esm2015/lib/factory/decorators/date-field.decorator.js +0 -36
- package/esm2015/lib/factory/decorators/string-number.decorator.js +0 -43
- package/esm2015/lib/model/business-object.js +0 -81
- package/esm2015/lib/model/icon-svg.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 -71
- package/esm2015/lib/service/shared-connector.service.js +0 -278
- package/esm2015/lib/service/shared.service.js +0 -30
- package/esm2015/lib/service/stock.service.js +0 -95
- package/esm2015/lib/utils/array-utils.js +0 -183
- package/esm2015/lib/utils/is-nill.function.js +0 -5
- package/esm2015/lib/utils/string-utils.js +0 -64
- package/esm2015/public-api.js +0 -21
- package/fesm2015/colijnit-sharedcomponents.js +0 -3511
- package/fesm2015/colijnit-sharedcomponents.js.map +0 -1
- package/lib/assets/dictionary/text.properties.d.ts +0 -3
- package/lib/components/circular-gauge/co-circular-gauge.component.d.ts +0 -20
- package/lib/components/circular-gauge/co-circular-gauge.module.d.ts +0 -2
- 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 -92
- package/lib/components/docsign/docsign.module.d.ts +0 -2
- package/lib/components/key-pad/key-pad.component.d.ts +0 -36
- 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 -16
- package/lib/components/linear-gauge/co-linear-gauge.module.d.ts +0 -2
- package/lib/components/send-method-dialog/enums/send-option.d.ts +0 -6
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +0 -62
- package/lib/components/send-method-dialog/send-method-dialog.module.d.ts +0 -2
- package/lib/components/statusbar/statusbar.component.d.ts +0 -23
- package/lib/components/statusbar/statusbar.module.d.ts +0 -2
- package/lib/components/stock/stock-information/stock-information.component.d.ts +0 -10
- package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +0 -60
- package/lib/components/stock/stock-location/stock-location.component.d.ts +0 -15
- 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 -36
- package/lib/components/stock/stock.component.d.ts +0 -42
- package/lib/components/stock/stock.module.d.ts +0 -2
- package/lib/enum/keyboard-code.enum.d.ts +0 -30
- package/lib/enum/language-code.enum.d.ts +0 -6
- package/lib/factory/business-object-factory.d.ts +0 -23
- package/lib/factory/decorators/boolean.decorator.d.ts +0 -43
- package/lib/factory/decorators/complex-array.decorator.d.ts +0 -25
- package/lib/factory/decorators/complex-field.decorator.d.ts +0 -25
- package/lib/factory/decorators/date-field.decorator.d.ts +0 -17
- package/lib/factory/decorators/string-number.decorator.d.ts +0 -22
- package/lib/model/business-object.d.ts +0 -7
- package/lib/model/icon-svg.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 -43
- package/lib/service/shared.service.d.ts +0 -8
- package/lib/service/stock.service.d.ts +0 -38
- package/lib/utils/array-utils.d.ts +0 -57
- package/lib/utils/is-nill.function.d.ts +0 -1
- package/lib/utils/string-utils.d.ts +0 -22
package/projects/sharedcomponents/src/lib/components/layout-switcher/layout-switcher.component.ts
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
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 {Icon} from "../../enum/icon.enum";
|
|
4
|
+
import {IconCacheService} from "../../service/icon-cache.service";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: "layout-switcher",
|
|
9
|
+
template: `
|
|
10
|
+
<div class="mask-wrapper" [class.mask-wrapper-active]='showMaskSidebar' @showHideSidebar>
|
|
11
|
+
<div class="icon-wrapper" (click)="toggleMaskSidebar()">
|
|
12
|
+
<co-icon class="icon-mask" [iconData]="iconCacheService.getIcon(icon.BringForwardRegular)" [@positionIcon]="showMaskSidebar"></co-icon>
|
|
13
|
+
|
|
14
|
+
<co-icon class='icon-mask-sidebar-handle' [@positionHandle]='showMaskSidebar' [iconData]="showMaskSidebar ? iconCacheService.getIcon(this.icon.AngleLeftSolid) : iconCacheService.getIcon(this.icon.AngleRightSolid)"></co-icon>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<div class="mask-content" *ngIf="showMaskSidebar" @showHideSidebar>
|
|
18
|
+
<span *ngFor='let item of this.layoutItems' [class.active]="this.activeIndex === this.layoutItems.indexOf(item)" [textContent]="item" (click)='activeIndex = this.layoutItems.indexOf(item)' ></span>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
`,
|
|
23
|
+
animations: [
|
|
24
|
+
trigger("showHideSidebar", [
|
|
25
|
+
state("void", style({"width": "0"})),
|
|
26
|
+
state("*", style({"width": "*"})),
|
|
27
|
+
transition("void <=> *", animate(200))
|
|
28
|
+
]),
|
|
29
|
+
trigger("positionIcon", [
|
|
30
|
+
state("true", style({"left": "70px"})),
|
|
31
|
+
state("false", style({"left": "10px"})),
|
|
32
|
+
transition("true <=> false", animate(200))
|
|
33
|
+
]),
|
|
34
|
+
trigger("positionHandle", [
|
|
35
|
+
state("true", style({"left": "15px"})),
|
|
36
|
+
state("false", style({"left": "75px"})),
|
|
37
|
+
transition("true <=> false", animate(200))
|
|
38
|
+
])
|
|
39
|
+
],
|
|
40
|
+
encapsulation: ViewEncapsulation.None
|
|
41
|
+
})
|
|
42
|
+
export class LayoutSwitcherComponent {
|
|
43
|
+
public readonly icon: typeof Icon = Icon;
|
|
44
|
+
|
|
45
|
+
@HostBinding('class.layout-switcher')
|
|
46
|
+
public showClass() {
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@Input()
|
|
51
|
+
public layoutItems: string[] = [];
|
|
52
|
+
|
|
53
|
+
@Output()
|
|
54
|
+
public layoutSwitchEmit:EventEmitter<string> = new EventEmitter<string>();
|
|
55
|
+
|
|
56
|
+
public get activeIndex(): number {
|
|
57
|
+
return this._activeIndex;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
public set activeIndex(index) {
|
|
61
|
+
this._activeIndex = index;
|
|
62
|
+
this.toggleMaskSidebar();
|
|
63
|
+
this.layoutSwitchEmit.emit(this.layoutItems[index]);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
public showMaskSidebar: boolean = false;
|
|
67
|
+
|
|
68
|
+
private _activeIndex: number = 0;
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
constructor(public iconCacheService: IconCacheService) {
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
public toggleMaskSidebar(): void {
|
|
75
|
+
this.showMaskSidebar = !this.showMaskSidebar;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
}
|
package/projects/sharedcomponents/src/lib/components/layout-switcher/layout-switcher.module.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {NgModule} from "@angular/core";
|
|
2
|
+
import {CommonModule} from "@angular/common";
|
|
3
|
+
import {LayoutSwitcherComponent} from "./layout-switcher.component";
|
|
4
|
+
import {IconModule} from "@colijnit/corecomponents_v12";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@NgModule({
|
|
8
|
+
imports: [
|
|
9
|
+
CommonModule,
|
|
10
|
+
IconModule
|
|
11
|
+
],
|
|
12
|
+
declarations: [
|
|
13
|
+
LayoutSwitcherComponent,
|
|
14
|
+
],
|
|
15
|
+
exports: [
|
|
16
|
+
LayoutSwitcherComponent
|
|
17
|
+
]
|
|
18
|
+
})
|
|
19
|
+
export class LayoutSwitcherModule {
|
|
20
|
+
|
|
21
|
+
}
|
package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/_layout.scss
RENAMED
|
File without changes
|
|
File without changes
|
package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/_theme.scss
RENAMED
|
File without changes
|
package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.component.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Component, HostBinding, Input, ViewEncapsulation } from "@angular/core";
|
|
2
|
+
|
|
3
|
+
enum GaugeColor {
|
|
4
|
+
Low = '#E0E0E0',
|
|
5
|
+
Medium = '#F88952',
|
|
6
|
+
High = '#5FDCB3',
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: "co-linear-gauge",
|
|
11
|
+
template: `
|
|
12
|
+
<div class="linear-gauge"
|
|
13
|
+
[style.background]="getStyle()"
|
|
14
|
+
[style.border-color]="color"
|
|
15
|
+
[textContent]="count ? count : ''"
|
|
16
|
+
></div>
|
|
17
|
+
`,
|
|
18
|
+
encapsulation: ViewEncapsulation.None
|
|
19
|
+
})
|
|
20
|
+
export class CoLinearGaugeComponent {
|
|
21
|
+
|
|
22
|
+
@Input()
|
|
23
|
+
public set value(value: number) {
|
|
24
|
+
this._value = value;
|
|
25
|
+
this._setColor();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public get value(): number {
|
|
29
|
+
return this._value;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@Input()
|
|
33
|
+
public count: number;
|
|
34
|
+
|
|
35
|
+
@HostBinding("class.co-linear-gauge")
|
|
36
|
+
public showClass() {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
private _value: number;
|
|
41
|
+
public color: GaugeColor = GaugeColor.Low;
|
|
42
|
+
|
|
43
|
+
public getStyle(): string {
|
|
44
|
+
return `linear-gradient(90deg, ${this.color} 0 ${this.value}%, white ${this.value}% 100%`;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
private _setColor(): void {
|
|
48
|
+
if (this.value == 0) {
|
|
49
|
+
this.color = GaugeColor.Low;
|
|
50
|
+
} else if (this.value >= 0 && this.value < 100) {
|
|
51
|
+
this.color = GaugeColor.Medium;
|
|
52
|
+
} else if (this.value == 100) {
|
|
53
|
+
this.color = GaugeColor.High;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NgModule } from "@angular/core";
|
|
2
|
+
import { CommonModule } from "@angular/common";
|
|
3
|
+
import { CoLinearGaugeComponent } from "./co-linear-gauge.component";
|
|
4
|
+
|
|
5
|
+
@NgModule({
|
|
6
|
+
imports: [
|
|
7
|
+
CommonModule,
|
|
8
|
+
],
|
|
9
|
+
declarations: [
|
|
10
|
+
CoLinearGaugeComponent
|
|
11
|
+
],
|
|
12
|
+
exports: [
|
|
13
|
+
CoLinearGaugeComponent
|
|
14
|
+
]
|
|
15
|
+
})
|
|
16
|
+
export class CoLinearGaugeModule {
|
|
17
|
+
}
|
package/{lib → projects/sharedcomponents/src/lib}/components/linear-gauge/style/_layout.scss
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectorRef,
|
|
3
|
+
Component,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
HostBinding,
|
|
6
|
+
Input, OnDestroy,
|
|
7
|
+
Output,
|
|
8
|
+
ViewEncapsulation
|
|
9
|
+
} from "@angular/core";
|
|
10
|
+
import {Icon} from "../../enum/icon.enum";
|
|
11
|
+
import {IconCacheService} from "../../service/icon-cache.service";
|
|
12
|
+
import {SendOption} from "./enums/send-option";
|
|
13
|
+
import {animate, state, style, transition, trigger} from "@angular/animations";
|
|
14
|
+
import {Printer} from "@colijnit/sharedapi/build/model/report/printer.bo";
|
|
15
|
+
import {StockService} from "../../service/stock.service";
|
|
16
|
+
import {StockStickersPrintLayouts} from "@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo";
|
|
17
|
+
import {CoDropDownListFields} from "../stock/stock-transfer/co-drop-down-list-fields.interface";
|
|
18
|
+
import {Subscription} from "rxjs";
|
|
19
|
+
import {OptionsService} from "../../service/options.service";
|
|
20
|
+
import {DictionaryService} from "../../service/dictionary.service";
|
|
21
|
+
|
|
22
|
+
@Component({
|
|
23
|
+
selector: "ione-send-method-dialog",
|
|
24
|
+
template: `
|
|
25
|
+
<div class="send-method-dialog-wrapper">
|
|
26
|
+
<co-dialog-wizard id="sendOptionsDialog" *ngIf="showDialog" [showCloseIcon]="showExitButton" (closeClick)="closeDialogClick()">
|
|
27
|
+
<ng-container header>
|
|
28
|
+
<span [textContent]="headerTitle"></span>
|
|
29
|
+
</ng-container>
|
|
30
|
+
<div class="dialog-content-wrapper">
|
|
31
|
+
<div class="main-content-container" *ngIf="!showPrinterSelections">
|
|
32
|
+
<div class="send-options-wrapper">
|
|
33
|
+
<div class="custom-button-wrapper"
|
|
34
|
+
*ngFor="let sendOption of sendOptions"
|
|
35
|
+
[class.selected-option]="sendOption.option === activeSendOption"
|
|
36
|
+
(click)="activeSendOption = sendOption.option">
|
|
37
|
+
<co-icon [iconData]="iconCacheService.getIcon(sendOption.iconName)"></co-icon>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div class="email-option-content" *ngIf="activeSendOption === sendOption.Email || activeSendOption === sendOption.Pdf">
|
|
42
|
+
<div class="emails-container" *ngIf="activeSendOption === sendOption.Email">
|
|
43
|
+
<co-input-checkbox
|
|
44
|
+
*ngFor="let email, let index of emails"
|
|
45
|
+
[name]="email"
|
|
46
|
+
[(model)]="models[index]"
|
|
47
|
+
[label]="email"
|
|
48
|
+
[cssClass]="'input-checkbox-wrapper'"
|
|
49
|
+
></co-input-checkbox>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<div class="lov-wrapper">
|
|
53
|
+
<co-input-combo-box
|
|
54
|
+
[(model)]="selectedLayout"
|
|
55
|
+
[collection]="layouts"
|
|
56
|
+
[forceReadonly]="true"
|
|
57
|
+
placeholder="Layout"
|
|
58
|
+
></co-input-combo-box>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<div class="signature-button-wrapper">
|
|
62
|
+
<div class="custom-button-wrapper signature-button" (click)="handleSignatureStart()">
|
|
63
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.SignatureField)"></co-icon>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<div class="email-option-content" *ngIf="activeSendOption === sendOption.Print" (click)="getPrintTemplates()">
|
|
69
|
+
<div *ngIf="showPrintPriceStickers">
|
|
70
|
+
<div class="lov-wrapper">
|
|
71
|
+
<co-input-combo-box
|
|
72
|
+
[(model)]="stockService.printPriceSticker.reportId"
|
|
73
|
+
[collection]="printTemplates"
|
|
74
|
+
[fields]="printTemplatesField"
|
|
75
|
+
placeholder="Layout"
|
|
76
|
+
></co-input-combo-box>
|
|
77
|
+
</div>
|
|
78
|
+
<div class="lov-wrapper" *ngIf="priceListCodeData">
|
|
79
|
+
<co-input-combo-box
|
|
80
|
+
[(model)]="stockService.printPriceSticker.priceListCode"
|
|
81
|
+
[collection]="priceListCodeData"
|
|
82
|
+
[fields]="priceListDataField"
|
|
83
|
+
placeholder="Layout"
|
|
84
|
+
></co-input-combo-box>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
<div *ngIf="showPrintStockStickers">
|
|
89
|
+
<div class="lov-wrapper">
|
|
90
|
+
<co-input-combo-box
|
|
91
|
+
[(model)]="stockService.printSticker.reportId"
|
|
92
|
+
[collection]="printTemplates"
|
|
93
|
+
[fields]="printTemplatesField"
|
|
94
|
+
placeholder="Layout"
|
|
95
|
+
></co-input-combo-box>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
<div class="lov-wrapper clickable" (click)="togglePrinterSelection()">
|
|
100
|
+
<div class="selected-printer-wrapper">
|
|
101
|
+
<div class="printer-option-list-item">
|
|
102
|
+
<co-icon class="printer-icon" [iconData]="iconCacheService.getIcon(icons.Print)"></co-icon>
|
|
103
|
+
<div class="printer-details" *ngIf="printerList">
|
|
104
|
+
<span class="printer-name" [textContent]="defaultPrinter"></span>
|
|
105
|
+
<span class="printer-status" [textContent]="defaultPrinter.acceptingJobs"></span>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
<co-icon class="select-printer-arrow" [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)"></co-icon>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
|
|
112
|
+
<div class="standard-printer-wrapper">
|
|
113
|
+
<div class="standard-printer-link" (click)="showStandardPrinterOptions = !showStandardPrinterOptions">
|
|
114
|
+
<co-icon class="arrow-icon" [iconData]="iconCacheService.getIcon(icons.ArrowFatRight)"></co-icon>
|
|
115
|
+
<span class="standard-printer-message" [textContent]="'Standaard printer voor lay-out instellen'"></span>
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
<div class="standard-printer-selections" *ngIf="showStandardPrinterOptions">
|
|
119
|
+
<co-input-checkbox
|
|
120
|
+
[(model)]="models[0]"
|
|
121
|
+
[label]="'Per gebruiker instellen'"
|
|
122
|
+
[cssClass]="'input-checkbox-wrapper'"
|
|
123
|
+
></co-input-checkbox>
|
|
124
|
+
<co-input-checkbox
|
|
125
|
+
[(model)]="models[1]"
|
|
126
|
+
[label]="'Voor alle gebruikers instellen'"
|
|
127
|
+
[cssClass]="'input-checkbox-wrapper'"
|
|
128
|
+
></co-input-checkbox>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
|
|
132
|
+
<div class="print-footer-wrapper">
|
|
133
|
+
<div class="input-number-wrapper">
|
|
134
|
+
<co-input-number-picker class="number-picker"
|
|
135
|
+
[step]="1" [(model)]="stockService.printSticker.amount" [min]="1"
|
|
136
|
+
[ngModelOptions]="{debounce: 1}">
|
|
137
|
+
</co-input-number-picker>
|
|
138
|
+
</div>
|
|
139
|
+
<div class="custom-button-wrapper print-button" (click)="handlePrintClicked()">
|
|
140
|
+
<span [textContent]="'Print'"></span>
|
|
141
|
+
</div>
|
|
142
|
+
<div class="custom-button-wrapper signature-button" (click)="handleSignatureStart()">
|
|
143
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.SignatureField)"></co-icon>
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
|
|
149
|
+
<div class="printer-content-container" @slideInOut *ngIf="showPrinterSelections">
|
|
150
|
+
<div class="selected-printer-wrapper selection clickable" *ngFor="let printers of printerList" (click)="onPrinterClicked(printers)">
|
|
151
|
+
<div class="printer-option-list-item">
|
|
152
|
+
<co-icon class="printer-icon" [iconData]="iconCacheService.getIcon(icons.Print)"></co-icon>
|
|
153
|
+
<div class="printer-details">
|
|
154
|
+
<span class="printer-name" [textContent]="printers.name"></span>
|
|
155
|
+
<span class="printer-status" [textContent]="printers.acceptingJobs"></span>
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
<co-icon class="select-printer-arrow" *ngIf="!showPrinterSelections"
|
|
159
|
+
[iconData]="iconCacheService.getIcon(icons.ArrowPointRight)"></co-icon>
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
</co-dialog-wizard>
|
|
164
|
+
</div>
|
|
165
|
+
`,
|
|
166
|
+
encapsulation: ViewEncapsulation.None,
|
|
167
|
+
animations: [
|
|
168
|
+
trigger('slideInOut', [
|
|
169
|
+
state('*', style({transform: 'translateX(0%)', width: '100%', opacity: '1'})),
|
|
170
|
+
state('void', style({transform: 'translateX(150%)', opacity: '0'})),
|
|
171
|
+
transition('void => *', animate(250))
|
|
172
|
+
])
|
|
173
|
+
]
|
|
174
|
+
})
|
|
175
|
+
|
|
176
|
+
export class SendMethodDialogComponent implements OnDestroy {
|
|
177
|
+
public readonly icons: typeof Icon = Icon;
|
|
178
|
+
public readonly sendOption: typeof SendOption = SendOption;
|
|
179
|
+
|
|
180
|
+
@Input()
|
|
181
|
+
public showEmailOption: boolean = true;
|
|
182
|
+
|
|
183
|
+
@Input()
|
|
184
|
+
public showPrintOption: boolean = true;
|
|
185
|
+
|
|
186
|
+
@Input()
|
|
187
|
+
public showPdfOption: boolean = true;
|
|
188
|
+
|
|
189
|
+
@Input()
|
|
190
|
+
public showXmlOption: boolean = true;
|
|
191
|
+
|
|
192
|
+
@Input()
|
|
193
|
+
public showPrintPriceStickers: boolean = false;
|
|
194
|
+
|
|
195
|
+
@Input()
|
|
196
|
+
public showPrintStockStickers: boolean = true;
|
|
197
|
+
|
|
198
|
+
@Input()
|
|
199
|
+
public priceListCodeData: any
|
|
200
|
+
|
|
201
|
+
public sendOptions: {option: SendOption, iconName: Icon}[] = [
|
|
202
|
+
{ option: SendOption.Email,
|
|
203
|
+
iconName: this.icons.Email,
|
|
204
|
+
},
|
|
205
|
+
{ option: SendOption.Print,
|
|
206
|
+
iconName: this.icons.Print,
|
|
207
|
+
},
|
|
208
|
+
{ option: SendOption.Pdf,
|
|
209
|
+
iconName: this.icons.Pdf,
|
|
210
|
+
},
|
|
211
|
+
{ option: SendOption.Xml,
|
|
212
|
+
iconName: this.icons.Xml,
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
|
|
216
|
+
public activeSendOption: SendOption = SendOption.Email;
|
|
217
|
+
public showStandardPrinterOptions: boolean = false;
|
|
218
|
+
public showPrinterSelections: boolean = false;
|
|
219
|
+
public showExitButton = true;
|
|
220
|
+
public defaultPrinter: Printer;
|
|
221
|
+
public printTemplates: StockStickersPrintLayouts[];
|
|
222
|
+
public printTemplatesField: CoDropDownListFields = {text: "name", value: "reportId"};
|
|
223
|
+
public priceListDataField: CoDropDownListFields = {text: "name", value: "priceListCode"};
|
|
224
|
+
public upAndLoaded: boolean = false;
|
|
225
|
+
|
|
226
|
+
public emails: any[] = ['lars.vdv@colijn-it.nl', 'david@colijn-it.nl', 'ruben@colijn-it.nl'];
|
|
227
|
+
public models: boolean[] = [false, false, true];
|
|
228
|
+
|
|
229
|
+
public layouts: any[] = ['Layout 1', 'Layout 2', 'Layout 3'];
|
|
230
|
+
public selectedLayout: 'Layout 1';
|
|
231
|
+
|
|
232
|
+
@Input()
|
|
233
|
+
public showDialog: boolean = false;
|
|
234
|
+
|
|
235
|
+
@Input()
|
|
236
|
+
public headerTitle: string;
|
|
237
|
+
|
|
238
|
+
@Input()
|
|
239
|
+
public printerList: Printer[];
|
|
240
|
+
|
|
241
|
+
@Input()
|
|
242
|
+
public set articleData(data: any) {
|
|
243
|
+
this.stockService.printSticker.goodId = data.goodId;
|
|
244
|
+
this.stockService.printSticker.warehouse = data.warehouseNo;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
@Output()
|
|
248
|
+
public startSignatureClicked: EventEmitter<any> = new EventEmitter<any>();
|
|
249
|
+
|
|
250
|
+
@Output()
|
|
251
|
+
public printButtonClicked: EventEmitter<any> = new EventEmitter<any>();
|
|
252
|
+
|
|
253
|
+
@HostBinding("class.ione-send-method-dialog")
|
|
254
|
+
public showClass(): boolean {
|
|
255
|
+
return true;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
private _subscriptions: Subscription[] = [];
|
|
259
|
+
|
|
260
|
+
constructor(
|
|
261
|
+
public iconCacheService: IconCacheService,
|
|
262
|
+
public stockService: StockService,
|
|
263
|
+
private _optionsService: OptionsService,
|
|
264
|
+
private _dictionary: DictionaryService,
|
|
265
|
+
private _changeDetector: ChangeDetectorRef,
|
|
266
|
+
) {
|
|
267
|
+
this._subscriptions.push(
|
|
268
|
+
this._optionsService.optionsLoaded.subscribe(loaded => this._handleSettingsLoaded(loaded)),
|
|
269
|
+
)
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
ngOnDestroy(): void {
|
|
273
|
+
this._subscriptions.forEach(subscription => subscription.unsubscribe());
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
public async getPrinters(): Promise<void> {
|
|
277
|
+
return this.stockService.getAllPrinters(true).then((list) => {
|
|
278
|
+
this.printerList = list;
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
public closeDialogClick(): void {
|
|
283
|
+
this.showDialog = false;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
public handleSignatureStart(): void {
|
|
287
|
+
this.startSignatureClicked.emit();
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
public handlePrintClicked(): void {
|
|
291
|
+
// this.printButtonClicked.emit();
|
|
292
|
+
if (this.stockService.printSticker.printerName) {
|
|
293
|
+
this.stockService.getPrintStockStickers(this.stockService.printSticker);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
public togglePrinterSelection(): void {
|
|
298
|
+
this.getPrinters();
|
|
299
|
+
if (!this.showPrinterSelections) {
|
|
300
|
+
this.showPrinterSelections = true;
|
|
301
|
+
this.headerTitle = 'Printer selectie';
|
|
302
|
+
} else {
|
|
303
|
+
this.showPrinterSelections = false;
|
|
304
|
+
this.headerTitle = 'Verzendopties';
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
public onPrinterClicked(printer): void {
|
|
309
|
+
this.defaultPrinter = printer.name;
|
|
310
|
+
this.stockService.printSticker.printerName = printer.name;
|
|
311
|
+
this.showPrinterSelections =! this.showPrinterSelections;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
public getPrintTemplates(): any {
|
|
315
|
+
if (!this.printTemplates) {
|
|
316
|
+
const data = new StockStickersPrintLayouts();
|
|
317
|
+
this.stockService.getStockStickerTemplates(data).then((templates: StockStickersPrintLayouts[]) => {
|
|
318
|
+
this.printTemplates = templates;
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
private async _handleSettingsLoaded(loaded: boolean): Promise<void> {
|
|
324
|
+
if (loaded) {
|
|
325
|
+
await this._initConnection().then();
|
|
326
|
+
this.upAndLoaded = true;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
private async _initConnection(): Promise<void> {
|
|
331
|
+
// await this._connector.connect(this._optionsService.options);
|
|
332
|
+
|
|
333
|
+
if (this._optionsService.options.url) {
|
|
334
|
+
this._dictionary.rootUrl = this._optionsService.options.url.replace("/ajaxservice", "");
|
|
335
|
+
}
|
|
336
|
+
await this._dictionary.setDictionary(this._optionsService.options.languageCode);
|
|
337
|
+
setTimeout(() => {
|
|
338
|
+
this._changeDetector.detectChanges();
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
}
|
package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.module.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import {
|
|
4
|
+
ButtonModule,
|
|
5
|
+
CoDialogPromptModule, CoDialogWizardModule, IconModule,
|
|
6
|
+
InputCheckboxModule,
|
|
7
|
+
InputComboBoxModule, InputNumberPickerModule
|
|
8
|
+
} from "@colijnit/corecomponents_v12";
|
|
9
|
+
import {SendMethodDialogComponent} from "./send-method-dialog.component";
|
|
10
|
+
import {StockService} from "../../service/stock.service";
|
|
11
|
+
|
|
12
|
+
@NgModule({
|
|
13
|
+
declarations: [
|
|
14
|
+
SendMethodDialogComponent
|
|
15
|
+
],
|
|
16
|
+
imports: [
|
|
17
|
+
CommonModule,
|
|
18
|
+
CoDialogPromptModule,
|
|
19
|
+
InputCheckboxModule,
|
|
20
|
+
InputComboBoxModule,
|
|
21
|
+
IconModule,
|
|
22
|
+
InputNumberPickerModule,
|
|
23
|
+
CoDialogWizardModule,
|
|
24
|
+
ButtonModule
|
|
25
|
+
],
|
|
26
|
+
exports: [
|
|
27
|
+
SendMethodDialogComponent
|
|
28
|
+
],
|
|
29
|
+
providers: [
|
|
30
|
+
StockService
|
|
31
|
+
]
|
|
32
|
+
})
|
|
33
|
+
export class SendMethodDialogModule { }
|
package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/_layout.scss
RENAMED
|
File without changes
|
|
File without changes
|
package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/_theme.scss
RENAMED
|
File without changes
|
package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/material.scss
RENAMED
|
File without changes
|