@shoper/phoenix_design_system 1.15.3-3 → 1.15.3-5
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/build/cjs/packages/phoenix/src/controllers/inert_controller/inert_controller.js +20 -12
- package/build/cjs/packages/phoenix/src/controllers/inert_controller/inert_controller.js.map +1 -1
- package/build/esm/packages/phoenix/src/controllers/inert_controller/inert_controller.d.ts +2 -2
- package/build/esm/packages/phoenix/src/controllers/inert_controller/inert_controller.js +21 -13
- package/build/esm/packages/phoenix/src/controllers/inert_controller/inert_controller.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,24 +10,32 @@ 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
|
+
if (child.contains(tslib_es6.__classPrivateFieldGet(this, _InertController_host, "f"))) {
|
|
19
|
+
const modules = [...child.querySelectorAll('div.module')];
|
|
20
|
+
modules.forEach((module) => {
|
|
21
|
+
if (tslib_es6.__classPrivateFieldGet(this, _InertController_hideConditionHandler, "f").call(this, module)) {
|
|
22
|
+
module.setAttribute('inert', '');
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
this.show = () => {
|
|
29
|
+
[...document.body.children].forEach((child) => {
|
|
30
|
+
child.removeAttribute('inert');
|
|
31
|
+
});
|
|
32
|
+
};
|
|
13
33
|
tslib_es6.__classPrivateFieldSet(this, _InertController_host, host, "f");
|
|
14
34
|
tslib_es6.__classPrivateFieldSet(this, _InertController_hideConditionHandler, hideConditionHandler, "f");
|
|
15
35
|
tslib_es6.__classPrivateFieldGet(this, _InertController_host, "f").addController(this);
|
|
16
36
|
}
|
|
17
37
|
hostConnected() { }
|
|
18
38
|
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
39
|
}
|
|
32
40
|
_InertController_host = new WeakMap(), _InertController_hideConditionHandler = new WeakMap();
|
|
33
41
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,4CAAgD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,4CAAgD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -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
|
-
|
|
8
|
-
|
|
7
|
+
hide: () => void;
|
|
8
|
+
show: () => void;
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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,32 @@ 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
|
+
if (child.contains(__classPrivateFieldGet(this, _InertController_host, "f"))) {
|
|
15
|
+
const modules = [...child.querySelectorAll('div.module')];
|
|
16
|
+
modules.forEach((module) => {
|
|
17
|
+
if (__classPrivateFieldGet(this, _InertController_hideConditionHandler, "f").call(this, module)) {
|
|
18
|
+
module.setAttribute('inert', '');
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
this.show = () => {
|
|
25
|
+
[...document.body.children].forEach((child) => {
|
|
26
|
+
child.removeAttribute('inert');
|
|
27
|
+
});
|
|
28
|
+
};
|
|
9
29
|
__classPrivateFieldSet(this, _InertController_host, host, "f");
|
|
10
30
|
__classPrivateFieldSet(this, _InertController_hideConditionHandler, hideConditionHandler, "f");
|
|
11
31
|
__classPrivateFieldGet(this, _InertController_host, "f").addController(this);
|
|
12
32
|
}
|
|
13
33
|
hostConnected() { }
|
|
14
34
|
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
35
|
}
|
|
28
36
|
_InertController_host = new WeakMap(), _InertController_hideConditionHandler = new WeakMap();
|
|
29
37
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,+DAA+D,4CAAgD;AAC/G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,+DAA+D,4CAAgD;AAC/G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|