@tstdl/base 0.71.16 → 0.71.17
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/css/theme/theme.service.js +21 -2
- package/css/theme/theme.service.js.map +1 -1
- package/package.json +3 -3
- package/tokens.d.ts +1 -0
- package/tokens.js +6 -0
- package/tokens.js.map +1 -0
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
2
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
15
|
exports.ThemeService = void 0;
|
|
16
|
+
const container_1 = require("../../container");
|
|
17
|
+
const tokens_1 = require("../../tokens");
|
|
4
18
|
const array_1 = require("../../utils/array/array");
|
|
5
19
|
const type_guards_1 = require("../../utils/type-guards");
|
|
6
20
|
const chroma = require("chroma-js");
|
|
7
21
|
const paletteNumbers = [50, ...(0, array_1.createArray)(9, (index) => (100 + (100 * index)))];
|
|
8
|
-
class ThemeService {
|
|
22
|
+
let ThemeService = class ThemeService {
|
|
9
23
|
constructor(document) {
|
|
10
24
|
this.styleElement = document.createElement('style');
|
|
11
25
|
document.head.appendChild(this.styleElement);
|
|
@@ -37,7 +51,12 @@ class ThemeService {
|
|
|
37
51
|
}
|
|
38
52
|
`;
|
|
39
53
|
}
|
|
40
|
-
}
|
|
54
|
+
};
|
|
55
|
+
ThemeService = __decorate([
|
|
56
|
+
(0, container_1.singleton)(),
|
|
57
|
+
__param(0, (0, container_1.inject)(tokens_1.DOCUMENT)),
|
|
58
|
+
__metadata("design:paramtypes", [Document])
|
|
59
|
+
], ThemeService);
|
|
41
60
|
exports.ThemeService = ThemeService;
|
|
42
61
|
function buildThemeRules(theme) {
|
|
43
62
|
var _a, _b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.service.js","sourceRoot":"","sources":["../../../source/css/theme/theme.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.service.js","sourceRoot":"","sources":["../../../source/css/theme/theme.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAgD;AAChD,yCAAoC;AACpC,mDAAkD;AAClD,yDAA0D;AAC1D,oCAAoC;AAGpC,MAAM,cAAc,GAAG,CAAC,EAAE,EAAE,GAAG,IAAA,mBAAW,EAAC,CAAC,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAGjF,IAAa,YAAY,GAAzB,MAAa,YAAY;IAGvB,YAA8B,QAAkB;QAC9C,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACpD,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC/C,CAAC;IAED,QAAQ,CAAC,KAAY,EAAE,SAAiB;QACtC,MAAM,UAAU,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;QAC1C,MAAM,SAAS,GAAG,IAAA,uBA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AAE,KAAa;IAC9F,MAAM,SAAS,GAAG,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC7C,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9E,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,WAAW,EAAE,EAAE,KAAK,CAAC,EAAE,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,WAAW,WAAW,IAAI,MAAM,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,CAAU,CAAC,CAAC,CAAC;IAC9J,MAAM,oBAAoB,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,KAAK,KAAK,GAAG,CAAC,CAAC;IAEpF,OAAO,oBAAoB,CAAC;AAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tstdl/base",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.17",
|
|
4
4
|
"author": "Patrick Hein",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rxjs": "^7"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@types/chroma-js": "^2.1
|
|
21
|
+
"@types/chroma-js": "^2.1",
|
|
22
22
|
"@types/koa__router": "8.0",
|
|
23
23
|
"@types/luxon": "2.3",
|
|
24
24
|
"@types/minio": "7.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@elastic/elasticsearch": "^8.2",
|
|
39
39
|
"@koa/router": "^10.1",
|
|
40
40
|
"@tstdl/angular": "^0.10",
|
|
41
|
-
"chroma-js": "^2.4
|
|
41
|
+
"chroma-js": "^2.4",
|
|
42
42
|
"got": "^12.0",
|
|
43
43
|
"handlebars": "^4.7",
|
|
44
44
|
"koa": "^2.13",
|
package/tokens.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DOCUMENT: import("./container").InjectionToken<Document, any>;
|
package/tokens.js
ADDED
package/tokens.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../source/tokens.ts"],"names":[],"mappings":";;;AAAA,2CAA6C;AAEhC,QAAA,QAAQ,GAAG,IAAA,0BAAc,EAAW,UAAU,CAAC,CAAC"}
|