@colijnit/sharedcomponents 1.0.24 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.browserslistrc +16 -0
- package/.editorconfig +16 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/tasks.json +42 -0
- package/README.md +11 -8
- package/Sharedcomponents.iml +11 -0
- package/angular.json +133 -0
- package/karma.conf.js +44 -0
- package/move-assets.js +14 -0
- package/package.json +74 -26
- package/projects/sharedcomponents/.browserslistrc +16 -0
- package/projects/sharedcomponents/README.md +24 -0
- package/projects/sharedcomponents/karma.conf.js +44 -0
- package/projects/sharedcomponents/ng-package.json +17 -0
- package/projects/sharedcomponents/package.json +18 -0
- package/projects/sharedcomponents/src/lib/assets/dictionary/text.properties.ts +8 -0
- package/projects/sharedcomponents/src/lib/assets/icons/angle_left_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/angle_right_solid.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/arrow_fat_right.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/arrow_point_left.svg +8 -0
- package/projects/sharedcomponents/src/lib/assets/icons/arrow_point_right.svg +4 -0
- package/projects/sharedcomponents/src/lib/assets/icons/bring_forward_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/check_round.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/delete_left_regular.svg +1 -0
- package/projects/sharedcomponents/src/lib/assets/icons/delivery_truck.svg +12 -0
- package/projects/sharedcomponents/src/lib/assets/icons/email.svg +5 -0
- package/projects/sharedcomponents/src/lib/assets/icons/pdf.svg +15 -0
- package/projects/sharedcomponents/src/lib/assets/icons/print.svg +10 -0
- package/projects/sharedcomponents/src/lib/assets/icons/signature_field.svg +9 -0
- package/projects/sharedcomponents/src/lib/assets/icons/xml.svg +9 -0
- package/projects/sharedcomponents/src/lib/components/circular-gauge/co-circular-gauge.component.ts +139 -0
- package/projects/sharedcomponents/src/lib/components/circular-gauge/co-circular-gauge.module.ts +19 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/circular-gauge/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/circular-gauge/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/circular-gauge/style/_theme.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/circular-gauge/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-base-view.component.ts +68 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-day-view.component.ts +31 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-event.component.ts +67 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-events.component.ts +48 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.ts +81 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-header.component.ts +265 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-cell.component.ts +38 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.ts +50 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-view.component.ts +46 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-month-view.component.ts +65 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-view.component.ts +38 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-week-select-view.component.ts +63 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-week-view.component.ts +46 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/style/_layout.scss +443 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/style/_material-definition.scss +11 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/style/_theme.scss +7 -0
- package/{lib/components/layout-switcher → projects/sharedcomponents/src/lib/components/date-planning/component/agenda}/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-all-months.component.ts +37 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-all-years.component.ts +52 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-header.component.ts +124 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-view.component.ts +201 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar.component.ts +35 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/style/_layout.scss +167 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/style/_material-definition.scss +7 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/style/_theme.scss +7 -0
- package/{lib/components/linear-gauge → projects/sharedcomponents/src/lib/components/date-planning/component/calendar}/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/date-planning.component.ts +133 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/date-planning.module.ts +56 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/style/_layout.scss +47 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/style/_material-definition.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/style/_theme.scss +7 -0
- package/projects/sharedcomponents/src/lib/components/date-planning/style/material.scss +5 -0
- package/projects/sharedcomponents/src/lib/components/docsign/component/signature/signature.component.ts +82 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_theme.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/docsign/component/signatures/signatures.component.ts +50 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_theme.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/docsign/docsign.component.ts +252 -0
- package/projects/sharedcomponents/src/lib/components/docsign/docsign.module.ts +22 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_theme.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/key-pad/key-pad.component.ts +205 -0
- package/projects/sharedcomponents/src/lib/components/key-pad/key-pad.module.ts +19 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/key-pad/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/key-pad/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/key-pad/style/_theme.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/key-pad/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/layout-switcher/layout-switcher.component.ts +98 -0
- package/projects/sharedcomponents/src/lib/components/layout-switcher/layout-switcher.module.ts +21 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/_theme.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/layout-switcher/style/material.scss +5 -0
- package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.component.ts +56 -0
- package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.module.ts +17 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/linear-gauge/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/linear-gauge/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/linear-gauge/style/_theme.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/linear-gauge/style/material.scss +5 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/enums/send-option.ts +6 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.component.ts +342 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.module.ts +33 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/_theme.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/statusbar/statusbar.component.ts +97 -0
- package/projects/sharedcomponents/src/lib/components/statusbar/statusbar.module.ts +21 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/statusbar/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/statusbar/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/statusbar/style/_theme.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/statusbar/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-in-order/stock-in-order.component.ts +0 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-information/stock-information.component.ts +64 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-information-grid/stock-information-grid.component.ts +384 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-location/stock-location.component.ts +84 -0
- package/{lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.d.ts → projects/sharedcomponents/src/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.ts} +2 -2
- package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-change-amount.component.ts +73 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-transfer.component.ts +153 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock.component.ts +165 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock.module.ts +51 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/_theme.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/enum/calendar-view.enum.ts +6 -0
- package/{lib/enum/icon.enum.d.ts → projects/sharedcomponents/src/lib/enum/icon.enum.ts} +5 -2
- package/projects/sharedcomponents/src/lib/enum/keyboard-code.enum.ts +30 -0
- package/projects/sharedcomponents/src/lib/enum/language-code.enum.ts +6 -0
- package/projects/sharedcomponents/src/lib/enum/month.enum.ts +15 -0
- package/projects/sharedcomponents/src/lib/enum/time-period.enum.ts +9 -0
- package/projects/sharedcomponents/src/lib/factory/business-object-factory.ts +120 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/boolean.decorator.ts +113 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/complex-array.decorator.ts +61 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/complex-field.decorator.ts +63 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/date-field.decorator.ts +41 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/string-number.decorator.ts +48 -0
- package/projects/sharedcomponents/src/lib/model/agenda-event-per-day.model.ts +6 -0
- package/projects/sharedcomponents/src/lib/model/agenda-event.model.ts +17 -0
- package/projects/sharedcomponents/src/lib/model/agenda-null-objects.ts +11 -0
- package/projects/sharedcomponents/src/lib/model/business-object.ts +85 -0
- package/projects/sharedcomponents/src/lib/model/constant/all-months.ts +17 -0
- package/projects/sharedcomponents/src/lib/model/date-range.ts +10 -0
- package/projects/sharedcomponents/src/lib/model/day.model.ts +9 -0
- package/projects/sharedcomponents/src/lib/model/icon-svg.ts +18 -0
- package/projects/sharedcomponents/src/lib/model/month.model.ts +11 -0
- package/projects/sharedcomponents/src/lib/model/time-window.bo.ts +21 -0
- package/projects/sharedcomponents/src/lib/model/week.model.ts +5 -0
- package/projects/sharedcomponents/src/lib/model/weekday.model.ts +17 -0
- package/projects/sharedcomponents/src/lib/pipe/array-number.pipe.ts +14 -0
- package/projects/sharedcomponents/src/lib/pipe/master-pipes.ts +7 -0
- package/projects/sharedcomponents/src/lib/pipe/ucfirst.pipe.ts +14 -0
- package/projects/sharedcomponents/src/lib/service/dictionary.service.ts +86 -0
- package/projects/sharedcomponents/src/lib/service/icon-cache.service.ts +51 -0
- package/projects/sharedcomponents/src/lib/service/options.service.ts +66 -0
- package/projects/sharedcomponents/src/lib/service/shared-connector.service.ts +258 -0
- package/projects/sharedcomponents/src/lib/service/shared-initializer.service.ts +29 -0
- package/projects/sharedcomponents/src/lib/service/shared.service.ts +21 -0
- package/projects/sharedcomponents/src/lib/service/stock.service.ts +95 -0
- package/{lib → projects/sharedcomponents/src/lib}/style/_mixin.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/style/_variables.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/style/sharedcomponents-globals.scss +0 -0
- package/projects/sharedcomponents/src/lib/utils/array-utils.ts +202 -0
- package/projects/sharedcomponents/src/lib/utils/calendar.utils.ts +75 -0
- package/projects/sharedcomponents/src/lib/utils/date-utils.ts +302 -0
- package/projects/sharedcomponents/src/lib/utils/function/not-nill.function.ts +4 -0
- package/projects/sharedcomponents/src/lib/utils/is-nill.function.ts +4 -0
- package/projects/sharedcomponents/src/lib/utils/string-utils.ts +67 -0
- package/{public-api.d.ts → projects/sharedcomponents/src/public-api.ts} +5 -0
- package/projects/sharedcomponents/src/test.ts +27 -0
- package/projects/sharedcomponents/tsconfig.lib.json +18 -0
- package/projects/sharedcomponents/tsconfig.lib.prod.json +10 -0
- package/projects/sharedcomponents/tsconfig.spec.json +17 -0
- package/script/merge-icons.js +39 -0
- package/src/app/app.component.scss +9 -0
- package/src/app/app.component.spec.ts +31 -0
- package/src/app/app.component.ts +156 -0
- package/src/app/app.module.ts +60 -0
- package/src/assets/.gitkeep +0 -0
- package/src/environments/environment.prod.ts +3 -0
- package/src/environments/environment.ts +16 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +13 -0
- package/src/main.ts +12 -0
- package/src/polyfills.ts +53 -0
- package/src/styles.scss +40 -0
- package/src/test.ts +26 -0
- package/tsconfig.app.json +15 -0
- package/tsconfig.json +65 -0
- package/tsconfig.spec.json +18 -0
- package/bundles/colijnit-sharedcomponents.umd.js +0 -3701
- package/bundles/colijnit-sharedcomponents.umd.js.map +0 -1
- package/colijnit-sharedcomponents.d.ts +0 -16
- package/colijnit-sharedcomponents.metadata.json +0 -1
- package/esm2015/colijnit-sharedcomponents.js +0 -17
- package/esm2015/lib/assets/dictionary/text.properties.js +0 -11
- package/esm2015/lib/components/circular-gauge/co-circular-gauge.component.js +0 -125
- package/esm2015/lib/components/circular-gauge/co-circular-gauge.module.js +0 -21
- package/esm2015/lib/components/docsign/component/signature/signature.component.js +0 -75
- package/esm2015/lib/components/docsign/component/signatures/signatures.component.js +0 -44
- package/esm2015/lib/components/docsign/docsign.component.js +0 -225
- package/esm2015/lib/components/docsign/docsign.module.js +0 -23
- package/esm2015/lib/components/key-pad/key-pad.component.js +0 -191
- package/esm2015/lib/components/key-pad/key-pad.module.js +0 -21
- package/esm2015/lib/components/layout-switcher/layout-switcher.component.js +0 -74
- package/esm2015/lib/components/layout-switcher/layout-switcher.module.js +0 -21
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.component.js +0 -55
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.module.js +0 -19
- package/esm2015/lib/components/send-method-dialog/enums/send-option.js +0 -8
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +0 -309
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.module.js +0 -31
- package/esm2015/lib/components/statusbar/statusbar.component.js +0 -81
- package/esm2015/lib/components/statusbar/statusbar.module.js +0 -23
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +0 -54
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +0 -350
- package/esm2015/lib/components/stock/stock-location/stock-location.component.js +0 -62
- package/esm2015/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.js +0 -2
- package/esm2015/lib/components/stock/stock-transfer/stock-change-amount.component.js +0 -68
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +0 -130
- package/esm2015/lib/components/stock/stock.component.js +0 -140
- package/esm2015/lib/components/stock/stock.module.js +0 -48
- package/esm2015/lib/enum/icon.enum.js +0 -17
- package/esm2015/lib/enum/keyboard-code.enum.js +0 -32
- package/esm2015/lib/enum/language-code.enum.js +0 -8
- package/esm2015/lib/factory/business-object-factory.js +0 -120
- package/esm2015/lib/factory/decorators/boolean.decorator.js +0 -102
- package/esm2015/lib/factory/decorators/complex-array.decorator.js +0 -55
- package/esm2015/lib/factory/decorators/complex-field.decorator.js +0 -57
- package/esm2015/lib/factory/decorators/date-field.decorator.js +0 -36
- package/esm2015/lib/factory/decorators/string-number.decorator.js +0 -43
- package/esm2015/lib/model/business-object.js +0 -81
- package/esm2015/lib/model/icon-svg.js +0 -16
- package/esm2015/lib/service/dictionary.service.js +0 -76
- package/esm2015/lib/service/icon-cache.service.js +0 -51
- package/esm2015/lib/service/options.service.js +0 -71
- package/esm2015/lib/service/shared-connector.service.js +0 -278
- package/esm2015/lib/service/shared.service.js +0 -30
- package/esm2015/lib/service/stock.service.js +0 -95
- package/esm2015/lib/utils/array-utils.js +0 -183
- package/esm2015/lib/utils/is-nill.function.js +0 -5
- package/esm2015/lib/utils/string-utils.js +0 -64
- package/esm2015/public-api.js +0 -21
- package/fesm2015/colijnit-sharedcomponents.js +0 -3511
- package/fesm2015/colijnit-sharedcomponents.js.map +0 -1
- package/lib/assets/dictionary/text.properties.d.ts +0 -3
- package/lib/components/circular-gauge/co-circular-gauge.component.d.ts +0 -20
- package/lib/components/circular-gauge/co-circular-gauge.module.d.ts +0 -2
- package/lib/components/docsign/component/signature/signature.component.d.ts +0 -16
- package/lib/components/docsign/component/signatures/signatures.component.d.ts +0 -12
- package/lib/components/docsign/docsign.component.d.ts +0 -92
- package/lib/components/docsign/docsign.module.d.ts +0 -2
- package/lib/components/key-pad/key-pad.component.d.ts +0 -36
- package/lib/components/key-pad/key-pad.module.d.ts +0 -2
- package/lib/components/layout-switcher/layout-switcher.component.d.ts +0 -16
- package/lib/components/layout-switcher/layout-switcher.module.d.ts +0 -2
- package/lib/components/linear-gauge/co-linear-gauge.component.d.ts +0 -16
- package/lib/components/linear-gauge/co-linear-gauge.module.d.ts +0 -2
- package/lib/components/send-method-dialog/enums/send-option.d.ts +0 -6
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +0 -62
- package/lib/components/send-method-dialog/send-method-dialog.module.d.ts +0 -2
- package/lib/components/statusbar/statusbar.component.d.ts +0 -23
- package/lib/components/statusbar/statusbar.module.d.ts +0 -2
- package/lib/components/stock/stock-information/stock-information.component.d.ts +0 -10
- package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +0 -60
- package/lib/components/stock/stock-location/stock-location.component.d.ts +0 -15
- package/lib/components/stock/stock-transfer/stock-change-amount.component.d.ts +0 -18
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +0 -36
- package/lib/components/stock/stock.component.d.ts +0 -42
- package/lib/components/stock/stock.module.d.ts +0 -2
- package/lib/enum/keyboard-code.enum.d.ts +0 -30
- package/lib/enum/language-code.enum.d.ts +0 -6
- package/lib/factory/business-object-factory.d.ts +0 -23
- package/lib/factory/decorators/boolean.decorator.d.ts +0 -43
- package/lib/factory/decorators/complex-array.decorator.d.ts +0 -25
- package/lib/factory/decorators/complex-field.decorator.d.ts +0 -25
- package/lib/factory/decorators/date-field.decorator.d.ts +0 -17
- package/lib/factory/decorators/string-number.decorator.d.ts +0 -22
- package/lib/model/business-object.d.ts +0 -7
- package/lib/model/icon-svg.d.ts +0 -4
- package/lib/service/dictionary.service.d.ts +0 -21
- package/lib/service/icon-cache.service.d.ts +0 -18
- package/lib/service/options.service.d.ts +0 -13
- package/lib/service/shared-connector.service.d.ts +0 -43
- package/lib/service/shared.service.d.ts +0 -8
- package/lib/service/stock.service.d.ts +0 -38
- package/lib/utils/array-utils.d.ts +0 -57
- package/lib/utils/is-nill.function.d.ts +0 -1
- package/lib/utils/string-utils.d.ts +0 -22
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
@import "../../../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
@include export-module('sc-agenda') {
|
|
4
|
+
.sc-agenda {
|
|
5
|
+
width: 100%;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
height: 100%;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
|
|
11
|
+
.no-user-select {
|
|
12
|
+
user-select: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.agenda-header-wrapper {
|
|
16
|
+
display: flex;
|
|
17
|
+
width: inherit;
|
|
18
|
+
height: $agenda-week-view-header-height;
|
|
19
|
+
background: white;
|
|
20
|
+
z-index: 9001;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.week-day {
|
|
24
|
+
display: flex;
|
|
25
|
+
position: relative;
|
|
26
|
+
flex-basis: 100%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.content-wrapper {
|
|
30
|
+
display: flex;
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 100%;
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.hour-label-placeholder {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-basis: $agenda-hour-view-labels-width;
|
|
39
|
+
flex-shrink: 0;
|
|
40
|
+
border: 1px solid $color_border;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.week-day-label {
|
|
46
|
+
background: #f1f1f1;
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
position: relative;
|
|
49
|
+
flex-basis: 100%;
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
border: 1px solid $color_border;
|
|
55
|
+
|
|
56
|
+
&.selectable {
|
|
57
|
+
pointer-events: all;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.selected {
|
|
61
|
+
background: white;
|
|
62
|
+
|
|
63
|
+
.weekday-description, .weekday-value {
|
|
64
|
+
color: $color-active-light;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.selectable:not(.selected) {
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
color: $color-label;
|
|
71
|
+
|
|
72
|
+
&:not(:hover) {
|
|
73
|
+
background: none;
|
|
74
|
+
|
|
75
|
+
.weekday-description, .weekday-value, .day-description {
|
|
76
|
+
color: $color-dark;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.add-unit-icon, .sub-unit-icon {
|
|
82
|
+
pointer-events: all;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:hover {
|
|
86
|
+
background: $color_border;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.weekday-description {
|
|
91
|
+
color: $color-inactive-day;
|
|
92
|
+
font-size: 14px;
|
|
93
|
+
text-transform: uppercase;
|
|
94
|
+
margin-top: 7px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.weekday-value {
|
|
98
|
+
color: $color-inactive-day;
|
|
99
|
+
font-size: $agenda-week-label-value-font-size;
|
|
100
|
+
font-weight: bold;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.sub-unit-icon {
|
|
104
|
+
position: absolute;
|
|
105
|
+
left: 7px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.add-unit-icon {
|
|
109
|
+
position: absolute;
|
|
110
|
+
right: 7px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.day-description {
|
|
114
|
+
color: $color-inactive-day;
|
|
115
|
+
font-size: $agenda-week-label-value-font-size;
|
|
116
|
+
font-weight: bold;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.month-description {
|
|
120
|
+
top: 1px;
|
|
121
|
+
left: 3px;
|
|
122
|
+
font-size: 11px;
|
|
123
|
+
text-transform: capitalize;
|
|
124
|
+
position: absolute;
|
|
125
|
+
width: 100px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.view-wrapper {
|
|
129
|
+
display: flex;
|
|
130
|
+
width: 100%;
|
|
131
|
+
margin-top: -1px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.week-select-view {
|
|
135
|
+
display: flex;
|
|
136
|
+
position: relative;
|
|
137
|
+
padding: 50px;
|
|
138
|
+
height: 100%;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.week-day {
|
|
142
|
+
display: flex;
|
|
143
|
+
position: relative;
|
|
144
|
+
flex-basis: 100%;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@media screen and (max-width: $xs-width) {
|
|
148
|
+
.popup-card-content {
|
|
149
|
+
padding: 0 0 15px !important;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
@media screen and (min-width: $sm-width) {
|
|
153
|
+
.select-agenda-button {
|
|
154
|
+
left: 50px;
|
|
155
|
+
float: left;
|
|
156
|
+
position: absolute;
|
|
157
|
+
bottom: 0;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
agenda {
|
|
162
|
+
position: relative;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.agenda-content-wrapper {
|
|
166
|
+
min-width: 0 !important;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
agenda-header {
|
|
170
|
+
width: 100% !important;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.agenda-header-wrapper {
|
|
174
|
+
padding: 0 50px;
|
|
175
|
+
height: auto;
|
|
176
|
+
|
|
177
|
+
.week-day-label {
|
|
178
|
+
|
|
179
|
+
.sub-unit-icon {
|
|
180
|
+
height: 100%;
|
|
181
|
+
width: 50px;
|
|
182
|
+
left: -50px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.add-unit-icon {
|
|
186
|
+
height: 100%;
|
|
187
|
+
width: 50px;
|
|
188
|
+
right: -50px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@media screen and (max-width: $xs-width) {
|
|
192
|
+
.sub-unit-icon {
|
|
193
|
+
width: 25px;
|
|
194
|
+
left: -25px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.add-unit-icon {
|
|
198
|
+
width: 25px;
|
|
199
|
+
right: -25px;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.weekday-description {
|
|
204
|
+
font-size: 14px;
|
|
205
|
+
line-height: 20px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.weekday-value {
|
|
209
|
+
line-height: 30px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
@media screen and (min-width: $sm-width) {
|
|
213
|
+
.weekday-value {
|
|
214
|
+
font-size: 18px;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
@media screen and (max-width: $xs-width) {
|
|
218
|
+
.weekday-value {
|
|
219
|
+
line-height: 20px;
|
|
220
|
+
font-size: 9px;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@media screen and (max-width: $xs-width) {
|
|
227
|
+
.agenda-header-wrapper {
|
|
228
|
+
padding: 0 25px;
|
|
229
|
+
height: 60px !important;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.view-wrapper {
|
|
234
|
+
display: flex;
|
|
235
|
+
flex-direction: column;
|
|
236
|
+
width: 100%;
|
|
237
|
+
|
|
238
|
+
.week-day {
|
|
239
|
+
display: flex;
|
|
240
|
+
width: 100%;
|
|
241
|
+
height: 100%;
|
|
242
|
+
|
|
243
|
+
.week-select-container {
|
|
244
|
+
display: flex;
|
|
245
|
+
width: 100%;
|
|
246
|
+
|
|
247
|
+
.week-select-left {
|
|
248
|
+
width: 40%;
|
|
249
|
+
|
|
250
|
+
.no-events-banner {
|
|
251
|
+
display: flex;
|
|
252
|
+
width: 100%;
|
|
253
|
+
padding: 15px;
|
|
254
|
+
border-radius: 4px;
|
|
255
|
+
justify-content: space-evenly;
|
|
256
|
+
border: 1px solid #f7f5f4;
|
|
257
|
+
box-shadow: 0 0 15px 0 rgba(72, 79, 96, .30);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.week-select-list {
|
|
261
|
+
height: 100%;
|
|
262
|
+
padding: 10px;
|
|
263
|
+
margin: -10px 0 0 -10px;
|
|
264
|
+
|
|
265
|
+
agenda-events {
|
|
266
|
+
position: static;
|
|
267
|
+
flex-direction: column;
|
|
268
|
+
height: auto;
|
|
269
|
+
|
|
270
|
+
agenda-select-event {
|
|
271
|
+
position: static;
|
|
272
|
+
width: 100%;
|
|
273
|
+
display: flex;
|
|
274
|
+
margin: 0 0 20px;
|
|
275
|
+
height: auto;
|
|
276
|
+
|
|
277
|
+
&:last-child {
|
|
278
|
+
margin: 0;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
&:hover .week-select-item {
|
|
282
|
+
background: $color_border;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.week-select-item {
|
|
286
|
+
display: flex;
|
|
287
|
+
width: 100%;
|
|
288
|
+
padding: 30px 25px 30px 100px;
|
|
289
|
+
border-radius: 4px;
|
|
290
|
+
justify-content: space-evenly;
|
|
291
|
+
border: 1px solid #f7f5f4;
|
|
292
|
+
list-style-type: none;
|
|
293
|
+
position: relative;
|
|
294
|
+
cursor: pointer;
|
|
295
|
+
box-shadow: 0 0 15px 0 rgba(72, 79, 96, .30);
|
|
296
|
+
|
|
297
|
+
&.selected {
|
|
298
|
+
background: $color-active-light;
|
|
299
|
+
border-color: $color-active-light;
|
|
300
|
+
color: #fff;
|
|
301
|
+
|
|
302
|
+
.select-icon {
|
|
303
|
+
path {
|
|
304
|
+
fill: #fff !important;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
polygon {
|
|
308
|
+
fill: #fff !important;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.select-icon {
|
|
314
|
+
height: 50px;
|
|
315
|
+
width: 100px;
|
|
316
|
+
position: absolute;
|
|
317
|
+
left: 0;
|
|
318
|
+
top: 50%;
|
|
319
|
+
margin: -25px 0 0;
|
|
320
|
+
opacity: 1;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
@media screen and (max-width: $xs-width) {
|
|
324
|
+
.select-icon {
|
|
325
|
+
height: 40px;
|
|
326
|
+
width: 80px;
|
|
327
|
+
margin: -20px 0 0;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.moment-name {
|
|
332
|
+
display: flex;
|
|
333
|
+
align-items: flex-start;
|
|
334
|
+
width: 100%;
|
|
335
|
+
flex-direction: column;
|
|
336
|
+
|
|
337
|
+
h2 {
|
|
338
|
+
margin: 5px 0 0;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
@media screen and (max-width: $xs-width) {
|
|
346
|
+
.week-select-item {
|
|
347
|
+
padding: 20px 25px 20px 80px;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
@media screen and (max-width: $md-width) {
|
|
358
|
+
.week-select-left {
|
|
359
|
+
width: 50%;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
@media screen and (max-width: $sm-width) {
|
|
363
|
+
.week-select-left {
|
|
364
|
+
width: 100%;
|
|
365
|
+
height: 100%;
|
|
366
|
+
display: flex;
|
|
367
|
+
flex-direction: column;
|
|
368
|
+
margin: 0 0 20px;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
@media screen and (max-width: $xs-width) {
|
|
372
|
+
.week-select-left {
|
|
373
|
+
h3 {
|
|
374
|
+
font-size: 14px;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.week-select-right {
|
|
380
|
+
width: 50%;
|
|
381
|
+
padding: 0 0 0 50px;
|
|
382
|
+
|
|
383
|
+
li {
|
|
384
|
+
display: flex;
|
|
385
|
+
align-items: center;
|
|
386
|
+
margin: 10px 0;
|
|
387
|
+
line-height: 190%;
|
|
388
|
+
list-style-type: none;
|
|
389
|
+
|
|
390
|
+
.moment-icon {
|
|
391
|
+
float: left;
|
|
392
|
+
margin: 0 0 0 -50px;
|
|
393
|
+
width: 30px;
|
|
394
|
+
height: 35px;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
@media screen and (max-width: $sm-width) {
|
|
400
|
+
.week-select-right {
|
|
401
|
+
display: flex;
|
|
402
|
+
flex-direction: column;
|
|
403
|
+
width: 100%;
|
|
404
|
+
padding: 0 0 40px;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
@media screen and (max-width: $xs-width) {
|
|
408
|
+
.week-select-right {
|
|
409
|
+
font-size: 13px;
|
|
410
|
+
|
|
411
|
+
h3 {
|
|
412
|
+
font-size: 14px;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
li {
|
|
416
|
+
margin: 10px 0;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
@media screen and (max-width: $sm-width) {
|
|
423
|
+
.week-select-container {
|
|
424
|
+
flex-direction: column-reverse;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
@media screen and (max-width: $sm-width) {
|
|
431
|
+
:host {
|
|
432
|
+
flex-direction: column;
|
|
433
|
+
padding: 50px 50px 0;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
@media screen and (max-width: $xs-width) {
|
|
438
|
+
:host {
|
|
439
|
+
padding: 25px 25px 0;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
$agenda-week-view-header-height: 100px;
|
|
2
|
+
$agenda-hour-view-labels-width: 80px;
|
|
3
|
+
$color-active-light: #74B77F;
|
|
4
|
+
$color-label: #5B6875;
|
|
5
|
+
$color-dark: #171721;
|
|
6
|
+
$color-inactive-day: rgba($color-dark, 0.2);
|
|
7
|
+
$agenda-week-label-value-font-size: 2vw;
|
|
8
|
+
$xs-width: 600px;
|
|
9
|
+
$sm-width: 960px;
|
|
10
|
+
$md-width: 1280px;
|
|
11
|
+
$lg-width: 1920px;
|
|
File without changes
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {Component, EventEmitter, Input, OnInit, Output, ViewEncapsulation} from "@angular/core";
|
|
2
|
+
import {ALL_MONTHS} from "../../../../model/constant/all-months";
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: "calendar-all-months",
|
|
6
|
+
template: `
|
|
7
|
+
<div *ngFor="let currentMonth of months; let index = index"
|
|
8
|
+
[class.selected-month]="month === index"
|
|
9
|
+
[textContent]="currentMonth"
|
|
10
|
+
class="pointer-hover"
|
|
11
|
+
(click)="month = index; monthChange.emit(month)"
|
|
12
|
+
></div>
|
|
13
|
+
`,
|
|
14
|
+
encapsulation: ViewEncapsulation.None
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
export class CalendarAllMonthsComponent implements OnInit {
|
|
18
|
+
|
|
19
|
+
@Input()
|
|
20
|
+
public month: number;
|
|
21
|
+
|
|
22
|
+
@Input()
|
|
23
|
+
public shortDescriptions: boolean = false;
|
|
24
|
+
|
|
25
|
+
@Output()
|
|
26
|
+
public monthChange: EventEmitter<number> = new EventEmitter<number>();
|
|
27
|
+
|
|
28
|
+
public months: string[] = [];
|
|
29
|
+
|
|
30
|
+
constructor() {
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
ngOnInit(): void {
|
|
34
|
+
this.months.length = 0;
|
|
35
|
+
this.months = ALL_MONTHS;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {Component, EventEmitter, Input, OnInit, Output, ViewEncapsulation} from "@angular/core";
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: "calendar-all-years",
|
|
5
|
+
template: `
|
|
6
|
+
<div *ngFor="let currentYear of years"
|
|
7
|
+
[textContent]="currentYear"
|
|
8
|
+
[class.selected-year]="currentYear === year"
|
|
9
|
+
class="pointer-hover"
|
|
10
|
+
(click)="year = currentYear; yearChange.emit(year)"
|
|
11
|
+
></div>
|
|
12
|
+
`,
|
|
13
|
+
encapsulation: ViewEncapsulation.None
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
export class CalendarAllYearsComponent implements OnInit {
|
|
17
|
+
|
|
18
|
+
@Input()
|
|
19
|
+
public year: number;
|
|
20
|
+
|
|
21
|
+
@Output()
|
|
22
|
+
public readonly yearChange: EventEmitter<number> = new EventEmitter<number>();
|
|
23
|
+
|
|
24
|
+
public years: number[] = [];
|
|
25
|
+
|
|
26
|
+
constructor() {
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
ngOnInit(): void {
|
|
30
|
+
this.years.length = 0;
|
|
31
|
+
let start: number = this._determineStart();
|
|
32
|
+
const end: number = start + 11;
|
|
33
|
+
while (start < end) {
|
|
34
|
+
this.years.push(start);
|
|
35
|
+
start++;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
private _determineStart(): number {
|
|
40
|
+
if (this.year > 0) {
|
|
41
|
+
let thisYear: number = this.year;
|
|
42
|
+
let thisYearLastDigit: number = parseInt(thisYear.toString().split("").pop());
|
|
43
|
+
while (thisYearLastDigit > 0) {
|
|
44
|
+
thisYear--;
|
|
45
|
+
thisYearLastDigit = parseInt(thisYear.toString().split("").pop());
|
|
46
|
+
}
|
|
47
|
+
return thisYear;
|
|
48
|
+
}
|
|
49
|
+
return 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import {Component, DoCheck, EventEmitter, Input, Output, ViewEncapsulation} from "@angular/core";
|
|
2
|
+
import {animate, state, style, transition, trigger} from "@angular/animations";
|
|
3
|
+
import {ALL_MONTHS} from "../../../../model/constant/all-months";
|
|
4
|
+
import {Icon} from "../../../../enum/icon.enum";
|
|
5
|
+
import {IconCacheService} from "../../../../service/icon-cache.service";
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: "calendar-header",
|
|
9
|
+
template: `
|
|
10
|
+
<div #monthYearSelect class="calendar-header-row">
|
|
11
|
+
<co-icon class="pointer-hover" [iconData]="iconCacheService.getIcon(icons.ArrowPointLeft)" (click)="subMonth()"></co-icon>
|
|
12
|
+
<div (click)="showMonthYearSelect = true">
|
|
13
|
+
<div class="month" [textContent]="currentMonth"></div>
|
|
14
|
+
<div class="year" [textContent]="currentYear"></div>
|
|
15
|
+
</div>
|
|
16
|
+
<co-icon class="pointer-hover" [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" (click)="addMonth()"></co-icon>
|
|
17
|
+
</div>
|
|
18
|
+
<ng-template #template [absoluteOverlayTemplate]="template">
|
|
19
|
+
<div *ngIf="showMonthYearSelect"
|
|
20
|
+
(clickOutside)="hideMonthYearSelection()" [alignWith]="monthYearSelect"
|
|
21
|
+
class="select-month-year-window" [class.expanded]="expanded" @showMonthYearSelect
|
|
22
|
+
[alignTopOffsetPx]="20"
|
|
23
|
+
>
|
|
24
|
+
<div>
|
|
25
|
+
<calendar-all-months [month]="currentMonth" (monthChange)="setNewMonth($event)" shortDescriptions></calendar-all-months>
|
|
26
|
+
<div class="vertical-divider"></div>
|
|
27
|
+
<calendar-all-years [year]="currentYear" (yearChange)="setNewYear($event)"></calendar-all-years>
|
|
28
|
+
</div>
|
|
29
|
+
<default-ok-cancel-buttons
|
|
30
|
+
(okClick)="changeMonthYear()"
|
|
31
|
+
(cancelClick)="showMonthYearSelect = false"
|
|
32
|
+
>
|
|
33
|
+
</default-ok-cancel-buttons>
|
|
34
|
+
</div>
|
|
35
|
+
</ng-template>
|
|
36
|
+
`,
|
|
37
|
+
encapsulation: ViewEncapsulation.None,
|
|
38
|
+
animations: [
|
|
39
|
+
trigger("showMonthYearSelect", [
|
|
40
|
+
state("void", style({
|
|
41
|
+
"transform-origin": "top center",
|
|
42
|
+
transform: "scaleY(0)"
|
|
43
|
+
})),
|
|
44
|
+
state("*", style({
|
|
45
|
+
"transform-origin": "top center",
|
|
46
|
+
transform: "scaleY(1)"
|
|
47
|
+
})),
|
|
48
|
+
transition(":enter, :leave", [
|
|
49
|
+
animate("200ms ease-in-out")
|
|
50
|
+
])
|
|
51
|
+
])
|
|
52
|
+
]
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
export class CalendarHeaderComponent implements DoCheck {
|
|
56
|
+
|
|
57
|
+
@Input()
|
|
58
|
+
public selectedDate: Date = new Date();
|
|
59
|
+
|
|
60
|
+
@Output()
|
|
61
|
+
public readonly selectedDateChange: EventEmitter<Date> = new EventEmitter<Date>();
|
|
62
|
+
|
|
63
|
+
public readonly icons: typeof Icon = Icon;
|
|
64
|
+
|
|
65
|
+
public showMonthYearSelect: boolean = false;
|
|
66
|
+
|
|
67
|
+
public expanded: boolean = false;
|
|
68
|
+
|
|
69
|
+
public currentMonth: string;
|
|
70
|
+
|
|
71
|
+
public currentYear: number;
|
|
72
|
+
|
|
73
|
+
public selectedMonth: number;
|
|
74
|
+
|
|
75
|
+
public selectedYear: number;
|
|
76
|
+
|
|
77
|
+
constructor(
|
|
78
|
+
public iconCacheService: IconCacheService
|
|
79
|
+
) {
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
ngDoCheck(): void {
|
|
83
|
+
if (this.selectedDate) {
|
|
84
|
+
this.currentMonth = ALL_MONTHS[this.selectedDate.getMonth()];
|
|
85
|
+
this.currentYear = this.selectedDate.getFullYear();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
public subMonth(): void {
|
|
90
|
+
const newDate: Date = new Date(this.selectedDate);
|
|
91
|
+
newDate.setMonth(newDate.getMonth() - 1);
|
|
92
|
+
this.selectedDate = newDate;
|
|
93
|
+
this.selectedDateChange.emit(this.selectedDate);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
public addMonth(): void {
|
|
97
|
+
const newDate: Date = new Date(this.selectedDate);
|
|
98
|
+
newDate.setMonth(newDate.getMonth() + 1);
|
|
99
|
+
this.selectedDate = newDate;
|
|
100
|
+
this.selectedDateChange.emit(this.selectedDate);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
public hideMonthYearSelection(): void {
|
|
104
|
+
this.expanded = false;
|
|
105
|
+
this.showMonthYearSelect = false;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
public setNewMonth(month: number): void {
|
|
109
|
+
this.selectedMonth = month;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
public setNewYear(year: number): void {
|
|
113
|
+
this.selectedYear = year;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
public changeMonthYear(): void {
|
|
117
|
+
this.hideMonthYearSelection();
|
|
118
|
+
const newDate: Date = new Date(this.selectedDate);
|
|
119
|
+
newDate.setMonth(this.selectedMonth);
|
|
120
|
+
newDate.setFullYear(this.selectedYear);
|
|
121
|
+
this.selectedDate = newDate;
|
|
122
|
+
this.selectedDateChange.emit(this.selectedDate);
|
|
123
|
+
}
|
|
124
|
+
}
|