ato-water-lib 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/lib/ato-water-lib.module.mjs +27 -6
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +55 -6
- package/esm2020/lib/components/asset-params-view/asset-params-view.component.mjs +27 -0
- package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +3 -3
- package/esm2020/lib/constants/components-group-const.mjs +197 -10
- package/esm2020/lib/directive/ng-var.directive.mjs +31 -0
- package/esm2020/lib/models/default-gojs-editor.model.mjs +21 -2
- package/esm2020/lib/models/gojs-editor.model.mjs +5 -1
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/ato-water-lib.mjs +261 -23
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +350 -23
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/ato-water-lib.module.d.ts +6 -2
- package/lib/components/asset-flow/asset-flow.component.d.ts +1278 -2
- package/lib/components/asset-params-view/asset-params-view.component.d.ts +10 -0
- package/lib/constants/components-group-const.d.ts +395 -0
- package/lib/directive/ng-var.directive.d.ts +12 -0
- package/lib/models/default-gojs-editor.model.d.ts +4 -0
- package/lib/models/gojs-editor.model.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
import { Directive, Input } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class AtoNgVarDirective {
|
4
|
+
set ngVar(context) {
|
5
|
+
this.context.$implicit = this.context.ngVar = context;
|
6
|
+
if (!this.hasView) {
|
7
|
+
this.vcRef.createEmbeddedView(this.templateRef, this.context);
|
8
|
+
this.hasView = true;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
constructor(templateRef, vcRef) {
|
12
|
+
this.templateRef = templateRef;
|
13
|
+
this.vcRef = vcRef;
|
14
|
+
this.context = {
|
15
|
+
$implicit: null,
|
16
|
+
ngVar: null,
|
17
|
+
};
|
18
|
+
this.hasView = false;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
AtoNgVarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoNgVarDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
22
|
+
AtoNgVarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AtoNgVarDirective, selector: "[ngVar]", inputs: { ngVar: "ngVar" }, ngImport: i0 });
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoNgVarDirective, decorators: [{
|
24
|
+
type: Directive,
|
25
|
+
args: [{
|
26
|
+
selector: '[ngVar]',
|
27
|
+
}]
|
28
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { ngVar: [{
|
29
|
+
type: Input
|
30
|
+
}] } });
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctdmFyLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2F0by13YXRlci1saWIvc3JjL2xpYi9kaXJlY3RpdmUvbmctdmFyLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBaUMsTUFBTSxlQUFlLENBQUM7O0FBS2hGLE1BQU0sT0FBTyxpQkFBaUI7SUFDNUIsSUFDSSxLQUFLLENBQUMsT0FBZ0I7UUFDdEIsSUFBSSxDQUFDLE9BQU8sQ0FBQyxTQUFTLEdBQUcsSUFBSSxDQUFDLE9BQU8sQ0FBQyxLQUFLLEdBQUcsT0FBTyxDQUFDO1FBRXREL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