barsa-calendar 1.0.351 → 1.0.353
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.
|
@@ -47,10 +47,10 @@ export class EventButtonComponent extends BaseComponent {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
EventButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: EventButtonComponent, deps: [{ token: i0.ElementRef }, { token: i1.DialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
50
|
-
EventButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: EventButtonComponent, selector: "bc-event-button", inputs: { buttonTemplate: "buttonTemplate", calendarFields: "calendarFields", task: "task", rtl: "rtl", canDelete: "canDelete", canEdit: "canEdit", index: "index", deviceSize: "deviceSize" }, outputs: { deleteEvent: "deleteEvent", editEvent: "editEvent", openPopoverChange: "openPopoverChange" }, host: { properties: { "style.opacity": "this.opacity", "attr.rtl": "this._rtl" } }, viewQueries: [{ propertyName: "defaultButtonTemplate", first: true, predicate: ["defaultButton"], descendants: true, static: true }, { propertyName: "popoverComponent", first: true, predicate: PopoverComponent, descendants: true, static: true }, { propertyName: "_dialogTemplate", first: true, predicate: ["dialogTemplate"], descendants: true, static: true }, { propertyName: "btnFocus", first: true, predicate: ["btnFocus"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<button
|
|
50
|
+
EventButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: EventButtonComponent, selector: "bc-event-button", inputs: { buttonTemplate: "buttonTemplate", calendarFields: "calendarFields", task: "task", rtl: "rtl", canDelete: "canDelete", canEdit: "canEdit", index: "index", deviceSize: "deviceSize" }, outputs: { deleteEvent: "deleteEvent", editEvent: "editEvent", openPopoverChange: "openPopoverChange" }, host: { properties: { "style.opacity": "this.opacity", "attr.rtl": "this._rtl" } }, viewQueries: [{ propertyName: "defaultButtonTemplate", first: true, predicate: ["defaultButton"], descendants: true, static: true }, { propertyName: "popoverComponent", first: true, predicate: PopoverComponent, descendants: true, static: true }, { propertyName: "_dialogTemplate", first: true, predicate: ["dialogTemplate"], descendants: true, static: true }, { propertyName: "btnFocus", first: true, predicate: ["btnFocus"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<button\n #btnFocus\n [attr.id]=\"task.id\"\n style=\"width: 0; height: 0; visibility: hidden; max-height: 1px; min-height: 1px\"\n></button>\n<span [ngClass]=\"{ 'end-day': rtl, 'start-day': !rtl }\" *ngIf=\"!task.startdayIsInRow\"></span>\n<ng-container\n *ngTemplateOutlet=\"\n buttonTemplate;\n context: {\n $implicit: task,\n calendarFields: calendarFields,\n popover: popover,\n onButtonClick: onButtonClick.bind(this)\n }\n \"\n></ng-container>\n<span [ngClass]=\"{ 'start-day': rtl, 'end-day': !rtl }\" *ngIf=\"!task.enddayIsInRow\"></span>\n\n<fd-popover\n #popover\n placement=\"bottom\"\n [mobile]=\"deviceSize === 's'\"\n [focusTrapped]=\"true\"\n [focusAutoCapture]=\"true\"\n [mobile]=\"deviceSize === 's'\"\n [title]=\"task.event[calendarFields.Title]\"\n (isOpenChange)=\"onPopOverOpenChange($event)\"\n>\n <fd-popover-control></fd-popover-control>\n <fd-popover-body>\n <bc-event-preview\n [event]=\"task.event\"\n [calendarFields]=\"calendarFields\"\n [popover]=\"popover\"\n [canDelete]=\"canDelete\"\n [deviceSize]=\"deviceSize\"\n [canEdit]=\"canEdit\"\n (deleteEvent)=\"deleteEvent.emit($event)\"\n (editEvent)=\"editEvent.emit($event)\"\n ></bc-event-preview>\n </fd-popover-body>\n</fd-popover>\n\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #dialogTemplate>\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\n <fd-dialog-body>\n <bc-event-preview\n [event]=\"task.event\"\n [calendarFields]=\"calendarFields\"\n [canDelete]=\"canDelete\"\n [deviceSize]=\"deviceSize\"\n [canEdit]=\"canEdit\"\n (deleteEvent)=\"deleteEvent.emit($event)\"\n (editEvent)=\"editEvent.emit($event)\"\n (close)=\"dialog.dismiss()\"\n ></bc-event-preview>\n </fd-dialog-body>\n </fd-dialog>\n</ng-template>\n<ng-template\n #defaultButton\n let-task\n let-popover=\"popover\"\n let-calendarFields=\"calendarFields\"\n let-onButtonClick=\"onButtonClick\"\n>\n <button\n fd-button\n [compact]=\"true\"\n (click)=\"onButtonClick(popover)\"\n [fdType]=\"task.inDay ? 'standard' : 'emphasized'\"\n [label]=\"task | eventTime: calendarFields\"\n [style.background-color]=\"task.event[calendarFields.Color]\"\n class=\"task-title\"\n ></button>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:row;align-items:stretch;justify-content:stretch;width:100%;height:100%;padding-top:1px}:host[rtl=true]{padding-right:3px}:host[rtl=false]{padding-left:3px}.task-title{justify-content:start!important;font-weight:400}button{flex-grow:1;border-radius:0!important;height:100%;max-height:100%;min-height:100%;border:none}.start-day{width:0;height:0;border-top:10px solid transparent;border-right:10px solid var(--sapButton_Emphasized_Background, #0a6ed1);border-bottom:10px solid transparent;height:100%}.end-day{width:0;height:0;border-top:10px solid transparent;border-left:10px solid var(--sapButton_Emphasized_Background, #0a6ed1);border-bottom:10px solid transparent;height:100%}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.MobileDirective, selector: "[mobile]" }, { kind: "component", type: i4.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "directive", type: i4.DeprecatedButtonContentDensityDirective, selector: "[fd-button][compact]" }, { kind: "component", type: i5.DialogComponent, selector: "fd-dialog", inputs: ["class", "dialogRef", "dialogConfig"] }, { kind: "component", type: i5.DialogBodyComponent, selector: "fd-dialog-body" }, { kind: "component", type: i6.PopoverControlComponent, selector: "fd-popover-control" }, { kind: "component", type: i6.PopoverBodyComponent, selector: "fd-popover-body" }, { kind: "component", type: i6.PopoverComponent, selector: "fd-popover", inputs: ["title", "trigger", "fixedPosition", "id", "mobile", "mobileConfig"] }, { kind: "component", type: i7.EventPreviewComponent, selector: "bc-event-preview", inputs: ["event", "calendarFields", "popover", "popover2", "canEdit", "canDelete", "inDialog", "deviceSize"], outputs: ["deleteEvent", "editEvent", "close"] }, { kind: "pipe", type: i8.EventTimePipe, name: "eventTime" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
51
51
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: EventButtonComponent, decorators: [{
|
|
52
52
|
type: Component,
|
|
53
|
-
args: [{ selector: 'bc-event-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button
|
|
53
|
+
args: [{ selector: 'bc-event-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n #btnFocus\n [attr.id]=\"task.id\"\n style=\"width: 0; height: 0; visibility: hidden; max-height: 1px; min-height: 1px\"\n></button>\n<span [ngClass]=\"{ 'end-day': rtl, 'start-day': !rtl }\" *ngIf=\"!task.startdayIsInRow\"></span>\n<ng-container\n *ngTemplateOutlet=\"\n buttonTemplate;\n context: {\n $implicit: task,\n calendarFields: calendarFields,\n popover: popover,\n onButtonClick: onButtonClick.bind(this)\n }\n \"\n></ng-container>\n<span [ngClass]=\"{ 'start-day': rtl, 'end-day': !rtl }\" *ngIf=\"!task.enddayIsInRow\"></span>\n\n<fd-popover\n #popover\n placement=\"bottom\"\n [mobile]=\"deviceSize === 's'\"\n [focusTrapped]=\"true\"\n [focusAutoCapture]=\"true\"\n [mobile]=\"deviceSize === 's'\"\n [title]=\"task.event[calendarFields.Title]\"\n (isOpenChange)=\"onPopOverOpenChange($event)\"\n>\n <fd-popover-control></fd-popover-control>\n <fd-popover-body>\n <bc-event-preview\n [event]=\"task.event\"\n [calendarFields]=\"calendarFields\"\n [popover]=\"popover\"\n [canDelete]=\"canDelete\"\n [deviceSize]=\"deviceSize\"\n [canEdit]=\"canEdit\"\n (deleteEvent)=\"deleteEvent.emit($event)\"\n (editEvent)=\"editEvent.emit($event)\"\n ></bc-event-preview>\n </fd-popover-body>\n</fd-popover>\n\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #dialogTemplate>\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\n <fd-dialog-body>\n <bc-event-preview\n [event]=\"task.event\"\n [calendarFields]=\"calendarFields\"\n [canDelete]=\"canDelete\"\n [deviceSize]=\"deviceSize\"\n [canEdit]=\"canEdit\"\n (deleteEvent)=\"deleteEvent.emit($event)\"\n (editEvent)=\"editEvent.emit($event)\"\n (close)=\"dialog.dismiss()\"\n ></bc-event-preview>\n </fd-dialog-body>\n </fd-dialog>\n</ng-template>\n<ng-template\n #defaultButton\n let-task\n let-popover=\"popover\"\n let-calendarFields=\"calendarFields\"\n let-onButtonClick=\"onButtonClick\"\n>\n <button\n fd-button\n [compact]=\"true\"\n (click)=\"onButtonClick(popover)\"\n [fdType]=\"task.inDay ? 'standard' : 'emphasized'\"\n [label]=\"task | eventTime: calendarFields\"\n [style.background-color]=\"task.event[calendarFields.Color]\"\n class=\"task-title\"\n ></button>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:row;align-items:stretch;justify-content:stretch;width:100%;height:100%;padding-top:1px}:host[rtl=true]{padding-right:3px}:host[rtl=false]{padding-left:3px}.task-title{justify-content:start!important;font-weight:400}button{flex-grow:1;border-radius:0!important;height:100%;max-height:100%;min-height:100%;border:none}.start-day{width:0;height:0;border-top:10px solid transparent;border-right:10px solid var(--sapButton_Emphasized_Background, #0a6ed1);border-bottom:10px solid transparent;height:100%}.end-day{width:0;height:0;border-top:10px solid transparent;border-left:10px solid var(--sapButton_Emphasized_Background, #0a6ed1);border-bottom:10px solid transparent;height:100%}\n"] }]
|
|
54
54
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.DialogService }]; }, propDecorators: { defaultButtonTemplate: [{
|
|
55
55
|
type: ViewChild,
|
|
56
56
|
args: ['defaultButton', { static: true }]
|
|
@@ -92,4 +92,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
|
|
|
92
92
|
type: HostBinding,
|
|
93
93
|
args: ['attr.rtl']
|
|
94
94
|
}] } });
|
|
95
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
95
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnQtYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2JhcnNhLWNhbGVuZGFyL3NyYy9saWIvZXZlbnQtYnV0dG9uL2V2ZW50LWJ1dHRvbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9iYXJzYS1jYWxlbmRhci9zcmMvbGliL2V2ZW50LWJ1dHRvbi9ldmVudC1idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNILHVCQUF1QixFQUN2QixTQUFTLEVBRVQsWUFBWSxFQUNaLFdBQVcsRUFDWCxLQUFLLEVBRUwsTUFBTSxFQUVOLFNBQVMsRUFDWixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQWlCLGdCQUFnQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFFeEUsT0FBTyxFQUFFLGFBQWEsRUFBOEQsTUFBTSxzQkFBc0IsQ0FBQzs7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ZW5kYXJGaWVsZHNcIlxuICAgIGxldC1vbkJ1dHRvbkNsaWNrPVwib25CdXR0b25DbGlja1wiXG4+XG4gICAgPGJ1dHRvblxuICAgICAgICBmZC1idXR0b25cbiAgICAgICAgW2NvbXBhY3RdPVwidHJ1ZVwiXG4gICAgICAgIChjbGljayk9XCJvbkJ1dHRvbkNsaWNrKHBvcG92ZXIpXCJcbiAgICAgICAgW2ZkVHlwZV09XCJ0YXNrLmluRGF5ID8gJ3N0YW5kYXJkJyA6ICdlbXBoYXNpemVkJ1wiXG4gICAgICAgIFtsYWJlbF09XCJ0YXNrIHwgZXZlbnRUaW1lOiBjYWxlbmRhckZpZWxkc1wiXG4gICAgICAgIFtzdHlsZS5iYWNrZ3JvdW5kLWNvbG9yXT1cInRhc2suZXZlbnRbY2FsZW5kYXJGaWVsZHMuQ29sb3JdXCJcbiAgICAgICAgY2xhc3M9XCJ0YXNrLXRpdGxlXCJcbiAgICA+PC9idXR0b24+XG48L25nLXRlbXBsYXRlPlxuIl19
|
|
@@ -911,10 +911,10 @@ class EventButtonComponent extends BaseComponent {
|
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
913
|
EventButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: EventButtonComponent, deps: [{ token: i0.ElementRef }, { token: i1.DialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
914
|
-
EventButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: EventButtonComponent, selector: "bc-event-button", inputs: { buttonTemplate: "buttonTemplate", calendarFields: "calendarFields", task: "task", rtl: "rtl", canDelete: "canDelete", canEdit: "canEdit", index: "index", deviceSize: "deviceSize" }, outputs: { deleteEvent: "deleteEvent", editEvent: "editEvent", openPopoverChange: "openPopoverChange" }, host: { properties: { "style.opacity": "this.opacity", "attr.rtl": "this._rtl" } }, viewQueries: [{ propertyName: "defaultButtonTemplate", first: true, predicate: ["defaultButton"], descendants: true, static: true }, { propertyName: "popoverComponent", first: true, predicate: PopoverComponent, descendants: true, static: true }, { propertyName: "_dialogTemplate", first: true, predicate: ["dialogTemplate"], descendants: true, static: true }, { propertyName: "btnFocus", first: true, predicate: ["btnFocus"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<button
|
|
914
|
+
EventButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: EventButtonComponent, selector: "bc-event-button", inputs: { buttonTemplate: "buttonTemplate", calendarFields: "calendarFields", task: "task", rtl: "rtl", canDelete: "canDelete", canEdit: "canEdit", index: "index", deviceSize: "deviceSize" }, outputs: { deleteEvent: "deleteEvent", editEvent: "editEvent", openPopoverChange: "openPopoverChange" }, host: { properties: { "style.opacity": "this.opacity", "attr.rtl": "this._rtl" } }, viewQueries: [{ propertyName: "defaultButtonTemplate", first: true, predicate: ["defaultButton"], descendants: true, static: true }, { propertyName: "popoverComponent", first: true, predicate: PopoverComponent, descendants: true, static: true }, { propertyName: "_dialogTemplate", first: true, predicate: ["dialogTemplate"], descendants: true, static: true }, { propertyName: "btnFocus", first: true, predicate: ["btnFocus"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<button\n #btnFocus\n [attr.id]=\"task.id\"\n style=\"width: 0; height: 0; visibility: hidden; max-height: 1px; min-height: 1px\"\n></button>\n<span [ngClass]=\"{ 'end-day': rtl, 'start-day': !rtl }\" *ngIf=\"!task.startdayIsInRow\"></span>\n<ng-container\n *ngTemplateOutlet=\"\n buttonTemplate;\n context: {\n $implicit: task,\n calendarFields: calendarFields,\n popover: popover,\n onButtonClick: onButtonClick.bind(this)\n }\n \"\n></ng-container>\n<span [ngClass]=\"{ 'start-day': rtl, 'end-day': !rtl }\" *ngIf=\"!task.enddayIsInRow\"></span>\n\n<fd-popover\n #popover\n placement=\"bottom\"\n [mobile]=\"deviceSize === 's'\"\n [focusTrapped]=\"true\"\n [focusAutoCapture]=\"true\"\n [mobile]=\"deviceSize === 's'\"\n [title]=\"task.event[calendarFields.Title]\"\n (isOpenChange)=\"onPopOverOpenChange($event)\"\n>\n <fd-popover-control></fd-popover-control>\n <fd-popover-body>\n <bc-event-preview\n [event]=\"task.event\"\n [calendarFields]=\"calendarFields\"\n [popover]=\"popover\"\n [canDelete]=\"canDelete\"\n [deviceSize]=\"deviceSize\"\n [canEdit]=\"canEdit\"\n (deleteEvent)=\"deleteEvent.emit($event)\"\n (editEvent)=\"editEvent.emit($event)\"\n ></bc-event-preview>\n </fd-popover-body>\n</fd-popover>\n\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #dialogTemplate>\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\n <fd-dialog-body>\n <bc-event-preview\n [event]=\"task.event\"\n [calendarFields]=\"calendarFields\"\n [canDelete]=\"canDelete\"\n [deviceSize]=\"deviceSize\"\n [canEdit]=\"canEdit\"\n (deleteEvent)=\"deleteEvent.emit($event)\"\n (editEvent)=\"editEvent.emit($event)\"\n (close)=\"dialog.dismiss()\"\n ></bc-event-preview>\n </fd-dialog-body>\n </fd-dialog>\n</ng-template>\n<ng-template\n #defaultButton\n let-task\n let-popover=\"popover\"\n let-calendarFields=\"calendarFields\"\n let-onButtonClick=\"onButtonClick\"\n>\n <button\n fd-button\n [compact]=\"true\"\n (click)=\"onButtonClick(popover)\"\n [fdType]=\"task.inDay ? 'standard' : 'emphasized'\"\n [label]=\"task | eventTime: calendarFields\"\n [style.background-color]=\"task.event[calendarFields.Color]\"\n class=\"task-title\"\n ></button>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:row;align-items:stretch;justify-content:stretch;width:100%;height:100%;padding-top:1px}:host[rtl=true]{padding-right:3px}:host[rtl=false]{padding-left:3px}.task-title{justify-content:start!important;font-weight:400}button{flex-grow:1;border-radius:0!important;height:100%;max-height:100%;min-height:100%;border:none}.start-day{width:0;height:0;border-top:10px solid transparent;border-right:10px solid var(--sapButton_Emphasized_Background, #0a6ed1);border-bottom:10px solid transparent;height:100%}.end-day{width:0;height:0;border-top:10px solid transparent;border-left:10px solid var(--sapButton_Emphasized_Background, #0a6ed1);border-bottom:10px solid transparent;height:100%}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.MobileDirective, selector: "[mobile]" }, { kind: "component", type: i4.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "directive", type: i4.DeprecatedButtonContentDensityDirective, selector: "[fd-button][compact]" }, { kind: "component", type: i5$1.DialogComponent, selector: "fd-dialog", inputs: ["class", "dialogRef", "dialogConfig"] }, { kind: "component", type: i5$1.DialogBodyComponent, selector: "fd-dialog-body" }, { kind: "component", type: i5$2.PopoverControlComponent, selector: "fd-popover-control" }, { kind: "component", type: i5$2.PopoverBodyComponent, selector: "fd-popover-body" }, { kind: "component", type: i5$2.PopoverComponent, selector: "fd-popover", inputs: ["title", "trigger", "fixedPosition", "id", "mobile", "mobileConfig"] }, { kind: "component", type: EventPreviewComponent, selector: "bc-event-preview", inputs: ["event", "calendarFields", "popover", "popover2", "canEdit", "canDelete", "inDialog", "deviceSize"], outputs: ["deleteEvent", "editEvent", "close"] }, { kind: "pipe", type: EventTimePipe, name: "eventTime" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
915
915
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: EventButtonComponent, decorators: [{
|
|
916
916
|
type: Component,
|
|
917
|
-
args: [{ selector: 'bc-event-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button
|
|
917
|
+
args: [{ selector: 'bc-event-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n #btnFocus\n [attr.id]=\"task.id\"\n style=\"width: 0; height: 0; visibility: hidden; max-height: 1px; min-height: 1px\"\n></button>\n<span [ngClass]=\"{ 'end-day': rtl, 'start-day': !rtl }\" *ngIf=\"!task.startdayIsInRow\"></span>\n<ng-container\n *ngTemplateOutlet=\"\n buttonTemplate;\n context: {\n $implicit: task,\n calendarFields: calendarFields,\n popover: popover,\n onButtonClick: onButtonClick.bind(this)\n }\n \"\n></ng-container>\n<span [ngClass]=\"{ 'start-day': rtl, 'end-day': !rtl }\" *ngIf=\"!task.enddayIsInRow\"></span>\n\n<fd-popover\n #popover\n placement=\"bottom\"\n [mobile]=\"deviceSize === 's'\"\n [focusTrapped]=\"true\"\n [focusAutoCapture]=\"true\"\n [mobile]=\"deviceSize === 's'\"\n [title]=\"task.event[calendarFields.Title]\"\n (isOpenChange)=\"onPopOverOpenChange($event)\"\n>\n <fd-popover-control></fd-popover-control>\n <fd-popover-body>\n <bc-event-preview\n [event]=\"task.event\"\n [calendarFields]=\"calendarFields\"\n [popover]=\"popover\"\n [canDelete]=\"canDelete\"\n [deviceSize]=\"deviceSize\"\n [canEdit]=\"canEdit\"\n (deleteEvent)=\"deleteEvent.emit($event)\"\n (editEvent)=\"editEvent.emit($event)\"\n ></bc-event-preview>\n </fd-popover-body>\n</fd-popover>\n\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #dialogTemplate>\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\n <fd-dialog-body>\n <bc-event-preview\n [event]=\"task.event\"\n [calendarFields]=\"calendarFields\"\n [canDelete]=\"canDelete\"\n [deviceSize]=\"deviceSize\"\n [canEdit]=\"canEdit\"\n (deleteEvent)=\"deleteEvent.emit($event)\"\n (editEvent)=\"editEvent.emit($event)\"\n (close)=\"dialog.dismiss()\"\n ></bc-event-preview>\n </fd-dialog-body>\n </fd-dialog>\n</ng-template>\n<ng-template\n #defaultButton\n let-task\n let-popover=\"popover\"\n let-calendarFields=\"calendarFields\"\n let-onButtonClick=\"onButtonClick\"\n>\n <button\n fd-button\n [compact]=\"true\"\n (click)=\"onButtonClick(popover)\"\n [fdType]=\"task.inDay ? 'standard' : 'emphasized'\"\n [label]=\"task | eventTime: calendarFields\"\n [style.background-color]=\"task.event[calendarFields.Color]\"\n class=\"task-title\"\n ></button>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:row;align-items:stretch;justify-content:stretch;width:100%;height:100%;padding-top:1px}:host[rtl=true]{padding-right:3px}:host[rtl=false]{padding-left:3px}.task-title{justify-content:start!important;font-weight:400}button{flex-grow:1;border-radius:0!important;height:100%;max-height:100%;min-height:100%;border:none}.start-day{width:0;height:0;border-top:10px solid transparent;border-right:10px solid var(--sapButton_Emphasized_Background, #0a6ed1);border-bottom:10px solid transparent;height:100%}.end-day{width:0;height:0;border-top:10px solid transparent;border-left:10px solid var(--sapButton_Emphasized_Background, #0a6ed1);border-bottom:10px solid transparent;height:100%}\n"] }]
|
|
918
918
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.DialogService }]; }, propDecorators: { defaultButtonTemplate: [{
|
|
919
919
|
type: ViewChild,
|
|
920
920
|
args: ['defaultButton', { static: true }]
|