@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design.estate/dees-catalog",
3
- "version": "1.0.185",
3
+ "version": "1.0.188",
4
4
  "private": false,
5
5
  "description": "website for lossless.com",
6
6
  "main": "dist_ts_web/index.js",
@@ -26,7 +26,7 @@
26
26
  "@push.rocks/smartstring": "^4.0.9",
27
27
  "@tsclass/tsclass": "^4.0.42",
28
28
  "highlight.js": "11.8.0",
29
- "pdfjs-dist": "^2.16.105"
29
+ "pdfjs-dist": "^3.10.111"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@gitzone/tsbuild": "^2.1.66",
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-catalog',
6
- version: '1.0.185',
6
+ version: '1.0.188',
7
7
  description: 'website for lossless.com'
8
8
  }
@@ -79,6 +79,7 @@ export class DeesContextmenu extends DeesElement {
79
79
  // STATIC
80
80
  public static async openContextMenuWithOptions(eventArg: MouseEvent, menuItemsArg: plugins.tsclass.website.IMenuItem[]) {
81
81
  eventArg.preventDefault();
82
+ eventArg.stopPropagation();
82
83
  const contextMenu = new DeesContextmenu();
83
84
  contextMenu.style.position = 'absolute';
84
85
  contextMenu.style.zIndex = '2000';
@@ -0,0 +1,18 @@
1
+ import { html } from '@design.estate/dees-element';
2
+
3
+ export const demoFunc = () => html` <style>
4
+ .demoWrapper {
5
+ box-sizing: border-box;
6
+ position: absolute;
7
+ width: 100%;
8
+ height: 100%;
9
+ padding: 20px;
10
+ background: none;
11
+ }
12
+ </style>
13
+ <div class="demoWrapper">
14
+ <dees-dataview-codebox proglang="typescript">
15
+ import * as text from './hello'; const hiThere = 'nice'; const myFunction = async () => {
16
+ console.log('nice one'); }
17
+ </dees-dataview-codebox>
18
+ </div>`
@@ -1,3 +1,4 @@
1
+ import { demoFunc } from './dees-dataview-codebox.demo.js';
1
2
  import {
2
3
  DeesElement,
3
4
  html,
@@ -21,10 +22,7 @@ declare global {
21
22
 
22
23
  @customElement('dees-dataview-codebox')
23
24
  export class DeesDataviewCodebox extends DeesElement {
24
- public static demo = () => html`<dees-dataview-codebox proglang="typescript">
25
- import * as text from './hello'; const hiThere = 'nice'; const myFunction = async () => {
26
- console.log('nice one'); }
27
- </dees-dataview-codebox>`;
25
+ public static demo = demoFunc;
28
26
 
29
27
  @property()
30
28
  public progLang: string = 'typescript';
@@ -52,19 +50,48 @@ export class DeesDataviewCodebox extends DeesElement {
52
50
  .mainbox {
53
51
  position: relative;
54
52
  color: ${this.goBright ? '#333333' : '#ffffff'};
53
+ border-top: 1px solid ${this.goBright ? '#ffffff' : '#333333'};
54
+ box-shadow: 0px 0px 5px ${this.goBright ? 'rgba(0,0,0,0.1)' : 'rgba(0,0,0,0.5)'};
55
+ background: ${this.goBright ? '#ffffff' : '#191919'};
56
+ border-radius: 16px;
57
+ overflow: hidden;
58
+ }
59
+
60
+ .appbar {
61
+ height: 24px;
62
+ background: #161616;
63
+ border-bottom: 1px solid #222222;
64
+ font-size: 12px;
65
+ color: #CCC;
66
+ font-family: 'Hubot Sans', 'monospace';
67
+ line-height: 24px;
68
+ }
69
+
70
+ .appbar .fileName {
71
+ text-align: center;
72
+ }
73
+
74
+ .bottomBar {
75
+ height: 24px;
76
+ background: #161616;
77
+ border-top: 1px solid #222222;
78
+ font-size: 12px;
79
+ color: #CCC;
80
+ font-family: 'Hubot Sans', 'monospace';
81
+ line-height: 24px;
55
82
  }
56
83
 
57
84
  .languageLabel {
58
85
  color: #fff;
59
86
  font-size: 12px;
87
+ line-height: 24px;
60
88
  z-index: 10;
61
- background: #6596ff;
89
+ background: #6596ff20;
62
90
  display: inline-block;
63
91
  position: absolute;
64
- right: 32px;
65
- padding: 4px;
66
- border-bottom-left-radius: 3px;
67
- border-bottom-right-radius: 3px;
92
+ bottom: 0px;
93
+ right: 0px;
94
+ padding: 0px 16px 0px 8px;
68
95
  }
69
96
 
70
97
  .hljs-keyword {
@@ -74,18 +101,15 @@ export class DeesDataviewCodebox extends DeesElement {
74
101
  .codegrid {
75
102
  display: grid;
76
103
  grid-template-columns: 50px auto;
77
- background: ${this.goBright ? '#ffffff' : '#191919'};
78
- border-top: 1px solid ${this.goBright ? '#ffffff' : '#333333'};
79
- box-shadow: 0px 0px 5px ${this.goBright ? 'rgba(0,0,0,0.1)' : 'rgba(0,0,0,0.5)'};
80
- border-radius: 3px;
81
104
  overflow: hidden;
82
105
  }
83
106
 
84
107
  .lineNumbers {
85
- background: ${this.goBright ? '#fafafa' : '#151515'};
108
+
86
109
  color: ${this.goBright ? '#acacac' : '#666666'};
87
110
  padding: 30px 16px 0px 0px;
88
111
  text-align: right;
112
+ border-right: 1px solid ${this.goBright ? '#eaeaea' : '#222222'};
89
113
  }
90
114
 
91
115
  .lineCounter:last-child {
@@ -121,31 +145,37 @@ export class DeesDataviewCodebox extends DeesElement {
121
145
  }
122
146
 
123
147
  .hljs-function {
124
- color: ${this.goBright ? '#2765DF': '#6596ff' };
148
+ color: ${this.goBright ? '#2765DF' : '#6596ff'};
125
149
  }
126
150
 
127
151
  .hljs-params {
128
- color: ${this.goBright ? '#3DB420' : '#65d5ff' };
152
+ color: ${this.goBright ? '#3DB420' : '#65d5ff'};
129
153
  }
130
154
 
131
155
  .hljs-comment {
132
- color: ${this.goBright ? '#EF9300' : '#ffd765' };
156
+ color: ${this.goBright ? '#EF9300' : '#ffd765'};
133
157
  }
134
158
  </style>
135
159
  <div class="mainbox">
136
- <div class="languageLabel">${this.progLang}</div>
160
+ <div class="appbar">
161
+ <div class="fileName">index.ts</div>
162
+ </div>
137
163
  <div class="codegrid">
138
164
  <div class="lineNumbers">
139
165
  ${(() => {
140
166
  let lineCounter = 0;
141
- return this.codeToDisplay.split('\n').map(lineArg => {
167
+ return this.codeToDisplay.split('\n').map((lineArg) => {
142
168
  lineCounter++;
143
169
  return html`<div class="lineCounter">${lineCounter}</div>`;
144
- })
170
+ });
145
171
  })()}
146
172
  </div>
147
173
  <pre><code></code></pre>
148
174
  </div>
175
+ <div class="bottomBar">
176
+ Spaces: 2
177
+ <div class="languageLabel">${this.progLang}</div>
178
+ </div>
149
179
  </div>
150
180
  `;
151
181
  }
@@ -167,12 +197,17 @@ export class DeesDataviewCodebox extends DeesElement {
167
197
  this.codeToDisplayStore = smartstring.indent.normalize(this.codeToDisplay).trimStart();
168
198
  }
169
199
  if (slottedCodeNodes[0] && slottedCodeNodes[0].wholeText && !this.codeToDisplay) {
170
- this.codeToDisplayStore = smartstring.indent.normalize(slottedCodeNodes[0].wholeText).trimStart();
200
+ this.codeToDisplayStore = smartstring.indent
201
+ .normalize(slottedCodeNodes[0].wholeText)
202
+ .trimStart();
171
203
  this.codeToDisplay = this.codeToDisplayStore;
172
204
  }
173
205
  await domtools.plugins.smartdelay.delayFor(0);
174
206
  const localCodeNode = this.shadowRoot.querySelector('code');
175
- const html = hlight.highlight(this.codeToDisplayStore, {language: this.progLang, ignoreIllegals: true});
207
+ const html = hlight.highlight(this.codeToDisplayStore, {
208
+ language: this.progLang,
209
+ ignoreIllegals: true,
210
+ });
176
211
  localCodeNode.innerHTML = html.value;
177
212
  }
178
213
  }
@@ -0,0 +1,39 @@
1
+ import { html } from '@design.estate/dees-element';
2
+ import * as tsclass from '@tsclass/tsclass';
3
+
4
+ export const demoFunc = () => html`<dees-dataview-statusobject
5
+ .statusObject=${{
6
+ id: '1',
7
+ name: 'Demo Item',
8
+ combinedStatus: 'partly_ok',
9
+ combinedStatusText: 'partly_ok',
10
+ details: [
11
+ {
12
+ name: 'Detail 1',
13
+ value: 'Value 1',
14
+ status: 'ok',
15
+ statusText: 'OK',
16
+ },
17
+ {
18
+ name: 'Detail 2',
19
+ value: 'Value 2',
20
+ status: 'partly_ok',
21
+ statusText: 'partly_ok',
22
+ },
23
+ {
24
+ name: 'Detail 3',
25
+ value: 'Value 3',
26
+ status: 'not_ok',
27
+ statusText: 'not_ok',
28
+ },
29
+ {
30
+ name: 'Detail 4',
31
+ value:
32
+ 'Value 4 jhdkfjhalskdfjhfdjskalsdkfjhfdjskalskdjfhjdkslaksjdhfjdkslaskdfjhfjdkslaskdjfhjdskalskdjhfdjskalskdjfhdjskl',
33
+ status: 'ok',
34
+ statusText: 'OK',
35
+ },
36
+ ],
37
+ } as tsclass.code.IStatusObject}
38
+ >
39
+ </dees-dataview-statusobject>`;
@@ -1,3 +1,4 @@
1
+ import { demoFunc } from './dees-dataview-statusobject.demo.js';
1
2
  import {
2
3
  DeesElement,
3
4
  html,
@@ -20,41 +21,7 @@ declare global {
20
21
 
21
22
  @customElement('dees-dataview-statusobject')
22
23
  export class DeesDataviewStatusobject extends DeesElement {
23
- public static demo = () => html`<dees-dataview-statusobject
24
- .statusObject=${{
25
- id: '1',
26
- name: 'Demo Item',
27
- combinedStatus: 'partly_ok',
28
- combinedStatusText: 'partly_ok',
29
- details: [
30
- {
31
- name: 'Detail 1',
32
- value: 'Value 1',
33
- status: 'ok',
34
- statusText: 'OK',
35
- },
36
- {
37
- name: 'Detail 2',
38
- value: 'Value 2',
39
- status: 'partly_ok',
40
- statusText: 'partly_ok',
41
- },
42
- {
43
- name: 'Detail 3',
44
- value: 'Value 3',
45
- status: 'not_ok',
46
- statusText: 'not_ok',
47
- },
48
- {
49
- name: 'Detail 4',
50
- value: 'Value 4 jhdkfjhalskdfjhfdjskalsdkfjhfdjskalskdjfhjdkslaksjdhfjdkslaskdfjhfjdkslaskdjfhjdskalskdjhfdjskalskdjfhdjskl',
51
- status: 'ok',
52
- statusText: 'OK',
53
- },
54
- ],
55
- }}
56
- >
57
- </dees-dataview-statusobject>`;
24
+ public static demo = demoFunc;
58
25
 
59
26
  @property({ type: Object }) statusObject: tsclass.code.IStatusObject;
60
27
 
@@ -95,7 +62,7 @@ export class DeesDataviewStatusobject extends DeesElement {
95
62
 
96
63
  .copyMain {
97
64
  cursor: pointer;
98
- font-size: 8px;
65
+ font-size: 10px;
99
66
  font-weight: 600;
100
67
  text-transform: uppercase;
101
68
  border: 1px solid ${cssManager.bdTheme('#999', '#444')};
@@ -103,6 +70,7 @@ export class DeesDataviewStatusobject extends DeesElement {
103
70
  padding: 4px;
104
71
  border-radius: 3px;
105
72
  margin-right: 16px;
73
+ color: #ffffff80
106
74
  }
107
75
 
108
76
  .statusdot.ok {
@@ -122,7 +90,7 @@ export class DeesDataviewStatusobject extends DeesElement {
122
90
  align-items: center;
123
91
  display: grid;
124
92
  grid-template-columns: 40px auto;
125
- border-top: 1px dotted ${cssManager.bdTheme('#999', '#444')};
93
+ border-top: 1px dotted ${cssManager.bdTheme('#999', '#282828')};
126
94
  }
127
95
 
128
96
  .detail .detailsText {
@@ -134,10 +102,11 @@ export class DeesDataviewStatusobject extends DeesElement {
134
102
 
135
103
  .detail .detailsText .label {
136
104
  font-size: 12px;
105
+ color: #ffffff80
137
106
  }
138
107
 
139
108
  .detail .detailsText .value {
140
- font-size: 16px;
109
+ font-size: 14px;
141
110
  font-family: 'Intel One Mono';
142
111
  }
143
112
  `,
@@ -2,7 +2,7 @@ import { DeesElement, property, html, customElement, domtools, type TemplateResu
2
2
 
3
3
  import { Deferred } from '@push.rocks/smartpromise';
4
4
 
5
- import type pdfjsTypes from 'pdfjs-dist';
5
+ // import type pdfjsTypes from 'pdfjs-dist';
6
6
 
7
7
  declare global {
8
8
  interface HTMLElementTagNameMap {
@@ -51,7 +51,7 @@ export class DeesPdf extends DeesElement {
51
51
  }
52
52
 
53
53
  public static pdfJsReady: Promise<any>;
54
- public static pdfjsLib: typeof pdfjsTypes;
54
+ public static pdfjsLib: any // typeof pdfjsTypes;
55
55
  public async connectedCallback() {
56
56
  super.connectedCallback();
57
57
  if (!DeesPdf.pdfJsReady) {
File without changes
@@ -62,7 +62,7 @@ export class DeesTable<T> extends DeesElement {
62
62
  position: absolute;
63
63
  width: 100%;
64
64
  height: 100%;
65
- padding: 60px;
65
+ padding: 20px;
66
66
  background: #000000;
67
67
  }
68
68
  </style>
@@ -192,7 +192,7 @@ export class DeesTable<T> extends DeesElement {
192
192
  color: ${cssManager.bdTheme('#333', '#fff')};
193
193
  font-family: 'Mona Sans', 'Inter', sans-serif;
194
194
  font-weight: 400;
195
- font-size: 16px;
195
+ font-size: 14px;
196
196
  padding: 16px;
197
197
  display: block;
198
198
  width: 100%;