@memberjunction/ng-container-directives 0.9.1 → 0.9.2
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/dist/lib/ng-container-directive.d.ts +0 -3
- package/dist/lib/ng-container-directive.js +14 -11
- package/dist/lib/ng-container-directives.module.d.ts +0 -7
- package/dist/lib/ng-container-directives.module.js +24 -25
- package/dist/lib/ng-fill-container-directive.d.ts +0 -3
- package/dist/lib/ng-fill-container-directive.js +26 -19
- package/package.json +34 -29
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { ViewContainerRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class Container {
|
|
4
3
|
viewContainerRef: ViewContainerRef;
|
|
5
4
|
constructor(viewContainerRef: ViewContainerRef);
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Container, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Container, "[mjContainer]", never, {}, {}, never, never, false, never>;
|
|
8
5
|
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
1
7
|
import { Directive } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
export class Container {
|
|
8
|
+
let Container = class Container {
|
|
4
9
|
constructor(viewContainerRef) {
|
|
5
10
|
this.viewContainerRef = viewContainerRef;
|
|
6
11
|
}
|
|
7
|
-
}
|
|
8
|
-
Container
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}]
|
|
15
|
-
}], function () { return [{ type: i0.ViewContainerRef }]; }, null); })();
|
|
12
|
+
};
|
|
13
|
+
Container = __decorate([
|
|
14
|
+
Directive({
|
|
15
|
+
selector: '[mjContainer]',
|
|
16
|
+
})
|
|
17
|
+
], Container);
|
|
18
|
+
export { Container };
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./ng-fill-container-directive";
|
|
3
|
-
import * as i2 from "./ng-container-directive";
|
|
4
|
-
import * as i3 from "@angular/common";
|
|
5
1
|
export declare class ContainerDirectivesModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContainerDirectivesModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ContainerDirectivesModule, [typeof i1.FillContainer, typeof i2.Container], [typeof i3.CommonModule], [typeof i1.FillContainer, typeof i2.Container]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ContainerDirectivesModule>;
|
|
9
2
|
}
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
1
7
|
import { NgModule } from '@angular/core';
|
|
2
8
|
import { CommonModule } from '@angular/common';
|
|
3
9
|
import { FillContainer } from './ng-fill-container-directive';
|
|
4
10
|
import { Container } from './ng-container-directive';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Container
|
|
24
|
-
]
|
|
25
|
-
}]
|
|
26
|
-
}], null, null); })();
|
|
27
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ContainerDirectivesModule, { declarations: [FillContainer,
|
|
28
|
-
Container], imports: [CommonModule], exports: [FillContainer,
|
|
29
|
-
Container] }); })();
|
|
11
|
+
let ContainerDirectivesModule = class ContainerDirectivesModule {
|
|
12
|
+
};
|
|
13
|
+
ContainerDirectivesModule = __decorate([
|
|
14
|
+
NgModule({
|
|
15
|
+
declarations: [
|
|
16
|
+
FillContainer,
|
|
17
|
+
Container
|
|
18
|
+
],
|
|
19
|
+
imports: [
|
|
20
|
+
CommonModule
|
|
21
|
+
],
|
|
22
|
+
exports: [
|
|
23
|
+
FillContainer,
|
|
24
|
+
Container
|
|
25
|
+
]
|
|
26
|
+
})
|
|
27
|
+
], ContainerDirectivesModule);
|
|
28
|
+
export { ContainerDirectivesModule };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class FillContainer implements OnInit, OnDestroy {
|
|
4
3
|
private elementRef;
|
|
5
4
|
fillWidth: boolean;
|
|
@@ -16,6 +15,4 @@ export declare class FillContainer implements OnInit, OnDestroy {
|
|
|
16
15
|
getParent(element: HTMLElement): HTMLElement | null;
|
|
17
16
|
resizeElement(): void;
|
|
18
17
|
protected elementBelowHiddenTab(element: HTMLElement): boolean;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FillContainer, never>;
|
|
20
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FillContainer, "[mjFillContainer]", never, { "fillWidth": "fillWidth"; "fillHeight": "fillHeight"; "rightMargin": "rightMargin"; "bottomMargin": "bottomMargin"; }, {}, never, never, false, never>;
|
|
21
18
|
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
1
7
|
import { Directive, Input } from '@angular/core';
|
|
2
8
|
import { LogError, LogStatus } from '@memberjunction/core';
|
|
3
9
|
import { fromEvent } from 'rxjs';
|
|
4
10
|
import { debounceTime } from 'rxjs/operators';
|
|
5
11
|
import { MJEventType, MJGlobal } from '@memberjunction/global';
|
|
6
|
-
|
|
7
|
-
export class FillContainer {
|
|
12
|
+
let FillContainer = class FillContainer {
|
|
8
13
|
constructor(elementRef) {
|
|
9
14
|
this.elementRef = elementRef;
|
|
10
15
|
this.fillWidth = true;
|
|
@@ -124,20 +129,22 @@ export class FillContainer {
|
|
|
124
129
|
// not below a tab at all
|
|
125
130
|
return false;
|
|
126
131
|
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
132
|
+
};
|
|
133
|
+
__decorate([
|
|
134
|
+
Input()
|
|
135
|
+
], FillContainer.prototype, "fillWidth", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
Input()
|
|
138
|
+
], FillContainer.prototype, "fillHeight", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
Input()
|
|
141
|
+
], FillContainer.prototype, "rightMargin", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
Input()
|
|
144
|
+
], FillContainer.prototype, "bottomMargin", void 0);
|
|
145
|
+
FillContainer = __decorate([
|
|
146
|
+
Directive({
|
|
147
|
+
selector: '[mjFillContainer]'
|
|
148
|
+
})
|
|
149
|
+
], FillContainer);
|
|
150
|
+
export { FillContainer };
|
package/package.json
CHANGED
|
@@ -1,29 +1,34 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@memberjunction/ng-container-directives",
|
|
3
|
-
"version": "0.9.
|
|
4
|
-
"description": "MemberJunction: Angular Container Directives - Fill Container for Auto-Resizing, and plain container just for element identification/binding",
|
|
5
|
-
"main": "./dist/public-api.js",
|
|
6
|
-
"typings": "./dist/public-api.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
-
"build": "ngc"
|
|
10
|
-
},
|
|
11
|
-
"keywords": [
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
"@angular/
|
|
21
|
-
"@angular/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@memberjunction/ng-container-directives",
|
|
3
|
+
"version": "0.9.2",
|
|
4
|
+
"description": "MemberJunction: Angular Container Directives - Fill Container for Auto-Resizing, and plain container just for element identification/binding",
|
|
5
|
+
"main": "./dist/public-api.js",
|
|
6
|
+
"typings": "./dist/public-api.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
+
"build": "ngc"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"MemberJunction",
|
|
13
|
+
"Angular",
|
|
14
|
+
"Link",
|
|
15
|
+
"Directives"
|
|
16
|
+
],
|
|
17
|
+
"author": "",
|
|
18
|
+
"license": "ISC",
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@angular/compiler": "^15.2.0",
|
|
21
|
+
"@angular/compiler-cli": "^15.2.0"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"@angular/common": "^15.2.0",
|
|
25
|
+
"@angular/core": "^15.2.0",
|
|
26
|
+
"@angular/router": "^15.2.0",
|
|
27
|
+
"@memberjunction/core": "^0.9.15",
|
|
28
|
+
"@memberjunction/global": "^0.9.11"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"tslib": "^2.3.0"
|
|
32
|
+
},
|
|
33
|
+
"sideEffects": false
|
|
34
|
+
}
|