@umbraco-ui/uui-input-lock 1.16.0-rc.0 → 1.17.0-rc.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.
package/lib/index.js CHANGED
@@ -47,6 +47,7 @@ let UUIInputLockElement = class extends UUIInputElement {
47
47
  }
48
48
  set locked(lock) {
49
49
  __privateSet(this, _locked, lock);
50
+ this.readonly = lock;
50
51
  this.tabIndex = lock ? -1 : 0;
51
52
  }
52
53
  get locked() {
@@ -58,7 +59,7 @@ let UUIInputLockElement = class extends UUIInputElement {
58
59
  demandCustomElement(this, "uui-button");
59
60
  }
60
61
  _onLockToggle() {
61
- this.readonly = this.locked = !this.locked;
62
+ this.locked = !this.locked;
62
63
  this.pristine = false;
63
64
  this.dispatchEvent(new UUIInputLockEvent(UUIInputLockEvent.LOCK_CHANGE));
64
65
  if (!this.locked) {
@@ -30,8 +30,8 @@ export declare class UUIInputLockElement extends UUIInputElement {
30
30
  constructor();
31
31
  connectedCallback(): void;
32
32
  _onLockToggle(): void;
33
- renderIcon(): import("lit-html").TemplateResult<1>;
34
- renderPrepend(): import("lit-html").TemplateResult<1>;
33
+ renderIcon(): import("lit").TemplateResult<1>;
34
+ renderPrepend(): import("lit").TemplateResult<1>;
35
35
  static styles: import("lit").CSSResult[];
36
36
  }
37
37
  declare global {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-input-lock",
3
- "version": "1.16.0-rc.0",
3
+ "version": "1.17.0-rc.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Umbraco",
@@ -30,10 +30,10 @@
30
30
  "custom-elements.json"
31
31
  ],
32
32
  "dependencies": {
33
- "@umbraco-ui/uui-base": "1.16.0-rc.0",
34
- "@umbraco-ui/uui-button": "1.16.0-rc.0",
35
- "@umbraco-ui/uui-icon": "1.16.0-rc.0",
36
- "@umbraco-ui/uui-input": "1.16.0-rc.0"
33
+ "@umbraco-ui/uui-base": "1.17.0-rc.0",
34
+ "@umbraco-ui/uui-button": "1.17.0-rc.0",
35
+ "@umbraco-ui/uui-icon": "1.17.0-rc.0",
36
+ "@umbraco-ui/uui-input": "1.17.0-rc.0"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
@@ -44,5 +44,5 @@
44
44
  "access": "public"
45
45
  },
46
46
  "homepage": "https://uui.umbraco.com/?path=/story/uui-input-lock",
47
- "gitHead": "7bf1acd40b60feb81d82067ba2342d2b3e33c057"
47
+ "gitHead": "028e20bd07ebf02164589b086e746c9cc587409c"
48
48
  }