@openremote/or-translate 1.8.0-snapshot.20250723094757 → 1.8.0-snapshot.20250725070921

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/lib/index.d.ts CHANGED
@@ -8,7 +8,7 @@ declare const OrTranslate_base: {
8
8
  _i18nextJustInitialized: boolean;
9
9
  connectedCallback(): void;
10
10
  disconnectedCallback(): void;
11
- shouldUpdate(changedProps: import("lit").PropertyValueMap<any> | Map<PropertyKey, unknown>): any;
11
+ shouldUpdate(changedProps: import("lit").PropertyValues): any;
12
12
  initCallback: (options: InitOptions) => void;
13
13
  langChangedCallback: () => void;
14
14
  readonly isConnected: boolean;
@@ -18,6 +18,6 @@ export declare class OrTranslate extends OrTranslate_base {
18
18
  static styles: import("lit").CSSResult;
19
19
  value?: string;
20
20
  options?: TOptions<InitOptions>;
21
- protected render(): import("lit-html").TemplateResult<1>;
21
+ protected render(): import("lit").TemplateResult<1>;
22
22
  protected _getTranslatedValue(): string;
23
23
  }
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
- var __decorate=this&&this.__decorate||function(t,e,r,a){var o,n=arguments.length,l=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,r,a);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(l=(n<3?o(l):n>3?o(e,r,l):o(e,r))||l);return n>3&&l&&Object.defineProperty(e,r,l),l};import{translate}from"./translate-mixin";import i18next from"i18next";import{LitElement,html,css}from"lit";import{customElement,property}from"lit/decorators.js";export{i18next};export{translate};let OrTranslate=class extends(translate(i18next)(LitElement)){render(){return html`
1
+ var __decorate=this&&this.__decorate||function(e,t,r,a){var o,n=arguments.length,i=n<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,a);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(n<3?o(i):n>3?o(t,r,i):o(t,r))||i);return n>3&&i&&Object.defineProperty(t,r,i),i};import{translate as e}from"./translate-mixin";import t from"i18next";import{LitElement as r,html as a,css as o}from"lit";import{customElement as n,property as i}from"lit/decorators.js";let OrTranslate=class extends e(t)(r){render(){return a`
2
2
  ${this._getTranslatedValue()}
3
- `}_getTranslatedValue(){return this.value?i18next.isInitialized?i18next.t(this.value,this.options):this.value:""}};OrTranslate.styles=css`
3
+ `}_getTranslatedValue(){return this.value?t.isInitialized?t.t(this.value,this.options):this.value:""}};OrTranslate.styles=o`
4
4
  :host {
5
5
  display: inline-block;
6
6
  }
@@ -8,4 +8,4 @@ var __decorate=this&&this.__decorate||function(t,e,r,a){var o,n=arguments.length
8
8
  :host([hidden]) {
9
9
  display: none;
10
10
  }
11
- `,__decorate([property({type:String})],OrTranslate.prototype,"value",void 0),__decorate([property({type:Object})],OrTranslate.prototype,"options",void 0),OrTranslate=__decorate([customElement("or-translate")],OrTranslate);export{OrTranslate};
11
+ `,__decorate([i({type:String})],OrTranslate.prototype,"value",void 0),__decorate([i({type:Object})],OrTranslate.prototype,"options",void 0),OrTranslate=__decorate([n("or-translate")],OrTranslate);export{t as i18next,e as translate,OrTranslate};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openremote/or-translate",
3
- "version": "1.8.0-snapshot.20250723094757",
3
+ "version": "1.8.0-snapshot.20250725070921",
4
4
  "description": "Provides a web component for translations using i18next",
5
5
  "customElements": "custom-elements.json",
6
6
  "main": "dist/umd/index.bundle.js",
@@ -13,7 +13,7 @@
13
13
  "scripts": {
14
14
  "analyze": "npx cem analyze --config ../custom-elements-manifest.config.mjs",
15
15
  "test": "echo \"No tests\" && exit 0",
16
- "prepack": "npx webpack"
16
+ "prepack": "npx rspack"
17
17
  },
18
18
  "author": "OpenRemote",
19
19
  "license": "AGPL-3.0-or-later",
@@ -22,7 +22,7 @@
22
22
  "lit": "^2.0.2"
23
23
  },
24
24
  "devDependencies": {
25
- "@openremote/util": "1.8.0-snapshot.20250723094757"
25
+ "@openremote/util": "1.8.0-snapshot.20250725070921"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
@@ -1,11 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2017 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
-
7
- /**
8
- * @license
9
- * Copyright 2021 Google LLC
10
- * SPDX-License-Identifier: BSD-3-Clause
11
- */
@@ -1,17 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2017 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
-
7
- /**
8
- * @license
9
- * Copyright 2019 Google LLC
10
- * SPDX-License-Identifier: BSD-3-Clause
11
- */
12
-
13
- /**
14
- * @license
15
- * Copyright 2021 Google LLC
16
- * SPDX-License-Identifier: BSD-3-Clause
17
- */
@@ -1,11 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2017 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
-
7
- /**
8
- * @license
9
- * Copyright 2021 Google LLC
10
- * SPDX-License-Identifier: BSD-3-Clause
11
- */