Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 686c3714fc | |||
| e29086036c | |||
| 78e24aa720 | |||
| 7c8876c835 | |||
| 2222fb1e01 | |||
| 46b30a1ef0 | |||
| d49d5f70ef | |||
| 76a950e2ba | |||
| 077aba5e58 | |||
| 857362423f | |||
| e7232b6a53 | |||
| 2eb26544b3 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@design.estate/dees-catalog",
|
"name": "@design.estate/dees-catalog",
|
||||||
"version": "1.0.248",
|
"version": "1.0.254",
|
||||||
"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: '@design.estate/dees-catalog',
|
name: '@design.estate/dees-catalog',
|
||||||
version: '1.0.248',
|
version: '1.0.254',
|
||||||
description: 'website for lossless.com'
|
description: 'website for lossless.com'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,11 @@ export class DeesInputMultitoggle extends DeesElement {
|
|||||||
})
|
})
|
||||||
public label: string;
|
public label: string;
|
||||||
|
|
||||||
|
@property({
|
||||||
|
type: String,
|
||||||
|
})
|
||||||
|
public description: string;
|
||||||
|
|
||||||
@property()
|
@property()
|
||||||
type: 'boolean' | 'multi' | 'single' = 'multi';
|
type: 'boolean' | 'multi' | 'single' = 'multi';
|
||||||
|
|
||||||
@@ -104,7 +109,7 @@ export class DeesInputMultitoggle extends DeesElement {
|
|||||||
|
|
||||||
public render(): TemplateResult {
|
public render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
${this.label ? html`<div class="label">${this.label}</div>` : html``}
|
<dees-label .label=${this.label} .description=${this.description}></dees-label>
|
||||||
<div class="mainbox">
|
<div class="mainbox">
|
||||||
<div class="selections">
|
<div class="selections">
|
||||||
<div class="indicator"></div>
|
<div class="indicator"></div>
|
||||||
|
|||||||
@@ -311,18 +311,21 @@ export class DeesTable<T> extends DeesElement {
|
|||||||
font-weight: inherit;
|
font-weight: inherit;
|
||||||
padding: 0px 6px;
|
padding: 0px 6px;
|
||||||
}
|
}
|
||||||
|
.actionContainer {
|
||||||
.action {
|
height: 24px;
|
||||||
margin: -4px 0px;
|
|
||||||
padding: 10px;
|
|
||||||
line-height: 34px;
|
|
||||||
height: 34px;
|
|
||||||
size: 16px;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
transform: translateY(-4px);
|
||||||
|
}
|
||||||
|
.action {
|
||||||
|
position: relative;
|
||||||
|
padding: 8px 10px;
|
||||||
|
line-height: 24px;
|
||||||
|
height: 32px;
|
||||||
|
size: 16px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action:first-child {
|
.actionContainer:first-child {
|
||||||
margin-left: -6px;
|
margin-left: -6px;
|
||||||
width: min-content;
|
width: min-content;
|
||||||
}
|
}
|
||||||
@@ -425,10 +428,12 @@ export class DeesTable<T> extends DeesElement {
|
|||||||
name: "john" AND age: 18
|
name: "john" AND age: 18
|
||||||
\`\`\`
|
\`\`\`
|
||||||
|
|
||||||
`}></dees-input-text>
|
`}
|
||||||
|
></dees-input-text>
|
||||||
<dees-input-multitoggle
|
<dees-input-multitoggle
|
||||||
.label=${'search mode'}
|
.label=${'search mode'}
|
||||||
.options=${['table', 'data', 'server']}
|
.options=${['table', 'data', 'server']}
|
||||||
|
.selectedOption=${'table'}
|
||||||
.description=${`
|
.description=${`
|
||||||
There are three basic modes:
|
There are three basic modes:
|
||||||
|
|
||||||
@@ -566,7 +571,8 @@ export class DeesTable<T> extends DeesElement {
|
|||||||
<td>
|
<td>
|
||||||
<div class="innerCellContainer">
|
<div class="innerCellContainer">
|
||||||
${this.getActionsForType('inRow').map(
|
${this.getActionsForType('inRow').map(
|
||||||
(actionArg) => html`<div
|
(actionArg) => html`<div class="actionContainer">
|
||||||
|
<div
|
||||||
class="action"
|
class="action"
|
||||||
@click=${() =>
|
@click=${() =>
|
||||||
actionArg.actionFunc({
|
actionArg.actionFunc({
|
||||||
@@ -579,6 +585,7 @@ export class DeesTable<T> extends DeesElement {
|
|||||||
<dees-icon .iconFA=${actionArg.iconName}></dees-icon>
|
<dees-icon .iconFA=${actionArg.iconName}></dees-icon>
|
||||||
`
|
`
|
||||||
: actionArg.name}
|
: actionArg.name}
|
||||||
|
</div>
|
||||||
</div>`
|
</div>`
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
@@ -654,7 +661,7 @@ export class DeesTable<T> extends DeesElement {
|
|||||||
const width = window.getComputedStyle(cell).width;
|
const width = window.getComputedStyle(cell).width;
|
||||||
if (cell.textContent.includes('Actions')) {
|
if (cell.textContent.includes('Actions')) {
|
||||||
const neededWidth =
|
const neededWidth =
|
||||||
this.dataActions.filter((actionArg) => actionArg.type.includes('inRow')).length * 35;
|
this.dataActions.filter((actionArg) => actionArg.type.includes('inRow')).length * 36;
|
||||||
cell.style.width = `${Math.max(neededWidth, 68)}px`;
|
cell.style.width = `${Math.max(neededWidth, 68)}px`;
|
||||||
} else {
|
} else {
|
||||||
cell.style.width = width;
|
cell.style.width = width;
|
||||||
|
|||||||
Reference in New Issue
Block a user