Compare commits

..

6 Commits

Author SHA1 Message Date
ab0219d3e4 1.0.155 2023-03-27 23:21:27 +02:00
7cefd9cba5 fix(core): update 2023-03-27 23:21:27 +02:00
4cf5ca2d7f 1.0.154 2023-03-27 01:22:16 +02:00
a9791220fb fix(core): update 2023-03-27 01:22:15 +02:00
4aed14c7a2 1.0.153 2023-03-25 20:56:13 +01:00
49d1cba3fd fix(core): update 2023-03-25 20:56:12 +01:00
4 changed files with 30 additions and 8 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@designestate/dees-catalog", "name": "@designestate/dees-catalog",
"version": "1.0.152", "version": "1.0.155",
"private": false, "private": false,
"description": "website for lossless.com", "description": "website for lossless.com",
"main": "dist_ts_web/index.js", "main": "dist_ts_web/index.js",

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@designestate/dees-catalog', name: '@designestate/dees-catalog',
version: '1.0.152', version: '1.0.155',
description: 'website for lossless.com' description: 'website for lossless.com'
} }

View File

@ -77,12 +77,22 @@ export class DeesInputDropdown extends DeesElement {
max-width: 420px; max-width: 420px;
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
border: 1px solid #CCC;
padding: 0px 8px; padding: 0px 8px;
z-index: 0px; z-index: 0px;
background: ${cssManager.bdTheme('#ffffff', '#333333')};
box-shadow: ${cssManager.bdTheme('0px 1px 4px rgba(0,0,0,0.3)', 'none')};
border-radius: 3px;
border-top: 1px solid #CCCCCC00;
border-bottom: 1px solid #66666600;
}
.selectedBox.show {
border-top: 1px solid ${cssManager.bdTheme('#ffffff', '#666666')};
border-bottom: 1px solid ${cssManager.bdTheme('#fafafa', '#222222')};
} }
.selectionBox { .selectionBox {
will-change:transform;
pointer-events: none; pointer-events: none;
cursor: pointer; cursor: pointer;
transition: all 0.2s ease; transition: all 0.2s ease;
@ -91,27 +101,31 @@ export class DeesInputDropdown extends DeesElement {
background: ${cssManager.bdTheme('#ffffff', '#222222')}; background: ${cssManager.bdTheme('#ffffff', '#222222')};
max-width: 420px; max-width: 420px;
box-shadow: 0px 0px 5px rgba(0,0,0,0.2); box-shadow: 0px 0px 5px rgba(0,0,0,0.2);
height: 40px; min-height: 40px;
margin-top: -40px; margin-top: -40px;
z-index: 100; z-index: 100;
border-radius: 3px; border-radius: 3px;
padding: 4px; padding: 4px;
transform: scale(0.99,0.99);
} }
.selectionBox.show { .selectionBox.show {
pointer-events: all; pointer-events: all;
opacity: 1; opacity: 1;
min-height: 160px; transform: scale(1,1);
} }
.option { .option {
transition: all 0.1s;
line-height: 40px; line-height: 40px;
padding: 0px 4px; padding: 0px 4px;
border-radius: 3px; border-radius: 3px;
} }
.option:hover { .option:hover {
background: ${cssManager.bdTheme('#fafafa', '#444')};; color: #fff;
padding-left: 8px;
background: #0277bd;
} }
` `
] ]
@ -123,7 +137,7 @@ export class DeesInputDropdown extends DeesElement {
</style> </style>
<div class="maincontainer"> <div class="maincontainer">
<div class="selectedBox" @click="${event => {this.toggleSelectionBox();}}"> <div class="selectedBox show" @click="${event => {this.toggleSelectionBox();}}">
${this.selectedOption?.option} ${this.selectedOption?.option}
</div> </div>
<div class="selectionBox"> <div class="selectionBox">
@ -153,6 +167,7 @@ export class DeesInputDropdown extends DeesElement {
} }
public toggleSelectionBox() { public toggleSelectionBox() {
this.shadowRoot.querySelector('.selectedBox').classList.toggle('show');
this.shadowRoot.querySelector('.selectionBox').classList.toggle('show'); this.shadowRoot.querySelector('.selectionBox').classList.toggle('show');
} }
} }

View File

@ -15,7 +15,8 @@ export class DeesInputText extends DeesElement {
`; `;
// INSTANCE // INSTANCE
public changeSubject = new domtools.rxjs.Subject(); public changeSubject = new domtools.rxjs.Subject<DeesInputText>();
public valueChangeSubject = new domtools.rxjs.Subject<string>();
@property({ @property({
type: String type: String
@ -140,6 +141,7 @@ export class DeesInputText extends DeesElement {
const target: any = eventArg.target; const target: any = eventArg.target;
this.value = target.value; this.value = target.value;
this.changeSubject.next(this); this.changeSubject.next(this);
this.valueChangeSubject.next(this.value);
} }
public async freeze() { public async freeze() {
@ -155,4 +157,9 @@ export class DeesInputText extends DeesElement {
this.showPasswordBool = !this.showPasswordBool; this.showPasswordBool = !this.showPasswordBool;
console.log(`this.showPasswordBool is: ${this.showPasswordBool}`) console.log(`this.showPasswordBool is: ${this.showPasswordBool}`)
} }
public async focus() {
const textInput = this.shadowRoot.querySelector('input');
textInput.focus();
}
} }