@shoper/phoenix_design_system 0.19.3-6 → 0.19.3-8
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/components/tabs/tab_panel.js +0 -5
- package/build/cjs/packages/phoenix/src/components/tabs/tab_panel.js.map +1 -1
- package/build/cjs/packages/phoenix/src/controllers/visibility_controller/visibility_controller.js +1 -1
- package/build/esm/packages/phoenix/src/components/tabs/tab_panel.d.ts +0 -1
- package/build/esm/packages/phoenix/src/components/tabs/tab_panel.js +0 -5
- package/build/esm/packages/phoenix/src/components/tabs/tab_panel.js.map +1 -1
- package/build/esm/packages/phoenix/src/controllers/visibility_controller/visibility_controller.js +1 -1
- package/package.json +1 -1
|
@@ -11,7 +11,6 @@ var visibility_controller = require('../../controllers/visibility_controller/vis
|
|
|
11
11
|
exports.HTabPanel = class HTabPanel extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super();
|
|
14
|
-
this.hidden = true;
|
|
15
14
|
this._visibilityController = new visibility_controller.VisibilityController(this);
|
|
16
15
|
}
|
|
17
16
|
show() {
|
|
@@ -25,10 +24,6 @@ tslib_es6.__decorate([
|
|
|
25
24
|
decorators.property({ type: String, reflect: true }),
|
|
26
25
|
tslib_es6.__metadata("design:type", String)
|
|
27
26
|
], exports.HTabPanel.prototype, "name", void 0);
|
|
28
|
-
tslib_es6.__decorate([
|
|
29
|
-
decorators.property({ type: Boolean, reflect: true }),
|
|
30
|
-
tslib_es6.__metadata("design:type", Object)
|
|
31
|
-
], exports.HTabPanel.prototype, "hidden", void 0);
|
|
32
27
|
exports.HTabPanel = tslib_es6.__decorate([
|
|
33
28
|
phoenix_custom_element.phoenixCustomElement('h-tab-panel'),
|
|
34
29
|
tslib_es6.__metadata("design:paramtypes", [])
|
|
@@ -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;
|
|
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;"}
|
package/build/cjs/packages/phoenix/src/controllers/visibility_controller/visibility_controller.js
CHANGED
|
@@ -20,7 +20,7 @@ class VisibilityController {
|
|
|
20
20
|
tslib_es6.__classPrivateFieldGet(this, _VisibilityController_host, "f").addEventListener('resize', this._handleResize);
|
|
21
21
|
}
|
|
22
22
|
_setVisibilityValue() {
|
|
23
|
-
const isVisible = this._isVisibleBasedOnCssStyle();
|
|
23
|
+
const isVisible = this._isVisibleBasedOnCssStyle() && !tslib_es6.__classPrivateFieldGet(this, _VisibilityController_host, "f").getAttribute('hidden');
|
|
24
24
|
isVisible ? this.show() : this.hide();
|
|
25
25
|
}
|
|
26
26
|
_isVisibleBasedOnCssStyle() {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element/phoenix_light_lit_element";
|
|
2
2
|
export declare class HTabPanel extends PhoenixLightLitElement {
|
|
3
3
|
name: string;
|
|
4
|
-
hidden: boolean;
|
|
5
4
|
private _visibilityController;
|
|
6
5
|
constructor();
|
|
7
6
|
show(): void;
|
|
@@ -7,7 +7,6 @@ import { VisibilityController } from '../../controllers/visibility_controller/vi
|
|
|
7
7
|
let HTabPanel = class HTabPanel extends PhoenixLightLitElement {
|
|
8
8
|
constructor() {
|
|
9
9
|
super();
|
|
10
|
-
this.hidden = true;
|
|
11
10
|
this._visibilityController = new VisibilityController(this);
|
|
12
11
|
}
|
|
13
12
|
show() {
|
|
@@ -21,10 +20,6 @@ __decorate([
|
|
|
21
20
|
property({ type: String, reflect: true }),
|
|
22
21
|
__metadata("design:type", String)
|
|
23
22
|
], HTabPanel.prototype, "name", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
property({ type: Boolean, reflect: true }),
|
|
26
|
-
__metadata("design:type", Object)
|
|
27
|
-
], HTabPanel.prototype, "hidden", void 0);
|
|
28
23
|
HTabPanel = __decorate([
|
|
29
24
|
phoenixCustomElement('h-tab-panel'),
|
|
30
25
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,4CAAgD;AACvF;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,uCAAuC,4CAAgD;AACvF;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;"}
|
package/build/esm/packages/phoenix/src/controllers/visibility_controller/visibility_controller.js
CHANGED
|
@@ -16,7 +16,7 @@ class VisibilityController {
|
|
|
16
16
|
__classPrivateFieldGet(this, _VisibilityController_host, "f").addEventListener('resize', this._handleResize);
|
|
17
17
|
}
|
|
18
18
|
_setVisibilityValue() {
|
|
19
|
-
const isVisible = this._isVisibleBasedOnCssStyle();
|
|
19
|
+
const isVisible = this._isVisibleBasedOnCssStyle() && !__classPrivateFieldGet(this, _VisibilityController_host, "f").getAttribute('hidden');
|
|
20
20
|
isVisible ? this.show() : this.hide();
|
|
21
21
|
}
|
|
22
22
|
_isVisibleBasedOnCssStyle() {
|