@design.estate/dees-catalog 1.0.230 → 1.0.231
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/dist_bundle/bundle.js +140 -135
- package/dist_bundle/bundle.js.map +4 -4
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/dees-input-dropdown.d.ts +2 -1
- package/dist_ts_web/elements/dees-input-dropdown.demo.d.ts +1 -0
- package/dist_ts_web/elements/dees-input-dropdown.demo.js +11 -0
- package/dist_ts_web/elements/dees-input-dropdown.js +9 -19
- package/dist_ts_web/elements/dees-modal.js +2 -1
- package/dist_ts_web/elements/dees-windowlayer.js +11 -3
- package/dist_watch/bundle.js +3593 -2741
- package/dist_watch/bundle.js.map +4 -4
- package/package.json +12 -12
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/dees-input-dropdown.demo.ts +11 -0
- package/ts_web/elements/dees-input-dropdown.ts +10 -18
- package/ts_web/elements/dees-modal.ts +1 -0
- package/ts_web/elements/dees-windowlayer.ts +10 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@design.estate/dees-catalog",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.231",
|
|
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.
|
|
19
|
+
"@design.estate/dees-element": "^2.0.33",
|
|
20
20
|
"@design.estate/dees-wcctools": "^1.0.81",
|
|
21
|
-
"@fortawesome/fontawesome-svg-core": "^6.
|
|
22
|
-
"@fortawesome/free-brands-svg-icons": "^6.
|
|
23
|
-
"@fortawesome/free-regular-svg-icons": "^6.
|
|
24
|
-
"@fortawesome/free-solid-svg-icons": "^6.
|
|
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.
|
|
30
|
+
"ibantools": "^4.3.6",
|
|
31
31
|
"pdfjs-dist": "^3.11.174"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
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.
|
|
40
|
+
"@types/node": "^20.10.0"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|
|
43
43
|
"ts/**/*",
|
|
@@ -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 =
|
|
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:
|
|
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.
|
|
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.
|
|
156
|
+
this.openSelectionBox();
|
|
169
157
|
this.changeSubject.next(this);
|
|
170
158
|
}
|
|
171
159
|
|
|
172
|
-
public
|
|
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
|
}
|
|
@@ -66,14 +66,22 @@ export class DeesWindowLayer extends DeesElement {
|
|
|
66
66
|
pointer-events: none;
|
|
67
67
|
z-index: 200;
|
|
68
68
|
}
|
|
69
|
+
.slotContent {
|
|
70
|
+
height: 100vh;
|
|
71
|
+
width: 100vw;
|
|
72
|
+
display: flex;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
align-items: center;
|
|
75
|
+
}
|
|
69
76
|
|
|
70
77
|
.visible {
|
|
71
78
|
background: rgba(0, 0, 0, 0.2);
|
|
72
79
|
backdrop-filter: brightness(0.9) ${this.options.blur ? 'blur(2px)' : ''};
|
|
73
|
-
pointer-events: all;
|
|
74
80
|
}
|
|
75
81
|
</style>
|
|
76
|
-
<div
|
|
82
|
+
<div class="windowOverlay ${this.visible ? 'visible' : null}">
|
|
83
|
+
</div>
|
|
84
|
+
<div @click=${this.dispatchClicked} class="slotContent">
|
|
77
85
|
<slot></slot>
|
|
78
86
|
</div>
|
|
79
87
|
`;
|