@shoper/phoenix_design_system 1.1.4-22 → 1.1.4-23

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.
@@ -5,11 +5,18 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var backdrop_constants = require('../backdrop_constants.js');
6
6
 
7
7
  class BackdropController {
8
+ constructor() {
9
+ this._isVisible = false;
10
+ }
8
11
  hide() {
9
12
  this._dispatchEvent(backdrop_constants.BACKDROP_EVENTS.hide);
13
+ this._isVisible = false;
10
14
  }
11
15
  show() {
16
+ if (this._isVisible)
17
+ return;
12
18
  this._dispatchEvent(backdrop_constants.BACKDROP_EVENTS.show);
19
+ this._isVisible = true;
13
20
  }
14
21
  _dispatchEvent(eventName) {
15
22
  const hideBackdropEvent = new CustomEvent(eventName, {
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;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;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,5 +1,6 @@
1
1
  import { IBackdropController } from "./backdrop_controller_types";
2
2
  export declare class BackdropController implements IBackdropController {
3
+ private _isVisible;
3
4
  hide(): void;
4
5
  show(): void;
5
6
  private _dispatchEvent;
@@ -1,11 +1,18 @@
1
1
  import { BACKDROP_EVENTS } from '../backdrop_constants.js';
2
2
 
3
3
  class BackdropController {
4
+ constructor() {
5
+ this._isVisible = false;
6
+ }
4
7
  hide() {
5
8
  this._dispatchEvent(BACKDROP_EVENTS.hide);
9
+ this._isVisible = false;
6
10
  }
7
11
  show() {
12
+ if (this._isVisible)
13
+ return;
8
14
  this._dispatchEvent(BACKDROP_EVENTS.show);
15
+ this._isVisible = true;
9
16
  }
10
17
  _dispatchEvent(eventName) {
11
18
  const hideBackdropEvent = new CustomEvent(eventName, {
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
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.1.4-22",
5
+ "version": "1.1.4-23",
6
6
  "description": "phoenix design system",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",