dyo-tools 0.1.0-rc1
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/.c8rc.json +4 -0
- package/.eslintignore +2 -0
- package/.eslintrc.json +41 -0
- package/Makefile +34 -0
- package/README.md +0 -0
- package/TODO.md +18 -0
- package/babel.config.js +1 -0
- package/dist/core/DTBunch.d.ts +32 -0
- package/dist/core/DTBunch.js +283 -0
- package/dist/core/DTBunch.js.map +1 -0
- package/dist/core/DTComponent.d.ts +20 -0
- package/dist/core/DTComponent.js +41 -0
- package/dist/core/DTComponent.js.map +1 -0
- package/dist/core/DTComponentWithMeta.d.ts +9 -0
- package/dist/core/DTComponentWithMeta.js +32 -0
- package/dist/core/DTComponentWithMeta.js.map +1 -0
- package/dist/core/DTElement.d.ts +13 -0
- package/dist/core/DTElement.js +46 -0
- package/dist/core/DTElement.js.map +1 -0
- package/dist/core/DTError.d.ts +13 -0
- package/dist/core/DTError.js +28 -0
- package/dist/core/DTError.js.map +1 -0
- package/dist/core/DTPlayer.d.ts +8 -0
- package/dist/core/DTPlayer.js +30 -0
- package/dist/core/DTPlayer.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1321 -0
- package/dist/types/index.d.ts +58 -0
- package/dist/types/index.js +15 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/filters.d.ts +6 -0
- package/dist/utils/filters.js +39 -0
- package/dist/utils/filters.js.map +1 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +22 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1388 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/DTBunch.html +265 -0
- package/docs/classes/DTComponent.html +49 -0
- package/docs/classes/DTComponentWithMeta.html +73 -0
- package/docs/classes/DTElement.html +95 -0
- package/docs/classes/DTError.html +32 -0
- package/docs/classes/DTPlayer.html +86 -0
- package/docs/index.html +1 -0
- package/docs/modules.html +1 -0
- package/jest.config.js +6 -0
- package/package.json +41 -0
- package/src/core/DTBunch.ts +600 -0
- package/src/core/DTComponent.ts +135 -0
- package/src/core/DTComponentWithMeta.ts +62 -0
- package/src/core/DTElement.ts +96 -0
- package/src/core/DTError.ts +78 -0
- package/src/core/DTPlayer.ts +57 -0
- package/src/index.ts +7 -0
- package/src/types/index.ts +76 -0
- package/src/utils/filters.ts +64 -0
- package/test/core/DTBunch.double.ts +150 -0
- package/test/core/DTBunch.spec.ts +1374 -0
- package/test/core/DTComponent.double.ts +69 -0
- package/test/core/DTComponent.spec.ts +182 -0
- package/test/core/DTComponentWithMeta.double.ts +88 -0
- package/test/core/DTComponentWithMeta.spec.ts +112 -0
- package/test/core/DTElement.double.ts +27 -0
- package/test/core/DTElement.spec.ts +181 -0
- package/test/core/DTError.double.ts +43 -0
- package/test/core/DTError.spec.ts +106 -0
- package/test/core/DTPlayer.double.ts +49 -0
- package/test/core/DTPlayer.spec.ts +102 -0
- package/test/utils/filters.spec.ts +109 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DTError.js","sourceRoot":"","sources":["../../src/core/DTError.ts"],"names":[],"mappings":";;AAEA,MAAqB,aAAc,SAAQ,KAAK;IAiC9C,YAAY,IAAY,EAAE,OAAe,EAAE,SAA6B,EAAE,SAA6B;QACrG,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAKD,OAAO;QACL,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAKD,UAAU;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAKD,YAAY;QACV,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAKD,YAAY;QACV,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAKD,YAAY;QACV,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF;AA3ED,gCA2EC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import DYOToolsComponentWithMeta from './DTComponentWithMeta';
|
|
2
|
+
import { DTAcceptedMetaData, DTPlayerToObject } from '../types';
|
|
3
|
+
export default class DYOToolsPlayer<IComponentMeta extends DTAcceptedMetaData> extends DYOToolsComponentWithMeta<IComponentMeta> {
|
|
4
|
+
protected _componentType: string;
|
|
5
|
+
copy(): DYOToolsPlayer<IComponentMeta>;
|
|
6
|
+
toObject(): DTPlayerToObject<IComponentMeta>;
|
|
7
|
+
toString(): string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const DTComponentWithMeta_1 = require("./DTComponentWithMeta");
|
|
4
|
+
class DYOToolsPlayer extends DTComponentWithMeta_1.default {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
this._componentType = 'player';
|
|
8
|
+
}
|
|
9
|
+
copy() {
|
|
10
|
+
const copyElement = new DYOToolsPlayer(this._key);
|
|
11
|
+
copyElement.setManyMeta(Object.assign({}, this.getManyMeta()));
|
|
12
|
+
return copyElement;
|
|
13
|
+
}
|
|
14
|
+
toObject() {
|
|
15
|
+
const objectPlayer = {
|
|
16
|
+
id: this._id,
|
|
17
|
+
key: this._key,
|
|
18
|
+
type: this._componentType,
|
|
19
|
+
};
|
|
20
|
+
if (this._meta && Object.keys(this._meta).length > 0) {
|
|
21
|
+
objectPlayer.meta = Object.assign({}, this.getManyMeta());
|
|
22
|
+
}
|
|
23
|
+
return objectPlayer;
|
|
24
|
+
}
|
|
25
|
+
toString() {
|
|
26
|
+
return `Component ${this._key} - Type: Player`;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.default = DYOToolsPlayer;
|
|
30
|
+
//# sourceMappingURL=DTPlayer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DTPlayer.js","sourceRoot":"","sources":["../../src/core/DTPlayer.ts"],"names":[],"mappings":";;AAAA,+DAA8D;AAG9D,MAAqB,cAA0D,SAAQ,6BAAyC;IAAhI;;QAIY,mBAAc,GAAG,QAAQ,CAAC;IAiDtC,CAAC;IAxCC,IAAI;QACF,MAAM,WAAW,GAAG,IAAI,cAAc,CAAiB,IAAI,CAAC,IAAI,CAAC,CAAC;QAClE,WAAW,CAAC,WAAW,mBAAM,IAAI,CAAC,WAAW,EAAE,EAAG,CAAC;QAEnD,OAAO,WAAW,CAAC;IACrB,CAAC;IAaD,QAAQ;QACN,MAAM,YAAY,GAAqC;YACrD,EAAE,EAAE,IAAI,CAAC,GAAG;YACZ,GAAG,EAAE,IAAI,CAAC,IAAI;YACd,IAAI,EAAE,IAAI,CAAC,cAAc;SAC1B,CAAC;QAEF,IAAI,IAAI,CAAC,KAAK,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACpD,YAAY,CAAC,IAAI,qBAAQ,IAAI,CAAC,WAAW,EAAE,CAAE,CAAC;SAC/C;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;IAOD,QAAQ;QACN,OAAO,aAAa,IAAI,CAAC,IAAI,iBAAiB,CAAC;IACjD,CAAC;CACF;AArDD,iCAqDC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as DTComponent } from './core/DTComponent';
|
|
2
|
+
export { default as DTComponentWithMeta } from './core/DTComponentWithMeta';
|
|
3
|
+
export { default as DTElement } from './core/DTElement';
|
|
4
|
+
export { default as DTBunch } from './core/DTBunch';
|
|
5
|
+
export { default as DTPlayer } from './core/DTPlayer';
|
|
6
|
+
export { default as DTError } from './core/DTError';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DTError = exports.DTPlayer = exports.DTBunch = exports.DTElement = exports.DTComponentWithMeta = exports.DTComponent = void 0;
|
|
4
|
+
var DTComponent_1 = require("./core/DTComponent");
|
|
5
|
+
Object.defineProperty(exports, "DTComponent", { enumerable: true, get: function () { return DTComponent_1.default; } });
|
|
6
|
+
var DTComponentWithMeta_1 = require("./core/DTComponentWithMeta");
|
|
7
|
+
Object.defineProperty(exports, "DTComponentWithMeta", { enumerable: true, get: function () { return DTComponentWithMeta_1.default; } });
|
|
8
|
+
var DTElement_1 = require("./core/DTElement");
|
|
9
|
+
Object.defineProperty(exports, "DTElement", { enumerable: true, get: function () { return DTElement_1.default; } });
|
|
10
|
+
var DTBunch_1 = require("./core/DTBunch");
|
|
11
|
+
Object.defineProperty(exports, "DTBunch", { enumerable: true, get: function () { return DTBunch_1.default; } });
|
|
12
|
+
var DTPlayer_1 = require("./core/DTPlayer");
|
|
13
|
+
Object.defineProperty(exports, "DTPlayer", { enumerable: true, get: function () { return DTPlayer_1.default; } });
|
|
14
|
+
var DTError_1 = require("./core/DTError");
|
|
15
|
+
Object.defineProperty(exports, "DTError", { enumerable: true, get: function () { return DTError_1.default; } });
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,kDAA4D;AAAnD,0GAAA,OAAO,OAAe;AAC/B,kEAA4E;AAAnE,0HAAA,OAAO,OAAuB;AACvC,8CAAwD;AAA/C,sGAAA,OAAO,OAAa;AAC7B,0CAAoD;AAA3C,kGAAA,OAAO,OAAW;AAC3B,4CAAsD;AAA7C,oGAAA,OAAO,OAAY;AAC5B,0CAAoD;AAA3C,kGAAA,OAAO,OAAW"}
|