Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
05b2b09395 | |||
4dbd4f84c1 | |||
bb0ca2f19d | |||
55175f9ac7 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@designestate/dees-catalog",
|
"name": "@designestate/dees-catalog",
|
||||||
"version": "1.0.101",
|
"version": "1.0.103",
|
||||||
"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.101',
|
version: '1.0.103',
|
||||||
description: 'website for lossless.com'
|
description: 'website for lossless.com'
|
||||||
}
|
}
|
||||||
|
@ -86,6 +86,9 @@ export class DeesIcon extends DeesElement {
|
|||||||
display: block;
|
display: block;
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
#iconContainer svg {
|
#iconContainer svg {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -19,7 +19,7 @@ declare global {
|
|||||||
|
|
||||||
@customElement('dees-input-fileupload')
|
@customElement('dees-input-fileupload')
|
||||||
export class DeesInputFileupload extends DeesElement {
|
export class DeesInputFileupload extends DeesElement {
|
||||||
public static demo = () => html`<dees-input-fileupload></dees-input-fileupload>`;
|
public static demo = () => html`<dees-input-fileupload .label=${'Attachments'}></dees-input-fileupload>`;
|
||||||
|
|
||||||
// INSTANCE
|
// INSTANCE
|
||||||
public changeSubject = new domtools.rxjs.Subject();
|
public changeSubject = new domtools.rxjs.Subject();
|
||||||
@ -73,6 +73,7 @@ export class DeesInputFileupload extends DeesElement {
|
|||||||
|
|
||||||
.maincontainer {
|
.maincontainer {
|
||||||
color: ${cssManager.bdTheme('#333', '#ccc')};
|
color: ${cssManager.bdTheme('#333', '#ccc')};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
@ -89,6 +90,12 @@ export class DeesInputFileupload extends DeesElement {
|
|||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.uploadButton:hover {
|
||||||
|
color: #fff;
|
||||||
|
background: rgb(3, 155, 229);
|
||||||
|
}
|
||||||
|
|
||||||
.uploadButton::after {
|
.uploadButton::after {
|
||||||
top: 2px;
|
top: 2px;
|
||||||
right: 2px;
|
right: 2px;
|
||||||
@ -109,10 +116,16 @@ export class DeesInputFileupload extends DeesElement {
|
|||||||
.uploadCandidate {
|
.uploadCandidate {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
border-bottom: 1px dashed #444;
|
border-bottom: 1px dashed #444;
|
||||||
color: #fff;
|
color: ${cssManager.bdTheme('#666', '#ccc')};
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
font-family: 'Roboto Mono';
|
font-family: 'Roboto Mono';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.uploadButton:hover .uploadCandidate {
|
||||||
|
color: ${cssManager.bdTheme('#fff', '#fff')};
|
||||||
|
border-bottom: 1px dashed #fff;
|
||||||
|
}
|
||||||
|
|
||||||
.uploadCandidate:last-child {
|
.uploadCandidate:last-child {
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
0
ts_web/elements/dees-preview.ts
Normal file
0
ts_web/elements/dees-preview.ts
Normal file
@ -19,7 +19,7 @@ declare global {
|
|||||||
|
|
||||||
export interface IDataAction<T = any> {
|
export interface IDataAction<T = any> {
|
||||||
name: string;
|
name: string;
|
||||||
icon: string;
|
iconName: string;
|
||||||
useTableBehaviour?: 'upload' | 'cancelUpload' | 'none';
|
useTableBehaviour?: 'upload' | 'cancelUpload' | 'none';
|
||||||
actionFunc: (itemArg: T) => Promise<any>;
|
actionFunc: (itemArg: T) => Promise<any>;
|
||||||
}
|
}
|
||||||
@ -70,7 +70,7 @@ export class DeesTable<T> extends DeesElement {
|
|||||||
]}
|
]}
|
||||||
.dataActions="${[{
|
.dataActions="${[{
|
||||||
name: 'upload',
|
name: 'upload',
|
||||||
icon: 'upload',
|
iconName: 'upload',
|
||||||
useTableBehaviour: 'upload',
|
useTableBehaviour: 'upload',
|
||||||
actionFunc: async (itemArg: any) => {
|
actionFunc: async (itemArg: any) => {
|
||||||
|
|
||||||
@ -200,6 +200,7 @@ export class DeesTable<T> extends DeesElement {
|
|||||||
.action {
|
.action {
|
||||||
margin: -8px 0px;
|
margin: -8px 0px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
|
line-height: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action:first-child {
|
.action:first-child {
|
||||||
@ -208,7 +209,7 @@ export class DeesTable<T> extends DeesElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.action:hover {
|
.action:hover {
|
||||||
background: #111;
|
background: ${cssManager.bdTheme('#CCC', '#111')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.tableStatistics {
|
.tableStatistics {
|
||||||
@ -294,7 +295,9 @@ export class DeesTable<T> extends DeesElement {
|
|||||||
${(() => {
|
${(() => {
|
||||||
const actions: TemplateResult[] = [];
|
const actions: TemplateResult[] = [];
|
||||||
for (const action of this.dataActions) {
|
for (const action of this.dataActions) {
|
||||||
actions.push(html`<div class="action">${action.name}</div>`)
|
actions.push(html`<div class="action">${action.iconName ? html`
|
||||||
|
<dees-icon .iconName=${'upload_file'}></dees-icon>
|
||||||
|
` : action.name}</div>`)
|
||||||
}
|
}
|
||||||
return actions;
|
return actions;
|
||||||
})()}
|
})()}
|
||||||
|
Reference in New Issue
Block a user