@memberjunction/ng-container-directives 0.9.2 → 0.9.4

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,5 +1,8 @@
1
1
  import { ViewContainerRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class Container {
3
4
  viewContainerRef: ViewContainerRef;
4
5
  constructor(viewContainerRef: ViewContainerRef);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<Container, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<Container, "[mjContainer]", never, {}, {}, never, never, false, never>;
5
8
  }
@@ -1,18 +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
- };
7
1
  import { Directive } from '@angular/core';
8
- let Container = class Container {
2
+ import * as i0 from "@angular/core";
3
+ export class Container {
9
4
  constructor(viewContainerRef) {
10
5
  this.viewContainerRef = viewContainerRef;
11
6
  }
12
- };
13
- Container = __decorate([
14
- Directive({
15
- selector: '[mjContainer]',
16
- })
17
- ], Container);
18
- export { Container };
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); })();
@@ -1,2 +1,9 @@
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";
1
5
  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>;
2
9
  }
@@ -1,28 +1,29 @@
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
- };
7
1
  import { NgModule } from '@angular/core';
8
2
  import { CommonModule } from '@angular/common';
9
3
  import { FillContainer } from './ng-fill-container-directive';
10
4
  import { Container } from './ng-container-directive';
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 };
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] }); })();
@@ -1,4 +1,5 @@
1
1
  import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class FillContainer implements OnInit, OnDestroy {
3
4
  private elementRef;
4
5
  fillWidth: boolean;
@@ -15,4 +16,6 @@ export declare class FillContainer implements OnInit, OnDestroy {
15
16
  getParent(element: HTMLElement): HTMLElement | null;
16
17
  resizeElement(): void;
17
18
  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>;
18
21
  }
@@ -1,15 +1,10 @@
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
- };
7
1
  import { Directive, Input } from '@angular/core';
8
2
  import { LogError, LogStatus } from '@memberjunction/core';
9
3
  import { fromEvent } from 'rxjs';
10
4
  import { debounceTime } from 'rxjs/operators';
11
5
  import { MJEventType, MJGlobal } from '@memberjunction/global';
12
- let FillContainer = class FillContainer {
6
+ import * as i0 from "@angular/core";
7
+ export class FillContainer {
13
8
  constructor(elementRef) {
14
9
  this.elementRef = elementRef;
15
10
  this.fillWidth = true;
@@ -129,22 +124,20 @@ let FillContainer = class FillContainer {
129
124
  // not below a tab at all
130
125
  return false;
131
126
  }
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 };
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
+ }] }); })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-container-directives",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "MemberJunction: Angular Container Directives - Fill Container for Auto-Resizing, and plain container just for element identification/binding",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -24,8 +24,8 @@
24
24
  "@angular/common": "^15.2.0",
25
25
  "@angular/core": "^15.2.0",
26
26
  "@angular/router": "^15.2.0",
27
- "@memberjunction/core": "^0.9.15",
28
- "@memberjunction/global": "^0.9.11"
27
+ "@memberjunction/core": "^0.9.16",
28
+ "@memberjunction/global": "^0.9.13"
29
29
  },
30
30
  "dependencies": {
31
31
  "tslib": "^2.3.0"