@igo2/common
Version:
74 lines (67 loc) • 3.68 kB
JavaScript
import * as i0 from '@angular/core';
import { HostListener, Directive, NgModule } from '@angular/core';
class StopDropPropagationDirective {
onDrop(event) {
event.preventDefault();
event.stopPropagation();
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: StopDropPropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: StopDropPropagationDirective, isStandalone: true, selector: "[igoStopDropPropagation]", host: { listeners: { "drop": "onDrop($event)" } }, ngImport: i0 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: StopDropPropagationDirective, decorators: [{
type: Directive,
args: [{
selector: '[igoStopDropPropagation]',
standalone: true
}]
}], propDecorators: { onDrop: [{
type: HostListener,
args: ['drop', ['$event']]
}] } });
class StopPropagationDirective {
onClick(event) {
event.stopPropagation();
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: StopPropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: StopPropagationDirective, isStandalone: true, selector: "[igoStopPropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: StopPropagationDirective, decorators: [{
type: Directive,
args: [{
selector: '[igoStopPropagation]',
standalone: true
}]
}], propDecorators: { onClick: [{
type: HostListener,
args: ['click', ['$event']]
}] } });
/**
* @deprecated import the components/directives directly or STOP_PROPAGATION_DIRECTIVES for the set
*/
class IgoStopPropagationModule {
static forRoot() {
return {
ngModule: IgoStopPropagationModule,
providers: []
};
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: IgoStopPropagationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: IgoStopPropagationModule, imports: [StopDropPropagationDirective, StopPropagationDirective], exports: [StopDropPropagationDirective, StopPropagationDirective] });
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: IgoStopPropagationModule });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: IgoStopPropagationModule, decorators: [{
type: NgModule,
args: [{
imports: [StopDropPropagationDirective, StopPropagationDirective],
exports: [StopDropPropagationDirective, StopPropagationDirective]
}]
}] });
const STOP_PROPAGATION_DIRECTIVES = [
StopDropPropagationDirective,
StopPropagationDirective
];
/**
* Generated bundle index. Do not edit.
*/
export { IgoStopPropagationModule, STOP_PROPAGATION_DIRECTIVES, StopDropPropagationDirective, StopPropagationDirective };
//# sourceMappingURL=igo2-common-stop-propagation.mjs.map