@colijnit/sharedcomponents 1.0.23 → 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-1.0.23.tgz +0 -0
- 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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
|
|
2
|
+
<path
|
|
3
|
+
d="M31.42,40.17H13.88c-2.16,0-2.72-.56-2.72-2.72V12.88c0-2.15.56-2.71,2.72-2.71h11.6l8.66,8.88v3.43H32.8V19.6l-7.88-8.09h-11c-1.38,0-1.38,0-1.38,1.37V37.45c0,1.37,0,1.37,1.38,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z"
|
|
4
|
+
fill="#484f60"/>
|
|
5
|
+
<path
|
|
6
|
+
d="M27.83,26.63v4.24h1a3.57,3.57,0,0,0,.78-.06,1.22,1.22,0,0,0,.52-.26,1.44,1.44,0,0,0,.34-.62,4.13,4.13,0,0,0,.13-1.18,3.79,3.79,0,0,0-.13-1.14,1.51,1.51,0,0,0-.37-.62,1.14,1.14,0,0,0-.6-.3,5.93,5.93,0,0,0-1.06-.06Z"
|
|
7
|
+
fill="#484f60"/>
|
|
8
|
+
<path
|
|
9
|
+
d="M21.86,26.63v1.82h.71a3.57,3.57,0,0,0,1-.1A.88.88,0,0,0,24,28a.84.84,0,0,0,.14-.5.8.8,0,0,0-.2-.57.88.88,0,0,0-.52-.29,6.36,6.36,0,0,0-.93,0Z"
|
|
10
|
+
fill="#484f60"/>
|
|
11
|
+
<path
|
|
12
|
+
d="M19.14,24.27v9h19.7v-9Zm6.12,4.24a1.68,1.68,0,0,1-.54.63,1.9,1.9,0,0,1-.67.3,6.57,6.57,0,0,1-1.34.1h-.85V32H20.57V25.54h2.07a7.75,7.75,0,0,1,1.54.1,1.73,1.73,0,0,1,.93.63,2,2,0,0,1,.37,1.25A2,2,0,0,1,25.26,28.51Zm6.45,1.66A2.91,2.91,0,0,1,31,31.31a2.28,2.28,0,0,1-.91.51A4,4,0,0,1,29,32H26.54V25.54H28.9a4.21,4.21,0,0,1,1.22.13,2.08,2.08,0,0,1,1,.59,2.79,2.79,0,0,1,.61,1,4.76,4.76,0,0,1,.21,1.52A4.19,4.19,0,0,1,31.71,30.17Zm5.7-3.54h-3.1v1.52H37v1.08H34.31V32H33V25.54h4.39Z"
|
|
13
|
+
fill="#484f60"/>
|
|
14
|
+
<path d="M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z" fill="#484f60"/>
|
|
15
|
+
</svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
|
|
2
|
+
<path
|
|
3
|
+
d="M38,16.5H12a2,2,0,0,0-2,2v9a2,2,0,0,0,2,2h2v-5H36v5h2a2,2,0,0,0,2-2v-9A2,2,0,0,0,38,16.5ZM37,21a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,37,21Z"
|
|
4
|
+
fill="#484f60"/>
|
|
5
|
+
<path d="M35,11.5v5H15v-5H35m1-1H14v7H36v-7Z" fill="#484f60"/>
|
|
6
|
+
<path d="M35,25.5v13H15v-13H35m1-1H14v15H36v-15Z" fill="#484f60"/>
|
|
7
|
+
<rect x="17" y="28.3" width="16" height="0.8" fill="#484f60"/>
|
|
8
|
+
<rect x="17" y="31.5" width="16" height="0.8" fill="#484f60"/>
|
|
9
|
+
<rect x="17" y="34.7" width="16" height="0.8" fill="#484f60"/>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
|
|
2
|
+
<path
|
|
3
|
+
d="M20.1,25.42a1.1,1.1,0,1,1,1.27,1.45l-3.3,9.07A63.13,63.13,0,0,1,28,28.3l1.26-12-8.26-3-6.77,10A62.4,62.4,0,0,1,17,35.54l3.3-9.07A1.12,1.12,0,0,1,20.1,25.42Z"
|
|
4
|
+
fill="#484f60"/>
|
|
5
|
+
<rect x="21.62" y="11.43" width="8.79" height="2.34" transform="translate(5.88 -8.14) rotate(20)" fill="#484f60"/>
|
|
6
|
+
<path
|
|
7
|
+
d="M18.11,37.48c1.44,2.65,4.58,2.94,7.23,2.1,1.41-.44,2.2-1.49,3.44-2.06,2.42-1.1,3.13,1.2,5.36,1.37.42,0,2-.65,1.54-.68-2.55-.19-2.93-3.13-5.51-2.65a4.9,4.9,0,0,0-1.64.71c-.77.49-1.31,1.62-2.07,2l-4.61.56A3.38,3.38,0,0,1,20,37c-.22-.41-2,.28-1.85.5Z"
|
|
8
|
+
fill="#484f60"/>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
|
|
2
|
+
<path
|
|
3
|
+
d="M31.42,40.17H13.87c-2.15,0-2.71-.56-2.71-2.72V12.88c0-2.15.56-2.71,2.71-2.71H25.48l8.66,8.88v3.43H32.8V19.6l-7.88-8.09H13.87c-1.37,0-1.37,0-1.37,1.37V37.45c0,1.37,0,1.37,1.37,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z"
|
|
4
|
+
fill="#484f60"/>
|
|
5
|
+
<path d="M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z" fill="#484f60"/>
|
|
6
|
+
<path
|
|
7
|
+
d="M19.14,24.27v9h19.7v-9Zm5.36,7.41-1.3-2-1.3,2H20.48l2-3.06-1.81-2.8h1.38l1.18,1.88,1.15-1.88h1.37l-1.83,2.85,2,3Zm7.67,0h-1.1V27.07l-1.16,4.61H28.77l-1.16-4.61v4.61H26.52V25.82h1.76l1.07,4,1-4h1.77Zm5.33,0H33.38V25.87h1.18v4.82H37.5Z"
|
|
8
|
+
fill="#484f60"/>
|
|
9
|
+
</svg>
|
package/projects/sharedcomponents/src/lib/components/circular-gauge/co-circular-gauge.component.ts
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { Component, HostBinding, Input, ViewChild, ViewEncapsulation } from "@angular/core";
|
|
2
|
+
import {
|
|
3
|
+
AxisModel,
|
|
4
|
+
CircularGaugeComponent,
|
|
5
|
+
} from "@syncfusion/ej2-angular-circulargauge";
|
|
6
|
+
import { AnnotationModel } from "@syncfusion/ej2-circulargauge/src/circular-gauge/axes/axis-model";
|
|
7
|
+
|
|
8
|
+
enum GaugeColor {
|
|
9
|
+
Low = '#E0E0E0',
|
|
10
|
+
Medium = '#F88952',
|
|
11
|
+
High = '#5FDCB3',
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@Component({
|
|
15
|
+
selector: "co-circular-gauge",
|
|
16
|
+
template: `
|
|
17
|
+
<div class="circular-gauge-wrapper">
|
|
18
|
+
<ejs-circulargauge
|
|
19
|
+
class="circular-gauge"
|
|
20
|
+
[width]="'100%'"
|
|
21
|
+
[axes]="getAxes()">
|
|
22
|
+
</ejs-circulargauge>
|
|
23
|
+
</div>
|
|
24
|
+
`,
|
|
25
|
+
encapsulation: ViewEncapsulation.None
|
|
26
|
+
})
|
|
27
|
+
export class CoCircularGaugeComponent {
|
|
28
|
+
|
|
29
|
+
@ViewChild('circulargauge')
|
|
30
|
+
public circulargauge: CircularGaugeComponent;
|
|
31
|
+
|
|
32
|
+
@Input()
|
|
33
|
+
public set value(value: number) {
|
|
34
|
+
this._value = value;
|
|
35
|
+
this._setColor();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public get value(): number {
|
|
39
|
+
return this._value;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public get color(): string {
|
|
43
|
+
return this._color;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@HostBinding("class.co-circular-gauge")
|
|
47
|
+
public showClass() {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
private _value: number;
|
|
52
|
+
private _color: GaugeColor = GaugeColor.Low;
|
|
53
|
+
|
|
54
|
+
public majorTicks: Object = {
|
|
55
|
+
height: 0,
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
public minorTicks: Object = {
|
|
59
|
+
height: 0
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
public labelStyle: Object = {
|
|
63
|
+
position: 'Inside', useRangeColor: true,
|
|
64
|
+
font: {size: '0px', fontFamily: 'inherit'}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
public lineStyle: Object = {
|
|
68
|
+
width: 0
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
public ranges: Object[] = [
|
|
72
|
+
{
|
|
73
|
+
start: 1, end: 100,
|
|
74
|
+
radius: '13px',
|
|
75
|
+
startWidth: 3, endWidth: 3,
|
|
76
|
+
color: '#E0E0E0',
|
|
77
|
+
roundedCornerRadius: 0
|
|
78
|
+
},
|
|
79
|
+
];
|
|
80
|
+
|
|
81
|
+
public getAxes(): AxisModel[] {
|
|
82
|
+
return [{
|
|
83
|
+
minimum: 0,
|
|
84
|
+
maximum: 100,
|
|
85
|
+
radius: '15px',
|
|
86
|
+
startAngle: 1,
|
|
87
|
+
endAngle: 360,
|
|
88
|
+
majorTicks: this.majorTicks,
|
|
89
|
+
minorTicks: this.minorTicks,
|
|
90
|
+
labelStyle: this.labelStyle,
|
|
91
|
+
lineStyle: this.lineStyle,
|
|
92
|
+
ranges: this.ranges,
|
|
93
|
+
pointers: this.getPointers(),
|
|
94
|
+
annotations: this.getAnnotations(),
|
|
95
|
+
}];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
public getPointers(): Object[] {
|
|
99
|
+
if (this.value) {
|
|
100
|
+
|
|
101
|
+
return [{
|
|
102
|
+
roundedCornerRadius: 0,
|
|
103
|
+
value: this.value,
|
|
104
|
+
type: 'RangeBar',
|
|
105
|
+
radius: '13px',
|
|
106
|
+
color: this.color,
|
|
107
|
+
border: {
|
|
108
|
+
width: 0
|
|
109
|
+
},
|
|
110
|
+
animation: {
|
|
111
|
+
enable: false
|
|
112
|
+
},
|
|
113
|
+
pointerWidth: 3
|
|
114
|
+
}]
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
public getAnnotations(): AnnotationModel[] {
|
|
119
|
+
if (this.value) {
|
|
120
|
+
return [{
|
|
121
|
+
content: '<div class="annotation">' +
|
|
122
|
+
this.value + '%</div>',
|
|
123
|
+
angle: 90,
|
|
124
|
+
radius: '50%',
|
|
125
|
+
zIndex: '10',
|
|
126
|
+
}];
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
private _setColor(): void {
|
|
131
|
+
if (this.value == 0) {
|
|
132
|
+
this._color = GaugeColor.Low;
|
|
133
|
+
} else if (this.value >= 0 && this.value < 100) {
|
|
134
|
+
this._color = GaugeColor.Medium;
|
|
135
|
+
} else if (this.value == 100) {
|
|
136
|
+
this._color = GaugeColor.High;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
package/projects/sharedcomponents/src/lib/components/circular-gauge/co-circular-gauge.module.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NgModule } from "@angular/core";
|
|
2
|
+
import { CommonModule } from "@angular/common";
|
|
3
|
+
import { CircularGaugeModule } from "@syncfusion/ej2-angular-circulargauge";
|
|
4
|
+
import { CoCircularGaugeComponent } from "./co-circular-gauge.component";
|
|
5
|
+
|
|
6
|
+
@NgModule({
|
|
7
|
+
imports: [
|
|
8
|
+
CommonModule,
|
|
9
|
+
CircularGaugeModule
|
|
10
|
+
],
|
|
11
|
+
declarations: [
|
|
12
|
+
CoCircularGaugeComponent
|
|
13
|
+
],
|
|
14
|
+
exports: [
|
|
15
|
+
CoCircularGaugeComponent
|
|
16
|
+
]
|
|
17
|
+
})
|
|
18
|
+
export class CoCircularGaugeModule {
|
|
19
|
+
}
|
package/{lib → projects/sharedcomponents/src/lib}/components/circular-gauge/style/_layout.scss
RENAMED
|
File without changes
|
|
File without changes
|
package/{lib → projects/sharedcomponents/src/lib}/components/circular-gauge/style/_theme.scss
RENAMED
|
File without changes
|
package/{lib → projects/sharedcomponents/src/lib}/components/circular-gauge/style/material.scss
RENAMED
|
File without changes
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import {Directive, EventEmitter, Inject, Input, LOCALE_ID, Output} from "@angular/core";
|
|
2
|
+
import {LanguageCode} from "../../../../enum/language-code.enum";
|
|
3
|
+
import {AgendaEvent} from "../../../../model/agenda-event.model";
|
|
4
|
+
import {AgendaEventPerDay} from "../../../../model/agenda-event-per-day.model";
|
|
5
|
+
import {DateUtils} from "../../../../utils/date-utils";
|
|
6
|
+
import {IconCacheService} from "../../../../service/icon-cache.service";
|
|
7
|
+
|
|
8
|
+
@Directive()
|
|
9
|
+
export abstract class AgendaBaseViewComponent {
|
|
10
|
+
|
|
11
|
+
@Input()
|
|
12
|
+
public set selectedDate(value: Date) {
|
|
13
|
+
this._selectedDate = value;
|
|
14
|
+
this._dateIsSet();
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@Input()
|
|
18
|
+
public set eventsPerDay(value: AgendaEventPerDay[]) {
|
|
19
|
+
this._eventsPerDay = value;
|
|
20
|
+
this._eventsAreSet();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@Output()
|
|
24
|
+
public eventChecked: EventEmitter<AgendaEvent> = new EventEmitter<AgendaEvent>();
|
|
25
|
+
|
|
26
|
+
public get selectedDate(): Date {
|
|
27
|
+
return this._selectedDate;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public get eventsPerDate(): AgendaEventPerDay[] {
|
|
31
|
+
return this._eventsPerDay;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
private _selectedDate: Date;
|
|
35
|
+
private _eventsPerDay: AgendaEventPerDay[] = [];
|
|
36
|
+
|
|
37
|
+
constructor(
|
|
38
|
+
@Inject(LOCALE_ID) protected readonly locale: LanguageCode,
|
|
39
|
+
public iconCacheService: IconCacheService
|
|
40
|
+
) {
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
//overridable by descendents
|
|
44
|
+
protected prepareViewData(): void {
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
protected getEventsFromDate(date: Date): AgendaEvent[] {
|
|
48
|
+
let events: AgendaEvent[] = [];
|
|
49
|
+
if (this.eventsPerDate) {
|
|
50
|
+
const len: number = this.eventsPerDate.length;
|
|
51
|
+
for (let i: number = 0; i < len; i++) {
|
|
52
|
+
if (DateUtils.DatesEqual(date, this.eventsPerDate[i].date)) {
|
|
53
|
+
events = this.eventsPerDate[i].events;
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return events;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
private _dateIsSet(): void {
|
|
62
|
+
this.prepareViewData();
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
private _eventsAreSet(): void {
|
|
66
|
+
this.prepareViewData();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {Component, ViewEncapsulation} from "@angular/core";
|
|
2
|
+
import {AgendaEvent} from "../../../../model/agenda-event.model";
|
|
3
|
+
import {AgendaBaseViewComponent} from "./agenda-base-view.component";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: "agenda-day-view",
|
|
8
|
+
template: `
|
|
9
|
+
<div class="view-wrapper">
|
|
10
|
+
<agenda-hour-view-labels [date]="selectedDate"></agenda-hour-view-labels>
|
|
11
|
+
<agenda-hour-view [date]="selectedDate">
|
|
12
|
+
<agenda-events
|
|
13
|
+
[halfHourHeight]="40"
|
|
14
|
+
[events]="events"
|
|
15
|
+
(eventChecked)="eventChecked.emit($event)"
|
|
16
|
+
></agenda-events>
|
|
17
|
+
</agenda-hour-view>
|
|
18
|
+
</div>
|
|
19
|
+
`,
|
|
20
|
+
encapsulation: ViewEncapsulation.None
|
|
21
|
+
})
|
|
22
|
+
export class AgendaDayViewComponent extends AgendaBaseViewComponent {
|
|
23
|
+
|
|
24
|
+
public events: AgendaEvent[] = [];
|
|
25
|
+
|
|
26
|
+
protected prepareViewData(): void {
|
|
27
|
+
if (this.eventsPerDate && this.eventsPerDate.length > 0) {
|
|
28
|
+
this.events = this.eventsPerDate[0].events;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
ElementRef,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
Input,
|
|
6
|
+
OnDestroy,
|
|
7
|
+
OnInit,
|
|
8
|
+
Output,
|
|
9
|
+
Renderer2,
|
|
10
|
+
ViewEncapsulation
|
|
11
|
+
} from "@angular/core";
|
|
12
|
+
import {AgendaEvent} from "../../../../model/agenda-event.model";
|
|
13
|
+
import {NULL_AGENDA_EVENT} from "../../../../model/agenda-null-objects";
|
|
14
|
+
import {Icon} from "../../../../enum/icon.enum";
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@Component({
|
|
18
|
+
selector: "agenda-event",
|
|
19
|
+
template: `
|
|
20
|
+
<div class="agenda-event-wrapper" [class.checkable]="event.showCheckbox" [class.selected]="event.checked" (click)="checkEvent($event)">
|
|
21
|
+
<div [textContent]="event.fromToRepresentation" class="event-description"></div>
|
|
22
|
+
<icon *ngIf="event.showCheckbox" icon="check_round_open" [class.checked]="event.checked"></icon>
|
|
23
|
+
</div>
|
|
24
|
+
`,
|
|
25
|
+
encapsulation: ViewEncapsulation.None
|
|
26
|
+
})
|
|
27
|
+
export class AgendaEventComponent implements OnInit, OnDestroy {
|
|
28
|
+
|
|
29
|
+
public readonly icons: typeof Icon = Icon;
|
|
30
|
+
|
|
31
|
+
@Input()
|
|
32
|
+
public event: AgendaEvent = NULL_AGENDA_EVENT;
|
|
33
|
+
|
|
34
|
+
@Input()
|
|
35
|
+
public halfHourHeight: number;
|
|
36
|
+
|
|
37
|
+
@Output()
|
|
38
|
+
public eventChecked: EventEmitter<AgendaEvent> = new EventEmitter<AgendaEvent>();
|
|
39
|
+
|
|
40
|
+
constructor(
|
|
41
|
+
private _elementRef: ElementRef,
|
|
42
|
+
private _renderer: Renderer2
|
|
43
|
+
) {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
ngOnDestroy(): void {
|
|
47
|
+
this._elementRef = undefined;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
ngOnInit(): void {
|
|
51
|
+
const hourTo: number = this.event.from.getHours();
|
|
52
|
+
const minutesTo: number = this.event.from.getMinutes();
|
|
53
|
+
const multiply: number = hourTo + (minutesTo / 60);
|
|
54
|
+
const top: number = multiply * (this.halfHourHeight * 2);
|
|
55
|
+
this._renderer.setStyle(this._elementRef.nativeElement, "top", top + "px");
|
|
56
|
+
|
|
57
|
+
const hours: number = Math.abs(this.event.to.getTime() - this.event.from.getTime()) / 3600000;
|
|
58
|
+
const height: number = hours * (this.halfHourHeight * 2) - 1;
|
|
59
|
+
this._renderer.setStyle(this._elementRef.nativeElement, "height", height + "px");
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
public checkEvent(event: MouseEvent): void {
|
|
63
|
+
this.event.checked = !this.event.checked;
|
|
64
|
+
this.eventChecked.emit(this.event);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {Component, EventEmitter, Input, Output, ViewEncapsulation} from "@angular/core";
|
|
2
|
+
import {CalendarView} from "../../../../enum/calendar-view.enum";
|
|
3
|
+
import {AgendaEvent} from "../../../../model/agenda-event.model";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: "agenda-events",
|
|
8
|
+
template: `
|
|
9
|
+
<ng-container *ngIf="view !== viewTypes.WeekSelectView">
|
|
10
|
+
<agenda-event
|
|
11
|
+
*ngFor="let event of events"
|
|
12
|
+
[halfHourHeight]="halfHourHeight"
|
|
13
|
+
[event]="event"
|
|
14
|
+
(eventChecked)="eventChecked.emit($event)"
|
|
15
|
+
></agenda-event>
|
|
16
|
+
</ng-container>
|
|
17
|
+
<ng-container *ngIf="view === viewTypes.WeekSelectView">
|
|
18
|
+
<agenda-select-event
|
|
19
|
+
*ngFor="let event of events"
|
|
20
|
+
[event]="event"
|
|
21
|
+
(eventChecked)="eventChecked.emit($event)"
|
|
22
|
+
></agenda-select-event>
|
|
23
|
+
</ng-container>
|
|
24
|
+
`,
|
|
25
|
+
encapsulation: ViewEncapsulation.None
|
|
26
|
+
})
|
|
27
|
+
export class AgendaEventsComponent {
|
|
28
|
+
|
|
29
|
+
public readonly viewTypes: typeof CalendarView = CalendarView;
|
|
30
|
+
|
|
31
|
+
@Input()
|
|
32
|
+
public view: CalendarView = CalendarView.WeekView;
|
|
33
|
+
|
|
34
|
+
@Input()
|
|
35
|
+
public type: string = "";
|
|
36
|
+
|
|
37
|
+
@Input()
|
|
38
|
+
public events: AgendaEvent[] = [];
|
|
39
|
+
|
|
40
|
+
@Input()
|
|
41
|
+
public halfHourHeight: number;
|
|
42
|
+
|
|
43
|
+
@Output()
|
|
44
|
+
public readonly eventChecked: EventEmitter<AgendaEvent> = new EventEmitter<AgendaEvent>();
|
|
45
|
+
|
|
46
|
+
constructor() {
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import {Component, ElementRef, Input, OnDestroy, Renderer2, ViewChild, ViewEncapsulation} from "@angular/core";
|
|
2
|
+
import {DateUtils} from "../../../../utils/date-utils";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: "agenda-half-hour-cell",
|
|
7
|
+
template: `
|
|
8
|
+
<div id="{{id}}" class="cell-wrapper">
|
|
9
|
+
<div *ngIf="showLabel" [class.show]="showLabel" class="half-hour-label">
|
|
10
|
+
<div [textContent]="date | date:'HH:mm'"></div>
|
|
11
|
+
</div>
|
|
12
|
+
<div *ngIf="showCurrentTime" id="currentTime" class="current-time" #currentTime></div>
|
|
13
|
+
<div class="content-wrapper">
|
|
14
|
+
<ng-content></ng-content>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
`,
|
|
18
|
+
encapsulation: ViewEncapsulation.None
|
|
19
|
+
})
|
|
20
|
+
export class AgendaHalfHourCellComponent implements OnDestroy {
|
|
21
|
+
|
|
22
|
+
@ViewChild("currentTime")
|
|
23
|
+
public currentTimeElement: ElementRef;
|
|
24
|
+
|
|
25
|
+
@Input()
|
|
26
|
+
public set date(value: Date) {
|
|
27
|
+
this._date = value;
|
|
28
|
+
this._checkDate();
|
|
29
|
+
this._checkWorkingDayStart();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public get date(): Date {
|
|
33
|
+
return this._date;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@Input()
|
|
37
|
+
public showLabel: boolean = false;
|
|
38
|
+
|
|
39
|
+
public showCurrentTime: boolean = false;
|
|
40
|
+
|
|
41
|
+
public currentTimeTop: number = 0;
|
|
42
|
+
|
|
43
|
+
public id: string;
|
|
44
|
+
|
|
45
|
+
private _date: Date;
|
|
46
|
+
private _id: string;
|
|
47
|
+
|
|
48
|
+
constructor(
|
|
49
|
+
private _renderer: Renderer2
|
|
50
|
+
) {
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
ngOnDestroy(): void {
|
|
54
|
+
this.currentTimeElement = undefined;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private _checkDate(): void {
|
|
58
|
+
const checkDate: Date = new Date();
|
|
59
|
+
const minutesFrom: number = this.date.getMinutes();
|
|
60
|
+
const minutesTo: number = minutesFrom + 30;
|
|
61
|
+
|
|
62
|
+
if (DateUtils.DatesEqual(this.date, checkDate)) {
|
|
63
|
+
if (checkDate.getHours() === this.date.getHours() && (checkDate.getMinutes() > minutesFrom && checkDate.getMinutes() < minutesTo)) {
|
|
64
|
+
this.currentTimeTop = (Math.max(checkDate.getMinutes(), .01) / 60) * 100;
|
|
65
|
+
this._positionCurrentTime();
|
|
66
|
+
this.showCurrentTime = true;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
private _checkWorkingDayStart(): void {
|
|
72
|
+
this.id = (this._date.getHours() === 8 && this._date.getMinutes() === 30) ? "dayStart" : "";
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
private _positionCurrentTime(): void {
|
|
76
|
+
if (this.currentTimeElement) {
|
|
77
|
+
this._renderer.setStyle(this.currentTimeElement.nativeElement, "top", this.currentTimeTop + "%");
|
|
78
|
+
this.currentTimeElement.nativeElement.scrollIntoView();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|