@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.
@@ -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
- import * as i0 from "@angular/core";
3
- export class Container {
8
+ let Container = class Container {
4
9
  constructor(viewContainerRef) {
5
10
  this.viewContainerRef = viewContainerRef;
6
11
  }
7
- }
8
- Container.ɵfac = function Container_Factory(t) { return new (t || Container)(i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
9
- Container.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: Container, selectors: [["", "mjContainer", ""]] });
10
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Container, [{
11
- type: Directive,
12
- args: [{
13
- selector: '[mjContainer]',
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
- import * as i0 from "@angular/core";
6
- export class ContainerDirectivesModule {
7
- }
8
- ContainerDirectivesModule.ɵfac = function ContainerDirectivesModule_Factory(t) { return new (t || ContainerDirectivesModule)(); };
9
- ContainerDirectivesModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: ContainerDirectivesModule });
10
- ContainerDirectivesModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule] });
11
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContainerDirectivesModule, [{
12
- type: NgModule,
13
- args: [{
14
- declarations: [
15
- FillContainer,
16
- Container
17
- ],
18
- imports: [
19
- CommonModule
20
- ],
21
- exports: [
22
- FillContainer,
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
- import * as i0 from "@angular/core";
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
- FillContainer.ɵfac = function FillContainer_Factory(t) { return new (t || FillContainer)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
129
- FillContainer.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: FillContainer, selectors: [["", "mjFillContainer", ""]], inputs: { fillWidth: "fillWidth", fillHeight: "fillHeight", rightMargin: "rightMargin", bottomMargin: "bottomMargin" } });
130
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FillContainer, [{
131
- type: Directive,
132
- args: [{
133
- selector: '[mjFillContainer]'
134
- }]
135
- }], function () { return [{ type: i0.ElementRef }]; }, { fillWidth: [{
136
- type: Input
137
- }], fillHeight: [{
138
- type: Input
139
- }], rightMargin: [{
140
- type: Input
141
- }], bottomMargin: [{
142
- type: Input
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.1",
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": ["MemberJunction", "Angular", "Link", "Directives"],
12
- "author": "",
13
- "license": "ISC",
14
- "devDependencies": {
15
- "@angular/compiler": "^15.2.0",
16
- "@angular/compiler-cli": "^15.2.0"
17
- },
18
- "peerDependencies": {
19
- "@angular/common": "^15.2.0",
20
- "@angular/core": "^15.2.0",
21
- "@angular/router": "^15.2.0",
22
- "@memberjunction/core": "^0.9.14",
23
- "@memberjunction/global": "^0.9.11"
24
- },
25
- "dependencies": {
26
- "tslib": "^2.3.0"
27
- },
28
- "sideEffects": false
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
+ }