Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
5f1b29f742 | |||
e7978a22e4 | |||
15de86774b | |||
8f57647c85 | |||
59c5bcabd5 | |||
cae421e140 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@designestate/dees-catalog",
|
"name": "@designestate/dees-catalog",
|
||||||
"version": "1.0.103",
|
"version": "1.0.106",
|
||||||
"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",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@designestate/dees-catalog',
|
name: '@designestate/dees-catalog',
|
||||||
version: '1.0.103',
|
version: '1.0.106',
|
||||||
description: 'website for lossless.com'
|
description: 'website for lossless.com'
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,7 @@ export class DeesButton extends DeesElement {
|
|||||||
box-shadow: ${cssManager.bdTheme('0px 0px 5px rgba(0,0,0,0.1)', 'none')};
|
box-shadow: ${cssManager.bdTheme('0px 0px 5px rgba(0,0,0,0.1)', 'none')};
|
||||||
border: 1px solid ${cssManager.bdTheme('#eee', '#333')};
|
border: 1px solid ${cssManager.bdTheme('#eee', '#333')};
|
||||||
border-top: ${cssManager.bdTheme('1px solid #eee', '1px solid #444')};
|
border-top: ${cssManager.bdTheme('1px solid #eee', '1px solid #444')};
|
||||||
border-radius: 2px;
|
border-radius: 4px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
padding: 0px 8px;
|
padding: 0px 8px;
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
|
@ -71,6 +71,10 @@ export class DeesInputFileupload extends DeesElement {
|
|||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.maincontainer {
|
.maincontainer {
|
||||||
color: ${cssManager.bdTheme('#333', '#ccc')};
|
color: ${cssManager.bdTheme('#333', '#ccc')};
|
||||||
|
|
||||||
@ -134,16 +138,24 @@ export class DeesInputFileupload extends DeesElement {
|
|||||||
|
|
||||||
public render(): TemplateResult {
|
public render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
|
<div class="hidden">
|
||||||
|
<input type="file"></div>
|
||||||
|
</div>
|
||||||
<div class="maincontainer">
|
<div class="maincontainer">
|
||||||
${this.label ? html`<div class="label">${this.label}</div>` : null}
|
${this.label ? html`<div class="label">${this.label}</div>` : null}
|
||||||
<div class="uploadButton ${this.state === 'dragOver' ? 'dragOver' : ''}">
|
|
||||||
${this.value.map((fileArg) => html` <div class="uploadCandidate">${fileArg.name} | ${fileArg.size}</div> `)}
|
${this.value.map((fileArg) => html` <div class="uploadCandidate">${fileArg.name} | ${fileArg.size}</div> `)}
|
||||||
|
<div class="uploadButton ${this.state === 'dragOver' ? 'dragOver' : ''}" @click=${this.openFileSelector}>
|
||||||
${this.buttonText}
|
${this.buttonText}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async openFileSelector() {
|
||||||
|
const inputFile: HTMLInputElement = this.shadowRoot.querySelector('input[type="file"]');
|
||||||
|
inputFile.click();
|
||||||
|
}
|
||||||
|
|
||||||
public async updateValue(eventArg: Event) {
|
public async updateValue(eventArg: Event) {
|
||||||
const target: any = eventArg.target;
|
const target: any = eventArg.target;
|
||||||
this.value = target.value;
|
this.value = target.value;
|
||||||
|
@ -57,6 +57,7 @@ export class DeesInputQuantitySelector extends DeesElement {
|
|||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
color: ${this.goBright ? '#666' : '#CCC'};
|
color: ${this.goBright ? '#666' : '#CCC'};
|
||||||
border: ${this.goBright ? '1px solid #333' : '1px solid #CCC'};
|
border: ${this.goBright ? '1px solid #333' : '1px solid #CCC'};
|
||||||
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mainContainer:hover {
|
.mainContainer:hover {
|
||||||
|
@ -134,7 +134,7 @@ export class DeesSpeechbubble extends DeesElement {
|
|||||||
return html`
|
return html`
|
||||||
<div class="maincontainer" @click=${this.handleClick}>
|
<div class="maincontainer" @click=${this.handleClick}>
|
||||||
<div class="arrow"></div>
|
<div class="arrow"></div>
|
||||||
<div class="speechbubble"><span class="wave">👋</span> Hey! We are consulting.</div>
|
<div class="speechbubble"><span class="wave">👋</span> Hey! We are API-driven.</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
@ -144,7 +144,7 @@ export class DeesSpeechbubble extends DeesElement {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
globalThis.location.href = "https://lossless.consulting"
|
globalThis.location.href = "https://api.global"
|
||||||
}
|
}
|
||||||
|
|
||||||
public async firstUpdated() {
|
public async firstUpdated() {
|
||||||
|
@ -229,7 +229,8 @@ export class DeesStepper extends DeesElement {
|
|||||||
{
|
{
|
||||||
vertical: true,
|
vertical: true,
|
||||||
horizontal: false,
|
horizontal: false,
|
||||||
easing: 'easeInOutQuint',
|
easing: 'easeInOutExpo',
|
||||||
|
duration: 700,
|
||||||
},
|
},
|
||||||
stepperContainer
|
stepperContainer
|
||||||
);
|
);
|
||||||
|
@ -7,6 +7,7 @@ import {
|
|||||||
cssManager,
|
cssManager,
|
||||||
css,
|
css,
|
||||||
unsafeCSS,
|
unsafeCSS,
|
||||||
|
state,
|
||||||
} from '@designestate/dees-element';
|
} from '@designestate/dees-element';
|
||||||
|
|
||||||
import * as domtools from '@designestate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
@ -74,12 +75,20 @@ export class DeesTable<T> extends DeesElement {
|
|||||||
useTableBehaviour: 'upload',
|
useTableBehaviour: 'upload',
|
||||||
actionFunc: async (itemArg: any) => {
|
actionFunc: async (itemArg: any) => {
|
||||||
|
|
||||||
|
},
|
||||||
|
},{
|
||||||
|
name: 'visibility',
|
||||||
|
iconName: 'visibility',
|
||||||
|
useTableBehaviour: 'preview',
|
||||||
|
actionFunc: async (itemArg: any) => {
|
||||||
|
|
||||||
},
|
},
|
||||||
}] as IDataAction[]}"
|
}] as IDataAction[]}"
|
||||||
>This is a slotted Text</dees-table>
|
>This is a slotted Text</dees-table>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
// INSTANCE
|
||||||
@property({
|
@property({
|
||||||
type: String,
|
type: String,
|
||||||
})
|
})
|
||||||
@ -115,6 +124,9 @@ export class DeesTable<T> extends DeesElement {
|
|||||||
})
|
})
|
||||||
public status: 'normal' | 'pending' | 'success' | 'error' = 'normal';
|
public status: 'normal' | 'pending' | 'success' | 'error' = 'normal';
|
||||||
|
|
||||||
|
public files: File[] = [];
|
||||||
|
public fileWeakMap = new WeakMap();
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@ -201,6 +213,7 @@ export class DeesTable<T> extends DeesElement {
|
|||||||
margin: -8px 0px;
|
margin: -8px 0px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action:first-child {
|
.action:first-child {
|
||||||
@ -248,7 +261,7 @@ export class DeesTable<T> extends DeesElement {
|
|||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
${(() => {
|
${(() => {
|
||||||
if (this.dataActions) {
|
if (this.dataActions && this.dataActions.length > 0) {
|
||||||
return html`
|
return html`
|
||||||
<th>
|
<th>
|
||||||
<div class="innerCellContainer">Actions</div>
|
<div class="innerCellContainer">Actions</div>
|
||||||
@ -263,20 +276,37 @@ export class DeesTable<T> extends DeesElement {
|
|||||||
@click=${() => {
|
@click=${() => {
|
||||||
this.selectedDataRow = itemArg;
|
this.selectedDataRow = itemArg;
|
||||||
}}
|
}}
|
||||||
@dragenter=${async (eventArg) => {
|
@dragenter=${async (eventArg: DragEvent) => {
|
||||||
console.log('hey');
|
console.log((eventArg.target as HTMLElement).tagName)
|
||||||
|
console.log('dragenter');
|
||||||
eventArg.preventDefault();
|
eventArg.preventDefault();
|
||||||
eventArg.stopPropagation();
|
eventArg.stopPropagation();
|
||||||
|
(eventArg.target as HTMLElement).parentElement.style.background = '#800000';
|
||||||
}}
|
}}
|
||||||
@dragover=${async (eventArg) => {
|
@dragleave=${async (eventArg: DragEvent) => {
|
||||||
console.log('hey');
|
console.log((eventArg.target as HTMLElement).tagName)
|
||||||
|
console.log('dragleave');
|
||||||
eventArg.preventDefault();
|
eventArg.preventDefault();
|
||||||
eventArg.stopPropagation();
|
eventArg.stopPropagation();
|
||||||
|
(eventArg.target as HTMLElement).parentElement.style.background = 'none';
|
||||||
}}
|
}}
|
||||||
@drop=${async (eventArg) => {
|
@dragover=${async (eventArg: DragEvent) => {
|
||||||
console.log('hey');
|
|
||||||
eventArg.preventDefault();
|
eventArg.preventDefault();
|
||||||
eventArg.stopPropagation();
|
}}
|
||||||
|
@drop=${async (eventArg: DragEvent) => {
|
||||||
|
eventArg.preventDefault();
|
||||||
|
const newFiles = []
|
||||||
|
for (const file of Array.from(eventArg.dataTransfer.files)) {
|
||||||
|
this.files.push(file);
|
||||||
|
newFiles.push(file);
|
||||||
|
this.requestUpdate();
|
||||||
|
}
|
||||||
|
const result: File[] = this.fileWeakMap.get(itemArg as object);
|
||||||
|
if (!result) {
|
||||||
|
this.fileWeakMap.set(itemArg as object, newFiles)
|
||||||
|
} else {
|
||||||
|
result.push(...newFiles);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
class="${itemArg === this.selectedDataRow ? 'selected' : ''}"
|
class="${itemArg === this.selectedDataRow ? 'selected' : ''}"
|
||||||
>
|
>
|
||||||
@ -288,7 +318,7 @@ export class DeesTable<T> extends DeesElement {
|
|||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
${(() => {
|
${(() => {
|
||||||
if (this.dataActions) {
|
if (this.dataActions && this.dataActions.length > 0) {
|
||||||
return html`
|
return html`
|
||||||
<td>
|
<td>
|
||||||
<div class="innerCellContainer">
|
<div class="innerCellContainer">
|
||||||
|
Reference in New Issue
Block a user