@limetech/lime-web-components 5.3.0 → 5.4.0

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.
@@ -4,6 +4,7 @@ exports.limeobjects = exports.limetypes = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  tslib_1.__exportStar(require("./component-testing"), exports);
6
6
  tslib_1.__exportStar(require("./platform"), exports);
7
+ tslib_1.__exportStar(require("./services"), exports);
7
8
  var limetypes_1 = require("./limetypes");
8
9
  Object.defineProperty(exports, "limetypes", { enumerable: true, get: function () { return limetypes_1.limetypes; } });
9
10
  var limeobjects_1 = require("./limeobjects");
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getDateTimeFormatter = void 0;
4
+ var getDateTimeFormatter = function () {
5
+ return {
6
+ format: jest.fn(function (date, type) {
7
+ return "".concat(typeof date === 'object' ? JSON.stringify(date) : date, " - ").concat(typeof type === 'object' ? JSON.stringify(type) : type);
8
+ }),
9
+ };
10
+ };
11
+ exports.getDateTimeFormatter = getDateTimeFormatter;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./datetimeformatter"), exports);
5
+ tslib_1.__exportStar(require("./translator"), exports);
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTranslator = void 0;
4
+ var getTranslator = function () {
5
+ return {
6
+ get: jest.fn(function (id, params) { return id; }),
7
+ };
8
+ };
9
+ exports.getTranslator = getTranslator;
@@ -1,5 +1,6 @@
1
1
  export * from './component-testing';
2
2
  export * from './platform';
3
+ export * from './services';
3
4
  export { limetypes } from './limetypes';
4
5
  export { limeobjects } from './limeobjects';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './component-testing';
2
2
  export * from './platform';
3
+ export * from './services';
3
4
  export { limetypes } from './limetypes';
4
5
  export { limeobjects } from './limeobjects';
@@ -0,0 +1,3 @@
1
+ import { DateTimeFormatter } from '../../datetimeformatter';
2
+ export declare const getDateTimeFormatter: () => DateTimeFormatter;
3
+ //# sourceMappingURL=datetimeformatter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datetimeformatter.d.ts","sourceRoot":"","sources":["../../../src/testing/services/datetimeformatter.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,EAGpB,MAAM,yBAAyB,CAAC;AAEjC,eAAO,MAAM,oBAAoB,yBAYhC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export const getDateTimeFormatter = () => {
2
+ return {
3
+ format: jest.fn((date, type) => `${typeof date === 'object' ? JSON.stringify(date) : date} - ${typeof type === 'object' ? JSON.stringify(type) : type}`),
4
+ };
5
+ };
@@ -0,0 +1,3 @@
1
+ export * from './datetimeformatter';
2
+ export * from './translator';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './datetimeformatter';
2
+ export * from './translator';
@@ -0,0 +1,3 @@
1
+ import { Translator } from '../../translator';
2
+ export declare const getTranslator: () => Translator;
3
+ //# sourceMappingURL=translator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translator.d.ts","sourceRoot":"","sources":["../../../src/testing/services/translator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,eAAO,MAAM,aAAa,kBASzB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export const getTranslator = () => {
2
+ return {
3
+ get: jest.fn((id, params) => id),
4
+ };
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-web-components",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "description": "Lime Web Components",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",
@@ -29,7 +29,7 @@
29
29
  "postpublish:dry-run": "npm run docs:publish -- --v=current --dryRun"
30
30
  },
31
31
  "dependencies": {
32
- "@stencil/core": "^2.22.1",
32
+ "@stencil/core": "^2.22.2",
33
33
  "rxjs": "^7.8.0",
34
34
  "tslib": "^2.5.0"
35
35
  },
@@ -37,8 +37,8 @@
37
37
  "@commitlint/config-conventional": "^16.2.4",
38
38
  "@microsoft/api-extractor": "^7.34.1",
39
39
  "@types/jest": "^27.5.0",
40
- "@typescript-eslint/eslint-plugin": "^5.49.0",
41
- "@typescript-eslint/parser": "^5.49.0",
40
+ "@typescript-eslint/eslint-plugin": "^5.51.0",
41
+ "@typescript-eslint/parser": "^5.50.0",
42
42
  "commitizen": "^4.3.0",
43
43
  "cz-conventional-changelog": "^3.3.0",
44
44
  "eslint": "^8.32.0",