@colijnit/sharedcomponents 1.0.64 → 1.0.65
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 +24 -24
- package/bundles/colijnit-sharedcomponents.umd.js +10078 -9926
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +92 -91
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +93 -92
- package/esm2015/lib/assets/dictionary/text.properties.js +11 -11
- package/esm2015/lib/businessobject/build-images-and-documentation-result.js +2 -2
- package/esm2015/lib/businessobject/co-document-right.bo.js +3 -3
- package/esm2015/lib/businessobject/drag-drop-container-element.js +2 -2
- package/esm2015/lib/businessobject/drag-drop-container.js +7 -7
- package/esm2015/lib/components/activity-list/activity-list.component.js +130 -130
- package/esm2015/lib/components/activity-list/activity-list.module.js +24 -24
- package/esm2015/lib/components/app-file-dropzone/app-file-dropzone.component.js +47 -47
- package/esm2015/lib/components/app-file-dropzone/app-file-dropzone.module.js +20 -20
- package/esm2015/lib/components/date-planning/component/agenda/agenda-base-view.component.js +61 -61
- package/esm2015/lib/components/date-planning/component/agenda/agenda-day-view.component.js +36 -36
- package/esm2015/lib/components/date-planning/component/agenda/agenda-event.component.js +56 -56
- package/esm2015/lib/components/date-planning/component/agenda/agenda-events.component.js +47 -47
- package/esm2015/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.js +68 -68
- package/esm2015/lib/components/date-planning/component/agenda/agenda-header.component.js +243 -243
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-cell.component.js +36 -36
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.js +50 -50
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-view.component.js +46 -46
- package/esm2015/lib/components/date-planning/component/agenda/agenda-month-view.component.js +61 -61
- package/esm2015/lib/components/date-planning/component/agenda/agenda-select-event.component.js +39 -39
- package/esm2015/lib/components/date-planning/component/agenda/agenda-view.component.js +35 -35
- package/esm2015/lib/components/date-planning/component/agenda/agenda-week-select-view.component.js +64 -64
- package/esm2015/lib/components/date-planning/component/agenda/agenda-week-view.component.js +48 -48
- package/esm2015/lib/components/date-planning/component/agenda/view-select.component.js +42 -42
- package/esm2015/lib/components/date-planning/component/calendar/calendar-all-months.component.js +34 -34
- package/esm2015/lib/components/date-planning/component/calendar/calendar-all-years.component.js +48 -48
- package/esm2015/lib/components/date-planning/component/calendar/calendar-header.component.js +107 -107
- package/esm2015/lib/components/date-planning/component/calendar/calendar-view.component.js +178 -178
- package/esm2015/lib/components/date-planning/component/calendar/calendar.component.js +34 -34
- package/esm2015/lib/components/date-planning/date-planning.component.js +113 -113
- package/esm2015/lib/components/date-planning/date-planning.module.js +63 -63
- package/esm2015/lib/components/docsign/component/signature/signature.component.js +75 -75
- package/esm2015/lib/components/docsign/component/signatures/signatures.component.js +44 -44
- package/esm2015/lib/components/docsign/docsign.component.js +242 -242
- package/esm2015/lib/components/docsign/docsign.module.js +23 -23
- package/esm2015/lib/components/file-upload/file-upload.component.js +189 -189
- package/esm2015/lib/components/file-upload/file-upload.module.js +25 -25
- package/esm2015/lib/components/file-upload-popup/file-upload-popup.component.js +397 -397
- package/esm2015/lib/components/file-upload-popup/file-upload-popup.module.js +30 -30
- package/esm2015/lib/components/files-upload/components/base-file-upload.component.js +469 -469
- package/esm2015/lib/components/files-upload/components/drag-drop-container.component.js +115 -115
- package/esm2015/lib/components/files-upload/files-upload.component.js +131 -131
- package/esm2015/lib/components/files-upload/files-upload.module.js +47 -47
- package/esm2015/lib/components/image-display/image-display.component.js +36 -36
- package/esm2015/lib/components/image-display/image-display.module.js +23 -23
- package/esm2015/lib/components/key-pad/key-pad.component.js +200 -200
- package/esm2015/lib/components/key-pad/key-pad.module.js +22 -22
- package/esm2015/lib/components/layout-switcher/layout-switcher.component.js +74 -74
- package/esm2015/lib/components/layout-switcher/layout-switcher.module.js +21 -21
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.component.js +59 -59
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.module.js +19 -19
- package/esm2015/lib/components/multi-property-toggler/multiple-property-toggler.component.js +89 -89
- package/esm2015/lib/components/multi-property-toggler/multiple-property-toggler.module.js +21 -21
- package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.js +79 -79
- package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.js +21 -21
- package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.js +85 -85
- package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.module.js +21 -21
- package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.js +64 -64
- package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.js +26 -26
- package/esm2015/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.js +40 -40
- package/esm2015/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.js +23 -23
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +61 -61
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.js +28 -28
- package/esm2015/lib/components/send-method-dialog/components/signature-button/signature-button.component.js +38 -38
- package/esm2015/lib/components/send-method-dialog/components/signature-button/signature-button.module.js +21 -21
- package/esm2015/lib/components/send-method-dialog/model/email-address-viewmodel.js +7 -7
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +258 -258
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.module.js +35 -35
- package/esm2015/lib/components/send-method-dialog/send-method-params.interface.js +2 -2
- package/esm2015/lib/components/send-method-dialog/service/send-method.service.js +59 -59
- package/esm2015/lib/components/simple-tags/simple-tags.component.js +229 -229
- package/esm2015/lib/components/simple-tags/simple-tags.module.js +26 -26
- package/esm2015/lib/components/statusbar/statusbar-popup.component.js +97 -97
- package/esm2015/lib/components/statusbar/statusbar.component.js +81 -81
- package/esm2015/lib/components/statusbar/statusbar.module.js +27 -27
- package/esm2015/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.js +47 -47
- package/esm2015/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.js +47 -47
- package/esm2015/lib/components/stock/components/order-stock-history/order-stock-history.component.js +47 -47
- package/esm2015/lib/components/stock/components/order-stock-tab/order-stock-tab.component.js +47 -47
- package/esm2015/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.js +47 -47
- package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +67 -67
- package/esm2015/lib/components/stock/components/stock-history/stock-history.component.js +53 -53
- package/esm2015/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.js +210 -0
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +248 -251
- package/esm2015/lib/components/stock/components/stock-prognose/stock-prognose.component.js +52 -52
- package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +39 -39
- package/esm2015/lib/components/stock/localization/translation.js +74 -72
- package/esm2015/lib/components/stock/stock-history-tabs/stock-history-tabs.component.js +33 -33
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +48 -48
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +457 -457
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +251 -243
- package/esm2015/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.js +2 -2
- package/esm2015/lib/components/stock/stock-transfer/stock-change-amount.component.js +72 -72
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +160 -160
- package/esm2015/lib/components/stock/stock.component.js +237 -237
- package/esm2015/lib/components/stock/stock.module.js +82 -80
- package/esm2015/lib/components/stock-statusbar/stock-statusbar.component.js +23 -23
- package/esm2015/lib/components/stock-statusbar/stock-statusbar.module.js +19 -19
- package/esm2015/lib/components/tab-bar/tab-bar.component.js +90 -90
- package/esm2015/lib/components/tab-bar/tab-bar.module.js +21 -21
- package/esm2015/lib/components/tab-bar/tab.interface.js +2 -2
- package/esm2015/lib/components/tile-renderer/tile-render.component.js +80 -80
- package/esm2015/lib/components/tile-renderer/tile-render.module.js +26 -26
- package/esm2015/lib/decorator/input-boolean.decorator.js +34 -34
- package/esm2015/lib/enum/calendar-view.enum.js +9 -9
- package/esm2015/lib/enum/document-email-report.enum.js +18 -18
- package/esm2015/lib/enum/domain-multiple-name.enum.js +13 -13
- package/esm2015/lib/enum/file-type.js +14 -14
- package/esm2015/lib/enum/files-upload-config-objects.js +3 -3
- package/esm2015/lib/enum/gauge-color.enum.js +10 -10
- package/esm2015/lib/enum/icon.enum.js +49 -48
- package/esm2015/lib/enum/internal-param.enum.js +38 -38
- package/esm2015/lib/enum/keyboard-code.enum.js +32 -32
- package/esm2015/lib/enum/language-code.enum.js +8 -8
- package/esm2015/lib/enum/month.enum.js +17 -17
- package/esm2015/lib/enum/read-write-access-config-names.enum.js +2 -2
- package/esm2015/lib/enum/table-name.enum.js +86 -86
- package/esm2015/lib/enum/tag-category.enum.js +22 -22
- package/esm2015/lib/enum/tags-component-config-names.js +2 -2
- package/esm2015/lib/enum/thumb-three-way-state.js +19 -19
- package/esm2015/lib/enum/tile-size-type.js +7 -7
- package/esm2015/lib/enum/time-period.enum.js +11 -11
- package/esm2015/lib/event/co-drag-event.js +2 -2
- package/esm2015/lib/event/co-drop-event.js +2 -2
- package/esm2015/lib/interface/key-value-pair.js +2 -2
- package/esm2015/lib/interface/operation-callback-simple-function.js +4 -4
- package/esm2015/lib/localization/localization.module.js +19 -19
- package/esm2015/lib/localization/localize.pipe.js +26 -26
- package/esm2015/lib/localization/localize.service.js +30 -30
- package/esm2015/lib/localization/translation.js +3 -3
- package/esm2015/lib/model/agenda-event-per-day.model.js +6 -6
- package/esm2015/lib/model/agenda-event.model.js +8 -8
- package/esm2015/lib/model/agenda-null-objects.js +11 -11
- package/esm2015/lib/model/constant/all-months.js +17 -17
- package/esm2015/lib/model/date-range.js +5 -5
- package/esm2015/lib/model/day.model.js +7 -7
- package/esm2015/lib/model/icon-svg.js +48 -47
- package/esm2015/lib/model/month.model.js +11 -11
- package/esm2015/lib/model/send-method.js +8 -8
- package/esm2015/lib/model/settings.js +4 -4
- package/esm2015/lib/model/tag-tree-item.bo.js +16 -16
- package/esm2015/lib/model/time-window.bo.js +26 -26
- package/esm2015/lib/model/tree-object.js +15 -15
- package/esm2015/lib/model/week.model.js +6 -6
- package/esm2015/lib/model/weekday.model.js +10 -10
- package/esm2015/lib/pipe/array-number.pipe.js +15 -15
- package/esm2015/lib/pipe/file-type-image.pipe.js +51 -51
- package/esm2015/lib/pipe/master-pipes.js +9 -9
- package/esm2015/lib/pipe/ucfirst.pipe.js +16 -16
- package/esm2015/lib/service/dictionary.service.js +76 -76
- package/esm2015/lib/service/drag-drop.service.js +365 -365
- package/esm2015/lib/service/icon-cache.service.js +51 -51
- package/esm2015/lib/service/options.service.js +48 -48
- package/esm2015/lib/service/shared-connector.service.js +433 -433
- package/esm2015/lib/service/shared.service.js +60 -60
- package/esm2015/lib/service/stock.service.js +110 -110
- package/esm2015/lib/utils/array-utils.js +202 -202
- package/esm2015/lib/utils/calendar.utils.js +68 -68
- package/esm2015/lib/utils/check-precision-and-scale-result.js +2 -2
- package/esm2015/lib/utils/check-within-stepped-bounds-result.js +2 -2
- package/esm2015/lib/utils/co-document-shared-field-logic.js +50 -50
- package/esm2015/lib/utils/date-utils.js +264 -264
- package/esm2015/lib/utils/enum-utils.js +128 -128
- package/esm2015/lib/utils/function/not-nill.function.js +5 -5
- package/esm2015/lib/utils/is-nill.function.js +5 -5
- package/esm2015/lib/utils/map-utils.js +41 -41
- package/esm2015/lib/utils/number-utils.js +390 -390
- package/esm2015/lib/utils/object-utils.js +278 -278
- package/esm2015/lib/utils/ref-code-utils.js +49 -49
- package/esm2015/lib/utils/string-utils.js +93 -93
- package/esm2015/public-api.js +31 -31
- package/fesm2015/colijnit-sharedcomponents.js +10622 -10408
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/assets/dictionary/text.properties.d.ts +3 -3
- package/lib/businessobject/build-images-and-documentation-result.d.ts +5 -5
- package/lib/businessobject/co-document-right.bo.d.ts +6 -6
- package/lib/businessobject/drag-drop-container-element.d.ts +6 -6
- package/lib/businessobject/drag-drop-container.d.ts +6 -6
- package/lib/components/access/read-write-access.scss +25 -25
- package/lib/components/access/style/_layout.scss +23 -23
- package/lib/components/access/style/_material-definition.scss +12 -12
- package/lib/components/access/style/_theme.scss +4 -4
- package/lib/components/access/style/material.scss +4 -4
- package/lib/components/activity-list/activity-list.component.d.ts +33 -33
- package/lib/components/activity-list/activity-list.module.d.ts +2 -2
- package/lib/components/activity-list/style/_layout.scss +68 -68
- package/lib/components/activity-list/style/_theme.scss +4 -4
- package/lib/components/activity-list/style/material.scss +4 -4
- package/lib/components/app-file-dropzone/app-file-dropzone.component.d.ts +14 -14
- package/lib/components/app-file-dropzone/app-file-dropzone.module.d.ts +2 -2
- package/lib/components/app-file-dropzone/style/_layout.scss +61 -61
- package/lib/components/app-file-dropzone/style/_theme.scss +4 -4
- package/lib/components/app-file-dropzone/style/material.scss +4 -4
- package/lib/components/date-planning/component/agenda/agenda-base-view.component.d.ts +21 -21
- package/lib/components/date-planning/component/agenda/agenda-day-view.component.d.ts +7 -7
- package/lib/components/date-planning/component/agenda/agenda-event.component.d.ts +18 -18
- package/lib/components/date-planning/component/agenda/agenda-events.component.d.ts +13 -13
- package/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.d.ts +18 -18
- package/lib/components/date-planning/component/agenda/agenda-header.component.d.ts +48 -48
- package/lib/components/date-planning/component/agenda/agenda-hour-cell.component.d.ts +9 -9
- package/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.d.ts +8 -8
- package/lib/components/date-planning/component/agenda/agenda-hour-view.component.d.ts +7 -7
- package/lib/components/date-planning/component/agenda/agenda-month-view.component.d.ts +10 -10
- package/lib/components/date-planning/component/agenda/agenda-select-event.component.d.ts +12 -12
- package/lib/components/date-planning/component/agenda/agenda-view.component.d.ts +12 -12
- package/lib/components/date-planning/component/agenda/agenda-week-select-view.component.d.ts +10 -10
- package/lib/components/date-planning/component/agenda/agenda-week-view.component.d.ts +9 -9
- package/lib/components/date-planning/component/agenda/style/_layout.scss +443 -443
- package/lib/components/date-planning/component/agenda/style/_material-definition.scss +12 -12
- package/lib/components/date-planning/component/agenda/style/_theme.scss +7 -7
- package/lib/components/date-planning/component/agenda/style/material.scss +5 -5
- package/lib/components/date-planning/component/agenda/view-select.component.d.ts +11 -11
- package/lib/components/date-planning/component/calendar/calendar-all-months.component.d.ts +9 -9
- package/lib/components/date-planning/component/calendar/calendar-all-years.component.d.ts +9 -9
- package/lib/components/date-planning/component/calendar/calendar-header.component.d.ts +23 -23
- package/lib/components/date-planning/component/calendar/calendar-view.component.d.ts +31 -31
- package/lib/components/date-planning/component/calendar/calendar.component.d.ts +10 -10
- package/lib/components/date-planning/component/calendar/style/_layout.scss +167 -167
- package/lib/components/date-planning/component/calendar/style/_material-definition.scss +7 -7
- package/lib/components/date-planning/component/calendar/style/_theme.scss +7 -7
- package/lib/components/date-planning/component/calendar/style/material.scss +5 -5
- package/lib/components/date-planning/date-planning.component.d.ts +28 -28
- package/lib/components/date-planning/date-planning.module.d.ts +2 -2
- package/lib/components/date-planning/style/_layout.scss +45 -45
- package/lib/components/date-planning/style/_theme.scss +5 -5
- package/lib/components/date-planning/style/material.scss +7 -7
- package/lib/components/docsign/component/signature/signature.component.d.ts +16 -16
- package/lib/components/docsign/component/signature/style/_layout.scss +40 -40
- package/lib/components/docsign/component/signature/style/_material-definition.scss +11 -11
- package/lib/components/docsign/component/signature/style/_theme.scss +13 -13
- package/lib/components/docsign/component/signature/style/material.scss +4 -4
- package/lib/components/docsign/component/signatures/signatures.component.d.ts +12 -12
- package/lib/components/docsign/component/signatures/style/_layout.scss +13 -13
- package/lib/components/docsign/component/signatures/style/_material-definition.scss +1 -1
- package/lib/components/docsign/component/signatures/style/_theme.scss +4 -4
- package/lib/components/docsign/component/signatures/style/material.scss +5 -5
- package/lib/components/docsign/docsign.component.d.ts +94 -94
- package/lib/components/docsign/docsign.module.d.ts +2 -2
- package/lib/components/docsign/style/_layout.scss +40 -40
- package/lib/components/docsign/style/_material-definition.scss +12 -12
- package/lib/components/docsign/style/_theme.scss +12 -12
- package/lib/components/docsign/style/material.scss +15 -15
- package/lib/components/file-upload/file-upload.component.d.ts +42 -42
- package/lib/components/file-upload/file-upload.module.d.ts +2 -2
- package/lib/components/file-upload/style/_layout.scss +59 -59
- package/lib/components/file-upload/style/_material-definition.scss +2 -2
- package/lib/components/file-upload/style/_theme.scss +4 -4
- package/lib/components/file-upload/style/material.scss +4 -4
- package/lib/components/file-upload-popup/file-upload-popup.component.d.ts +75 -75
- package/lib/components/file-upload-popup/file-upload-popup.module.d.ts +2 -2
- package/lib/components/file-upload-popup/style/_layout.scss +48 -48
- package/lib/components/file-upload-popup/style/_material-definition.scss +2 -2
- package/lib/components/file-upload-popup/style/_theme.scss +5 -5
- package/lib/components/file-upload-popup/style/material.scss +4 -4
- package/lib/components/files-upload/components/base-file-upload.component.d.ts +98 -98
- package/lib/components/files-upload/components/drag-drop-container.component.d.ts +34 -34
- package/lib/components/files-upload/files-upload.component.d.ts +32 -32
- package/lib/components/files-upload/files-upload.module.d.ts +2 -2
- package/lib/components/files-upload/style/_layout.scss +49 -49
- package/lib/components/files-upload/style/_theme.scss +5 -5
- package/lib/components/files-upload/style/material.scss +4 -4
- package/lib/components/image-display/image-display.component.d.ts +14 -14
- package/lib/components/image-display/image-display.module.d.ts +2 -2
- package/lib/components/image-display/style/_layout.scss +56 -56
- package/lib/components/image-display/style/_material-definition.scss +4 -4
- package/lib/components/image-display/style/_theme.scss +6 -6
- package/lib/components/image-display/style/material.scss +3 -3
- package/lib/components/key-pad/key-pad.component.d.ts +38 -38
- package/lib/components/key-pad/key-pad.module.d.ts +2 -2
- package/lib/components/key-pad/style/_layout.scss +160 -160
- package/lib/components/key-pad/style/_material-definition.scss +19 -19
- package/lib/components/key-pad/style/_theme.scss +35 -35
- package/lib/components/key-pad/style/material.scss +4 -4
- package/lib/components/layout-switcher/layout-switcher.component.d.ts +16 -16
- package/lib/components/layout-switcher/layout-switcher.module.d.ts +2 -2
- package/lib/components/layout-switcher/style/_layout.scss +94 -94
- package/lib/components/layout-switcher/style/_material-definition.scss +16 -16
- package/lib/components/layout-switcher/style/_theme.scss +4 -4
- package/lib/components/layout-switcher/style/material.scss +6 -6
- package/lib/components/linear-gauge/co-linear-gauge.component.d.ts +11 -11
- package/lib/components/linear-gauge/co-linear-gauge.module.d.ts +2 -2
- package/lib/components/linear-gauge/style/_layout.scss +20 -20
- package/lib/components/linear-gauge/style/_material-definition.scss +8 -8
- package/lib/components/linear-gauge/style/_theme.scss +4 -4
- package/lib/components/linear-gauge/style/material.scss +6 -6
- package/lib/components/login/style/_layout.scss +57 -57
- package/lib/components/login/style/_material-definition.scss +23 -23
- package/lib/components/login/style/_theme.scss +7 -7
- package/lib/components/login/style/material.scss +4 -4
- package/lib/components/multi-property-toggler/multiple-property-toggler.component.d.ts +27 -27
- package/lib/components/multi-property-toggler/multiple-property-toggler.module.d.ts +2 -2
- package/lib/components/multi-property-toggler/style/_layout.scss +24 -24
- package/lib/components/multi-property-toggler/style/_theme.scss +4 -4
- package/lib/components/multi-property-toggler/style/material.scss +4 -4
- package/lib/components/screen-config-generator/style/_layout.scss +95 -95
- package/lib/components/screen-config-generator/style/_theme.scss +4 -4
- package/lib/components/screen-config-generator/style/material.scss +4 -4
- package/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.d.ts +19 -19
- package/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.d.ts +2 -2
- package/lib/components/send-method-dialog/components/layout-selection/style/_layout.scss +44 -44
- package/lib/components/send-method-dialog/components/layout-selection/style/_material-definition.scss +19 -19
- package/lib/components/send-method-dialog/components/layout-selection/style/_theme.scss +17 -17
- package/lib/components/send-method-dialog/components/layout-selection/style/material.scss +4 -4
- package/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.d.ts +19 -19
- package/lib/components/send-method-dialog/components/printer-selection/printer-selection.module.d.ts +2 -2
- package/lib/components/send-method-dialog/components/printer-selection/style/_layout.scss +69 -69
- package/lib/components/send-method-dialog/components/printer-selection/style/_material-definition.scss +37 -37
- package/lib/components/send-method-dialog/components/printer-selection/style/_theme.scss +23 -23
- package/lib/components/send-method-dialog/components/printer-selection/style/material.scss +4 -4
- package/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.d.ts +14 -14
- package/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.d.ts +2 -2
- package/lib/components/send-method-dialog/components/send-method-email/style/_layout.scss +29 -29
- package/lib/components/send-method-dialog/components/send-method-email/style/_material-definition.scss +8 -8
- package/lib/components/send-method-dialog/components/send-method-email/style/_theme.scss +5 -5
- package/lib/components/send-method-dialog/components/send-method-email/style/material.scss +4 -4
- package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.d.ts +8 -8
- package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.d.ts +2 -2
- package/lib/components/send-method-dialog/components/send-method-pdf/style/_layout.scss +25 -25
- package/lib/components/send-method-dialog/components/send-method-pdf/style/_material-definition.scss +5 -5
- package/lib/components/send-method-dialog/components/send-method-pdf/style/_theme.scss +5 -5
- package/lib/components/send-method-dialog/components/send-method-pdf/style/material.scss +4 -4
- package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.d.ts +13 -13
- package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.d.ts +2 -2
- package/lib/components/send-method-dialog/components/send-method-printer/style/_layout.scss +30 -30
- package/lib/components/send-method-dialog/components/send-method-printer/style/_material-definition.scss +5 -5
- package/lib/components/send-method-dialog/components/send-method-printer/style/_theme.scss +5 -5
- package/lib/components/send-method-dialog/components/send-method-printer/style/material.scss +4 -4
- package/lib/components/send-method-dialog/components/signature-button/signature-button.component.d.ts +12 -12
- package/lib/components/send-method-dialog/components/signature-button/signature-button.module.d.ts +2 -2
- package/lib/components/send-method-dialog/components/signature-button/style/_layout.scss +28 -28
- package/lib/components/send-method-dialog/components/signature-button/style/_material-definition.scss +8 -8
- package/lib/components/send-method-dialog/components/signature-button/style/_theme.scss +4 -4
- package/lib/components/send-method-dialog/components/signature-button/style/material.scss +4 -4
- package/lib/components/send-method-dialog/model/email-address-viewmodel.d.ts +5 -5
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +71 -71
- package/lib/components/send-method-dialog/send-method-dialog.module.d.ts +2 -2
- package/lib/components/send-method-dialog/send-method-params.interface.d.ts +13 -13
- package/lib/components/send-method-dialog/service/send-method.service.d.ts +23 -23
- package/lib/components/send-method-dialog/style/_layout.scss +165 -165
- package/lib/components/send-method-dialog/style/_material-definition.scss +48 -48
- package/lib/components/send-method-dialog/style/_theme.scss +33 -33
- package/lib/components/send-method-dialog/style/material.scss +10 -10
- package/lib/components/simple-tags/simple-tags.component.d.ts +31 -31
- package/lib/components/simple-tags/simple-tags.module.d.ts +2 -2
- package/lib/components/simple-tags/style/_layout.scss +272 -272
- package/lib/components/simple-tags/style/_material-definition.scss +39 -39
- package/lib/components/simple-tags/style/_theme.scss +4 -4
- package/lib/components/simple-tags/style/material.scss +4 -4
- package/lib/components/statusbar/statusbar-popup.component.d.ts +21 -21
- package/lib/components/statusbar/statusbar.component.d.ts +26 -26
- package/lib/components/statusbar/statusbar.module.d.ts +2 -2
- package/lib/components/statusbar/style/_layout.scss +70 -70
- package/lib/components/statusbar/style/_material-definition.scss +23 -23
- package/lib/components/statusbar/style/_theme.scss +13 -13
- package/lib/components/statusbar/style/material.scss +5 -5
- package/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.d.ts +9 -9
- package/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.d.ts +9 -9
- package/lib/components/stock/components/order-stock-history/order-stock-history.component.d.ts +9 -9
- package/lib/components/stock/components/order-stock-tab/order-stock-tab.component.d.ts +11 -11
- package/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.d.ts +9 -9
- package/lib/components/stock/components/order-tab/order-tab.component.d.ts +20 -20
- package/lib/components/stock/components/stock-history/stock-history.component.d.ts +13 -13
- package/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.d.ts +41 -0
- package/lib/components/stock/components/stock-location/stock-location.component.d.ts +54 -52
- package/lib/components/stock/components/stock-prognose/stock-prognose.component.d.ts +11 -11
- package/lib/components/stock/components/stock-tab/stock-tab.component.d.ts +7 -7
- package/lib/components/stock/localization/translation.d.ts +71 -69
- package/lib/components/stock/stock-history-tabs/stock-history-tabs.component.d.ts +7 -7
- package/lib/components/stock/stock-information/stock-information.component.d.ts +9 -9
- package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +75 -75
- package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +59 -56
- package/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.d.ts +4 -4
- package/lib/components/stock/stock-transfer/stock-change-amount.component.d.ts +18 -18
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +38 -38
- package/lib/components/stock/stock.component.d.ts +64 -64
- package/lib/components/stock/stock.module.d.ts +2 -2
- package/lib/components/stock/style/_layout.scss +519 -473
- package/lib/components/stock/style/_material-definition.scss +28 -28
- package/lib/components/stock/style/_theme.scss +5 -5
- package/lib/components/stock/style/material.scss +4 -4
- package/lib/components/stock-statusbar/stock-statusbar.component.d.ts +4 -4
- package/lib/components/stock-statusbar/stock-statusbar.module.d.ts +2 -2
- package/lib/components/stock-statusbar/style/_layout.scss +24 -24
- package/lib/components/stock-statusbar/style/material.scss +4 -4
- package/lib/components/tab-bar/style/_layout.scss +83 -83
- package/lib/components/tab-bar/style/_material-definition.scss +6 -6
- package/lib/components/tab-bar/style/material.scss +4 -4
- package/lib/components/tab-bar/tab-bar.component.d.ts +21 -21
- package/lib/components/tab-bar/tab-bar.module.d.ts +2 -2
- package/lib/components/tab-bar/tab.interface.d.ts +5 -5
- package/lib/components/tags/component/style/_layout.scss +67 -67
- package/lib/components/tags/component/style/_material-definition.scss +1 -1
- package/lib/components/tags/component/style/_theme.scss +8 -8
- package/lib/components/tags/component/style/material.scss +3 -3
- package/lib/components/tags/component/tag-join-label/style/_layout.scss +97 -97
- package/lib/components/tags/component/tag-join-label/style/_material-definition.scss +4 -4
- package/lib/components/tags/component/tag-join-label/style/_theme.scss +8 -8
- package/lib/components/tags/component/tag-join-label/style/material.scss +3 -3
- package/lib/components/tile-renderer/style/_layout.scss +90 -90
- package/lib/components/tile-renderer/style/_theme.scss +4 -4
- package/lib/components/tile-renderer/style/material.scss +4 -4
- package/lib/components/tile-renderer/tile-render.component.d.ts +31 -31
- package/lib/components/tile-renderer/tile-render.module.d.ts +2 -2
- package/lib/decorator/input-boolean.decorator.d.ts +8 -8
- package/lib/enum/calendar-view.enum.d.ts +7 -7
- package/lib/enum/document-email-report.enum.d.ts +15 -15
- package/lib/enum/domain-multiple-name.enum.d.ts +10 -10
- package/lib/enum/file-type.d.ts +7 -7
- package/lib/enum/files-upload-config-objects.d.ts +22 -22
- package/lib/enum/gauge-color.enum.d.ts +8 -8
- package/lib/enum/icon.enum.d.ts +47 -46
- package/lib/enum/internal-param.enum.d.ts +34 -34
- package/lib/enum/keyboard-code.enum.d.ts +30 -30
- package/lib/enum/language-code.enum.d.ts +6 -6
- package/lib/enum/month.enum.d.ts +14 -14
- package/lib/enum/read-write-access-config-names.enum.d.ts +4 -4
- package/lib/enum/table-name.enum.d.ts +84 -84
- package/lib/enum/tag-category.enum.d.ts +19 -19
- package/lib/enum/tags-component-config-names.d.ts +4 -4
- package/lib/enum/thumb-three-way-state.d.ts +6 -6
- package/lib/enum/tile-size-type.d.ts +4 -4
- package/lib/enum/time-period.enum.d.ts +8 -8
- package/lib/event/co-drag-event.d.ts +5 -5
- package/lib/event/co-drop-event.d.ts +8 -8
- package/lib/interface/key-value-pair.d.ts +4 -4
- package/lib/interface/operation-callback-simple-function.d.ts +4 -4
- package/lib/localization/localization.module.d.ts +2 -2
- package/lib/localization/localize.pipe.d.ts +7 -7
- package/lib/localization/localize.service.d.ts +7 -7
- package/lib/localization/translation.d.ts +2 -2
- package/lib/model/agenda-event-per-day.model.d.ts +5 -5
- package/lib/model/agenda-event.model.d.ts +17 -17
- package/lib/model/agenda-null-objects.d.ts +10 -10
- package/lib/model/constant/all-months.d.ts +2 -2
- package/lib/model/date-range.d.ts +7 -7
- package/lib/model/day.model.d.ts +8 -8
- package/lib/model/icon-svg.d.ts +4 -4
- package/lib/model/month.model.d.ts +5 -5
- package/lib/model/send-method.d.ts +7 -7
- package/lib/model/settings.d.ts +3 -3
- package/lib/model/tag-tree-item.bo.d.ts +18 -18
- package/lib/model/time-window.bo.d.ts +13 -13
- package/lib/model/tree-object.d.ts +8 -8
- package/lib/model/week.model.d.ts +4 -4
- package/lib/model/weekday.model.d.ts +16 -16
- package/lib/pipe/array-number.pipe.d.ts +4 -4
- package/lib/pipe/file-type-image.pipe.d.ts +12 -12
- package/lib/pipe/master-pipes.d.ts +1 -1
- package/lib/pipe/ucfirst.pipe.d.ts +4 -4
- package/lib/service/dictionary.service.d.ts +21 -21
- package/lib/service/drag-drop.service.d.ts +86 -86
- package/lib/service/icon-cache.service.d.ts +18 -18
- package/lib/service/options.service.d.ts +13 -13
- package/lib/service/shared-connector.service.d.ts +55 -55
- package/lib/service/shared.service.d.ts +18 -18
- package/lib/service/stock.service.d.ts +41 -41
- package/lib/style/_mixin.scss +14 -14
- package/lib/style/_variables.scss +21 -21
- package/lib/style/sharedcomponents-globals.scss +10 -10
- package/lib/utils/array-utils.d.ts +63 -63
- package/lib/utils/calendar.utils.d.ts +10 -10
- package/lib/utils/check-precision-and-scale-result.d.ts +4 -4
- package/lib/utils/check-within-stepped-bounds-result.d.ts +8 -8
- package/lib/utils/co-document-shared-field-logic.d.ts +7 -7
- package/lib/utils/date-utils.d.ts +44 -44
- package/lib/utils/enum-utils.d.ts +31 -31
- package/lib/utils/function/not-nill.function.d.ts +1 -1
- package/lib/utils/is-nill.function.d.ts +1 -1
- package/lib/utils/map-utils.d.ts +16 -16
- package/lib/utils/number-utils.d.ts +125 -125
- package/lib/utils/object-utils.d.ts +40 -40
- package/lib/utils/ref-code-utils.d.ts +10 -10
- package/lib/utils/string-utils.d.ts +38 -38
- package/package.json +1 -1
- package/public-api.d.ts +27 -27
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { Directive, EventEmitter, Inject, Input, LOCALE_ID, Output } from "@angular/core";
|
|
2
|
-
import { LanguageCode } from "../../../../enum/language-code.enum";
|
|
3
|
-
import { DateUtils } from "../../../../utils/date-utils";
|
|
4
|
-
import { IconCacheService } from "../../../../service/icon-cache.service";
|
|
5
|
-
export class AgendaBaseViewComponent {
|
|
6
|
-
constructor(locale, iconCacheService) {
|
|
7
|
-
this.locale = locale;
|
|
8
|
-
this.iconCacheService = iconCacheService;
|
|
9
|
-
this.eventChecked = new EventEmitter();
|
|
10
|
-
this._eventsPerDay = [];
|
|
11
|
-
}
|
|
12
|
-
set selectedDate(value) {
|
|
13
|
-
this._selectedDate = value;
|
|
14
|
-
this._dateIsSet();
|
|
15
|
-
}
|
|
16
|
-
set eventsPerDay(value) {
|
|
17
|
-
this._eventsPerDay = value;
|
|
18
|
-
this._eventsAreSet();
|
|
19
|
-
}
|
|
20
|
-
get selectedDate() {
|
|
21
|
-
return this._selectedDate;
|
|
22
|
-
}
|
|
23
|
-
get eventsPerDate() {
|
|
24
|
-
return this._eventsPerDay;
|
|
25
|
-
}
|
|
26
|
-
//overridable by descendents
|
|
27
|
-
prepareViewData() {
|
|
28
|
-
}
|
|
29
|
-
getEventsFromDate(date) {
|
|
30
|
-
let events = [];
|
|
31
|
-
if (this.eventsPerDate) {
|
|
32
|
-
const len = this.eventsPerDate.length;
|
|
33
|
-
for (let i = 0; i < len; i++) {
|
|
34
|
-
if (DateUtils.DatesEqual(date, this.eventsPerDate[i].date)) {
|
|
35
|
-
events = this.eventsPerDate[i].events;
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return events;
|
|
41
|
-
}
|
|
42
|
-
_dateIsSet() {
|
|
43
|
-
this.prepareViewData();
|
|
44
|
-
}
|
|
45
|
-
_eventsAreSet() {
|
|
46
|
-
this.prepareViewData();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
AgendaBaseViewComponent.decorators = [
|
|
50
|
-
{ type: Directive }
|
|
51
|
-
];
|
|
52
|
-
AgendaBaseViewComponent.ctorParameters = () => [
|
|
53
|
-
{ type: LanguageCode, decorators: [{ type: Inject, args: [LOCALE_ID,] }] },
|
|
54
|
-
{ type: IconCacheService }
|
|
55
|
-
];
|
|
56
|
-
AgendaBaseViewComponent.propDecorators = {
|
|
57
|
-
selectedDate: [{ type: Input }],
|
|
58
|
-
eventsPerDay: [{ type: Input }],
|
|
59
|
-
eventChecked: [{ type: Output }]
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Directive, EventEmitter, Inject, Input, LOCALE_ID, Output } from "@angular/core";
|
|
2
|
+
import { LanguageCode } from "../../../../enum/language-code.enum";
|
|
3
|
+
import { DateUtils } from "../../../../utils/date-utils";
|
|
4
|
+
import { IconCacheService } from "../../../../service/icon-cache.service";
|
|
5
|
+
export class AgendaBaseViewComponent {
|
|
6
|
+
constructor(locale, iconCacheService) {
|
|
7
|
+
this.locale = locale;
|
|
8
|
+
this.iconCacheService = iconCacheService;
|
|
9
|
+
this.eventChecked = new EventEmitter();
|
|
10
|
+
this._eventsPerDay = [];
|
|
11
|
+
}
|
|
12
|
+
set selectedDate(value) {
|
|
13
|
+
this._selectedDate = value;
|
|
14
|
+
this._dateIsSet();
|
|
15
|
+
}
|
|
16
|
+
set eventsPerDay(value) {
|
|
17
|
+
this._eventsPerDay = value;
|
|
18
|
+
this._eventsAreSet();
|
|
19
|
+
}
|
|
20
|
+
get selectedDate() {
|
|
21
|
+
return this._selectedDate;
|
|
22
|
+
}
|
|
23
|
+
get eventsPerDate() {
|
|
24
|
+
return this._eventsPerDay;
|
|
25
|
+
}
|
|
26
|
+
//overridable by descendents
|
|
27
|
+
prepareViewData() {
|
|
28
|
+
}
|
|
29
|
+
getEventsFromDate(date) {
|
|
30
|
+
let events = [];
|
|
31
|
+
if (this.eventsPerDate) {
|
|
32
|
+
const len = this.eventsPerDate.length;
|
|
33
|
+
for (let i = 0; i < len; i++) {
|
|
34
|
+
if (DateUtils.DatesEqual(date, this.eventsPerDate[i].date)) {
|
|
35
|
+
events = this.eventsPerDate[i].events;
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return events;
|
|
41
|
+
}
|
|
42
|
+
_dateIsSet() {
|
|
43
|
+
this.prepareViewData();
|
|
44
|
+
}
|
|
45
|
+
_eventsAreSet() {
|
|
46
|
+
this.prepareViewData();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
AgendaBaseViewComponent.decorators = [
|
|
50
|
+
{ type: Directive }
|
|
51
|
+
];
|
|
52
|
+
AgendaBaseViewComponent.ctorParameters = () => [
|
|
53
|
+
{ type: LanguageCode, decorators: [{ type: Inject, args: [LOCALE_ID,] }] },
|
|
54
|
+
{ type: IconCacheService }
|
|
55
|
+
];
|
|
56
|
+
AgendaBaseViewComponent.propDecorators = {
|
|
57
|
+
selectedDate: [{ type: Input }],
|
|
58
|
+
eventsPerDay: [{ type: Input }],
|
|
59
|
+
eventChecked: [{ type: Output }]
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdlbmRhLWJhc2Utdmlldy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaGFyZWRjb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9kYXRlLXBsYW5uaW5nL2NvbXBvbmVudC9hZ2Vu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G51bWJlciA9IDA7IGkgPCBsZW47IGkrKykge1xyXG4gICAgICAgICAgICAgICAgaWYgKERhdGVVdGlscy5EYXRlc0VxdWFsKGRhdGUsIHRoaXMuZXZlbnRzUGVyRGF0ZVtpXS5kYXRlKSkge1xyXG4gICAgICAgICAgICAgICAgICAgIGV2ZW50cyA9IHRoaXMuZXZlbnRzUGVyRGF0ZVtpXS5ldmVudHM7XHJcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICAgICAgcmV0dXJuIGV2ZW50cztcclxuICAgIH1cclxuXHJcbiAgICBwcml2YXRlIF9kYXRlSXNTZXQoKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy5wcmVwYXJlVmlld0RhdGEoKTtcclxuICAgIH1cclxuXHJcbiAgICBwcml2YXRlIF9ldmVudHNBcmVTZXQoKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy5wcmVwYXJlVmlld0RhdGEoKTtcclxuICAgIH1cclxufVxyXG4iXX0=
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { Component, Input, ViewEncapsulation } from "@angular/core";
|
|
2
|
-
import { AgendaBaseViewComponent } from "./agenda-base-view.component";
|
|
3
|
-
export class AgendaDayViewComponent extends AgendaBaseViewComponent {
|
|
4
|
-
constructor() {
|
|
5
|
-
super(...arguments);
|
|
6
|
-
this.events = [];
|
|
7
|
-
}
|
|
8
|
-
prepareViewData() {
|
|
9
|
-
if (this.eventsPerDate && this.eventsPerDate.length > 0) {
|
|
10
|
-
this.events = this.eventsPerDate[0].events;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
AgendaDayViewComponent.decorators = [
|
|
15
|
-
{ type: Component, args: [{
|
|
16
|
-
selector: "agenda-day-view",
|
|
17
|
-
template: `
|
|
18
|
-
<div class="view-wrapper">
|
|
19
|
-
<agenda-hour-view-labels [date]="selectedDate"></agenda-hour-view-labels>
|
|
20
|
-
<agenda-hour-view [date]="selectedDate">
|
|
21
|
-
<agenda-events
|
|
22
|
-
[halfHourHeight]="40"
|
|
23
|
-
[events]="events"
|
|
24
|
-
(eventChecked)="eventChecked.emit($event)"
|
|
25
|
-
[customEventObject]="customEventObject"
|
|
26
|
-
></agenda-events>
|
|
27
|
-
</agenda-hour-view>
|
|
28
|
-
</div>
|
|
29
|
-
`,
|
|
30
|
-
encapsulation: ViewEncapsulation.None
|
|
31
|
-
},] }
|
|
32
|
-
];
|
|
33
|
-
AgendaDayViewComponent.propDecorators = {
|
|
34
|
-
customEventObject: [{ type: Input }]
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input, ViewEncapsulation } from "@angular/core";
|
|
2
|
+
import { AgendaBaseViewComponent } from "./agenda-base-view.component";
|
|
3
|
+
export class AgendaDayViewComponent extends AgendaBaseViewComponent {
|
|
4
|
+
constructor() {
|
|
5
|
+
super(...arguments);
|
|
6
|
+
this.events = [];
|
|
7
|
+
}
|
|
8
|
+
prepareViewData() {
|
|
9
|
+
if (this.eventsPerDate && this.eventsPerDate.length > 0) {
|
|
10
|
+
this.events = this.eventsPerDate[0].events;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
AgendaDayViewComponent.decorators = [
|
|
15
|
+
{ type: Component, args: [{
|
|
16
|
+
selector: "agenda-day-view",
|
|
17
|
+
template: `
|
|
18
|
+
<div class="view-wrapper">
|
|
19
|
+
<agenda-hour-view-labels [date]="selectedDate"></agenda-hour-view-labels>
|
|
20
|
+
<agenda-hour-view [date]="selectedDate">
|
|
21
|
+
<agenda-events
|
|
22
|
+
[halfHourHeight]="40"
|
|
23
|
+
[events]="events"
|
|
24
|
+
(eventChecked)="eventChecked.emit($event)"
|
|
25
|
+
[customEventObject]="customEventObject"
|
|
26
|
+
></agenda-events>
|
|
27
|
+
</agenda-hour-view>
|
|
28
|
+
</div>
|
|
29
|
+
`,
|
|
30
|
+
encapsulation: ViewEncapsulation.None
|
|
31
|
+
},] }
|
|
32
|
+
];
|
|
33
|
+
AgendaDayViewComponent.propDecorators = {
|
|
34
|
+
customEventObject: [{ type: Input }]
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdlbmRhLWRheS12aWV3LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NoYXJlZGNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2RhdGUtcGxhbm5pbmcvY29tcG9uZW50L2FnZW5kYS9hZ2VuZGEtZGF5LXZpZXcuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsS0FBSyxFQUFFLGlCQUFpQixFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRWxFLE9BQU8sRUFBQyx1QkFBdUIsRUFBQyxNQUFNLDhCQUE4QixDQUFDO0FBb0JyRSxNQUFNLE9BQU8sc0JBQXVCLFNBQVEsdUJBQXVCO0lBakJuRTs7UUFtQlcsV0FBTSxHQUFrQixFQUFFLENBQUM7SUFVdEMsQ0FBQztJQUxhLGVBQWU7UUFDckIsSUFBSSxJQUFJLENBQUMsYUFBYSxJQUFJLElBQUksQ0FBQyxhQUFhLENBQUMsTUFBTSxHQUFHLENBQUMsRUFBRTtZQUNyRCxJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksQ0FBQyxhQUFhLENBQUMsQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDO1NBQzlDO0lBQ0wsQ0FBQzs7O1lBNUJKLFNBQVMsU0FBQztnQkFDUCxRQUFRLEVBQUUsaUJBQWlCO2dCQUMzQixRQUFRLEVBQUU7Ozs7Ozs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WN0XCJcclxuICAgICAgICAgICAgICAgID48L2FnZW5kYS1ldmVudHM+XHJcbiAgICAgICAgICAgIDwvYWdlbmRhLWhvdXItdmlldz5cclxuICAgICAgICA8L2Rpdj5cclxuICAgIGAsXHJcbiAgZW5jYXBzdWxhdGlvbjogVmlld0VuY2Fwc3VsYXRpb24uTm9uZVxyXG59KVxyXG5leHBvcnQgY2xhc3MgQWdlbmRhRGF5Vmlld0NvbXBvbmVudCBleHRlbmRzIEFnZW5kYUJhc2VWaWV3Q29tcG9uZW50IHtcclxuXHJcbiAgICBwdWJsaWMgZXZlbnRzOiBBZ2VuZGFFdmVudFtdID0gW107XHJcblxyXG4gICAgQElucHV0KClcclxuICAgIHB1YmxpYyBjdXN0b21FdmVudE9iamVjdDogYm9vbGVhbjtcclxuXHJcbiAgICBwcm90ZWN0ZWQgcHJlcGFyZVZpZXdEYXRhKCk6IHZvaWQge1xyXG4gICAgICAgIGlmICh0aGlzLmV2ZW50c1BlckRhdGUgJiYgdGhpcy5ldmVudHNQZXJEYXRlLmxlbmd0aCA+IDApIHtcclxuICAgICAgICAgICAgdGhpcy5ldmVudHMgPSB0aGlzLmV2ZW50c1BlckRhdGVbMF0uZXZlbnRzO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxufVxyXG4iXX0=
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { Component, ElementRef, EventEmitter, Input, Output, Renderer2, ViewEncapsulation } from "@angular/core";
|
|
2
|
-
import { NULL_AGENDA_EVENT } from "../../../../model/agenda-null-objects";
|
|
3
|
-
import { Icon } from "../../../../enum/icon.enum";
|
|
4
|
-
import { IconCacheService } from "../../../../service/icon-cache.service";
|
|
5
|
-
export class AgendaEventComponent {
|
|
6
|
-
constructor(_elementRef, _renderer, iconCacheService) {
|
|
7
|
-
this._elementRef = _elementRef;
|
|
8
|
-
this._renderer = _renderer;
|
|
9
|
-
this.iconCacheService = iconCacheService;
|
|
10
|
-
this.icons = Icon;
|
|
11
|
-
this.event = NULL_AGENDA_EVENT;
|
|
12
|
-
this.eventChecked = new EventEmitter();
|
|
13
|
-
}
|
|
14
|
-
ngOnDestroy() {
|
|
15
|
-
this._elementRef = undefined;
|
|
16
|
-
}
|
|
17
|
-
ngOnInit() {
|
|
18
|
-
const hourTo = this.event.from.getHours();
|
|
19
|
-
const minutesTo = this.event.from.getMinutes();
|
|
20
|
-
const multiply = hourTo + (minutesTo / 60);
|
|
21
|
-
const top = multiply * (this.halfHourHeight * 2);
|
|
22
|
-
this._renderer.setStyle(this._elementRef.nativeElement, "top", top + "px");
|
|
23
|
-
const hours = Math.abs(this.event.to.getTime() - this.event.from.getTime()) / 3600000;
|
|
24
|
-
const height = hours * (this.halfHourHeight * 2) - 1;
|
|
25
|
-
this._renderer.setStyle(this._elementRef.nativeElement, "height", height + "px");
|
|
26
|
-
}
|
|
27
|
-
checkEvent(event) {
|
|
28
|
-
this.event.checked = !this.event.checked;
|
|
29
|
-
this.eventChecked.emit(this.event);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
AgendaEventComponent.decorators = [
|
|
33
|
-
{ type: Component, args: [{
|
|
34
|
-
selector: "agenda-event",
|
|
35
|
-
template: `
|
|
36
|
-
<div class="agenda-event-wrapper" [class.checkable]="event.showCheckbox" [class.selected]="event.checked" (click)="checkEvent($event)">
|
|
37
|
-
<div [textContent]="event.description" class="event-description"></div>
|
|
38
|
-
<co-icon *ngIf="event.showCheckbox" [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" [class.checked]="event.checked"></co-icon>
|
|
39
|
-
|
|
40
|
-
</div>
|
|
41
|
-
`,
|
|
42
|
-
encapsulation: ViewEncapsulation.None
|
|
43
|
-
},] }
|
|
44
|
-
];
|
|
45
|
-
AgendaEventComponent.ctorParameters = () => [
|
|
46
|
-
{ type: ElementRef },
|
|
47
|
-
{ type: Renderer2 },
|
|
48
|
-
{ type: IconCacheService }
|
|
49
|
-
];
|
|
50
|
-
AgendaEventComponent.propDecorators = {
|
|
51
|
-
event: [{ type: Input }],
|
|
52
|
-
customEventObject: [{ type: Input }],
|
|
53
|
-
halfHourHeight: [{ type: Input }],
|
|
54
|
-
eventChecked: [{ type: Output }]
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, ElementRef, EventEmitter, Input, Output, Renderer2, ViewEncapsulation } from "@angular/core";
|
|
2
|
+
import { NULL_AGENDA_EVENT } from "../../../../model/agenda-null-objects";
|
|
3
|
+
import { Icon } from "../../../../enum/icon.enum";
|
|
4
|
+
import { IconCacheService } from "../../../../service/icon-cache.service";
|
|
5
|
+
export class AgendaEventComponent {
|
|
6
|
+
constructor(_elementRef, _renderer, iconCacheService) {
|
|
7
|
+
this._elementRef = _elementRef;
|
|
8
|
+
this._renderer = _renderer;
|
|
9
|
+
this.iconCacheService = iconCacheService;
|
|
10
|
+
this.icons = Icon;
|
|
11
|
+
this.event = NULL_AGENDA_EVENT;
|
|
12
|
+
this.eventChecked = new EventEmitter();
|
|
13
|
+
}
|
|
14
|
+
ngOnDestroy() {
|
|
15
|
+
this._elementRef = undefined;
|
|
16
|
+
}
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
const hourTo = this.event.from.getHours();
|
|
19
|
+
const minutesTo = this.event.from.getMinutes();
|
|
20
|
+
const multiply = hourTo + (minutesTo / 60);
|
|
21
|
+
const top = multiply * (this.halfHourHeight * 2);
|
|
22
|
+
this._renderer.setStyle(this._elementRef.nativeElement, "top", top + "px");
|
|
23
|
+
const hours = Math.abs(this.event.to.getTime() - this.event.from.getTime()) / 3600000;
|
|
24
|
+
const height = hours * (this.halfHourHeight * 2) - 1;
|
|
25
|
+
this._renderer.setStyle(this._elementRef.nativeElement, "height", height + "px");
|
|
26
|
+
}
|
|
27
|
+
checkEvent(event) {
|
|
28
|
+
this.event.checked = !this.event.checked;
|
|
29
|
+
this.eventChecked.emit(this.event);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
AgendaEventComponent.decorators = [
|
|
33
|
+
{ type: Component, args: [{
|
|
34
|
+
selector: "agenda-event",
|
|
35
|
+
template: `
|
|
36
|
+
<div class="agenda-event-wrapper" [class.checkable]="event.showCheckbox" [class.selected]="event.checked" (click)="checkEvent($event)">
|
|
37
|
+
<div [textContent]="event.description" class="event-description"></div>
|
|
38
|
+
<co-icon *ngIf="event.showCheckbox" [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" [class.checked]="event.checked"></co-icon>
|
|
39
|
+
|
|
40
|
+
</div>
|
|
41
|
+
`,
|
|
42
|
+
encapsulation: ViewEncapsulation.None
|
|
43
|
+
},] }
|
|
44
|
+
];
|
|
45
|
+
AgendaEventComponent.ctorParameters = () => [
|
|
46
|
+
{ type: ElementRef },
|
|
47
|
+
{ type: Renderer2 },
|
|
48
|
+
{ type: IconCacheService }
|
|
49
|
+
];
|
|
50
|
+
AgendaEventComponent.propDecorators = {
|
|
51
|
+
event: [{ type: Input }],
|
|
52
|
+
customEventObject: [{ type: Input }],
|
|
53
|
+
halfHourHeight: [{ type: Input }],
|
|
54
|
+
eventChecked: [{ type: Output }]
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdlbmRhLWV2ZW50LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NoYXJlZGNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2RhdGUtcGxhbm5pbmcvY29tcG9uZW50L2FnZW5kYS9hZ2VuZGEtZXZlbnQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsVUFBVSxFQUNWLFlBQVksRUFDWixLQUFLLEVBR0wsTUFBTSxFQUNOLFNBQVMsRUFDVCxpQkFBaUIsRUFDbEIsTUFB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ICB0aGlzLmV2ZW50Q2hlY2tlZC5lbWl0KHRoaXMuZXZlbnQpO1xyXG4gICAgfVxyXG5cclxufVxyXG4iXX0=
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output, ViewEncapsulation } from "@angular/core";
|
|
2
|
-
import { CalendarView } from "../../../../enum/calendar-view.enum";
|
|
3
|
-
export class AgendaEventsComponent {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.viewTypes = CalendarView;
|
|
6
|
-
this.view = CalendarView.WeekView;
|
|
7
|
-
this.type = "";
|
|
8
|
-
this.events = [];
|
|
9
|
-
this.eventChecked = new EventEmitter();
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
AgendaEventsComponent.decorators = [
|
|
13
|
-
{ type: Component, args: [{
|
|
14
|
-
selector: "agenda-events",
|
|
15
|
-
template: `
|
|
16
|
-
<ng-container *ngIf="view !== viewTypes.WeekSelectView">
|
|
17
|
-
<agenda-event
|
|
18
|
-
*ngFor="let event of events"
|
|
19
|
-
[halfHourHeight]="halfHourHeight"
|
|
20
|
-
[event]="event"
|
|
21
|
-
(eventChecked)="eventChecked.emit($event)"
|
|
22
|
-
[customEventObject]="customEventObject"
|
|
23
|
-
>
|
|
24
|
-
|
|
25
|
-
</agenda-event>
|
|
26
|
-
</ng-container>
|
|
27
|
-
<ng-container *ngIf="view === viewTypes.WeekSelectView">
|
|
28
|
-
<agenda-select-event
|
|
29
|
-
*ngFor="let event of events"
|
|
30
|
-
[event]="event"
|
|
31
|
-
(eventChecked)="eventChecked.emit($event)"
|
|
32
|
-
></agenda-select-event>
|
|
33
|
-
</ng-container>
|
|
34
|
-
`,
|
|
35
|
-
encapsulation: ViewEncapsulation.None
|
|
36
|
-
},] }
|
|
37
|
-
];
|
|
38
|
-
AgendaEventsComponent.ctorParameters = () => [];
|
|
39
|
-
AgendaEventsComponent.propDecorators = {
|
|
40
|
-
customEventObject: [{ type: Input }],
|
|
41
|
-
view: [{ type: Input }],
|
|
42
|
-
type: [{ type: Input }],
|
|
43
|
-
events: [{ type: Input }],
|
|
44
|
-
halfHourHeight: [{ type: Input }],
|
|
45
|
-
eventChecked: [{ type: Output }]
|
|
46
|
-
};
|
|
47
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, EventEmitter, Input, Output, ViewEncapsulation } from "@angular/core";
|
|
2
|
+
import { CalendarView } from "../../../../enum/calendar-view.enum";
|
|
3
|
+
export class AgendaEventsComponent {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.viewTypes = CalendarView;
|
|
6
|
+
this.view = CalendarView.WeekView;
|
|
7
|
+
this.type = "";
|
|
8
|
+
this.events = [];
|
|
9
|
+
this.eventChecked = new EventEmitter();
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
AgendaEventsComponent.decorators = [
|
|
13
|
+
{ type: Component, args: [{
|
|
14
|
+
selector: "agenda-events",
|
|
15
|
+
template: `
|
|
16
|
+
<ng-container *ngIf="view !== viewTypes.WeekSelectView">
|
|
17
|
+
<agenda-event
|
|
18
|
+
*ngFor="let event of events"
|
|
19
|
+
[halfHourHeight]="halfHourHeight"
|
|
20
|
+
[event]="event"
|
|
21
|
+
(eventChecked)="eventChecked.emit($event)"
|
|
22
|
+
[customEventObject]="customEventObject"
|
|
23
|
+
>
|
|
24
|
+
|
|
25
|
+
</agenda-event>
|
|
26
|
+
</ng-container>
|
|
27
|
+
<ng-container *ngIf="view === viewTypes.WeekSelectView">
|
|
28
|
+
<agenda-select-event
|
|
29
|
+
*ngFor="let event of events"
|
|
30
|
+
[event]="event"
|
|
31
|
+
(eventChecked)="eventChecked.emit($event)"
|
|
32
|
+
></agenda-select-event>
|
|
33
|
+
</ng-container>
|
|
34
|
+
`,
|
|
35
|
+
encapsulation: ViewEncapsulation.None
|
|
36
|
+
},] }
|
|
37
|
+
];
|
|
38
|
+
AgendaEventsComponent.ctorParameters = () => [];
|
|
39
|
+
AgendaEventsComponent.propDecorators = {
|
|
40
|
+
customEventObject: [{ type: Input }],
|
|
41
|
+
view: [{ type: Input }],
|
|
42
|
+
type: [{ type: Input }],
|
|
43
|
+
events: [{ type: Input }],
|
|
44
|
+
halfHourHeight: [{ type: Input }],
|
|
45
|
+
eventChecked: [{ type: Output }]
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdlbmRhLWV2ZW50cy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaGFyZWRjb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9kYXRlLXBsYW5uaW5nL2NvbXBvbmVudC9hZ2VuZGEvYWdlbmRhLWV2ZW50cy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxpQkFBaUIsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN4RixPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0scUNBQXFDLENBQUM7QUEyQmpFLE1BQU0sT0FBTyxxQkFBcUI7SUFzQjlCO1FBcEJnQixjQUFTLEdBQXdCLFlBQVksQ0FBQztRQU12RCxTQUFJLEdBQWlCLFlBQVksQ0FBQyxRQUFRLENBQUM7UUFHM0MsU0FBSSxHQUFXLEVBQUUsQ0FBQztRQUdsQixXQUFNLEdBQWtCLEVBQUUsQ0FBQztRQU1sQixpQkFBWSxHQUE4QixJQUFJLFlBQVksRUFBZSxDQUFDO0lBRzFGLENBQUM7OztZQS9DSixTQUFTLFNBQUM7Z0JBQ1AsUUFBUSxFQUFFLGVBQWU7Z0JBQ3pCLFFBQVEsRUFBRTs7Ozs7Ozs7Ozs7Ozs7Ozs7OztLQW1CVDtnQkFDSCxhQUFhLEVBQUUsaU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gICAgICA8L2FnZW5kYS1ldmVudD5cclxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cclxuICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwidmlldyA9PT0gdmlld1R5cGVzLldlZWtTZWxlY3RWaWV3XCI+XHJcbiAgICAgICAgICAgIDxhZ2VuZGEtc2VsZWN0LWV2ZW50XHJcbiAgICAgICAgICAgICAgICAgICAgKm5nRm9yPVwibGV0IGV2ZW50IG9mIGV2ZW50c1wiXHJcbiAgICAgICAgICAgICAgICAgICAgW2V2ZW50XT1cImV2ZW50XCJcclxuICAgICAgICAgICAgICAgICAgICAoZXZlbnRDaGVja2VkKT1cImV2ZW50Q2hlY2tlZC5lbWl0KCRldmVudClcIlxyXG4gICAgICAgICAgICA+PC9hZ2VuZGEtc2VsZWN0LWV2ZW50PlxyXG4gICAgICAgIDwvbmctY29udGFpbmVyPlxyXG4gICAgYCxcclxuICBlbmNhcHN1bGF0aW9uOiBWaWV3RW5jYXBzdWxhdGlvbi5Ob25lXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBBZ2VuZGFFdmVudHNDb21wb25lbnQge1xyXG5cclxuICAgIHB1YmxpYyByZWFkb25seSB2aWV3VHlwZXM6IHR5cGVvZiBDYWxlbmRhclZpZXcgPSBDYWxlbmRhclZpZXc7XHJcblxyXG4gICAgQElucHV0KClcclxuICAgIHB1YmxpYyBjdXN0b21FdmVudE9iamVjdDogYm9vbGVhbjtcclxuXHJcbiAgICBASW5wdXQoKVxyXG4gICAgcHVibGljIHZpZXc6IENhbGVuZGFyVmlldyA9IENhbGVuZGFyVmlldy5XZWVrVmlldztcclxuXHJcbiAgICBASW5wdXQoKVxyXG4gICAgcHVibGljIHR5cGU6IHN0cmluZyA9IFwiXCI7XHJcblxyXG4gICAgQElucHV0KClcclxuICAgIHB1YmxpYyBldmVudHM6IEFnZW5kYUV2ZW50W10gPSBbXTtcclxuXHJcbiAgICBASW5wdXQoKVxyXG4gICAgcHVibGljIGhhbGZIb3VySGVpZ2h0OiBudW1iZXI7XHJcblxyXG4gICAgQE91dHB1dCgpXHJcbiAgICBwdWJsaWMgcmVhZG9ubHkgZXZlbnRDaGVja2VkOiBFdmVudEVtaXR0ZXI8QWdlbmRhRXZlbnQ+ID0gbmV3IEV2ZW50RW1pdHRlcjxBZ2VuZGFFdmVudD4oKTtcclxuXHJcbiAgICBjb25zdHJ1Y3RvcigpIHtcclxuICAgIH1cclxufVxyXG4iXX0=
|
package/esm2015/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.js
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { Component, Input, Renderer2, ViewChild, ViewEncapsulation } from "@angular/core";
|
|
2
|
-
import { DateUtils } from "../../../../utils/date-utils";
|
|
3
|
-
export class AgendaHalfHourCellComponent {
|
|
4
|
-
constructor(_renderer) {
|
|
5
|
-
this._renderer = _renderer;
|
|
6
|
-
this.showLabel = false;
|
|
7
|
-
this.showCurrentTime = false;
|
|
8
|
-
this.currentTimeTop = 0;
|
|
9
|
-
}
|
|
10
|
-
set date(value) {
|
|
11
|
-
this._date = value;
|
|
12
|
-
this._checkDate();
|
|
13
|
-
this._checkWorkingDayStart();
|
|
14
|
-
}
|
|
15
|
-
get date() {
|
|
16
|
-
return this._date;
|
|
17
|
-
}
|
|
18
|
-
ngOnDestroy() {
|
|
19
|
-
this.currentTimeElement = undefined;
|
|
20
|
-
}
|
|
21
|
-
_checkDate() {
|
|
22
|
-
const checkDate = new Date();
|
|
23
|
-
const minutesFrom = this.date.getMinutes();
|
|
24
|
-
const minutesTo = minutesFrom + 30;
|
|
25
|
-
if (DateUtils.DatesEqual(this.date, checkDate)) {
|
|
26
|
-
if (checkDate.getHours() === this.date.getHours() && (checkDate.getMinutes() > minutesFrom && checkDate.getMinutes() < minutesTo)) {
|
|
27
|
-
this.currentTimeTop = (Math.max(checkDate.getMinutes(), .01) / 60) * 100;
|
|
28
|
-
this._positionCurrentTime();
|
|
29
|
-
this.showCurrentTime = true;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
_checkWorkingDayStart() {
|
|
34
|
-
this.id = (this._date.getHours() === 8 && this._date.getMinutes() === 30) ? "dayStart" : "";
|
|
35
|
-
}
|
|
36
|
-
_positionCurrentTime() {
|
|
37
|
-
if (this.currentTimeElement) {
|
|
38
|
-
this._renderer.setStyle(this.currentTimeElement.nativeElement, "top", this.currentTimeTop + "%");
|
|
39
|
-
this.currentTimeElement.nativeElement.scrollIntoView();
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
AgendaHalfHourCellComponent.decorators = [
|
|
44
|
-
{ type: Component, args: [{
|
|
45
|
-
selector: "agenda-half-hour-cell",
|
|
46
|
-
template: `
|
|
47
|
-
<div id="{{id}}" class="cell-wrapper">
|
|
48
|
-
<div *ngIf="showLabel" [class.show]="showLabel" class="half-hour-label">
|
|
49
|
-
<div [textContent]="date | date:'HH:mm'"></div>
|
|
50
|
-
</div>
|
|
51
|
-
<div *ngIf="showCurrentTime" id="currentTime" class="current-time" #currentTime></div>
|
|
52
|
-
<div class="content-wrapper">
|
|
53
|
-
<ng-content></ng-content>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
`,
|
|
57
|
-
encapsulation: ViewEncapsulation.None
|
|
58
|
-
},] }
|
|
59
|
-
];
|
|
60
|
-
AgendaHalfHourCellComponent.ctorParameters = () => [
|
|
61
|
-
{ type: Renderer2 }
|
|
62
|
-
];
|
|
63
|
-
AgendaHalfHourCellComponent.propDecorators = {
|
|
64
|
-
currentTimeElement: [{ type: ViewChild, args: ["currentTime",] }],
|
|
65
|
-
date: [{ type: Input }],
|
|
66
|
-
showLabel: [{ type: Input }]
|
|
67
|
-
};
|
|
68
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input, Renderer2, ViewChild, ViewEncapsulation } from "@angular/core";
|
|
2
|
+
import { DateUtils } from "../../../../utils/date-utils";
|
|
3
|
+
export class AgendaHalfHourCellComponent {
|
|
4
|
+
constructor(_renderer) {
|
|
5
|
+
this._renderer = _renderer;
|
|
6
|
+
this.showLabel = false;
|
|
7
|
+
this.showCurrentTime = false;
|
|
8
|
+
this.currentTimeTop = 0;
|
|
9
|
+
}
|
|
10
|
+
set date(value) {
|
|
11
|
+
this._date = value;
|
|
12
|
+
this._checkDate();
|
|
13
|
+
this._checkWorkingDayStart();
|
|
14
|
+
}
|
|
15
|
+
get date() {
|
|
16
|
+
return this._date;
|
|
17
|
+
}
|
|
18
|
+
ngOnDestroy() {
|
|
19
|
+
this.currentTimeElement = undefined;
|
|
20
|
+
}
|
|
21
|
+
_checkDate() {
|
|
22
|
+
const checkDate = new Date();
|
|
23
|
+
const minutesFrom = this.date.getMinutes();
|
|
24
|
+
const minutesTo = minutesFrom + 30;
|
|
25
|
+
if (DateUtils.DatesEqual(this.date, checkDate)) {
|
|
26
|
+
if (checkDate.getHours() === this.date.getHours() && (checkDate.getMinutes() > minutesFrom && checkDate.getMinutes() < minutesTo)) {
|
|
27
|
+
this.currentTimeTop = (Math.max(checkDate.getMinutes(), .01) / 60) * 100;
|
|
28
|
+
this._positionCurrentTime();
|
|
29
|
+
this.showCurrentTime = true;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
_checkWorkingDayStart() {
|
|
34
|
+
this.id = (this._date.getHours() === 8 && this._date.getMinutes() === 30) ? "dayStart" : "";
|
|
35
|
+
}
|
|
36
|
+
_positionCurrentTime() {
|
|
37
|
+
if (this.currentTimeElement) {
|
|
38
|
+
this._renderer.setStyle(this.currentTimeElement.nativeElement, "top", this.currentTimeTop + "%");
|
|
39
|
+
this.currentTimeElement.nativeElement.scrollIntoView();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
AgendaHalfHourCellComponent.decorators = [
|
|
44
|
+
{ type: Component, args: [{
|
|
45
|
+
selector: "agenda-half-hour-cell",
|
|
46
|
+
template: `
|
|
47
|
+
<div id="{{id}}" class="cell-wrapper">
|
|
48
|
+
<div *ngIf="showLabel" [class.show]="showLabel" class="half-hour-label">
|
|
49
|
+
<div [textContent]="date | date:'HH:mm'"></div>
|
|
50
|
+
</div>
|
|
51
|
+
<div *ngIf="showCurrentTime" id="currentTime" class="current-time" #currentTime></div>
|
|
52
|
+
<div class="content-wrapper">
|
|
53
|
+
<ng-content></ng-content>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
`,
|
|
57
|
+
encapsulation: ViewEncapsulation.None
|
|
58
|
+
},] }
|
|
59
|
+
];
|
|
60
|
+
AgendaHalfHourCellComponent.ctorParameters = () => [
|
|
61
|
+
{ type: Renderer2 }
|
|
62
|
+
];
|
|
63
|
+
AgendaHalfHourCellComponent.propDecorators = {
|
|
64
|
+
currentTimeElement: [{ type: ViewChild, args: ["currentTime",] }],
|
|
65
|
+
date: [{ type: Input }],
|
|
66
|
+
showLabel: [{ type: Input }]
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdlbmRhLWhhbGYtaG91ci1jZWxsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NoYXJlZGNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2RhdGUtcGxhbm5pbmcvY29tcG9uZW50L2FnZW5kYS9hZ2VuZGEtaGFsZi1ob3VyLWNlbGwuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQWMsS0FBSyxFQUFhLFNBQVMsRUFBRSxTQUFTLEVBQUUsaUJBQWlCLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDL0csT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLDhCQUE4QixDQUFD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