@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design.estate/dees-catalog",
3
- "version": "1.0.251",
3
+ "version": "1.0.254",
4
4
  "private": false,
5
5
  "description": "website for lossless.com",
6
6
  "main": "dist_ts_web/index.js",
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-catalog',
6
- version: '1.0.251',
6
+ version: '1.0.254',
7
7
  description: 'website for lossless.com'
8
8
  }
@@ -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
- margin: -4px 0px;
320
+ position: relative;
317
321
  padding: 8px 10px;
318
- line-height: 32px;
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
- .action:first-child {
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
- `}></dees-input-text>
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
- class="action"
572
- @click=${() =>
573
- actionArg.actionFunc({
574
- item: itemArg,
575
- table: this,
576
- })}
577
- >
578
- ${actionArg.iconName
579
- ? html`
580
- <dees-icon .iconFA=${actionArg.iconName}></dees-icon>
581
- `
582
- : actionArg.name}
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 * 35;
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;