@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,36 +1,36 @@
|
|
|
1
|
-
import { Component, Input, ViewEncapsulation } from "@angular/core";
|
|
2
|
-
export class AgendaHourCellComponent {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.onlyLabels = false;
|
|
5
|
-
this.noLabels = false;
|
|
6
|
-
}
|
|
7
|
-
set date(value) {
|
|
8
|
-
this._date = value;
|
|
9
|
-
this._setNextHalfHour();
|
|
10
|
-
}
|
|
11
|
-
get date() {
|
|
12
|
-
return this._date;
|
|
13
|
-
}
|
|
14
|
-
_setNextHalfHour() {
|
|
15
|
-
this.datePlushalfHour = new Date(this._date);
|
|
16
|
-
this.datePlushalfHour.setMinutes(this.datePlushalfHour.getMinutes() + 30);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
AgendaHourCellComponent.decorators = [
|
|
20
|
-
{ type: Component, args: [{
|
|
21
|
-
selector: "agenda-hour-cell",
|
|
22
|
-
template: `
|
|
23
|
-
<div class="row-per-half-hour">
|
|
24
|
-
<agenda-half-hour-cell [date]="date" [showLabel]="onlyLabels && !noLabels"></agenda-half-hour-cell>
|
|
25
|
-
<agenda-half-hour-cell [date]="datePlushalfHour"></agenda-half-hour-cell>
|
|
26
|
-
</div>
|
|
27
|
-
`,
|
|
28
|
-
encapsulation: ViewEncapsulation.None
|
|
29
|
-
},] }
|
|
30
|
-
];
|
|
31
|
-
AgendaHourCellComponent.propDecorators = {
|
|
32
|
-
onlyLabels: [{ type: Input }],
|
|
33
|
-
noLabels: [{ type: Input }],
|
|
34
|
-
date: [{ type: Input }]
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input, ViewEncapsulation } from "@angular/core";
|
|
2
|
+
export class AgendaHourCellComponent {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.onlyLabels = false;
|
|
5
|
+
this.noLabels = false;
|
|
6
|
+
}
|
|
7
|
+
set date(value) {
|
|
8
|
+
this._date = value;
|
|
9
|
+
this._setNextHalfHour();
|
|
10
|
+
}
|
|
11
|
+
get date() {
|
|
12
|
+
return this._date;
|
|
13
|
+
}
|
|
14
|
+
_setNextHalfHour() {
|
|
15
|
+
this.datePlushalfHour = new Date(this._date);
|
|
16
|
+
this.datePlushalfHour.setMinutes(this.datePlushalfHour.getMinutes() + 30);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
AgendaHourCellComponent.decorators = [
|
|
20
|
+
{ type: Component, args: [{
|
|
21
|
+
selector: "agenda-hour-cell",
|
|
22
|
+
template: `
|
|
23
|
+
<div class="row-per-half-hour">
|
|
24
|
+
<agenda-half-hour-cell [date]="date" [showLabel]="onlyLabels && !noLabels"></agenda-half-hour-cell>
|
|
25
|
+
<agenda-half-hour-cell [date]="datePlushalfHour"></agenda-half-hour-cell>
|
|
26
|
+
</div>
|
|
27
|
+
`,
|
|
28
|
+
encapsulation: ViewEncapsulation.None
|
|
29
|
+
},] }
|
|
30
|
+
];
|
|
31
|
+
AgendaHourCellComponent.propDecorators = {
|
|
32
|
+
onlyLabels: [{ type: Input }],
|
|
33
|
+
noLabels: [{ type: Input }],
|
|
34
|
+
date: [{ type: Input }]
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdlbmRhLWhvdXItY2VsbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaGFyZWRjb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9kYXRlLXBsYW5uaW5nL2NvbXBvbmVudC9hZ2VuZGEvYWdlbm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U7XHJcblxyXG4gICAgcHJpdmF0ZSBfZGF0ZTogRGF0ZTtcclxuXHJcbiAgICBwcml2YXRlIF9zZXROZXh0SGFsZkhvdXIoKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy5kYXRlUGx1c2hhbGZIb3VyID0gbmV3IERhdGUodGhpcy5fZGF0ZSk7XHJcbiAgICAgICAgdGhpcy5kYXRlUGx1c2hhbGZIb3VyLnNldE1pbnV0ZXModGhpcy5kYXRlUGx1c2hhbGZIb3VyLmdldE1pbnV0ZXMoKSArIDMwKTtcclxuICAgIH1cclxufVxyXG4iXX0=
|
package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { Component, Input, ViewEncapsulation } from "@angular/core";
|
|
2
|
-
export class AgendaHourViewLabelsComponent {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.noLabels = false;
|
|
5
|
-
this.datesByTheHour = [];
|
|
6
|
-
this._date = new Date();
|
|
7
|
-
}
|
|
8
|
-
set date(value) {
|
|
9
|
-
this._date = new Date(value);
|
|
10
|
-
this._date.setDate(1);
|
|
11
|
-
this._date.setMonth(1);
|
|
12
|
-
this._date.setFullYear(1);
|
|
13
|
-
this._prepareViewData();
|
|
14
|
-
}
|
|
15
|
-
get date() {
|
|
16
|
-
return this._date;
|
|
17
|
-
}
|
|
18
|
-
// fixme remove ctrl + c, ctrl + v code duplication with AgendaHourViewComponent._prepareViewData()
|
|
19
|
-
_prepareViewData() {
|
|
20
|
-
this.datesByTheHour.length = 0;
|
|
21
|
-
if (this.date) {
|
|
22
|
-
let newDate = new Date(this.date);
|
|
23
|
-
newDate.setHours(0, 0, 0, 0);
|
|
24
|
-
this.datesByTheHour.push(newDate);
|
|
25
|
-
for (let i = 0; i < 23; i++) {
|
|
26
|
-
newDate = new Date(newDate);
|
|
27
|
-
newDate.setHours(newDate.getHours() + 1);
|
|
28
|
-
this.datesByTheHour.push(newDate);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
AgendaHourViewLabelsComponent.decorators = [
|
|
34
|
-
{ type: Component, args: [{
|
|
35
|
-
selector: "agenda-hour-view-labels",
|
|
36
|
-
template: `
|
|
37
|
-
<div class="row-per-hour" *ngFor="let dateByTheHour of datesByTheHour">
|
|
38
|
-
<div>
|
|
39
|
-
<agenda-hour-cell [date]="dateByTheHour" onlyLabels [noLabels]="noLabels"></agenda-hour-cell>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
`,
|
|
43
|
-
encapsulation: ViewEncapsulation.None
|
|
44
|
-
},] }
|
|
45
|
-
];
|
|
46
|
-
AgendaHourViewLabelsComponent.propDecorators = {
|
|
47
|
-
date: [{ type: Input }],
|
|
48
|
-
noLabels: [{ type: Input }]
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input, ViewEncapsulation } from "@angular/core";
|
|
2
|
+
export class AgendaHourViewLabelsComponent {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.noLabels = false;
|
|
5
|
+
this.datesByTheHour = [];
|
|
6
|
+
this._date = new Date();
|
|
7
|
+
}
|
|
8
|
+
set date(value) {
|
|
9
|
+
this._date = new Date(value);
|
|
10
|
+
this._date.setDate(1);
|
|
11
|
+
this._date.setMonth(1);
|
|
12
|
+
this._date.setFullYear(1);
|
|
13
|
+
this._prepareViewData();
|
|
14
|
+
}
|
|
15
|
+
get date() {
|
|
16
|
+
return this._date;
|
|
17
|
+
}
|
|
18
|
+
// fixme remove ctrl + c, ctrl + v code duplication with AgendaHourViewComponent._prepareViewData()
|
|
19
|
+
_prepareViewData() {
|
|
20
|
+
this.datesByTheHour.length = 0;
|
|
21
|
+
if (this.date) {
|
|
22
|
+
let newDate = new Date(this.date);
|
|
23
|
+
newDate.setHours(0, 0, 0, 0);
|
|
24
|
+
this.datesByTheHour.push(newDate);
|
|
25
|
+
for (let i = 0; i < 23; i++) {
|
|
26
|
+
newDate = new Date(newDate);
|
|
27
|
+
newDate.setHours(newDate.getHours() + 1);
|
|
28
|
+
this.datesByTheHour.push(newDate);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
AgendaHourViewLabelsComponent.decorators = [
|
|
34
|
+
{ type: Component, args: [{
|
|
35
|
+
selector: "agenda-hour-view-labels",
|
|
36
|
+
template: `
|
|
37
|
+
<div class="row-per-hour" *ngFor="let dateByTheHour of datesByTheHour">
|
|
38
|
+
<div>
|
|
39
|
+
<agenda-hour-cell [date]="dateByTheHour" onlyLabels [noLabels]="noLabels"></agenda-hour-cell>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
`,
|
|
43
|
+
encapsulation: ViewEncapsulation.None
|
|
44
|
+
},] }
|
|
45
|
+
];
|
|
46
|
+
AgendaHourViewLabelsComponent.propDecorators = {
|
|
47
|
+
date: [{ type: Input }],
|
|
48
|
+
noLabels: [{ type: Input }]
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdlbmRhLWhvdXItdmlldy1sYWJlbHMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2hhcmVkY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvZGF0ZS1wbGFubmluZy9jb21wb25lbnQvYWdlbmRhL2FnZW5kYS1ob3VyLXZpZXctbGFiZWxzLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBRSxpQkFBaUIsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQWFsRSxNQUFNLE9BQU8sNkJBQTZCO0lBWDFDO1FBdUJXLGFBQ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aXMuZGF0ZSk7XHJcbiAgICAgICAgICAgIG5ld0RhdGUuc2V0SG91cnMoMCwgMCwgMCwgMCk7XHJcbiAgICAgICAgICAgIHRoaXMuZGF0ZXNCeVRoZUhvdXIucHVzaChuZXdEYXRlKTtcclxuICAgICAgICAgICAgZm9yIChsZXQgaTogbnVtYmVyID0gMDsgaSA8IDIzOyBpKyspIHtcclxuICAgICAgICAgICAgICAgIG5ld0RhdGUgPSBuZXcgRGF0ZShuZXdEYXRlKTtcclxuICAgICAgICAgICAgICAgIG5ld0RhdGUuc2V0SG91cnMobmV3RGF0ZS5nZXRIb3VycygpICsgMSk7XHJcbiAgICAgICAgICAgICAgICB0aGlzLmRhdGVzQnlUaGVIb3VyLnB1c2gobmV3RGF0ZSk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICB9XHJcbn1cclxuIl19
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { Component, Input, ViewEncapsulation } from "@angular/core";
|
|
2
|
-
export class AgendaHourViewComponent {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.datesByTheHour = [];
|
|
5
|
-
this._date = new Date();
|
|
6
|
-
}
|
|
7
|
-
set date(value) {
|
|
8
|
-
this._date = new Date(value);
|
|
9
|
-
this._prepareViewData();
|
|
10
|
-
}
|
|
11
|
-
get date() {
|
|
12
|
-
return this._date;
|
|
13
|
-
}
|
|
14
|
-
// fixme remove ctrl + c, ctrl + v code duplication with AgendaHourViewLabelsComponent._prepareViewData()
|
|
15
|
-
_prepareViewData() {
|
|
16
|
-
this.datesByTheHour.length = 0;
|
|
17
|
-
if (this.date) {
|
|
18
|
-
let newDate = new Date(this.date);
|
|
19
|
-
newDate.setHours(0, 0, 0, 0);
|
|
20
|
-
this.datesByTheHour.push(newDate);
|
|
21
|
-
for (let i = 0; i < 23; i++) {
|
|
22
|
-
newDate = new Date(newDate);
|
|
23
|
-
newDate.setHours(newDate.getHours() + 1);
|
|
24
|
-
this.datesByTheHour.push(newDate);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
AgendaHourViewComponent.decorators = [
|
|
30
|
-
{ type: Component, args: [{
|
|
31
|
-
selector: "agenda-hour-view",
|
|
32
|
-
template: `
|
|
33
|
-
<div class="row-per-hour" *ngFor="let dateByTheHour of datesByTheHour">
|
|
34
|
-
<div fxLayout="row">
|
|
35
|
-
<agenda-hour-cell [date]="dateByTheHour"></agenda-hour-cell>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
<ng-content></ng-content>
|
|
39
|
-
`,
|
|
40
|
-
encapsulation: ViewEncapsulation.None
|
|
41
|
-
},] }
|
|
42
|
-
];
|
|
43
|
-
AgendaHourViewComponent.propDecorators = {
|
|
44
|
-
date: [{ type: Input }]
|
|
45
|
-
};
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input, ViewEncapsulation } from "@angular/core";
|
|
2
|
+
export class AgendaHourViewComponent {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.datesByTheHour = [];
|
|
5
|
+
this._date = new Date();
|
|
6
|
+
}
|
|
7
|
+
set date(value) {
|
|
8
|
+
this._date = new Date(value);
|
|
9
|
+
this._prepareViewData();
|
|
10
|
+
}
|
|
11
|
+
get date() {
|
|
12
|
+
return this._date;
|
|
13
|
+
}
|
|
14
|
+
// fixme remove ctrl + c, ctrl + v code duplication with AgendaHourViewLabelsComponent._prepareViewData()
|
|
15
|
+
_prepareViewData() {
|
|
16
|
+
this.datesByTheHour.length = 0;
|
|
17
|
+
if (this.date) {
|
|
18
|
+
let newDate = new Date(this.date);
|
|
19
|
+
newDate.setHours(0, 0, 0, 0);
|
|
20
|
+
this.datesByTheHour.push(newDate);
|
|
21
|
+
for (let i = 0; i < 23; i++) {
|
|
22
|
+
newDate = new Date(newDate);
|
|
23
|
+
newDate.setHours(newDate.getHours() + 1);
|
|
24
|
+
this.datesByTheHour.push(newDate);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
AgendaHourViewComponent.decorators = [
|
|
30
|
+
{ type: Component, args: [{
|
|
31
|
+
selector: "agenda-hour-view",
|
|
32
|
+
template: `
|
|
33
|
+
<div class="row-per-hour" *ngFor="let dateByTheHour of datesByTheHour">
|
|
34
|
+
<div fxLayout="row">
|
|
35
|
+
<agenda-hour-cell [date]="dateByTheHour"></agenda-hour-cell>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
<ng-content></ng-content>
|
|
39
|
+
`,
|
|
40
|
+
encapsulation: ViewEncapsulation.None
|
|
41
|
+
},] }
|
|
42
|
+
];
|
|
43
|
+
AgendaHourViewComponent.propDecorators = {
|
|
44
|
+
date: [{ type: Input }]
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdlbmRhLWhvdXItdmlldy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaGFyZWRjb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9kYXRlLXBsYW5uaW5nL2NvbXBvbmVudC9hZ2VuZGEvYWdlbmRhLWhvdXItdmlldy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUUsaUJBQWlCLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFjbEUsTUFBTSxPQUFPLHVCQUF1QjtJQVpwQztRQW9Cb0IsbUJBQWMsR0FBVyxFQUFFLENBQUM7UUFNcEMsVUFBSyxHQUFTLElBQUksSUFBSSxFQUFFLENBQUM7SUFpQnJDLENBQUM7SUE3QkcsSUFDVyxJQUFJLENBQUMsS0FBVztRQUN2QixJQUFJLENBQUMsS0FBSyxHQU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yXG4gICAgfVxyXG5cclxuICAgIHByaXZhdGUgX2RhdGU6IERhdGUgPSBuZXcgRGF0ZSgpO1xyXG5cclxuICAgIC8vIGZpeG1lIHJlbW92ZSBjdHJsICsgYywgY3RybCArIHYgY29kZSBkdXBsaWNhdGlvbiB3aXRoIEFnZW5kYUhvdXJWaWV3TGFiZWxzQ29tcG9uZW50Ll9wcmVwYXJlVmlld0RhdGEoKVxyXG4gICAgcHJpdmF0ZSBfcHJlcGFyZVZpZXdEYXRhKCk6IHZvaWQge1xyXG4gICAgICAgIHRoaXMuZGF0ZXNCeVRoZUhvdXIubGVuZ3RoID0gMDtcclxuICAgICAgICBpZiAodGhpcy5kYXRlKSB7XHJcbiAgICAgICAgICAgIGxldCBuZXdEYXRlOiBEYXRlID0gbmV3IERhdGUodGhpcy5kYXRlKTtcclxuICAgICAgICAgICAgbmV3RGF0ZS5zZXRIb3VycygwLCAwLCAwLCAwKTtcclxuICAgICAgICAgICAgdGhpcy5kYXRlc0J5VGhlSG91ci5wdXNoKG5ld0RhdGUpO1xyXG4gICAgICAgICAgICBmb3IgKGxldCBpOiBudW1iZXIgPSAwOyBpIDwgMjM7IGkrKykge1xyXG4gICAgICAgICAgICAgICAgbmV3RGF0ZSA9IG5ldyBEYXRlKG5ld0RhdGUpO1xyXG4gICAgICAgICAgICAgICAgbmV3RGF0ZS5zZXRIb3VycyhuZXdEYXRlLmdldEhvdXJzKCkgKyAxKTtcclxuICAgICAgICAgICAgICAgIHRoaXMuZGF0ZXNCeVRoZUhvdXIucHVzaChuZXdEYXRlKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbn1cclxuIl19
|
package/esm2015/lib/components/date-planning/component/agenda/agenda-month-view.component.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { Component, ViewEncapsulation } from "@angular/core";
|
|
2
|
-
import { AgendaBaseViewComponent } from "./agenda-base-view.component";
|
|
3
|
-
import { NULL_MONTH } from "../../../../model/agenda-null-objects";
|
|
4
|
-
import { Month } from "../../../../model/month.model";
|
|
5
|
-
import { DateUtils } from "../../../../utils/date-utils";
|
|
6
|
-
import { CalendarUtils } from "../../../../utils/calendar.utils";
|
|
7
|
-
export class AgendaMonthViewComponent extends AgendaBaseViewComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.month = NULL_MONTH;
|
|
11
|
-
this.firstWeekDays = [];
|
|
12
|
-
this.weeks = [];
|
|
13
|
-
}
|
|
14
|
-
prepareViewData() {
|
|
15
|
-
const month = new Month();
|
|
16
|
-
if (this.selectedDate) {
|
|
17
|
-
const day = DateUtils.GetFirstDayOfMonth(this.selectedDate);
|
|
18
|
-
const endOfMonth = DateUtils.GetLastDayOfMonth(this.selectedDate);
|
|
19
|
-
let oneMoreIteration = false;
|
|
20
|
-
let continueLoop = true;
|
|
21
|
-
while (continueLoop) {
|
|
22
|
-
if (oneMoreIteration) {
|
|
23
|
-
continueLoop = false;
|
|
24
|
-
}
|
|
25
|
-
const week = CalendarUtils.GetDaysOfWeek(day);
|
|
26
|
-
const len = week.weekDays.length;
|
|
27
|
-
for (let i = 0; i < len; i++) {
|
|
28
|
-
week.weekDays[i].events = this.getEventsFromDate(week.weekDays[i].date);
|
|
29
|
-
week.weekDays[i].inView = week.weekDays[i].date.getMonth() === this.selectedDate.getMonth();
|
|
30
|
-
}
|
|
31
|
-
month.weeks.push(week);
|
|
32
|
-
day.setDate(day.getDate() + 7);
|
|
33
|
-
if (day.getTime() >= endOfMonth.getTime()) {
|
|
34
|
-
oneMoreIteration = true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
this.month = month;
|
|
38
|
-
this.firstWeekDays = this.month.firstWeek.weekDays;
|
|
39
|
-
this.weeks = month.weeks;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
AgendaMonthViewComponent.decorators = [
|
|
44
|
-
{ type: Component, args: [{
|
|
45
|
-
selector: "agenda-month-view",
|
|
46
|
-
template: `
|
|
47
|
-
<div class="view-wrapper">
|
|
48
|
-
<div class="hour-view-labels-wrapper"></div>
|
|
49
|
-
<div class="weeks">
|
|
50
|
-
<div class="week" *ngFor="let week of weeks" fxLayout="row">
|
|
51
|
-
<div class="week-day" *ngFor="let weekDay of week.weekDays" [class.not-in-month]="!weekDay.inView">
|
|
52
|
-
<div class="day" [textContent]="weekDay.weekdayDay"></div>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
`,
|
|
58
|
-
encapsulation: ViewEncapsulation.None
|
|
59
|
-
},] }
|
|
60
|
-
];
|
|
61
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, ViewEncapsulation } from "@angular/core";
|
|
2
|
+
import { AgendaBaseViewComponent } from "./agenda-base-view.component";
|
|
3
|
+
import { NULL_MONTH } from "../../../../model/agenda-null-objects";
|
|
4
|
+
import { Month } from "../../../../model/month.model";
|
|
5
|
+
import { DateUtils } from "../../../../utils/date-utils";
|
|
6
|
+
import { CalendarUtils } from "../../../../utils/calendar.utils";
|
|
7
|
+
export class AgendaMonthViewComponent extends AgendaBaseViewComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.month = NULL_MONTH;
|
|
11
|
+
this.firstWeekDays = [];
|
|
12
|
+
this.weeks = [];
|
|
13
|
+
}
|
|
14
|
+
prepareViewData() {
|
|
15
|
+
const month = new Month();
|
|
16
|
+
if (this.selectedDate) {
|
|
17
|
+
const day = DateUtils.GetFirstDayOfMonth(this.selectedDate);
|
|
18
|
+
const endOfMonth = DateUtils.GetLastDayOfMonth(this.selectedDate);
|
|
19
|
+
let oneMoreIteration = false;
|
|
20
|
+
let continueLoop = true;
|
|
21
|
+
while (continueLoop) {
|
|
22
|
+
if (oneMoreIteration) {
|
|
23
|
+
continueLoop = false;
|
|
24
|
+
}
|
|
25
|
+
const week = CalendarUtils.GetDaysOfWeek(day);
|
|
26
|
+
const len = week.weekDays.length;
|
|
27
|
+
for (let i = 0; i < len; i++) {
|
|
28
|
+
week.weekDays[i].events = this.getEventsFromDate(week.weekDays[i].date);
|
|
29
|
+
week.weekDays[i].inView = week.weekDays[i].date.getMonth() === this.selectedDate.getMonth();
|
|
30
|
+
}
|
|
31
|
+
month.weeks.push(week);
|
|
32
|
+
day.setDate(day.getDate() + 7);
|
|
33
|
+
if (day.getTime() >= endOfMonth.getTime()) {
|
|
34
|
+
oneMoreIteration = true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
this.month = month;
|
|
38
|
+
this.firstWeekDays = this.month.firstWeek.weekDays;
|
|
39
|
+
this.weeks = month.weeks;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
AgendaMonthViewComponent.decorators = [
|
|
44
|
+
{ type: Component, args: [{
|
|
45
|
+
selector: "agenda-month-view",
|
|
46
|
+
template: `
|
|
47
|
+
<div class="view-wrapper">
|
|
48
|
+
<div class="hour-view-labels-wrapper"></div>
|
|
49
|
+
<div class="weeks">
|
|
50
|
+
<div class="week" *ngFor="let week of weeks" fxLayout="row">
|
|
51
|
+
<div class="week-day" *ngFor="let weekDay of week.weekDays" [class.not-in-month]="!weekDay.inView">
|
|
52
|
+
<div class="day" [textContent]="weekDay.weekdayDay"></div>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
`,
|
|
58
|
+
encapsulation: ViewEncapsulation.None
|
|
59
|
+
},] }
|
|
60
|
+
];
|
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdlbmRhLW1vbnRoLXZpZXcuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2hhcmVkY29tc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0V2Vla0RheXM6IFdlZWtkYXlbXSA9IFtdO1xyXG5cclxuICAgIHB1YmxpYyB3ZWVrczogV2Vla1tdID0gW107XHJcblxyXG4gICAgcHJvdGVjdGVkIHByZXBhcmVWaWV3RGF0YSgpOiB2b2lkIHtcclxuICAgICAgICBjb25zdCBtb250aDogTW9udGggPSBuZXcgTW9udGgoKTtcclxuICAgICAgICBpZiAodGhpcy5zZWxlY3RlZERhdGUpIHtcclxuICAgICAgICAgICAgY29uc3QgZGF5OiBEYXRlID0gRGF0ZVV0aWxzLkdldEZpcnN0RGF5T2ZNb250aCh0aGlzLnNlbGVjdGVkRGF0ZSk7XHJcbiAgICAgICAgICAgIGNvbnN0IGVuZE9mTW9udGg6IERhdGUgPSBEYXRlVXRpbHMuR2V0TGFzdERheU9mTW9udGgodGhpcy5zZWxlY3RlZERhdGUpO1xyXG4gICAgICAgICAgICBsZXQgb25lTW9yZUl0ZXJhdGlvbjogYm9vbGVhbiA9IGZhbHNlO1xyXG4gICAgICAgICAgICBsZXQgY29udGludWVMb29wOiBib29sZWFuID0gdHJ1ZTtcclxuXHJcbiAgICAgICAgICAgIHdoaWxlIChjb250aW51ZUxvb3ApIHtcclxuICAgICAgICAgICAgICAgIGlmIChvbmVNb3JlSXRlcmF0aW9uKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgY29udGludWVMb29wID0gZmFsc2U7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICBjb25zdCB3ZWVrOiBXZWVrID0gQ2FsZW5kYXJVdGlscy5HZXREYXlzT2ZXZWVrKGRheSk7XHJcbiAgICAgICAgICAgICAgICBjb25zdCBsZW46IG51bWJlciA9IHdlZWsud2Vla0RheXMubGVuZ3RoO1xyXG4gICAgICAgICAgICAgICAgZm9yIChsZXQgaTogbnVtYmVyID0gMDsgaSA8IGxlbjsgaSsrKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgd2Vlay53ZWVrRGF5c1tpXS5ldmVudHMgPSB0aGlzLmdldEV2ZW50c0Zyb21EYXRlKHdlZWsud2Vla0RheXNbaV0uZGF0ZSk7XHJcbiAgICAgICAgICAgICAgICAgICAgd2Vlay53ZWVrRGF5c1tpXS5pblZpZXcgPSB3ZWVrLndlZWtEYXlzW2ldLmRhdGUuZ2V0TW9udGgoKSA9PT0gdGhpcy5zZWxlY3RlZERhdGUuZ2V0TW9udGgoKTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIG1vbnRoLndlZWtzLnB1c2god2Vlayk7XHJcbiAgICAgICAgICAgICAgICBkYXkuc2V0RGF0ZShkYXkuZ2V0RGF0ZSgpICsgNyk7XHJcbiAgICAgICAgICAgICAgICBpZiAoZGF5LmdldFRpbWUoKSA+PSBlbmRPZk1vbnRoLmdldFRpbWUoKSkge1xyXG4gICAgICAgICAgICAgICAgICAgIG9uZU1vcmVJdGVyYXRpb24gPSB0cnVlO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIHRoaXMubW9udGggPSBtb250aDtcclxuICAgICAgICAgICAgdGhpcy5maXJzdFdlZWtEYXlzID0gdGhpcy5tb250aC5maXJzdFdlZWsud2Vla0RheXM7XHJcbiAgICAgICAgICAgIHRoaXMud2Vla3MgPSBtb250aC53ZWVrcztcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG59XHJcbiJdfQ==
|
package/esm2015/lib/components/date-planning/component/agenda/agenda-select-event.component.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } 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 AgendaSelectEventComponent {
|
|
6
|
-
constructor(iconCacheService) {
|
|
7
|
-
this.iconCacheService = iconCacheService;
|
|
8
|
-
this.icons = Icon;
|
|
9
|
-
this.event = NULL_AGENDA_EVENT;
|
|
10
|
-
this.eventChecked = new EventEmitter();
|
|
11
|
-
}
|
|
12
|
-
checkEvent(event) {
|
|
13
|
-
this.event.checked = !this.event.checked;
|
|
14
|
-
this.eventChecked.emit(this.event);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
AgendaSelectEventComponent.decorators = [
|
|
18
|
-
{ type: Component, args: [{
|
|
19
|
-
selector: "agenda-select-event",
|
|
20
|
-
template: `
|
|
21
|
-
<div class="week-select-item" (click)="checkEvent($event)">
|
|
22
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" class="select-icon action-color" *ngIf="!event.checked"></co-icon>
|
|
23
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" class="select-icon action-color" *ngIf="event.checked"></co-icon>
|
|
24
|
-
<div class="moment-name">
|
|
25
|
-
<small>{{ event.date | date: 'EEEE d MMMM' | uppercase }}</small>
|
|
26
|
-
<h2>{{ event.description }}</h2>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
`
|
|
30
|
-
},] }
|
|
31
|
-
];
|
|
32
|
-
AgendaSelectEventComponent.ctorParameters = () => [
|
|
33
|
-
{ type: IconCacheService }
|
|
34
|
-
];
|
|
35
|
-
AgendaSelectEventComponent.propDecorators = {
|
|
36
|
-
event: [{ type: Input }],
|
|
37
|
-
eventChecked: [{ type: Output }]
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, EventEmitter, Input, Output } 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 AgendaSelectEventComponent {
|
|
6
|
+
constructor(iconCacheService) {
|
|
7
|
+
this.iconCacheService = iconCacheService;
|
|
8
|
+
this.icons = Icon;
|
|
9
|
+
this.event = NULL_AGENDA_EVENT;
|
|
10
|
+
this.eventChecked = new EventEmitter();
|
|
11
|
+
}
|
|
12
|
+
checkEvent(event) {
|
|
13
|
+
this.event.checked = !this.event.checked;
|
|
14
|
+
this.eventChecked.emit(this.event);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
AgendaSelectEventComponent.decorators = [
|
|
18
|
+
{ type: Component, args: [{
|
|
19
|
+
selector: "agenda-select-event",
|
|
20
|
+
template: `
|
|
21
|
+
<div class="week-select-item" (click)="checkEvent($event)">
|
|
22
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" class="select-icon action-color" *ngIf="!event.checked"></co-icon>
|
|
23
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" class="select-icon action-color" *ngIf="event.checked"></co-icon>
|
|
24
|
+
<div class="moment-name">
|
|
25
|
+
<small>{{ event.date | date: 'EEEE d MMMM' | uppercase }}</small>
|
|
26
|
+
<h2>{{ event.description }}</h2>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
`
|
|
30
|
+
},] }
|
|
31
|
+
];
|
|
32
|
+
AgendaSelectEventComponent.ctorParameters = () => [
|
|
33
|
+
{ type: IconCacheService }
|
|
34
|
+
];
|
|
35
|
+
AgendaSelectEventComponent.propDecorators = {
|
|
36
|
+
event: [{ type: Input }],
|
|
37
|
+
eventChecked: [{ type: Output }]
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdlbmRhLXNlbGVjdC1ldmVudC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaGFyZWRjb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9kYXRlLXBsYW5uaW5nL2NvbXBvbmVudC9hZ2V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