@design.estate/dees-catalog 1.0.185 → 1.0.188

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.
@@ -71319,6 +71319,24 @@ DeesContextmenu = __decorateClass([
71319
71319
  e7("dees-contextmenu")
71320
71320
  ], DeesContextmenu);
71321
71321
 
71322
+ // ts_web/elements/dees-dataview-codebox.demo.ts
71323
+ var demoFunc = () => x` <style>
71324
+ .demoWrapper {
71325
+ box-sizing: border-box;
71326
+ position: absolute;
71327
+ width: 100%;
71328
+ height: 100%;
71329
+ padding: 20px;
71330
+ background: none;
71331
+ }
71332
+ </style>
71333
+ <div class="demoWrapper">
71334
+ <dees-dataview-codebox proglang="typescript">
71335
+ import * as text from './hello'; const hiThere = 'nice'; const myFunction = async () => {
71336
+ console.log('nice one'); }
71337
+ </dees-dataview-codebox>
71338
+ </div>`;
71339
+
71322
71340
  // node_modules/.pnpm/highlight.js@11.8.0/node_modules/highlight.js/es/index.js
71323
71341
  var import_lib = __toESM(require_lib2(), 1);
71324
71342
  var es_default = import_lib.default;
@@ -71344,19 +71362,48 @@ var DeesDataviewCodebox = class extends DeesElement {
71344
71362
  .mainbox {
71345
71363
  position: relative;
71346
71364
  color: ${this.goBright ? "#333333" : "#ffffff"};
71365
+ border-top: 1px solid ${this.goBright ? "#ffffff" : "#333333"};
71366
+ box-shadow: 0px 0px 5px ${this.goBright ? "rgba(0,0,0,0.1)" : "rgba(0,0,0,0.5)"};
71367
+ background: ${this.goBright ? "#ffffff" : "#191919"};
71368
+ border-radius: 16px;
71369
+ overflow: hidden;
71370
+ }
71371
+
71372
+ .appbar {
71373
+ height: 24px;
71374
+ background: #161616;
71375
+ border-bottom: 1px solid #222222;
71376
+ font-size: 12px;
71377
+ color: #CCC;
71378
+ font-family: 'Hubot Sans', 'monospace';
71379
+ line-height: 24px;
71380
+ }
71381
+
71382
+ .appbar .fileName {
71383
+ text-align: center;
71384
+ }
71385
+
71386
+ .bottomBar {
71387
+ height: 24px;
71388
+ background: #161616;
71389
+ border-top: 1px solid #222222;
71390
+ font-size: 12px;
71391
+ color: #CCC;
71392
+ font-family: 'Hubot Sans', 'monospace';
71393
+ line-height: 24px;
71347
71394
  }
71348
71395
 
71349
71396
  .languageLabel {
71350
71397
  color: #fff;
71351
71398
  font-size: 12px;
71399
+ line-height: 24px;
71352
71400
  z-index: 10;
71353
- background: #6596ff;
71401
+ background: #6596ff20;
71354
71402
  display: inline-block;
71355
71403
  position: absolute;
71356
- right: 32px;
71357
- padding: 4px;
71358
- border-bottom-left-radius: 3px;
71359
- border-bottom-right-radius: 3px;
71404
+ bottom: 0px;
71405
+ right: 0px;
71406
+ padding: 0px 16px 0px 8px;
71360
71407
  }
71361
71408
 
71362
71409
  .hljs-keyword {
@@ -71366,18 +71413,15 @@ var DeesDataviewCodebox = class extends DeesElement {
71366
71413
  .codegrid {
71367
71414
  display: grid;
71368
71415
  grid-template-columns: 50px auto;
71369
- background: ${this.goBright ? "#ffffff" : "#191919"};
71370
- border-top: 1px solid ${this.goBright ? "#ffffff" : "#333333"};
71371
- box-shadow: 0px 0px 5px ${this.goBright ? "rgba(0,0,0,0.1)" : "rgba(0,0,0,0.5)"};
71372
- border-radius: 3px;
71373
71416
  overflow: hidden;
71374
71417
  }
71375
71418
 
71376
71419
  .lineNumbers {
71377
- background: ${this.goBright ? "#fafafa" : "#151515"};
71420
+
71378
71421
  color: ${this.goBright ? "#acacac" : "#666666"};
71379
71422
  padding: 30px 16px 0px 0px;
71380
71423
  text-align: right;
71424
+ border-right: 1px solid ${this.goBright ? "#eaeaea" : "#222222"};
71381
71425
  }
71382
71426
 
71383
71427
  .lineCounter:last-child {
@@ -71425,7 +71469,9 @@ var DeesDataviewCodebox = class extends DeesElement {
71425
71469
  }
71426
71470
  </style>
71427
71471
  <div class="mainbox">
71428
- <div class="languageLabel">${this.progLang}</div>
71472
+ <div class="appbar">
71473
+ <div class="fileName">index.ts</div>
71474
+ </div>
71429
71475
  <div class="codegrid">
71430
71476
  <div class="lineNumbers">
71431
71477
  ${(() => {
@@ -71438,6 +71484,10 @@ var DeesDataviewCodebox = class extends DeesElement {
71438
71484
  </div>
71439
71485
  <pre><code></code></pre>
71440
71486
  </div>
71487
+ <div class="bottomBar">
71488
+ Spaces: 2
71489
+ <div class="languageLabel">${this.progLang}</div>
71490
+ </div>
71441
71491
  </div>
71442
71492
  `;
71443
71493
  }
@@ -71460,14 +71510,14 @@ var DeesDataviewCodebox = class extends DeesElement {
71460
71510
  }
71461
71511
  await plugins.smartdelay.delayFor(0);
71462
71512
  const localCodeNode = this.shadowRoot.querySelector("code");
71463
- const html = es_default.highlight(this.codeToDisplayStore, { language: this.progLang, ignoreIllegals: true });
71513
+ const html = es_default.highlight(this.codeToDisplayStore, {
71514
+ language: this.progLang,
71515
+ ignoreIllegals: true
71516
+ });
71464
71517
  localCodeNode.innerHTML = html.value;
71465
71518
  }
71466
71519
  };
71467
- DeesDataviewCodebox.demo = () => x`<dees-dataview-codebox proglang="typescript">
71468
- import * as text from './hello'; const hiThere = 'nice'; const myFunction = async () => {
71469
- console.log('nice one'); }
71470
- </dees-dataview-codebox>`;
71520
+ DeesDataviewCodebox.demo = demoFunc;
71471
71521
  __decorateClass([
71472
71522
  n5()
71473
71523
  ], DeesDataviewCodebox.prototype, "progLang", 2);
@@ -71484,35 +71534,9 @@ DeesDataviewCodebox = __decorateClass([
71484
71534
  e7("dees-dataview-codebox")
71485
71535
  ], DeesDataviewCodebox);
71486
71536
 
71487
- // ts_web/elements/dees-dataview-statusobject.ts
71488
- var DeesDataviewStatusobject = class extends DeesElement {
71489
- render() {
71490
- return x`
71491
- <div class="mainbox">
71492
- <div class="heading">
71493
- <div class="statusdot ${this.statusObject?.combinedStatus}"></div>
71494
- <h1>${this.statusObject?.name || "no status object assigned"}</h1>
71495
- <div class="copyMain">Copy as JSON</div>
71496
- </div>
71497
- ${this.statusObject?.details?.map((detailArg) => {
71498
- return x`
71499
- <div class="detail">
71500
- <div class="statusdot ${detailArg.status}"></div>
71501
- <div class="detailsText">
71502
- <div class="label">${detailArg.name}</div>
71503
- <div class="value">${detailArg.value}</div>
71504
- </div>
71505
- </div>
71506
- `;
71507
- })}
71508
- </div>
71509
- `;
71510
- }
71511
- async firstUpdated() {
71512
- }
71513
- };
71514
- DeesDataviewStatusobject.demo = () => x`<dees-dataview-statusobject
71515
- .statusObject=${{
71537
+ // ts_web/elements/dees-dataview-statusobject.demo.ts
71538
+ var demoFunc2 = () => x`<dees-dataview-statusobject
71539
+ .statusObject=${{
71516
71540
  id: "1",
71517
71541
  name: "Demo Item",
71518
71542
  combinedStatus: "partly_ok",
@@ -71544,8 +71568,37 @@ DeesDataviewStatusobject.demo = () => x`<dees-dataview-statusobject
71544
71568
  }
71545
71569
  ]
71546
71570
  }}
71547
- >
71548
- </dees-dataview-statusobject>`;
71571
+ >
71572
+ </dees-dataview-statusobject>`;
71573
+
71574
+ // ts_web/elements/dees-dataview-statusobject.ts
71575
+ var DeesDataviewStatusobject = class extends DeesElement {
71576
+ render() {
71577
+ return x`
71578
+ <div class="mainbox">
71579
+ <div class="heading">
71580
+ <div class="statusdot ${this.statusObject?.combinedStatus}"></div>
71581
+ <h1>${this.statusObject?.name || "no status object assigned"}</h1>
71582
+ <div class="copyMain">Copy as JSON</div>
71583
+ </div>
71584
+ ${this.statusObject?.details?.map((detailArg) => {
71585
+ return x`
71586
+ <div class="detail">
71587
+ <div class="statusdot ${detailArg.status}"></div>
71588
+ <div class="detailsText">
71589
+ <div class="label">${detailArg.name}</div>
71590
+ <div class="value">${detailArg.value}</div>
71591
+ </div>
71592
+ </div>
71593
+ `;
71594
+ })}
71595
+ </div>
71596
+ `;
71597
+ }
71598
+ async firstUpdated() {
71599
+ }
71600
+ };
71601
+ DeesDataviewStatusobject.demo = demoFunc2;
71549
71602
  DeesDataviewStatusobject.styles = [
71550
71603
  cssManager.defaultStyles,
71551
71604
  i`
@@ -71583,7 +71636,7 @@ DeesDataviewStatusobject.styles = [
71583
71636
 
71584
71637
  .copyMain {
71585
71638
  cursor: pointer;
71586
- font-size: 8px;
71639
+ font-size: 10px;
71587
71640
  font-weight: 600;
71588
71641
  text-transform: uppercase;
71589
71642
  border: 1px solid ${cssManager.bdTheme("#999", "#444")};
@@ -71591,6 +71644,7 @@ DeesDataviewStatusobject.styles = [
71591
71644
  padding: 4px;
71592
71645
  border-radius: 3px;
71593
71646
  margin-right: 16px;
71647
+ color: #ffffff80
71594
71648
  }
71595
71649
 
71596
71650
  .statusdot.ok {
@@ -71610,7 +71664,7 @@ DeesDataviewStatusobject.styles = [
71610
71664
  align-items: center;
71611
71665
  display: grid;
71612
71666
  grid-template-columns: 40px auto;
71613
- border-top: 1px dotted ${cssManager.bdTheme("#999", "#444")};
71667
+ border-top: 1px dotted ${cssManager.bdTheme("#999", "#282828")};
71614
71668
  }
71615
71669
 
71616
71670
  .detail .detailsText {
@@ -71622,10 +71676,11 @@ DeesDataviewStatusobject.styles = [
71622
71676
 
71623
71677
  .detail .detailsText .label {
71624
71678
  font-size: 12px;
71679
+ color: #ffffff80
71625
71680
  }
71626
71681
 
71627
71682
  .detail .detailsText .value {
71628
- font-size: 16px;
71683
+ font-size: 14px;
71629
71684
  font-family: 'Intel One Mono';
71630
71685
  }
71631
71686
  `
@@ -75806,6 +75861,7 @@ var DeesPdf = class extends DeesElement {
75806
75861
  <canvas id="pdfcanvas" .height=${0} .width=${0}></canvas>
75807
75862
  `;
75808
75863
  }
75864
+ // typeof pdfjsTypes;
75809
75865
  async connectedCallback() {
75810
75866
  super.connectedCallback();
75811
75867
  if (!DeesPdf.pdfJsReady) {
@@ -76664,7 +76720,7 @@ DeesTable.demo = () => x`
76664
76720
  position: absolute;
76665
76721
  width: 100%;
76666
76722
  height: 100%;
76667
- padding: 60px;
76723
+ padding: 20px;
76668
76724
  background: #000000;
76669
76725
  }
76670
76726
  </style>
@@ -76752,7 +76808,7 @@ DeesTable.styles = [
76752
76808
  color: ${cssManager.bdTheme("#333", "#fff")};
76753
76809
  font-family: 'Mona Sans', 'Inter', sans-serif;
76754
76810
  font-weight: 400;
76755
- font-size: 16px;
76811
+ font-size: 14px;
76756
76812
  padding: 16px;
76757
76813
  display: block;
76758
76814
  width: 100%;