dom-render 1.0.90 → 1.0.91
Sign up to get free protection for your applications and to get access to all the features.
- package/README.MD +1 -1
- package/components/ComponentSet.d.ts +5 -2
- package/components/ComponentSet.js +2 -3
- package/configs/Config.d.ts +5 -0
- package/dist/bundle.js +587 -572
- package/operators/Dr.d.ts +7 -3
- package/operators/Dr.js +21 -23
- package/operators/DrAppender.d.ts +7 -3
- package/operators/DrAppender.js +28 -26
- package/operators/DrFor.d.ts +7 -3
- package/operators/DrFor.js +24 -23
- package/operators/DrForOf.d.ts +7 -3
- package/operators/DrForOf.js +27 -26
- package/operators/DrForm.d.ts +7 -3
- package/operators/DrForm.js +51 -54
- package/operators/DrIf.d.ts +7 -3
- package/operators/DrIf.js +29 -32
- package/operators/DrInnerHTML.d.ts +7 -3
- package/operators/DrInnerHTML.js +19 -21
- package/operators/DrInnerText.d.ts +7 -3
- package/operators/DrInnerText.js +17 -19
- package/operators/DrPre.d.ts +6 -3
- package/operators/DrPre.js +9 -6
- package/operators/DrRepeat.d.ts +7 -3
- package/operators/DrRepeat.js +24 -23
- package/operators/DrTargetAttr.d.ts +6 -3
- package/operators/DrTargetAttr.js +10 -8
- package/operators/DrTargetElement.d.ts +6 -3
- package/operators/DrTargetElement.js +10 -32
- package/operators/DrThis.d.ts +4 -3
- package/operators/DrThis.js +21 -27
- package/operators/OperatorExecuter.d.ts +48 -0
- package/operators/OperatorExecuter.js +43 -0
- package/operators/OperatorExecuterAttrRequire.d.ts +8 -0
- package/operators/OperatorExecuterAttrRequire.js +55 -0
- package/package.json +1 -1
- package/rawsets/RawSet.d.ts +1 -1
- package/rawsets/RawSet.js +31 -31
- package/operators/OperatorRender.d.ts +0 -45
- package/operators/OperatorRender.js +0 -21
package/README.MD
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
+
export declare type ComponentSetConfig = {
|
2
|
+
objPath?: string | null;
|
3
|
+
};
|
1
4
|
export declare class ComponentSet {
|
2
5
|
obj: any;
|
3
6
|
template?: string | undefined;
|
4
7
|
styles?: string[] | undefined;
|
5
|
-
|
6
|
-
constructor(obj: any);
|
8
|
+
config: ComponentSetConfig;
|
9
|
+
constructor(obj: any, template?: string | undefined, styles?: string[] | undefined, config?: ComponentSetConfig);
|
7
10
|
}
|
@@ -2,12 +2,11 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ComponentSet = void 0;
|
4
4
|
var ComponentSet = /** @class */ (function () {
|
5
|
-
function ComponentSet(obj, template, styles,
|
6
|
-
if (styleLocale === void 0) { styleLocale = false; }
|
5
|
+
function ComponentSet(obj, template, styles, config) {
|
7
6
|
this.obj = obj;
|
8
7
|
this.template = template;
|
9
8
|
this.styles = styles;
|
10
|
-
this.
|
9
|
+
this.config = Object.assign({ objPath: 'obj' }, config);
|
11
10
|
}
|
12
11
|
return ComponentSet;
|
13
12
|
}());
|
package/configs/Config.d.ts
CHANGED
@@ -4,10 +4,15 @@ import { Router } from '../routers/Router';
|
|
4
4
|
import { Messenger } from '../messenger/Messenger';
|
5
5
|
import { TargetElement } from './TargetElement';
|
6
6
|
import { TargetAttr } from './TargetAttr';
|
7
|
+
import { Attrs } from '../rawsets/Attrs';
|
8
|
+
import { OperatorAround } from '../operators/OperatorExecuter';
|
7
9
|
export declare type Config = {
|
8
10
|
window: Window;
|
9
11
|
targetElements?: TargetElement[];
|
10
12
|
targetAttrs?: TargetAttr[];
|
13
|
+
operatorAround?: {
|
14
|
+
[key in keyof Attrs]?: OperatorAround;
|
15
|
+
};
|
11
16
|
onElementInit?: (name: string, obj: any, rawSet: RawSet, targetElement: TargetElement) => any;
|
12
17
|
onAttrInit?: (name: string, attrValue: string, obj: any, rawSet: RawSet) => any;
|
13
18
|
proxyExcludeTyps?: ConstructorType<any>[];
|