cmat 0.0.20 → 0.0.21
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/components/x6-angular-shape/index.d.ts +5 -0
- package/components/x6-angular-shape/node.d.ts +11 -0
- package/components/x6-angular-shape/public-api.d.ts +3 -0
- package/components/x6-angular-shape/registry.d.ts +13 -0
- package/components/x6-angular-shape/view.d.ts +16 -0
- package/fesm2022/cmat-components-x6-angular-shape.mjs +183 -0
- package/fesm2022/cmat-components-x6-angular-shape.mjs.map +1 -0
- package/package.json +49 -45
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Node } from '@antv/x6';
|
|
2
|
+
export declare class AngularShape<Properties extends AngularShape.Properties = AngularShape.Properties> extends Node<Properties> {
|
|
3
|
+
}
|
|
4
|
+
export declare namespace AngularShape {
|
|
5
|
+
type Primer = 'rect' | 'circle' | 'path' | 'ellipse' | 'polygon' | 'polyline';
|
|
6
|
+
interface Properties extends Node.Properties {
|
|
7
|
+
primer?: Primer;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare namespace AngularShape {
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Injector, TemplateRef, Type } from '@angular/core';
|
|
2
|
+
import { Node } from '@antv/x6';
|
|
3
|
+
export type Content = TemplateRef<any> | Type<any>;
|
|
4
|
+
export type AngularShapeConfig = Node.Properties & {
|
|
5
|
+
shape: string;
|
|
6
|
+
injector: Injector;
|
|
7
|
+
content: Content;
|
|
8
|
+
};
|
|
9
|
+
export declare const registerInfo: Map<string, {
|
|
10
|
+
injector: Injector;
|
|
11
|
+
content: Content;
|
|
12
|
+
}>;
|
|
13
|
+
export declare function register(config: AngularShapeConfig): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Dom, NodeView } from '@antv/x6';
|
|
2
|
+
import { AngularShape } from './node';
|
|
3
|
+
export declare class AngularShapeView extends NodeView<AngularShape> {
|
|
4
|
+
getNodeContainer(): HTMLDivElement;
|
|
5
|
+
onMouseDown(e: Dom.MouseDownEvent, x: number, y: number): void;
|
|
6
|
+
unmount(): this;
|
|
7
|
+
confirmUpdate(flag: number): number;
|
|
8
|
+
protected renderAngularContent(): void;
|
|
9
|
+
protected unmountAngularContent(): HTMLDivElement;
|
|
10
|
+
private getNgArguments;
|
|
11
|
+
/** 当执行 node.setData() 时需要对实例设置新的输入值 */
|
|
12
|
+
private setInstanceInput;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace AngularShapeView {
|
|
15
|
+
const action: any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { Node, Markup, ObjectExt, Graph, NodeView } from '@antv/x6';
|
|
2
|
+
import { ApplicationRef, TemplateRef, ViewContainerRef, Renderer2, createComponent } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/* eslint-disable no-redeclare */
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
6
|
+
class AngularShape extends Node {
|
|
7
|
+
}
|
|
8
|
+
(function (AngularShape) {
|
|
9
|
+
function getMarkup(primer) {
|
|
10
|
+
const markup = [];
|
|
11
|
+
const content = Markup.getForeignObjectMarkup();
|
|
12
|
+
if (primer) {
|
|
13
|
+
markup.push(...[
|
|
14
|
+
{
|
|
15
|
+
tagName: primer,
|
|
16
|
+
selector: 'body',
|
|
17
|
+
},
|
|
18
|
+
content,
|
|
19
|
+
]);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
markup.push(content);
|
|
23
|
+
}
|
|
24
|
+
return markup;
|
|
25
|
+
}
|
|
26
|
+
AngularShape.config({
|
|
27
|
+
view: 'angular-shape-view',
|
|
28
|
+
markup: getMarkup(),
|
|
29
|
+
attrs: {
|
|
30
|
+
body: {
|
|
31
|
+
fill: 'none',
|
|
32
|
+
stroke: 'none',
|
|
33
|
+
refWidth: '100%',
|
|
34
|
+
refHeight: '100%',
|
|
35
|
+
},
|
|
36
|
+
fo: {
|
|
37
|
+
refWidth: '100%',
|
|
38
|
+
refHeight: '100%',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
propHooks(metadata) {
|
|
42
|
+
if (metadata.markup == null) {
|
|
43
|
+
const primer = metadata.primer;
|
|
44
|
+
if (primer) {
|
|
45
|
+
metadata.markup = getMarkup(primer);
|
|
46
|
+
let attrs = {};
|
|
47
|
+
switch (primer) {
|
|
48
|
+
case 'circle':
|
|
49
|
+
attrs = {
|
|
50
|
+
refCx: '50%',
|
|
51
|
+
refCy: '50%',
|
|
52
|
+
refR: '50%',
|
|
53
|
+
};
|
|
54
|
+
break;
|
|
55
|
+
case 'ellipse':
|
|
56
|
+
attrs = {
|
|
57
|
+
refCx: '50%',
|
|
58
|
+
refCy: '50%',
|
|
59
|
+
refRx: '50%',
|
|
60
|
+
refRy: '50%',
|
|
61
|
+
};
|
|
62
|
+
break;
|
|
63
|
+
default:
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
metadata.attrs = ObjectExt.merge({}, {
|
|
67
|
+
body: {
|
|
68
|
+
refWidth: null,
|
|
69
|
+
refHeight: null,
|
|
70
|
+
...attrs,
|
|
71
|
+
},
|
|
72
|
+
}, metadata.attrs ?? {});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return metadata;
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
Node.registry.register('angular-shape', AngularShape, true);
|
|
79
|
+
})(AngularShape || (AngularShape = {}));
|
|
80
|
+
|
|
81
|
+
const registerInfo = new Map();
|
|
82
|
+
function register(config) {
|
|
83
|
+
const { shape, injector, content, ...others } = config;
|
|
84
|
+
registerInfo.set(shape, { injector, content });
|
|
85
|
+
Graph.registerNode(shape, {
|
|
86
|
+
inherit: 'angular-shape',
|
|
87
|
+
...others,
|
|
88
|
+
}, true);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* eslint-disable no-redeclare */
|
|
92
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
93
|
+
class AngularShapeView extends NodeView {
|
|
94
|
+
getNodeContainer() {
|
|
95
|
+
return this.selectors?.foContent;
|
|
96
|
+
}
|
|
97
|
+
onMouseDown(e, x, y) {
|
|
98
|
+
const target = e.target;
|
|
99
|
+
const tagName = target.tagName.toLowerCase();
|
|
100
|
+
if (tagName === 'input') {
|
|
101
|
+
const type = target.getAttribute('type');
|
|
102
|
+
if (type == null || ['text', 'password', 'number', 'email', 'search', 'tel', 'url'].includes(type)) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
super.onMouseDown(e, x, y);
|
|
107
|
+
}
|
|
108
|
+
unmount() {
|
|
109
|
+
this.unmountAngularContent();
|
|
110
|
+
super.unmount();
|
|
111
|
+
return this;
|
|
112
|
+
}
|
|
113
|
+
confirmUpdate(flag) {
|
|
114
|
+
const ret = super.confirmUpdate(flag);
|
|
115
|
+
return this.handleAction(ret, AngularShapeView.action, () => this.renderAngularContent());
|
|
116
|
+
}
|
|
117
|
+
renderAngularContent() {
|
|
118
|
+
this.unmountAngularContent();
|
|
119
|
+
const container = this.getNodeContainer();
|
|
120
|
+
if (container) {
|
|
121
|
+
const node = this.cell;
|
|
122
|
+
const { injector, content } = registerInfo.get(node.shape);
|
|
123
|
+
const applicationRef = injector.get(ApplicationRef);
|
|
124
|
+
const environmentInjector = applicationRef.injector;
|
|
125
|
+
if (content instanceof TemplateRef) {
|
|
126
|
+
const viewContainerRef = injector.get(ViewContainerRef);
|
|
127
|
+
const renderer = injector.get(Renderer2);
|
|
128
|
+
const ngArguments = this.getNgArguments();
|
|
129
|
+
const embeddedViewRef = viewContainerRef.createEmbeddedView(content, { ngArguments });
|
|
130
|
+
embeddedViewRef.rootNodes.forEach(node => renderer.appendChild(container, node));
|
|
131
|
+
embeddedViewRef.detectChanges();
|
|
132
|
+
node.on('change:data', () => this.setInstanceInput(content, embeddedViewRef));
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
const componentRef = createComponent(content, { environmentInjector, hostElement: container });
|
|
136
|
+
applicationRef.attachView(componentRef.hostView);
|
|
137
|
+
this.setInstanceInput(content, componentRef);
|
|
138
|
+
componentRef.changeDetectorRef.detectChanges();
|
|
139
|
+
node.on('change:data', () => this.setInstanceInput(content, componentRef));
|
|
140
|
+
node.on('removed', () => componentRef.destroy());
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
unmountAngularContent() {
|
|
145
|
+
const container = this.getNodeContainer();
|
|
146
|
+
container.innerHTML = '';
|
|
147
|
+
return container;
|
|
148
|
+
}
|
|
149
|
+
getNgArguments() {
|
|
150
|
+
const input = this.cell.data?.ngArguments || {};
|
|
151
|
+
return input;
|
|
152
|
+
}
|
|
153
|
+
/** 当执行 node.setData() 时需要对实例设置新的输入值 */
|
|
154
|
+
setInstanceInput(content, ref) {
|
|
155
|
+
const ngArguments = this.getNgArguments();
|
|
156
|
+
if (content instanceof TemplateRef) {
|
|
157
|
+
const embeddedViewRef = ref;
|
|
158
|
+
embeddedViewRef.context = { ngArguments };
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
const componentRef = ref;
|
|
162
|
+
Object.keys(ngArguments).forEach(v => componentRef.setInput(v, ngArguments[v]));
|
|
163
|
+
componentRef.changeDetectorRef.detectChanges();
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
(function (AngularShapeView) {
|
|
168
|
+
AngularShapeView.action = 'angular';
|
|
169
|
+
AngularShapeView.config({
|
|
170
|
+
bootstrap: [AngularShapeView.action],
|
|
171
|
+
actions: {
|
|
172
|
+
component: AngularShapeView.action,
|
|
173
|
+
},
|
|
174
|
+
});
|
|
175
|
+
NodeView.registry.register('angular-shape-view', AngularShapeView, true);
|
|
176
|
+
})(AngularShapeView || (AngularShapeView = {}));
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Generated bundle index. Do not edit.
|
|
180
|
+
*/
|
|
181
|
+
|
|
182
|
+
export { AngularShape, AngularShapeView, register, registerInfo };
|
|
183
|
+
//# sourceMappingURL=cmat-components-x6-angular-shape.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmat-components-x6-angular-shape.mjs","sources":["../../../projects/cmat/components/x6-angular-shape/node.ts","../../../projects/cmat/components/x6-angular-shape/registry.ts","../../../projects/cmat/components/x6-angular-shape/view.ts","../../../projects/cmat/components/x6-angular-shape/cmat-components-x6-angular-shape.ts"],"sourcesContent":["/* eslint-disable no-redeclare */\r\n/* eslint-disable @typescript-eslint/no-namespace */\r\nimport { Node, Markup, ObjectExt } from '@antv/x6';\r\n\r\nexport class AngularShape<\r\n Properties extends AngularShape.Properties = AngularShape.Properties,\r\n> extends Node<Properties> { }\r\n\r\nexport namespace AngularShape {\r\n export type Primer = 'rect' | 'circle' | 'path' | 'ellipse' | 'polygon' | 'polyline';\r\n\r\n export interface Properties extends Node.Properties {\r\n primer?: Primer;\r\n }\r\n}\r\n\r\nexport namespace AngularShape {\r\n function getMarkup(primer?: Primer) : Markup.JSONMarkup[]{\r\n const markup: Markup.JSONMarkup[] = [];\r\n const content = Markup.getForeignObjectMarkup();\r\n\r\n if (primer) {\r\n markup.push(\r\n ...[\r\n {\r\n tagName: primer,\r\n selector: 'body',\r\n },\r\n content,\r\n ],\r\n );\r\n } else {\r\n markup.push(content);\r\n }\r\n\r\n return markup;\r\n }\r\n\r\n AngularShape.config<Properties>({\r\n view: 'angular-shape-view',\r\n markup: getMarkup(),\r\n attrs: {\r\n body: {\r\n fill: 'none',\r\n stroke: 'none',\r\n refWidth: '100%',\r\n refHeight: '100%',\r\n },\r\n fo: {\r\n refWidth: '100%',\r\n refHeight: '100%',\r\n },\r\n },\r\n propHooks(metadata: Properties) {\r\n if (metadata.markup == null) {\r\n const primer = metadata.primer;\r\n if (primer) {\r\n metadata.markup = getMarkup(primer);\r\n\r\n let attrs = {};\r\n switch (primer) {\r\n case 'circle':\r\n attrs = {\r\n refCx: '50%',\r\n refCy: '50%',\r\n refR: '50%',\r\n };\r\n break;\r\n case 'ellipse':\r\n attrs = {\r\n refCx: '50%',\r\n refCy: '50%',\r\n refRx: '50%',\r\n refRy: '50%',\r\n };\r\n break;\r\n default:\r\n break;\r\n }\r\n metadata.attrs = ObjectExt.merge(\r\n {},\r\n {\r\n body: {\r\n refWidth: null,\r\n refHeight: null,\r\n ...attrs,\r\n },\r\n },\r\n metadata.attrs ?? {},\r\n );\r\n }\r\n }\r\n return metadata;\r\n },\r\n });\r\n\r\n Node.registry.register('angular-shape', AngularShape, true);\r\n}","import { Injector, TemplateRef, Type } from '@angular/core';\r\nimport { Graph, Node } from '@antv/x6';\r\n\r\nexport type Content = TemplateRef<any> | Type<any>;\r\n\r\nexport type AngularShapeConfig = Node.Properties & {\r\n shape: string;\r\n injector: Injector;\r\n content: Content;\r\n};\r\n\r\nexport const registerInfo = new Map<\r\n string,\r\n {\r\n injector: Injector;\r\n content: Content;\r\n }\r\n>();\r\n\r\nexport function register(config: AngularShapeConfig): void {\r\n const { shape, injector, content, ...others } = config;\r\n \r\n registerInfo.set(shape, { injector, content });\r\n\r\n Graph.registerNode(\r\n shape,\r\n {\r\n inherit: 'angular-shape',\r\n ...others,\r\n },\r\n true,\r\n );\r\n}","/* eslint-disable no-redeclare */\r\n/* eslint-disable @typescript-eslint/no-namespace */\r\nimport { ApplicationRef, ComponentRef, createComponent, EmbeddedViewRef, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';\r\nimport { Dom, NodeView } from '@antv/x6';\r\nimport { AngularShape } from './node';\r\nimport { Content, registerInfo } from './registry';\r\n\r\nexport class AngularShapeView extends NodeView<AngularShape> {\r\n getNodeContainer(): HTMLDivElement {\r\n return this.selectors?.foContent as HTMLDivElement;\r\n }\r\n\r\n override onMouseDown(e: Dom.MouseDownEvent, x: number, y: number): void {\r\n const target = e.target as Element;\r\n const tagName = target.tagName.toLowerCase();\r\n if (tagName === 'input') {\r\n const type = target.getAttribute('type');\r\n if (type == null || ['text', 'password', 'number', 'email', 'search', 'tel', 'url'].includes(type)) {\r\n return;\r\n }\r\n }\r\n\r\n super.onMouseDown(e, x, y);\r\n }\r\n\r\n override unmount(): this {\r\n this.unmountAngularContent();\r\n super.unmount();\r\n return this;\r\n }\r\n\r\n override confirmUpdate(flag: number): number {\r\n const ret = super.confirmUpdate(flag);\r\n return this.handleAction(ret, AngularShapeView.action, () => this.renderAngularContent());\r\n }\r\n\r\n protected renderAngularContent(): void {\r\n this.unmountAngularContent();\r\n const container = this.getNodeContainer();\r\n if (container) {\r\n const node = this.cell;\r\n const { injector, content } = registerInfo.get(node.shape)!; \r\n const applicationRef = injector.get(ApplicationRef);\r\n const environmentInjector = applicationRef.injector; \r\n \r\n if (content instanceof TemplateRef) {\r\n const viewContainerRef = injector.get(ViewContainerRef);\r\n const renderer=injector.get(Renderer2);\r\n const ngArguments = this.getNgArguments();\r\n const embeddedViewRef = viewContainerRef.createEmbeddedView(content, { ngArguments });\r\n embeddedViewRef.rootNodes.forEach(node =>renderer.appendChild(container,node));\r\n embeddedViewRef.detectChanges();\r\n node.on('change:data', () => this.setInstanceInput(content, embeddedViewRef));\r\n } else { \r\n const componentRef = createComponent(content, { environmentInjector, hostElement: container });\r\n applicationRef.attachView(componentRef.hostView);\r\n this.setInstanceInput(content, componentRef);\r\n componentRef.changeDetectorRef.detectChanges();\r\n node.on('change:data', () => this.setInstanceInput(content, componentRef));\r\n node.on('removed', () => componentRef.destroy());\r\n }\r\n }\r\n }\r\n\r\n protected unmountAngularContent(): HTMLDivElement {\r\n const container = this.getNodeContainer();\r\n container.innerHTML = '';\r\n return container;\r\n }\r\n\r\n\r\n private getNgArguments(): Record<string, any> {\r\n const input = (this.cell.data?.ngArguments as Record<string, any>) || {};\r\n return input;\r\n }\r\n\r\n /** 当执行 node.setData() 时需要对实例设置新的输入值 */\r\n private setInstanceInput(content: Content, ref: EmbeddedViewRef<any> | ComponentRef<any>): void {\r\n const ngArguments = this.getNgArguments();\r\n if (content instanceof TemplateRef) {\r\n const embeddedViewRef = ref as EmbeddedViewRef<any>;\r\n embeddedViewRef.context = { ngArguments };\r\n } else {\r\n const componentRef = ref as ComponentRef<any>;\r\n Object.keys(ngArguments).forEach(v => componentRef.setInput(v, ngArguments[v]));\r\n componentRef.changeDetectorRef.detectChanges();\r\n }\r\n }\r\n}\r\n\r\nexport namespace AngularShapeView {\r\n export const action = 'angular' as any;\r\n\r\n AngularShapeView.config({\r\n bootstrap: [action],\r\n actions: {\r\n component: action,\r\n },\r\n });\r\n\r\n NodeView.registry.register('angular-shape-view', AngularShapeView, true);\r\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAAA;AACA;AAGM,MAAO,YAEX,SAAQ,IAAgB,CAAA;AAAI;AAU9B,CAAA,UAAiB,YAAY,EAAA;IACzB,SAAS,SAAS,CAAC,MAAe,EAAA;QAC9B,MAAM,MAAM,GAAwB,EAAE;AACtC,QAAA,MAAM,OAAO,GAAG,MAAM,CAAC,sBAAsB,EAAE;QAE/C,IAAI,MAAM,EAAE;YACR,MAAM,CAAC,IAAI,CACP,GAAG;AACC,gBAAA;AACI,oBAAA,OAAO,EAAE,MAAM;AACf,oBAAA,QAAQ,EAAE,MAAM;AACnB,iBAAA;gBACD,OAAO;AACV,aAAA,CACJ;;aACE;AACH,YAAA,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;;AAGxB,QAAA,OAAO,MAAM;;IAGjB,YAAY,CAAC,MAAM,CAAa;AAC5B,QAAA,IAAI,EAAE,oBAAoB;QAC1B,MAAM,EAAE,SAAS,EAAE;AACnB,QAAA,KAAK,EAAE;AACH,YAAA,IAAI,EAAE;AACF,gBAAA,IAAI,EAAE,MAAM;AACZ,gBAAA,MAAM,EAAE,MAAM;AACd,gBAAA,QAAQ,EAAE,MAAM;AAChB,gBAAA,SAAS,EAAE,MAAM;AACpB,aAAA;AACD,YAAA,EAAE,EAAE;AACA,gBAAA,QAAQ,EAA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AE,iBAAA,MAAM;AAClB,SAAA;AACF,KAAA,CAAC;IAEF,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,oBAAoB,EAAE,gBAAgB,EAAE,IAAI,CAAC;AAC1E,CAAC,EAXgB,gBAAgB,KAAhB,gBAAgB,GAWhC,EAAA,CAAA,CAAA;;ACrGD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cmat",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Yu Tao",
|
|
6
6
|
"email": "916426364@qq.com"
|
|
@@ -57,34 +57,6 @@
|
|
|
57
57
|
"types": "./version/index.d.ts",
|
|
58
58
|
"default": "./fesm2022/cmat-version.mjs"
|
|
59
59
|
},
|
|
60
|
-
"./directives/animate-on-scroll": {
|
|
61
|
-
"types": "./directives/animate-on-scroll/index.d.ts",
|
|
62
|
-
"default": "./fesm2022/cmat-directives-animate-on-scroll.mjs"
|
|
63
|
-
},
|
|
64
|
-
"./directives/arrow-cursor": {
|
|
65
|
-
"types": "./directives/arrow-cursor/index.d.ts",
|
|
66
|
-
"default": "./fesm2022/cmat-directives-arrow-cursor.mjs"
|
|
67
|
-
},
|
|
68
|
-
"./directives/autofocus": {
|
|
69
|
-
"types": "./directives/autofocus/index.d.ts",
|
|
70
|
-
"default": "./fesm2022/cmat-directives-autofocus.mjs"
|
|
71
|
-
},
|
|
72
|
-
"./directives/data-exporter": {
|
|
73
|
-
"types": "./directives/data-exporter/index.d.ts",
|
|
74
|
-
"default": "./fesm2022/cmat-directives-data-exporter.mjs"
|
|
75
|
-
},
|
|
76
|
-
"./directives/debounce": {
|
|
77
|
-
"types": "./directives/debounce/index.d.ts",
|
|
78
|
-
"default": "./fesm2022/cmat-directives-debounce.mjs"
|
|
79
|
-
},
|
|
80
|
-
"./directives/digit-only": {
|
|
81
|
-
"types": "./directives/digit-only/index.d.ts",
|
|
82
|
-
"default": "./fesm2022/cmat-directives-digit-only.mjs"
|
|
83
|
-
},
|
|
84
|
-
"./directives/equal-validator": {
|
|
85
|
-
"types": "./directives/equal-validator/index.d.ts",
|
|
86
|
-
"default": "./fesm2022/cmat-directives-equal-validator.mjs"
|
|
87
|
-
},
|
|
88
60
|
"./components/adapter": {
|
|
89
61
|
"types": "./components/adapter/index.d.ts",
|
|
90
62
|
"default": "./fesm2022/cmat-components-adapter.mjs"
|
|
@@ -149,14 +121,14 @@
|
|
|
149
121
|
"types": "./components/material-color-picker/index.d.ts",
|
|
150
122
|
"default": "./fesm2022/cmat-components-material-color-picker.mjs"
|
|
151
123
|
},
|
|
152
|
-
"./components/navigation": {
|
|
153
|
-
"types": "./components/navigation/index.d.ts",
|
|
154
|
-
"default": "./fesm2022/cmat-components-navigation.mjs"
|
|
155
|
-
},
|
|
156
124
|
"./components/material-datetimepicker": {
|
|
157
125
|
"types": "./components/material-datetimepicker/index.d.ts",
|
|
158
126
|
"default": "./fesm2022/cmat-components-material-datetimepicker.mjs"
|
|
159
127
|
},
|
|
128
|
+
"./components/navigation": {
|
|
129
|
+
"types": "./components/navigation/index.d.ts",
|
|
130
|
+
"default": "./fesm2022/cmat-components-navigation.mjs"
|
|
131
|
+
},
|
|
160
132
|
"./components/opt-input": {
|
|
161
133
|
"types": "./components/opt-input/index.d.ts",
|
|
162
134
|
"default": "./fesm2022/cmat-components-opt-input.mjs"
|
|
@@ -189,14 +161,14 @@
|
|
|
189
161
|
"types": "./components/select-search/index.d.ts",
|
|
190
162
|
"default": "./fesm2022/cmat-components-select-search.mjs"
|
|
191
163
|
},
|
|
192
|
-
"./components/select-tree": {
|
|
193
|
-
"types": "./components/select-tree/index.d.ts",
|
|
194
|
-
"default": "./fesm2022/cmat-components-select-tree.mjs"
|
|
195
|
-
},
|
|
196
164
|
"./components/select-table": {
|
|
197
165
|
"types": "./components/select-table/index.d.ts",
|
|
198
166
|
"default": "./fesm2022/cmat-components-select-table.mjs"
|
|
199
167
|
},
|
|
168
|
+
"./components/select-tree": {
|
|
169
|
+
"types": "./components/select-tree/index.d.ts",
|
|
170
|
+
"default": "./fesm2022/cmat-components-select-tree.mjs"
|
|
171
|
+
},
|
|
200
172
|
"./components/speed-dial": {
|
|
201
173
|
"types": "./components/speed-dial/index.d.ts",
|
|
202
174
|
"default": "./fesm2022/cmat-components-speed-dial.mjs"
|
|
@@ -221,10 +193,42 @@
|
|
|
221
193
|
"types": "./components/upload/index.d.ts",
|
|
222
194
|
"default": "./fesm2022/cmat-components-upload.mjs"
|
|
223
195
|
},
|
|
196
|
+
"./components/x6-angular-shape": {
|
|
197
|
+
"types": "./components/x6-angular-shape/index.d.ts",
|
|
198
|
+
"default": "./fesm2022/cmat-components-x6-angular-shape.mjs"
|
|
199
|
+
},
|
|
224
200
|
"./lib/mock-api": {
|
|
225
201
|
"types": "./lib/mock-api/index.d.ts",
|
|
226
202
|
"default": "./fesm2022/cmat-lib-mock-api.mjs"
|
|
227
203
|
},
|
|
204
|
+
"./directives/animate-on-scroll": {
|
|
205
|
+
"types": "./directives/animate-on-scroll/index.d.ts",
|
|
206
|
+
"default": "./fesm2022/cmat-directives-animate-on-scroll.mjs"
|
|
207
|
+
},
|
|
208
|
+
"./directives/arrow-cursor": {
|
|
209
|
+
"types": "./directives/arrow-cursor/index.d.ts",
|
|
210
|
+
"default": "./fesm2022/cmat-directives-arrow-cursor.mjs"
|
|
211
|
+
},
|
|
212
|
+
"./directives/autofocus": {
|
|
213
|
+
"types": "./directives/autofocus/index.d.ts",
|
|
214
|
+
"default": "./fesm2022/cmat-directives-autofocus.mjs"
|
|
215
|
+
},
|
|
216
|
+
"./directives/data-exporter": {
|
|
217
|
+
"types": "./directives/data-exporter/index.d.ts",
|
|
218
|
+
"default": "./fesm2022/cmat-directives-data-exporter.mjs"
|
|
219
|
+
},
|
|
220
|
+
"./directives/debounce": {
|
|
221
|
+
"types": "./directives/debounce/index.d.ts",
|
|
222
|
+
"default": "./fesm2022/cmat-directives-debounce.mjs"
|
|
223
|
+
},
|
|
224
|
+
"./directives/digit-only": {
|
|
225
|
+
"types": "./directives/digit-only/index.d.ts",
|
|
226
|
+
"default": "./fesm2022/cmat-directives-digit-only.mjs"
|
|
227
|
+
},
|
|
228
|
+
"./directives/equal-validator": {
|
|
229
|
+
"types": "./directives/equal-validator/index.d.ts",
|
|
230
|
+
"default": "./fesm2022/cmat-directives-equal-validator.mjs"
|
|
231
|
+
},
|
|
228
232
|
"./pipes/bytes": {
|
|
229
233
|
"types": "./pipes/bytes/index.d.ts",
|
|
230
234
|
"default": "./fesm2022/cmat-pipes-bytes.mjs"
|
|
@@ -237,14 +241,14 @@
|
|
|
237
241
|
"types": "./pipes/find-by-key/index.d.ts",
|
|
238
242
|
"default": "./fesm2022/cmat-pipes-find-by-key.mjs"
|
|
239
243
|
},
|
|
240
|
-
"./pipes/keys": {
|
|
241
|
-
"types": "./pipes/keys/index.d.ts",
|
|
242
|
-
"default": "./fesm2022/cmat-pipes-keys.mjs"
|
|
243
|
-
},
|
|
244
244
|
"./pipes/group-by": {
|
|
245
245
|
"types": "./pipes/group-by/index.d.ts",
|
|
246
246
|
"default": "./fesm2022/cmat-pipes-group-by.mjs"
|
|
247
247
|
},
|
|
248
|
+
"./pipes/keys": {
|
|
249
|
+
"types": "./pipes/keys/index.d.ts",
|
|
250
|
+
"default": "./fesm2022/cmat-pipes-keys.mjs"
|
|
251
|
+
},
|
|
248
252
|
"./pipes/secure": {
|
|
249
253
|
"types": "./pipes/secure/index.d.ts",
|
|
250
254
|
"default": "./fesm2022/cmat-pipes-secure.mjs"
|
|
@@ -253,14 +257,14 @@
|
|
|
253
257
|
"types": "./pipes/uppercase/index.d.ts",
|
|
254
258
|
"default": "./fesm2022/cmat-pipes-uppercase.mjs"
|
|
255
259
|
},
|
|
256
|
-
"./services/alert": {
|
|
257
|
-
"types": "./services/alert/index.d.ts",
|
|
258
|
-
"default": "./fesm2022/cmat-services-alert.mjs"
|
|
259
|
-
},
|
|
260
260
|
"./services/config": {
|
|
261
261
|
"types": "./services/config/index.d.ts",
|
|
262
262
|
"default": "./fesm2022/cmat-services-config.mjs"
|
|
263
263
|
},
|
|
264
|
+
"./services/alert": {
|
|
265
|
+
"types": "./services/alert/index.d.ts",
|
|
266
|
+
"default": "./fesm2022/cmat-services-alert.mjs"
|
|
267
|
+
},
|
|
264
268
|
"./services/confirmation": {
|
|
265
269
|
"types": "./services/confirmation/index.d.ts",
|
|
266
270
|
"default": "./fesm2022/cmat-services-confirmation.mjs"
|