@design.estate/dees-catalog 1.0.230 → 1.0.232

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.230",
3
+ "version": "1.0.232",
4
4
  "private": false,
5
5
  "description": "website for lossless.com",
6
6
  "main": "dist_ts_web/index.js",
@@ -16,28 +16,28 @@
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
18
  "@design.estate/dees-domtools": "^2.0.55",
19
- "@design.estate/dees-element": "^2.0.31",
19
+ "@design.estate/dees-element": "^2.0.33",
20
20
  "@design.estate/dees-wcctools": "^1.0.81",
21
- "@fortawesome/fontawesome-svg-core": "^6.4.2",
22
- "@fortawesome/free-brands-svg-icons": "^6.4.2",
23
- "@fortawesome/free-regular-svg-icons": "^6.4.2",
24
- "@fortawesome/free-solid-svg-icons": "^6.4.2",
21
+ "@fortawesome/fontawesome-svg-core": "^6.5.0",
22
+ "@fortawesome/free-brands-svg-icons": "^6.5.0",
23
+ "@fortawesome/free-regular-svg-icons": "^6.5.0",
24
+ "@fortawesome/free-solid-svg-icons": "^6.5.0",
25
25
  "@push.rocks/smarti18n": "^1.0.4",
26
26
  "@push.rocks/smartpromise": "^4.0.3",
27
27
  "@push.rocks/smartstring": "^4.0.9",
28
28
  "@tsclass/tsclass": "^4.0.46",
29
29
  "highlight.js": "11.9.0",
30
- "ibantools": "^4.3.5",
30
+ "ibantools": "^4.3.6",
31
31
  "pdfjs-dist": "^3.11.174"
32
32
  },
33
33
  "devDependencies": {
34
- "@gitzone/tsbuild": "^2.1.66",
35
- "@gitzone/tsbundle": "^2.0.8",
36
- "@gitzone/tstest": "^1.0.77",
37
- "@gitzone/tswatch": "^2.0.7",
34
+ "@git.zone/tsbuild": "^2.1.66",
35
+ "@git.zone/tsbundle": "^2.0.8",
36
+ "@git.zone/tstest": "^1.0.77",
37
+ "@git.zone/tswatch": "^2.0.7",
38
38
  "@push.rocks/projectinfo": "^5.0.2",
39
39
  "@push.rocks/tapbundle": "^5.0.15",
40
- "@types/node": "^20.8.7"
40
+ "@types/node": "^20.10.0"
41
41
  },
42
42
  "files": [
43
43
  "ts/**/*",
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-catalog',
6
- version: '1.0.230',
6
+ version: '1.0.232',
7
7
  description: 'website for lossless.com'
8
8
  }
@@ -0,0 +1,11 @@
1
+ import { html } from '@design.estate/dees-element';
2
+
3
+ export const demoFunc = () => html`
4
+ <dees-input-dropdown
5
+ .options=${[
6
+ {option: 'option 1', key: 'option1'},
7
+ {option: 'option 2', key: 'option2'},
8
+ {option: 'option 3', key: 'option3'}
9
+ ]}
10
+ ></dees-input-dropdown>
11
+ `
@@ -1,5 +1,6 @@
1
1
  import { customElement, DeesElement, type TemplateResult, property, html, css, cssManager, type CSSResult, } from '@design.estate/dees-element';
2
2
  import * as domtools from '@design.estate/dees-domtools';
3
+ import { demoFunc } from './dees-input-dropdown.demo.js';
3
4
 
4
5
  declare global {
5
6
  interface HTMLElementTagNameMap {
@@ -9,15 +10,7 @@ declare global {
9
10
 
10
11
  @customElement('dees-input-dropdown')
11
12
  export class DeesInputDropdown extends DeesElement {
12
- public static demo = () => html`
13
- <dees-input-dropdown
14
- .options=${[
15
- {option: 'option 1', key: 'option1'},
16
- {option: 'option 2', key: 'option2'},
17
- {option: 'option 3', key: 'option3'}
18
- ]}
19
- ></dees-input-dropdown>
20
- `
13
+ public static demo = demoFunc
21
14
 
22
15
  // INSTANCE
23
16
  public changeSubject = new domtools.plugins.smartrx.rxjs.Subject();
@@ -100,12 +93,11 @@ export class DeesInputDropdown extends DeesElement {
100
93
  cursor: pointer;
101
94
  transition: all 0.2s ease;
102
95
  opacity: 0;
103
- position: relative;
96
+ position: absolute;
104
97
  background: ${cssManager.bdTheme('#ffffff', '#222222')};
105
98
  max-width: 420px;
106
99
  box-shadow: 0px 0px 5px rgba(0,0,0,0.2);
107
100
  min-height: 40px;
108
- margin-top: -40px;
109
101
  z-index: 100;
110
102
  border-radius: 3px;
111
103
  padding: 4px;
@@ -135,12 +127,8 @@ export class DeesInputDropdown extends DeesElement {
135
127
 
136
128
  public render(): TemplateResult {
137
129
  return html`
138
- ${domtools.elementBasic.styles}
139
- <style>
140
-
141
- </style>
142
130
  <div class="maincontainer">
143
- <div class="selectedBox show" @click="${event => {this.toggleSelectionBox();}}">
131
+ <div class="selectedBox show" @click="${event => {this.openSelectionBox();}}">
144
132
  ${this.selectedOption?.option}
145
133
  </div>
146
134
  <div class="selectionBox">
@@ -165,12 +153,16 @@ export class DeesInputDropdown extends DeesElement {
165
153
  detail: selectedOption,
166
154
  bubbles: true
167
155
  }));
168
- this.toggleSelectionBox();
156
+ this.openSelectionBox();
169
157
  this.changeSubject.next(this);
170
158
  }
171
159
 
172
- public toggleSelectionBox() {
160
+ public openSelectionBox() {
173
161
  this.shadowRoot.querySelector('.selectedBox').classList.toggle('show');
174
162
  this.shadowRoot.querySelector('.selectionBox').classList.toggle('show');
175
163
  }
164
+
165
+ public closeSelectionBox() {
166
+
167
+ }
176
168
  }
@@ -71,6 +71,7 @@ export class DeesModal extends DeesElement {
71
71
  :host {
72
72
  font-family: 'Roboto', 'Inter', sans-serif;
73
73
  color: ${cssManager.bdTheme('#333', '#fff')};
74
+ will-change: transform;
74
75
  }
75
76
  .modalContainer {
76
77
  display: flex;
@@ -66,14 +66,24 @@ export class DeesWindowLayer extends DeesElement {
66
66
  pointer-events: none;
67
67
  z-index: 200;
68
68
  }
69
+ .slotContent {
70
+ position: fixed;
71
+ height: 100vh;
72
+ width: 100vw;
73
+ display: flex;
74
+ justify-content: center;
75
+ align-items: center;
76
+ z-index: 201;
77
+ }
69
78
 
70
79
  .visible {
71
80
  background: rgba(0, 0, 0, 0.2);
72
81
  backdrop-filter: brightness(0.9) ${this.options.blur ? 'blur(2px)' : ''};
73
- pointer-events: all;
74
82
  }
75
83
  </style>
76
- <div @click=${this.dispatchClicked} class="windowOverlay ${this.visible ? 'visible' : null}">
84
+ <div class="windowOverlay ${this.visible ? 'visible' : null}">
85
+ </div>
86
+ <div @click=${this.dispatchClicked} class="slotContent">
77
87
  <slot></slot>
78
88
  </div>
79
89
  `;