@design.estate/dees-catalog 1.0.209 → 1.0.211
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 +220 -187
- package/dist_bundle/bundle.js.map +4 -4
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/dees-dataview-codebox.js +27 -14
- package/dist_ts_web/elements/dees-icon.d.ts +5 -1
- package/dist_ts_web/elements/dees-icon.demo.d.ts +1 -0
- package/dist_ts_web/elements/dees-icon.demo.js +52 -0
- package/dist_ts_web/elements/dees-icon.js +10 -22
- package/dist_watch/bundle.js +107 -40
- package/dist_watch/bundle.js.map +4 -4
- package/package.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/dees-dataview-codebox.ts +27 -13
- package/ts_web/elements/dees-icon.demo.ts +55 -0
- package/ts_web/elements/dees-icon.ts +10 -19
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { demoFunc } from './dees-dataview-codebox.demo.js';
|
|
2
2
|
import {
|
|
3
3
|
DeesElement,
|
|
4
4
|
html,
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
type TemplateResult,
|
|
7
7
|
property,
|
|
8
8
|
state,
|
|
9
|
+
cssManager,
|
|
9
10
|
} from '@design.estate/dees-element';
|
|
10
11
|
|
|
11
12
|
import hlight from 'highlight.js';
|
|
@@ -13,6 +14,7 @@ import hlight from 'highlight.js';
|
|
|
13
14
|
import * as smartstring from '@push.rocks/smartstring';
|
|
14
15
|
|
|
15
16
|
import * as domtools from '@design.estate/dees-domtools';
|
|
17
|
+
import { DeesContextmenu } from './dees-contextmenu.js';
|
|
16
18
|
|
|
17
19
|
declare global {
|
|
18
20
|
interface HTMLElementTagNameMap {
|
|
@@ -58,11 +60,11 @@ export class DeesDataviewCodebox extends DeesElement {
|
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
.appbar {
|
|
63
|
+
color: ${cssManager.bdTheme('#333', '#ccc')};
|
|
64
|
+
background: ${cssManager.bdTheme('#ffffff', '#161616')};
|
|
65
|
+
border-bottom: 1px solid ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
|
61
66
|
height: 24px;
|
|
62
|
-
background: #161616;
|
|
63
|
-
border-bottom: 1px solid #222222;
|
|
64
67
|
font-size: 12px;
|
|
65
|
-
color: #CCC;
|
|
66
68
|
font-family: 'Hubot Sans', 'monospace';
|
|
67
69
|
line-height: 24px;
|
|
68
70
|
}
|
|
@@ -88,15 +90,15 @@ export class DeesDataviewCodebox extends DeesElement {
|
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
.appbar .macControls div.close {
|
|
91
|
-
background: #
|
|
93
|
+
background: #ff5f57;
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
.appbar .macControls div.toDock {
|
|
95
|
-
background: #
|
|
97
|
+
background: #ffbd2e;
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
.appbar .macControls div.minMax {
|
|
99
|
-
background: #
|
|
101
|
+
background: #27c93f;
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
.appbar .macControls div:hover {
|
|
@@ -108,11 +110,11 @@ export class DeesDataviewCodebox extends DeesElement {
|
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
.bottomBar {
|
|
113
|
+
color: ${cssManager.bdTheme('#333', '#ccc')};
|
|
114
|
+
background: ${cssManager.bdTheme('#ffffff', '#161616')};
|
|
115
|
+
border-top: 1px solid ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
|
111
116
|
height: 24px;
|
|
112
|
-
background: #161616;
|
|
113
|
-
border-top: 1px solid #222222;
|
|
114
117
|
font-size: 12px;
|
|
115
|
-
color: #888;
|
|
116
118
|
font-family: 'Hubot Sans', 'monospace';
|
|
117
119
|
line-height: 24px;
|
|
118
120
|
text-align: right;
|
|
@@ -120,7 +122,7 @@ export class DeesDataviewCodebox extends DeesElement {
|
|
|
120
122
|
}
|
|
121
123
|
|
|
122
124
|
.languageLabel {
|
|
123
|
-
color: #ccc;
|
|
125
|
+
color: ${cssManager.bdTheme('#333', '#ccc')};
|
|
124
126
|
font-size: 12px;
|
|
125
127
|
line-height: 24px;
|
|
126
128
|
z-index: 10;
|
|
@@ -143,7 +145,6 @@ export class DeesDataviewCodebox extends DeesElement {
|
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
.lineNumbers {
|
|
146
|
-
|
|
147
148
|
color: ${this.goBright ? '#acacac' : '#666666'};
|
|
148
149
|
padding: 30px 16px 0px 0px;
|
|
149
150
|
text-align: right;
|
|
@@ -194,7 +195,20 @@ export class DeesDataviewCodebox extends DeesElement {
|
|
|
194
195
|
color: ${this.goBright ? '#EF9300' : '#ffd765'};
|
|
195
196
|
}
|
|
196
197
|
</style>
|
|
197
|
-
<div
|
|
198
|
+
<div
|
|
199
|
+
class="mainbox"
|
|
200
|
+
@contextmenu="${(eventArg) => {
|
|
201
|
+
DeesContextmenu.openContextMenuWithOptions(eventArg, [
|
|
202
|
+
{
|
|
203
|
+
name: 'About',
|
|
204
|
+
iconName: 'circleInfo',
|
|
205
|
+
action: async () => {
|
|
206
|
+
return null;
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
]);
|
|
210
|
+
}}"
|
|
211
|
+
>
|
|
198
212
|
<div class="appbar">
|
|
199
213
|
<div class="macControls">
|
|
200
214
|
<div class="close"></div>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { html } from '@design.estate/dees-element';
|
|
2
|
+
|
|
3
|
+
import { faIcons } from './dees-icon.js';
|
|
4
|
+
|
|
5
|
+
export const demoFunc = () => html`
|
|
6
|
+
<style>
|
|
7
|
+
.demoContainer {
|
|
8
|
+
|
|
9
|
+
width: 100%;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
background: #111111;
|
|
13
|
+
padding: 10px; font-size: 30px;
|
|
14
|
+
}
|
|
15
|
+
dees-icon {
|
|
16
|
+
transition: color 0.02s;
|
|
17
|
+
color: #ffffff;
|
|
18
|
+
}
|
|
19
|
+
dees-icon:hover {
|
|
20
|
+
color: #e4002b;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.iconContainer {
|
|
24
|
+
display: block;
|
|
25
|
+
padding: 16px 16px 0px 16px;
|
|
26
|
+
border: 1px solid #333333;
|
|
27
|
+
margin-right: 8px;
|
|
28
|
+
margin-bottom: 8px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.iconName {
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
text-align: center;
|
|
34
|
+
color: #ccc;
|
|
35
|
+
background: #333333;
|
|
36
|
+
padding: 4px 8px;
|
|
37
|
+
padding-bottom: 4px;
|
|
38
|
+
margin-left: -16px;
|
|
39
|
+
margin-right: -16px;
|
|
40
|
+
margin-top: 16px;
|
|
41
|
+
}
|
|
42
|
+
</style>
|
|
43
|
+
|
|
44
|
+
<div class="demoContainer">
|
|
45
|
+
${Object.keys(faIcons).map(
|
|
46
|
+
(iconName) => html`
|
|
47
|
+
<div class="iconContainer">
|
|
48
|
+
<dees-icon .iconFA=${iconName as any}></dees-icon>
|
|
49
|
+
<div class="iconName">${iconName}</div>
|
|
50
|
+
</div>
|
|
51
|
+
`
|
|
52
|
+
)}
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
`;
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
faMessage as faMessageRegular,
|
|
30
30
|
faPaste as faPasteRegular,
|
|
31
31
|
faSun as faSunRegular,
|
|
32
|
+
faTrashCan as faTrashCanRegular,
|
|
32
33
|
} from '@fortawesome/free-regular-svg-icons';
|
|
33
34
|
import {
|
|
34
35
|
faArrowRight as faArrowRightSolid,
|
|
@@ -57,8 +58,11 @@ import {
|
|
|
57
58
|
faUsers as faUsersSolid,
|
|
58
59
|
faShare as faShareSolid,
|
|
59
60
|
faSun as faSunSolid,
|
|
61
|
+
faTrash as faTrashSolid,
|
|
62
|
+
faTrashCan as faTrashCanSolid,
|
|
60
63
|
faXmark as faXmarkSolid,
|
|
61
64
|
} from '@fortawesome/free-solid-svg-icons';
|
|
65
|
+
import { demoFunc } from './dees-icon.demo.js';
|
|
62
66
|
|
|
63
67
|
export const faIcons = {
|
|
64
68
|
// normal
|
|
@@ -111,6 +115,11 @@ export const faIcons = {
|
|
|
111
115
|
shareSolid: faShareSolid,
|
|
112
116
|
sun: faSunRegular,
|
|
113
117
|
sunSolid: faSunSolid,
|
|
118
|
+
trash: faTrashSolid,
|
|
119
|
+
trashSolid: faTrashSolid,
|
|
120
|
+
trashCan: faTrashCanRegular,
|
|
121
|
+
trashCanSolid: faTrashCanSolid,
|
|
122
|
+
users: faUsersSolid,
|
|
114
123
|
xmark: faXmarkSolid,
|
|
115
124
|
xmarkSolid: faXmarkSolid,
|
|
116
125
|
// brands
|
|
@@ -122,7 +131,6 @@ export const faIcons = {
|
|
|
122
131
|
slack: faSlackHash,
|
|
123
132
|
tiktok: faTiktok,
|
|
124
133
|
twitter: faTwitter,
|
|
125
|
-
users: faUsersSolid,
|
|
126
134
|
};
|
|
127
135
|
|
|
128
136
|
export type TIconKey = keyof typeof faIcons;
|
|
@@ -135,24 +143,7 @@ declare global {
|
|
|
135
143
|
|
|
136
144
|
@customElement('dees-icon')
|
|
137
145
|
export class DeesIcon extends DeesElement {
|
|
138
|
-
public static demo =
|
|
139
|
-
<dees-icon iconName="visibility"></dees-icon>
|
|
140
|
-
<div style="background: #fff; padding: 10px; font-size: 30px">
|
|
141
|
-
<style>
|
|
142
|
-
dees-icon {
|
|
143
|
-
transition: color 0.05s;
|
|
144
|
-
}
|
|
145
|
-
dees-icon:hover {
|
|
146
|
-
color: #e4002b;
|
|
147
|
-
}
|
|
148
|
-
</style>
|
|
149
|
-
<dees-icon .iconFA=${'messageSolid'}></dees-icon>
|
|
150
|
-
<dees-icon .iconFA=${'sun'}></dees-icon>
|
|
151
|
-
<dees-icon .iconFA=${'sunSolid'}></dees-icon>
|
|
152
|
-
<dees-icon .iconFA=${'facebook'}></dees-icon>
|
|
153
|
-
<dees-icon .iconFA=${'arrowUpRightFromSquare'}></dees-icon>
|
|
154
|
-
</div>
|
|
155
|
-
`;
|
|
146
|
+
public static demo = demoFunc;
|
|
156
147
|
|
|
157
148
|
@property({
|
|
158
149
|
type: String
|