@design.estate/dees-catalog 1.0.251 → 1.0.254
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 +21 -15
- package/dist_bundle/bundle.js.map +2 -2
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/dees-table.js +21 -15
- package/dist_watch/bundle.js +21 -14
- package/dist_watch/bundle.js.map +2 -2
- package/package.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/dees-table.ts +26 -20
package/package.json
CHANGED
|
@@ -311,18 +311,21 @@ export class DeesTable<T> extends DeesElement {
|
|
|
311
311
|
font-weight: inherit;
|
|
312
312
|
padding: 0px 6px;
|
|
313
313
|
}
|
|
314
|
-
|
|
314
|
+
.actionContainer {
|
|
315
|
+
height: 24px;
|
|
316
|
+
display: inline-block;
|
|
317
|
+
transform: translateY(-4px);
|
|
318
|
+
}
|
|
315
319
|
.action {
|
|
316
|
-
|
|
320
|
+
position: relative;
|
|
317
321
|
padding: 8px 10px;
|
|
318
|
-
line-height:
|
|
322
|
+
line-height: 24px;
|
|
319
323
|
height: 32px;
|
|
320
324
|
size: 16px;
|
|
321
|
-
display: inline-block;
|
|
322
325
|
border-radius: 8px;
|
|
323
326
|
}
|
|
324
327
|
|
|
325
|
-
.
|
|
328
|
+
.actionContainer:first-child {
|
|
326
329
|
margin-left: -6px;
|
|
327
330
|
width: min-content;
|
|
328
331
|
}
|
|
@@ -425,7 +428,8 @@ export class DeesTable<T> extends DeesElement {
|
|
|
425
428
|
name: "john" AND age: 18
|
|
426
429
|
\`\`\`
|
|
427
430
|
|
|
428
|
-
`}
|
|
431
|
+
`}
|
|
432
|
+
></dees-input-text>
|
|
429
433
|
<dees-input-multitoggle
|
|
430
434
|
.label=${'search mode'}
|
|
431
435
|
.options=${['table', 'data', 'server']}
|
|
@@ -567,19 +571,21 @@ export class DeesTable<T> extends DeesElement {
|
|
|
567
571
|
<td>
|
|
568
572
|
<div class="innerCellContainer">
|
|
569
573
|
${this.getActionsForType('inRow').map(
|
|
570
|
-
(actionArg) => html`<div
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
574
|
+
(actionArg) => html`<div class="actionContainer">
|
|
575
|
+
<div
|
|
576
|
+
class="action"
|
|
577
|
+
@click=${() =>
|
|
578
|
+
actionArg.actionFunc({
|
|
579
|
+
item: itemArg,
|
|
580
|
+
table: this,
|
|
581
|
+
})}
|
|
582
|
+
>
|
|
583
|
+
${actionArg.iconName
|
|
584
|
+
? html`
|
|
585
|
+
<dees-icon .iconFA=${actionArg.iconName}></dees-icon>
|
|
586
|
+
`
|
|
587
|
+
: actionArg.name}
|
|
588
|
+
</div>
|
|
583
589
|
</div>`
|
|
584
590
|
)}
|
|
585
591
|
</div>
|
|
@@ -655,7 +661,7 @@ export class DeesTable<T> extends DeesElement {
|
|
|
655
661
|
const width = window.getComputedStyle(cell).width;
|
|
656
662
|
if (cell.textContent.includes('Actions')) {
|
|
657
663
|
const neededWidth =
|
|
658
|
-
this.dataActions.filter((actionArg) => actionArg.type.includes('inRow')).length *
|
|
664
|
+
this.dataActions.filter((actionArg) => actionArg.type.includes('inRow')).length * 36;
|
|
659
665
|
cell.style.width = `${Math.max(neededWidth, 68)}px`;
|
|
660
666
|
} else {
|
|
661
667
|
cell.style.width = width;
|