@design.estate/dees-catalog 1.0.194 → 1.0.195

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design.estate/dees-catalog",
3
- "version": "1.0.194",
3
+ "version": "1.0.195",
4
4
  "private": false,
5
5
  "description": "website for lossless.com",
6
6
  "main": "dist_ts_web/index.js",
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-catalog',
6
- version: '1.0.194',
6
+ version: '1.0.195',
7
7
  description: 'website for lossless.com'
8
8
  }
@@ -38,7 +38,9 @@ export class DeesModal extends DeesElement {
38
38
  modal.heading = optionsArg.heading;
39
39
  modal.content = optionsArg.content;
40
40
  modal.menuOptions = optionsArg.menuOptions;
41
- modal.windowLayer = await DeesWindowLayer.createAndShow();
41
+ modal.windowLayer = await DeesWindowLayer.createAndShow({
42
+ blur: true,
43
+ });
42
44
  modal.windowLayer.addEventListener('click', async () => {
43
45
  await modal.destroy();
44
46
  });
@@ -1,4 +1,4 @@
1
- import { customElement, DeesElement, type TemplateResult, html, property, type CSSResult, } from '@design.estate/dees-element';
1
+ import { customElement, DeesElement, type TemplateResult, html, property, type CSSResult, state, } from '@design.estate/dees-element';
2
2
 
3
3
  import * as domtools from '@design.estate/dees-domtools';
4
4
 
@@ -8,20 +8,33 @@ declare global {
8
8
  }
9
9
  }
10
10
 
11
+ export interface IOptions_DeesWindowLayer {
12
+ blur: boolean;
13
+ }
14
+
11
15
  @customElement('dees-windowlayer')
12
16
  export class DeesWindowLayer extends DeesElement {
13
17
  // STATIC
14
18
  public static demo = () => html`<dees-windowlayer></dees-windowlayer>`;
15
19
 
16
- public static async createAndShow() {
20
+ public static async createAndShow(optionsArg?: IOptions_DeesWindowLayer) {
17
21
  const domtoolsInstance = domtools.DomTools.getGlobalDomToolsSync();
18
22
  const windowLayer = new DeesWindowLayer();
23
+ windowLayer.options = {
24
+ ...windowLayer.options,
25
+ ...optionsArg,
26
+ }
19
27
  document.body.append(windowLayer);
20
28
  await domtoolsInstance.convenience.smartdelay.delayFor(0);
21
29
  windowLayer.show();
22
30
  return windowLayer;
23
31
  }
24
32
 
33
+ @state()
34
+ public options: IOptions_DeesWindowLayer = {
35
+ blur: false
36
+ };
37
+
25
38
  // INSTANCE
26
39
  @property({
27
40
  type: Boolean
@@ -49,14 +62,14 @@ export class DeesWindowLayer extends DeesElement {
49
62
  justify-content: center;
50
63
  align-items: center;
51
64
  background: rgba(0, 0, 0, 0.0);
52
- backdrop-filter: brightness(1);
65
+ backdrop-filter: brightness(1) ${this.options.blur ? 'blur(0px)' : ''};
53
66
  pointer-events: none;
54
67
  z-index: 200;
55
68
  }
56
69
 
57
70
  .visible {
58
71
  background: rgba(0, 0, 0, 0.2);
59
- backdrop-filter: brightness(0.3);
72
+ backdrop-filter: brightness(0.9) ${this.options.blur ? 'blur(2px)' : ''};
60
73
  pointer-events: all;
61
74
  }
62
75
  </style>