@shoper/phoenix_design_system 1.15.3-3 → 1.15.3-4

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.
@@ -10,24 +10,24 @@ class InertController {
10
10
  constructor({ host, hideConditionHandler }) {
11
11
  _InertController_host.set(this, void 0);
12
12
  _InertController_hideConditionHandler.set(this, void 0);
13
+ this.hide = () => {
14
+ [...document.body.children].forEach((child) => {
15
+ if (tslib_es6.__classPrivateFieldGet(this, _InertController_hideConditionHandler, "f").call(this, child)) {
16
+ child.setAttribute('inert', '');
17
+ }
18
+ });
19
+ };
20
+ this.show = () => {
21
+ [...document.body.children].forEach((child) => {
22
+ child.removeAttribute('inert');
23
+ });
24
+ };
13
25
  tslib_es6.__classPrivateFieldSet(this, _InertController_host, host, "f");
14
26
  tslib_es6.__classPrivateFieldSet(this, _InertController_hideConditionHandler, hideConditionHandler, "f");
15
27
  tslib_es6.__classPrivateFieldGet(this, _InertController_host, "f").addController(this);
16
28
  }
17
29
  hostConnected() { }
18
30
  hostDisconnected() { }
19
- show() {
20
- [...document.body.children].forEach((child) => {
21
- if (tslib_es6.__classPrivateFieldGet(this, _InertController_hideConditionHandler, "f").call(this, child)) {
22
- child.setAttribute('inert', '');
23
- }
24
- });
25
- }
26
- hide() {
27
- [...document.body.children].forEach((child) => {
28
- child.removeAttribute('inert');
29
- });
30
- }
31
31
  }
32
32
  _InertController_host = new WeakMap(), _InertController_hideConditionHandler = new WeakMap();
33
33
 
@@ -4,6 +4,6 @@ export declare class InertController implements IInertController {
4
4
  constructor({ host, hideConditionHandler }: TInertControllerConstructorOptions);
5
5
  hostConnected(): void;
6
6
  hostDisconnected(): void;
7
- show(): void;
8
- hide(): void;
7
+ hide: () => void;
8
+ show: () => void;
9
9
  }
@@ -1,4 +1,4 @@
1
- import { __classPrivateFieldSet, __classPrivateFieldGet } from '../../../../../external/tslib/tslib.es6.js';
1
+ import { __classPrivateFieldGet, __classPrivateFieldSet } from '../../../../../external/tslib/tslib.es6.js';
2
2
  import 'lit';
3
3
 
4
4
  var _InertController_host, _InertController_hideConditionHandler;
@@ -6,24 +6,24 @@ class InertController {
6
6
  constructor({ host, hideConditionHandler }) {
7
7
  _InertController_host.set(this, void 0);
8
8
  _InertController_hideConditionHandler.set(this, void 0);
9
+ this.hide = () => {
10
+ [...document.body.children].forEach((child) => {
11
+ if (__classPrivateFieldGet(this, _InertController_hideConditionHandler, "f").call(this, child)) {
12
+ child.setAttribute('inert', '');
13
+ }
14
+ });
15
+ };
16
+ this.show = () => {
17
+ [...document.body.children].forEach((child) => {
18
+ child.removeAttribute('inert');
19
+ });
20
+ };
9
21
  __classPrivateFieldSet(this, _InertController_host, host, "f");
10
22
  __classPrivateFieldSet(this, _InertController_hideConditionHandler, hideConditionHandler, "f");
11
23
  __classPrivateFieldGet(this, _InertController_host, "f").addController(this);
12
24
  }
13
25
  hostConnected() { }
14
26
  hostDisconnected() { }
15
- show() {
16
- [...document.body.children].forEach((child) => {
17
- if (__classPrivateFieldGet(this, _InertController_hideConditionHandler, "f").call(this, child)) {
18
- child.setAttribute('inert', '');
19
- }
20
- });
21
- }
22
- hide() {
23
- [...document.body.children].forEach((child) => {
24
- child.removeAttribute('inert');
25
- });
26
- }
27
27
  }
28
28
  _InertController_host = new WeakMap(), _InertController_hideConditionHandler = new WeakMap();
29
29
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@shoper/phoenix_design_system",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "1.15.3-3",
5
+ "version": "1.15.3-4",
6
6
  "description": "phoenix design system",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",