@design.estate/dees-catalog 1.0.210 → 1.0.212
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 +6 -20
- 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 +11 -41
- package/dist_watch/bundle.js +113 -59
- 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 +12 -38
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,
|
|
@@ -53,66 +54,57 @@ import {
|
|
|
53
54
|
faMinus as faMinusSolid,
|
|
54
55
|
faPaste as faPasteSolid,
|
|
55
56
|
faPenToSquare as faPenToSquareSolid,
|
|
57
|
+
faPlus as faPlusSolid,
|
|
56
58
|
faRss as faRssSolid,
|
|
57
59
|
faUsers as faUsersSolid,
|
|
58
60
|
faShare as faShareSolid,
|
|
59
61
|
faSun as faSunSolid,
|
|
62
|
+
faTrash as faTrashSolid,
|
|
63
|
+
faTrashCan as faTrashCanSolid,
|
|
60
64
|
faXmark as faXmarkSolid,
|
|
61
65
|
} from '@fortawesome/free-solid-svg-icons';
|
|
66
|
+
import { demoFunc } from './dees-icon.demo.js';
|
|
62
67
|
|
|
63
68
|
export const faIcons = {
|
|
64
69
|
// normal
|
|
65
70
|
arrowRight: faArrowRightSolid,
|
|
66
71
|
arrowUpRightFromSquare: faArrowUpRightFromSquareSolid,
|
|
67
|
-
arrowUpRightFromSquareSolid: faArrowUpRightFromSquareSolid,
|
|
68
72
|
bell: faBellSolid,
|
|
69
|
-
bellSolid: faBellSolid,
|
|
70
73
|
bug: faBugSolid,
|
|
71
|
-
bugSolid: faBugSolid,
|
|
72
74
|
building: faBuildingSolid,
|
|
73
|
-
buildingSolid: faBuildingSolid,
|
|
74
75
|
caretLeft: faCaretLeftSolid,
|
|
75
|
-
caretLeftSolid: faCaretLeftSolid,
|
|
76
76
|
caretRight: faCaretRightSolid,
|
|
77
|
-
caretRightSolid: faCaretRightSolid,
|
|
78
77
|
check: faCheckSolid,
|
|
79
|
-
checkSolid: faCheckSolid,
|
|
80
78
|
circleInfo: faCircleInfoSolid,
|
|
81
|
-
circleInfoSolid: faCircleInfoSolid,
|
|
82
79
|
circleCheck: faCircleCheckRegular,
|
|
83
80
|
circleCheckSolid: faCircleCheckSolid,
|
|
84
81
|
circleXmark: faCircleXmarkRegular,
|
|
85
82
|
circleXmarkSolid: faCircleXmarkSolid,
|
|
86
83
|
clockRotateLeft: faClockRotateLeftSolid,
|
|
87
|
-
clockRotateLeftSolid: faClockRotateLeftSolid,
|
|
88
84
|
copy: faCopyRegular,
|
|
89
85
|
copySolid: faCopySolid,
|
|
90
86
|
desktop: faDesktopSolid,
|
|
91
|
-
desktopSolid: faDesktopSolid,
|
|
92
87
|
eye: faEyeSolid,
|
|
93
|
-
eyeSolid: faEyeSolid,
|
|
94
88
|
eyeSlash: faEyeSlashSolid,
|
|
95
|
-
eyeSlashSolid: faEyeSlashSolid,
|
|
96
89
|
grip: faGripSolid,
|
|
97
|
-
gripSolid: faGripSolid,
|
|
98
90
|
message: faMessageRegular,
|
|
99
91
|
messageSolid: faMessageSolid,
|
|
100
92
|
mugHot: faMugHotSolid,
|
|
101
|
-
mugHotSolid: faMugHotSolid,
|
|
102
93
|
minus: faMinusSolid,
|
|
103
|
-
minusSolid: faMinusSolid,
|
|
104
94
|
paste: faPasteRegular,
|
|
105
95
|
pasteSolid: faPasteSolid,
|
|
106
96
|
penToSquare: faPenToSquareSolid,
|
|
107
|
-
|
|
97
|
+
plus: faPlusSolid,
|
|
108
98
|
rss: faRssSolid,
|
|
109
|
-
rssSolid: faRssSolid,
|
|
110
99
|
share: faShareSolid,
|
|
111
|
-
shareSolid: faShareSolid,
|
|
112
100
|
sun: faSunRegular,
|
|
113
101
|
sunSolid: faSunSolid,
|
|
102
|
+
trash: faTrashSolid,
|
|
103
|
+
trashSolid: faTrashSolid,
|
|
104
|
+
trashCan: faTrashCanRegular,
|
|
105
|
+
trashCanSolid: faTrashCanSolid,
|
|
106
|
+
users: faUsersSolid,
|
|
114
107
|
xmark: faXmarkSolid,
|
|
115
|
-
xmarkSolid: faXmarkSolid,
|
|
116
108
|
// brands
|
|
117
109
|
facebook: faFacebook,
|
|
118
110
|
google: faGoogle,
|
|
@@ -122,7 +114,6 @@ export const faIcons = {
|
|
|
122
114
|
slack: faSlackHash,
|
|
123
115
|
tiktok: faTiktok,
|
|
124
116
|
twitter: faTwitter,
|
|
125
|
-
users: faUsersSolid,
|
|
126
117
|
};
|
|
127
118
|
|
|
128
119
|
export type TIconKey = keyof typeof faIcons;
|
|
@@ -135,24 +126,7 @@ declare global {
|
|
|
135
126
|
|
|
136
127
|
@customElement('dees-icon')
|
|
137
128
|
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
|
-
`;
|
|
129
|
+
public static demo = demoFunc;
|
|
156
130
|
|
|
157
131
|
@property({
|
|
158
132
|
type: String
|