@colijnit/sharedcomponents 1.0.25 → 1.0.27
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 +3704 -0
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -0
- package/colijnit-sharedcomponents.d.ts +16 -0
- package/colijnit-sharedcomponents.metadata.json +1 -0
- package/esm2015/colijnit-sharedcomponents.js +17 -0
- package/esm2015/lib/assets/dictionary/text.properties.js +11 -0
- package/esm2015/lib/components/circular-gauge/co-circular-gauge.component.js +124 -0
- package/esm2015/lib/components/circular-gauge/co-circular-gauge.module.js +21 -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 +225 -0
- package/esm2015/lib/components/docsign/docsign.module.js +23 -0
- package/esm2015/lib/components/key-pad/key-pad.component.js +191 -0
- package/esm2015/lib/components/key-pad/key-pad.module.js +21 -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 +55 -0
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.module.js +19 -0
- package/esm2015/lib/components/send-method-dialog/enums/send-option.js +8 -0
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +309 -0
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.module.js +31 -0
- package/esm2015/lib/components/statusbar/statusbar.component.js +81 -0
- package/esm2015/lib/components/statusbar/statusbar.module.js +23 -0
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +54 -0
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +350 -0
- package/esm2015/lib/components/stock/stock-location/stock-location.component.js +62 -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 +68 -0
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +130 -0
- package/esm2015/lib/components/stock/stock.component.js +140 -0
- package/esm2015/lib/components/stock/stock.module.js +48 -0
- package/esm2015/lib/enum/icon.enum.js +19 -0
- package/esm2015/lib/enum/keyboard-code.enum.js +32 -0
- package/esm2015/lib/enum/language-code.enum.js +8 -0
- package/esm2015/lib/factory/business-object-factory.js +120 -0
- package/esm2015/lib/factory/decorators/boolean.decorator.js +102 -0
- package/esm2015/lib/factory/decorators/complex-array.decorator.js +55 -0
- package/esm2015/lib/factory/decorators/complex-field.decorator.js +57 -0
- package/esm2015/lib/factory/decorators/date-field.decorator.js +36 -0
- package/esm2015/lib/factory/decorators/string-number.decorator.js +43 -0
- package/esm2015/lib/model/business-object.js +81 -0
- package/esm2015/lib/model/icon-svg.js +18 -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 +71 -0
- package/esm2015/lib/service/shared-connector.service.js +278 -0
- package/esm2015/lib/service/shared.service.js +30 -0
- package/esm2015/lib/service/stock.service.js +95 -0
- package/esm2015/lib/utils/array-utils.js +183 -0
- package/esm2015/lib/utils/is-nill.function.js +5 -0
- package/esm2015/lib/utils/string-utils.js +64 -0
- package/esm2015/public-api.js +21 -0
- package/fesm2015/colijnit-sharedcomponents.js +3514 -0
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -0
- package/lib/assets/dictionary/text.properties.d.ts +3 -0
- package/lib/components/circular-gauge/co-circular-gauge.component.d.ts +20 -0
- package/lib/components/circular-gauge/co-circular-gauge.module.d.ts +2 -0
- package/{projects/sharedcomponents/src/lib → lib}/components/circular-gauge/style/_layout.scss +6 -3
- package/{projects/sharedcomponents/src/lib → lib}/components/circular-gauge/style/_material-definition.scss +0 -0
- package/{projects/sharedcomponents/src/lib → lib}/components/circular-gauge/style/_theme.scss +0 -0
- package/{projects/sharedcomponents/src/lib → lib}/components/circular-gauge/style/material.scss +0 -0
- 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/lib/components/docsign/component/signature/signature.component.d.ts +16 -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/lib/components/docsign/component/signatures/signatures.component.d.ts +12 -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/lib/components/docsign/docsign.component.d.ts +92 -0
- package/lib/components/docsign/docsign.module.d.ts +2 -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/lib/components/key-pad/key-pad.component.d.ts +36 -0
- package/lib/components/key-pad/key-pad.module.d.ts +2 -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/lib/components/layout-switcher/layout-switcher.component.d.ts +16 -0
- package/lib/components/layout-switcher/layout-switcher.module.d.ts +2 -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/lib/components/linear-gauge/co-linear-gauge.component.d.ts +16 -0
- package/lib/components/linear-gauge/co-linear-gauge.module.d.ts +2 -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/lib/components/send-method-dialog/enums/send-option.d.ts +6 -0
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +62 -0
- package/lib/components/send-method-dialog/send-method-dialog.module.d.ts +2 -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/lib/components/statusbar/statusbar.component.d.ts +22 -0
- package/lib/components/statusbar/statusbar.module.d.ts +2 -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/lib/components/stock/stock-information/stock-information.component.d.ts +10 -0
- package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +60 -0
- package/lib/components/stock/stock-location/stock-location.component.d.ts +15 -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 +36 -0
- package/lib/components/stock/stock.component.d.ts +42 -0
- package/lib/components/stock/stock.module.d.ts +2 -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/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/lib/factory/business-object-factory.d.ts +23 -0
- package/lib/factory/decorators/boolean.decorator.d.ts +43 -0
- package/lib/factory/decorators/complex-array.decorator.d.ts +25 -0
- package/lib/factory/decorators/complex-field.decorator.d.ts +25 -0
- package/lib/factory/decorators/date-field.decorator.d.ts +17 -0
- package/lib/factory/decorators/string-number.decorator.d.ts +22 -0
- package/lib/model/business-object.d.ts +7 -0
- package/lib/model/icon-svg.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 +43 -0
- package/lib/service/shared.service.d.ts +8 -0
- package/lib/service/stock.service.d.ts +38 -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
- package/lib/utils/array-utils.d.ts +57 -0
- package/lib/utils/is-nill.function.d.ts +1 -0
- package/lib/utils/string-utils.d.ts +22 -0
- package/package.json +26 -74
- package/{projects/sharedcomponents/src/public-api.ts → public-api.d.ts} +0 -5
- 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 -133
- 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 -18
- package/projects/sharedcomponents/src/lib/assets/dictionary/text.properties.ts +0 -8
- 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/bring_forward_regular.svg +0 -1
- package/projects/sharedcomponents/src/lib/assets/icons/check_round.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/pdf.svg +0 -15
- package/projects/sharedcomponents/src/lib/assets/icons/print.svg +0 -10
- package/projects/sharedcomponents/src/lib/assets/icons/signature_field.svg +0 -9
- package/projects/sharedcomponents/src/lib/assets/icons/xml.svg +0 -9
- package/projects/sharedcomponents/src/lib/components/circular-gauge/co-circular-gauge.component.ts +0 -139
- package/projects/sharedcomponents/src/lib/components/circular-gauge/co-circular-gauge.module.ts +0 -19
- 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 -31
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-event.component.ts +0 -67
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-events.component.ts +0 -48
- 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 -265
- 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-view.component.ts +0 -38
- 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 -46
- 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 -124
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-view.component.ts +0 -201
- 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 -133
- package/projects/sharedcomponents/src/lib/components/date-planning/date-planning.module.ts +0 -56
- 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 -252
- 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 -205
- package/projects/sharedcomponents/src/lib/components/key-pad/key-pad.module.ts +0 -19
- 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 -56
- package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.module.ts +0 -17
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/enums/send-option.ts +0 -6
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.component.ts +0 -342
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.module.ts +0 -33
- package/projects/sharedcomponents/src/lib/components/statusbar/statusbar.component.ts +0 -97
- package/projects/sharedcomponents/src/lib/components/statusbar/statusbar.module.ts +0 -21
- 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 +0 -64
- package/projects/sharedcomponents/src/lib/components/stock/stock-information-grid/stock-information-grid.component.ts +0 -384
- package/projects/sharedcomponents/src/lib/components/stock/stock-location/stock-location.component.ts +0 -84
- package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-change-amount.component.ts +0 -73
- package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-transfer.component.ts +0 -153
- package/projects/sharedcomponents/src/lib/components/stock/stock.component.ts +0 -165
- package/projects/sharedcomponents/src/lib/components/stock/stock.module.ts +0 -51
- package/projects/sharedcomponents/src/lib/enum/calendar-view.enum.ts +0 -6
- 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/month.enum.ts +0 -15
- package/projects/sharedcomponents/src/lib/enum/time-period.enum.ts +0 -9
- package/projects/sharedcomponents/src/lib/factory/business-object-factory.ts +0 -120
- package/projects/sharedcomponents/src/lib/factory/decorators/boolean.decorator.ts +0 -113
- package/projects/sharedcomponents/src/lib/factory/decorators/complex-array.decorator.ts +0 -61
- package/projects/sharedcomponents/src/lib/factory/decorators/complex-field.decorator.ts +0 -63
- package/projects/sharedcomponents/src/lib/factory/decorators/date-field.decorator.ts +0 -41
- package/projects/sharedcomponents/src/lib/factory/decorators/string-number.decorator.ts +0 -48
- 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 -17
- package/projects/sharedcomponents/src/lib/model/agenda-null-objects.ts +0 -11
- package/projects/sharedcomponents/src/lib/model/business-object.ts +0 -85
- 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 -18
- package/projects/sharedcomponents/src/lib/model/month.model.ts +0 -11
- package/projects/sharedcomponents/src/lib/model/time-window.bo.ts +0 -21
- 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 -66
- package/projects/sharedcomponents/src/lib/service/shared-connector.service.ts +0 -258
- package/projects/sharedcomponents/src/lib/service/shared-initializer.service.ts +0 -29
- package/projects/sharedcomponents/src/lib/service/shared.service.ts +0 -21
- package/projects/sharedcomponents/src/lib/service/stock.service.ts +0 -95
- package/projects/sharedcomponents/src/lib/utils/array-utils.ts +0 -202
- package/projects/sharedcomponents/src/lib/utils/calendar.utils.ts +0 -75
- 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/string-utils.ts +0 -67
- 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/merge-icons.js +0 -39
- package/src/app/app.component.scss +0 -9
- package/src/app/app.component.spec.ts +0 -31
- package/src/app/app.component.ts +0 -156
- package/src/app/app.module.ts +0 -60
- package/src/assets/.gitkeep +0 -0
- 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 -40
- package/src/test.ts +0 -26
- package/tsconfig.app.json +0 -15
- package/tsconfig.json +0 -65
- package/tsconfig.spec.json +0 -18
package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.component.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,342 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
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 { }
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { animate, state, style, transition, trigger } from "@angular/animations";
|
|
2
|
-
import { Component, EventEmitter, HostBinding, Input, Output, ViewEncapsulation } from "@angular/core";
|
|
3
|
-
|
|
4
|
-
export interface StatusbarData {
|
|
5
|
-
label: string,
|
|
6
|
-
percentage: number,
|
|
7
|
-
count?: number,
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@Component({
|
|
11
|
-
selector: "co-statusbar",
|
|
12
|
-
template: `
|
|
13
|
-
<div class="co-statusbar-wrapper"
|
|
14
|
-
*ngIf="statusbarData"
|
|
15
|
-
(mouseover)="onHover($event)"
|
|
16
|
-
(mouseleave)="onLeave()"
|
|
17
|
-
(click)="onStatusbarClick()">
|
|
18
|
-
<div class="statuses">
|
|
19
|
-
<div *ngFor="let data of statusbarData; let index = index" class="status">
|
|
20
|
-
<co-linear-gauge [value]="data.percentage" [count]="!!data.count ? data.count : undefined"></co-linear-gauge>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
<div class=status-description-popup *ngIf="showPopup" @showHidePopup [ngClass]="popupClass">
|
|
24
|
-
<div class="status-descriptions">
|
|
25
|
-
<div *ngFor="let data of statusbarData; let index = index" class="status-description">
|
|
26
|
-
<co-circular-gauge [value]="data.percentage"></co-circular-gauge>
|
|
27
|
-
<span [textContent]="data.label"></span>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
`,
|
|
33
|
-
animations: [
|
|
34
|
-
trigger("showHidePopup", [
|
|
35
|
-
state("void", style({opacity: 0})),
|
|
36
|
-
state("*", style({opacity: 1})),
|
|
37
|
-
transition("void <=> *", animate("250ms ease-in-out")),
|
|
38
|
-
])
|
|
39
|
-
],
|
|
40
|
-
encapsulation: ViewEncapsulation.None
|
|
41
|
-
})
|
|
42
|
-
export class StatusbarComponent {
|
|
43
|
-
|
|
44
|
-
@Input()
|
|
45
|
-
public set statusbarData(value: StatusbarData[]) {
|
|
46
|
-
this._statusbarData = value;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
public get statusbarData() {
|
|
50
|
-
return this._statusbarData;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@Output()
|
|
54
|
-
statusbarClick: EventEmitter<void> = new EventEmitter<void>();
|
|
55
|
-
|
|
56
|
-
@HostBinding("class.co-statusbar")
|
|
57
|
-
public showClass() {
|
|
58
|
-
return true;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
constructor() {
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
public showPopup: boolean = false;
|
|
65
|
-
public popupClass: string = 'dropdown';
|
|
66
|
-
private _statusbarData: StatusbarData[];
|
|
67
|
-
private _mouseY: number;
|
|
68
|
-
private _windowHeight: number;
|
|
69
|
-
|
|
70
|
-
public onHover(event): void {
|
|
71
|
-
this.showPopup = true;
|
|
72
|
-
|
|
73
|
-
this._mouseY = event.screenY;
|
|
74
|
-
this._windowHeight = window.innerHeight;
|
|
75
|
-
this.setPopupClass();
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
public onLeave(): void {
|
|
79
|
-
this.showPopup = false;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
public onStatusbarClick(): void {
|
|
83
|
-
this.statusbarClick.emit();
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
public setPopupClass(): void {
|
|
87
|
-
const popupHeight = this.statusbarData.length * 30;
|
|
88
|
-
let dropdownInScreen = (this._mouseY + popupHeight) <= this._windowHeight;
|
|
89
|
-
|
|
90
|
-
if (dropdownInScreen) {
|
|
91
|
-
this.popupClass = 'dropdown';
|
|
92
|
-
} else {
|
|
93
|
-
this.popupClass = 'dropup'
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NgModule } from "@angular/core";
|
|
2
|
-
import { CommonModule } from "@angular/common";
|
|
3
|
-
import { CoCircularGaugeModule } from "../circular-gauge/co-circular-gauge.module";
|
|
4
|
-
import { CoLinearGaugeModule } from "../linear-gauge/co-linear-gauge.module";
|
|
5
|
-
import { StatusbarComponent } from "./statusbar.component";
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
imports: [
|
|
9
|
-
CommonModule,
|
|
10
|
-
CoCircularGaugeModule,
|
|
11
|
-
CoLinearGaugeModule
|
|
12
|
-
],
|
|
13
|
-
declarations: [
|
|
14
|
-
StatusbarComponent
|
|
15
|
-
],
|
|
16
|
-
exports: [
|
|
17
|
-
StatusbarComponent
|
|
18
|
-
]
|
|
19
|
-
})
|
|
20
|
-
export class StatusbarModule {
|
|
21
|
-
}
|
|
File without changes
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import {Component, Input, ViewEncapsulation} from "@angular/core";
|
|
2
|
-
import {ArticleStock as ArticleStockBo} from "@colijnit/articleapi/build/model/article-stock.bo";
|
|
3
|
-
import {ArticleExtended} from "@colijnit/articleapi/build/model/article-extended.bo";
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: "co-stock-information",
|
|
7
|
-
template: `
|
|
8
|
-
<div class="stock-info" *ngIf="article">
|
|
9
|
-
<div class="stock-info-row" >
|
|
10
|
-
<div class="stock-info-row-image">
|
|
11
|
-
<div class="stock-image">
|
|
12
|
-
<co-image class="stock-image" [source]="article.imageData"></co-image>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="stock-good-info">
|
|
16
|
-
<div>
|
|
17
|
-
<span [textContent]="article.description"></span>
|
|
18
|
-
</div>
|
|
19
|
-
<div>
|
|
20
|
-
<span [textContent]="article.articleNumber"></span>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
<div class="stock-status">
|
|
25
|
-
<label [textContent]="'STOCK_STATUS'"></label>
|
|
26
|
-
<span [textContent]="article.stockStatus"></span>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="stock-status">
|
|
29
|
-
<label [textContent]="'AMOUNT_IN_STOCK'"></label>
|
|
30
|
-
<span [textContent]="allTechnicalStockInformation"></span>
|
|
31
|
-
</div>
|
|
32
|
-
<div class="stock-status">
|
|
33
|
-
<label [textContent]="'AMOUNT_AVAILABLE'"></label>
|
|
34
|
-
<span [textContent]="allAvailableStockInformation"></span>
|
|
35
|
-
</div>
|
|
36
|
-
<div class="stock-status">
|
|
37
|
-
<label [textContent]="'AMOUNT_LATER_AVAILABLE'"></label>
|
|
38
|
-
<span [textContent]=""></span>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
`,
|
|
42
|
-
encapsulation: ViewEncapsulation.None
|
|
43
|
-
})
|
|
44
|
-
export class StockInformationComponent {
|
|
45
|
-
|
|
46
|
-
public image: string;
|
|
47
|
-
|
|
48
|
-
@Input()
|
|
49
|
-
public article: ArticleExtended;
|
|
50
|
-
|
|
51
|
-
@Input()
|
|
52
|
-
public articleStock: ArticleStockBo;
|
|
53
|
-
|
|
54
|
-
@Input()
|
|
55
|
-
public allAvailableStockInformation: number;
|
|
56
|
-
|
|
57
|
-
@Input()
|
|
58
|
-
public allTechnicalStockInformation: number;
|
|
59
|
-
|
|
60
|
-
constructor(
|
|
61
|
-
) {
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
}
|