@social.io/catalog 1.0.93
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 +5949 -0
- package/dist_bundle/bundle.js.map +7 -0
- package/dist_ts_web/00_commitinfo_data.d.ts +8 -0
- package/dist_ts_web/00_commitinfo_data.js +9 -0
- package/dist_ts_web/elements/index.d.ts +4 -0
- package/dist_ts_web/elements/index.js +5 -0
- package/dist_ts_web/elements/sio-combox.d.ts +13 -0
- package/dist_ts_web/elements/sio-combox.js +194 -0
- package/dist_ts_web/elements/sio-fab.d.ts +17 -0
- package/dist_ts_web/elements/sio-fab.js +180 -0
- package/dist_ts_web/elements/sio-subwidget-conversations.d.ts +7 -0
- package/dist_ts_web/elements/sio-subwidget-conversations.js +165 -0
- package/dist_ts_web/elements/sio-subwidget-onboardme.d.ts +7 -0
- package/dist_ts_web/elements/sio-subwidget-onboardme.js +76 -0
- package/dist_ts_web/index.d.ts +1 -0
- package/dist_ts_web/index.js +2 -0
- package/dist_ts_web/pages/firstpage.d.ts +1 -0
- package/dist_ts_web/pages/firstpage.js +5 -0
- package/dist_ts_web/pages/index.d.ts +2 -0
- package/dist_ts_web/pages/index.js +3 -0
- package/dist_ts_web/pages/mainpage.d.ts +1 -0
- package/dist_ts_web/pages/mainpage.js +3 -0
- package/dist_watch/bundle.js +120817 -0
- package/dist_watch/bundle.js.map +7 -0
- package/dist_watch/index.html +28 -0
- package/license +19 -0
- package/npmextra.json +19 -0
- package/package.json +51 -0
- package/readme.hints.md +0 -0
- package/readme.md +31 -0
- package/ts_web/00_commitinfo_data.ts +8 -0
- package/ts_web/elements/index.ts +4 -0
- package/ts_web/elements/sio-combox.ts +199 -0
- package/ts_web/elements/sio-fab.ts +185 -0
- package/ts_web/elements/sio-subwidget-conversations.ts +156 -0
- package/ts_web/elements/sio-subwidget-onboardme.ts +64 -0
- package/ts_web/index.ts +1 -0
- package/ts_web/pages/firstpage.ts +5 -0
- package/ts_web/pages/index.ts +2 -0
- package/ts_web/pages/mainpage.ts +3 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<!--gitzone element-->
|
|
2
|
+
<!-- made by Task Venture Capital GmbH -->
|
|
3
|
+
<!-- checkout https://maintainedby.lossless.com for awesome OpenSource projects -->
|
|
4
|
+
<html lang="en">
|
|
5
|
+
<head>
|
|
6
|
+
<!--Lets set some basic meta tags-->
|
|
7
|
+
<meta
|
|
8
|
+
name="viewport"
|
|
9
|
+
content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height"
|
|
10
|
+
/>
|
|
11
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
12
|
+
|
|
13
|
+
<!--Lets load standard fonts-->
|
|
14
|
+
<link rel="preconnect" href="https://assetbroker.lossless.one/" crossorigin>
|
|
15
|
+
<link rel="stylesheet" href="https://assetbroker.lossless.one/fonts/fonts.css">
|
|
16
|
+
|
|
17
|
+
<style>
|
|
18
|
+
body {
|
|
19
|
+
margin: 0px;
|
|
20
|
+
background: #222222;
|
|
21
|
+
}
|
|
22
|
+
</style>
|
|
23
|
+
|
|
24
|
+
<script type="module" src="/bundle.js"></script>
|
|
25
|
+
</head>
|
|
26
|
+
<body>
|
|
27
|
+
</body>
|
|
28
|
+
</html>
|
package/license
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2020 Lossless GmbH (hello@lossless.com)
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
package/npmextra.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"gitzone": {
|
|
3
|
+
"projectType": "wcc",
|
|
4
|
+
"module": {
|
|
5
|
+
"githost": "gitlab.com",
|
|
6
|
+
"gitscope": "social.io/private",
|
|
7
|
+
"gitrepo": "catalog",
|
|
8
|
+
"description": "the element catalog for the lossless organization",
|
|
9
|
+
"npmPackagename": "@social.io_private/catalog",
|
|
10
|
+
"license": "UNLICENSED",
|
|
11
|
+
"projectDomain": "social.io"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"npmci": {
|
|
15
|
+
"npmRegistryUrl": "verdaccio.lossless.one",
|
|
16
|
+
"npmGlobalTools": [],
|
|
17
|
+
"npmAccessLevel": "private"
|
|
18
|
+
}
|
|
19
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@social.io/catalog",
|
|
3
|
+
"version": "1.0.93",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "catalog for social.io",
|
|
6
|
+
"main": "dist_ts_web/index.js",
|
|
7
|
+
"typings": "dist_ts_web/index.d.ts",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"author": "Lossless GmbH",
|
|
10
|
+
"license": "UNLICENSED",
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@design.estate/dees-catalog": "^1.2.0",
|
|
13
|
+
"@design.estate/dees-domtools": "^2.0.64",
|
|
14
|
+
"@design.estate/dees-element": "^2.0.39",
|
|
15
|
+
"@design.estate/dees-wcctools": "^1.0.90",
|
|
16
|
+
"@losslessone_private/loint-pubapi": "^1.0.14",
|
|
17
|
+
"@social.io/interfaces": "^1.0.5"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@git.zone/tsbuild": "^2.1.84",
|
|
21
|
+
"@git.zone/tsbundle": "^2.0.15",
|
|
22
|
+
"@git.zone/tsrun": "^1.2.49",
|
|
23
|
+
"@git.zone/tstest": "^1.0.90",
|
|
24
|
+
"@git.zone/tswatch": "^2.0.23",
|
|
25
|
+
"@push.rocks/projectinfo": "^5.0.2",
|
|
26
|
+
"@push.rocks/smartenv": "^5.0.12",
|
|
27
|
+
"@push.rocks/tapbundle": "^5.3.0",
|
|
28
|
+
"@types/node": "^22.7.5"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"ts/**/*",
|
|
32
|
+
"ts_web/**/*",
|
|
33
|
+
"dist/**/*",
|
|
34
|
+
"dist_*/**/*",
|
|
35
|
+
"dist_ts/**/*",
|
|
36
|
+
"dist_ts_web/**/*",
|
|
37
|
+
"assets/**/*",
|
|
38
|
+
"cli.js",
|
|
39
|
+
"npmextra.json",
|
|
40
|
+
"readme.md"
|
|
41
|
+
],
|
|
42
|
+
"browserslist": [
|
|
43
|
+
"last 1 Chrome versions"
|
|
44
|
+
],
|
|
45
|
+
"scripts": {
|
|
46
|
+
"test": "tstest test/",
|
|
47
|
+
"build": "tsbuild tsfolders --allowimplicitany && tsbundle element --production",
|
|
48
|
+
"watch": "tswatch element",
|
|
49
|
+
"buildDocs": "tsdoc"
|
|
50
|
+
}
|
|
51
|
+
}
|
package/readme.hints.md
ADDED
|
File without changes
|
package/readme.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @social.io/private/catalog
|
|
2
|
+
the element catalog for the lossless organization
|
|
3
|
+
|
|
4
|
+
## Availabililty and Links
|
|
5
|
+
* [npmjs.org (npm package)](https://www.npmjs.com/package/@social.io_private/catalog)
|
|
6
|
+
* [gitlab.com (source)](https://gitlab.com/social.io/private/catalog)
|
|
7
|
+
* [github.com (source mirror)](https://github.com/social.io/private/catalog)
|
|
8
|
+
* [docs (typedoc)](https://social.io/private.gitlab.io/catalog/)
|
|
9
|
+
|
|
10
|
+
## Status for master
|
|
11
|
+
|
|
12
|
+
Status Category | Status Badge
|
|
13
|
+
-- | --
|
|
14
|
+
GitLab Pipelines | [](https://lossless.cloud)
|
|
15
|
+
GitLab Pipline Test Coverage | [](https://lossless.cloud)
|
|
16
|
+
npm | [](https://lossless.cloud)
|
|
17
|
+
Snyk | [](https://lossless.cloud)
|
|
18
|
+
TypeScript Support | [](https://lossless.cloud)
|
|
19
|
+
node Support | [](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
|
20
|
+
Code Style | [](https://lossless.cloud)
|
|
21
|
+
PackagePhobia (total standalone install weight) | [](https://lossless.cloud)
|
|
22
|
+
PackagePhobia (package size on registry) | [](https://lossless.cloud)
|
|
23
|
+
BundlePhobia (total size when bundled) | [](https://lossless.cloud)
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
For further information read the linked docs at the top of this readme.
|
|
28
|
+
|
|
29
|
+
## Legal
|
|
30
|
+
> UNLICENSED licensed | **©** [Task Venture Capital GmbH](https://task.vc)
|
|
31
|
+
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DeesElement,
|
|
3
|
+
property,
|
|
4
|
+
html,
|
|
5
|
+
customElement,
|
|
6
|
+
type TemplateResult,
|
|
7
|
+
} from '@design.estate/dees-element';
|
|
8
|
+
import * as domtools from '@design.estate/dees-domtools';
|
|
9
|
+
|
|
10
|
+
import * as deesCatalog from '@design.estate/dees-catalog';
|
|
11
|
+
deesCatalog;
|
|
12
|
+
|
|
13
|
+
@customElement('sio-combox')
|
|
14
|
+
export class SioCombox extends DeesElement {
|
|
15
|
+
public static demo = () => html` <sio-combox></sio-combox> `;
|
|
16
|
+
|
|
17
|
+
@property({ type: Object })
|
|
18
|
+
public referenceObject: HTMLElement;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* computes the button offset
|
|
22
|
+
*/
|
|
23
|
+
public cssComputeHeight() {
|
|
24
|
+
let height = window.innerHeight < 760 ? window.innerHeight : 760;
|
|
25
|
+
if (!this.referenceObject) {
|
|
26
|
+
console.log('SioCombox: no reference object set');
|
|
27
|
+
}
|
|
28
|
+
if (this.referenceObject) {
|
|
29
|
+
console.log(`referenceObject height is ${this.referenceObject.clientHeight}`);
|
|
30
|
+
height = height - (this.referenceObject.clientHeight + 60);
|
|
31
|
+
}
|
|
32
|
+
return height;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public cssComputeInnerScroll() {
|
|
36
|
+
console.log(
|
|
37
|
+
`SioCombox clientHeight: ${this.shadowRoot.querySelector('.mainbox').clientHeight}`
|
|
38
|
+
);
|
|
39
|
+
console.log(
|
|
40
|
+
`SioCombox content scrollheight is: ${
|
|
41
|
+
this.shadowRoot.querySelector('.contentbox').clientHeight
|
|
42
|
+
}`
|
|
43
|
+
);
|
|
44
|
+
if (
|
|
45
|
+
this.shadowRoot.querySelector('.mainbox').clientHeight <
|
|
46
|
+
this.shadowRoot.querySelector('.contentbox').clientHeight
|
|
47
|
+
) {
|
|
48
|
+
(this.shadowRoot.querySelector('.mainbox') as HTMLElement).style.overflowY = 'scroll';
|
|
49
|
+
} else {
|
|
50
|
+
(this.shadowRoot.querySelector('.mainbox') as HTMLElement).style.overflowY = 'hidden';
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
constructor() {
|
|
55
|
+
super();
|
|
56
|
+
domtools.DomTools.setupDomTools();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
public render(): TemplateResult {
|
|
60
|
+
return html`
|
|
61
|
+
${domtools.elementBasic.styles}
|
|
62
|
+
<style>
|
|
63
|
+
:host {
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
font-family: 'Dees Sans';
|
|
66
|
+
position: absolute;
|
|
67
|
+
display: block;
|
|
68
|
+
height: ${this.cssComputeHeight()}px;
|
|
69
|
+
width: 375px;
|
|
70
|
+
background: ${this.goBright ? '#eeeeee' : '#000000'};
|
|
71
|
+
border-radius: 16px;
|
|
72
|
+
border: 1px solid rgba(250, 250, 250, 0.2);
|
|
73
|
+
right: 0px;
|
|
74
|
+
z-index: 10000;
|
|
75
|
+
box-shadow: 0px 0px 5px ${this.goBright ? 'rgba(0, 0, 0, 0.3)' : 'rgba(0, 0, 0, 0.5)'};
|
|
76
|
+
color: ${this.goBright ? '#333' : '#ccc'};
|
|
77
|
+
cursor: default;
|
|
78
|
+
user-select: none;
|
|
79
|
+
text-align: left;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.mainbox {
|
|
83
|
+
position: absolute;
|
|
84
|
+
height: 100%;
|
|
85
|
+
width: 100%;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
overscroll-behavior: contain;
|
|
88
|
+
padding-bottom: 80px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.toppanel {
|
|
92
|
+
height: 200px;
|
|
93
|
+
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
|
|
94
|
+
padding: 20px;
|
|
95
|
+
--bg-color: ${this.goBright ? '#00000050' : '#ffffff30'};
|
|
96
|
+
--dot-color: #ffffff00;
|
|
97
|
+
--dot-size: 1px;
|
|
98
|
+
--dot-space: 6px;
|
|
99
|
+
|
|
100
|
+
background: linear-gradient(45deg, var(--bg-color) 1px, var(--dot-color) 1px) top left;
|
|
101
|
+
background-size: var(--dot-space) var(--dot-space);
|
|
102
|
+
margin-bottom: -50px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
#greeting {
|
|
106
|
+
padding-top: 50px;
|
|
107
|
+
font-family: 'Dees Sans';
|
|
108
|
+
margin: 0px;
|
|
109
|
+
font-size: 30px;
|
|
110
|
+
font-weight: 400;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
#callToAction {
|
|
114
|
+
font-family: 'Dees Sans';
|
|
115
|
+
margin: 0px;
|
|
116
|
+
font-weight: 400;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.quicktabs {
|
|
120
|
+
position: absolute;
|
|
121
|
+
z-index: 100;
|
|
122
|
+
bottom: 30px;
|
|
123
|
+
display: grid;
|
|
124
|
+
width: 100%;
|
|
125
|
+
padding-bottom: 16px;
|
|
126
|
+
grid-template-columns: repeat(2, 1fr);
|
|
127
|
+
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 50%);
|
|
128
|
+
padding-top: 24px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.quicktabs .quicktab {
|
|
132
|
+
text-align: center;
|
|
133
|
+
width: 100%;
|
|
134
|
+
}
|
|
135
|
+
.quicktabs .quicktab .quicktabicon {
|
|
136
|
+
font-size: 20px;
|
|
137
|
+
margin-bottom: 8px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.quicktabs .quicktab .quicktabtext {
|
|
141
|
+
font-size: 12px;
|
|
142
|
+
font-weight: 600;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
.brandingbox {
|
|
148
|
+
z-index: 101;
|
|
149
|
+
text-align: center;
|
|
150
|
+
position: absolute;
|
|
151
|
+
width: 100%;
|
|
152
|
+
bottom: 0px;
|
|
153
|
+
left: 0px;
|
|
154
|
+
font-size: 12px;
|
|
155
|
+
padding: 8px;
|
|
156
|
+
border-top: 1px solid rgba(250, 250, 250, 0.1);
|
|
157
|
+
font-family: 'Dees Sans';
|
|
158
|
+
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
|
|
159
|
+
background: ${this.goBright ? '#EEE' : '#000'};
|
|
160
|
+
color: ${this.goBright ? '#333' : '#777'};
|
|
161
|
+
}
|
|
162
|
+
</style>
|
|
163
|
+
<div class="mainbox">
|
|
164
|
+
<div class="contentbox">
|
|
165
|
+
<div class="toppanel">
|
|
166
|
+
<div id="greeting">Hello :)</div>
|
|
167
|
+
<div id="callToAction">Ask us anything or share your feedback!</div>
|
|
168
|
+
</div>
|
|
169
|
+
<sio-subwidget-conversations></sio-subwidget-conversations>
|
|
170
|
+
<sio-subwidget-onboardme></sio-subwidget-onboardme>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
<div class="quicktabs">
|
|
174
|
+
<div class="quicktab">
|
|
175
|
+
<div class="quicktabicon">
|
|
176
|
+
<dees-icon iconFA="message"></dees-icon>
|
|
177
|
+
</div>
|
|
178
|
+
<div class="quicktabtext">Conversations</div>
|
|
179
|
+
</div>
|
|
180
|
+
<div class="quicktab">
|
|
181
|
+
<div class="quicktabicon">
|
|
182
|
+
<dees-icon iconFA="mugHot"></dees-icon>
|
|
183
|
+
</div>
|
|
184
|
+
<div class="quicktabtext">Onboarding</div>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
<div class="brandingbox">powered by social.io</div>
|
|
188
|
+
`;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
async updated() {
|
|
192
|
+
this.cssComputeHeight();
|
|
193
|
+
window.requestAnimationFrame(() => {
|
|
194
|
+
setTimeout(() => {
|
|
195
|
+
this.cssComputeInnerScroll();
|
|
196
|
+
}, 200);
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DeesElement,
|
|
3
|
+
property,
|
|
4
|
+
html,
|
|
5
|
+
customElement,
|
|
6
|
+
type TemplateResult,
|
|
7
|
+
cssManager,
|
|
8
|
+
css,
|
|
9
|
+
} from '@design.estate/dees-element';
|
|
10
|
+
import * as domtools from '@design.estate/dees-domtools';
|
|
11
|
+
|
|
12
|
+
import { SioCombox } from './sio-combox.js';
|
|
13
|
+
SioCombox;
|
|
14
|
+
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
'sio-fab': SioFab;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@customElement('sio-fab')
|
|
22
|
+
export class SioFab extends DeesElement {
|
|
23
|
+
@property()
|
|
24
|
+
public showCombox = false;
|
|
25
|
+
|
|
26
|
+
public static demo = () => html` <sio-fab .showCombox=${true}></sio-fab> `;
|
|
27
|
+
|
|
28
|
+
constructor() {
|
|
29
|
+
super();
|
|
30
|
+
domtools.DomTools.setupDomTools();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public render(): TemplateResult {
|
|
34
|
+
return html`
|
|
35
|
+
${domtools.elementBasic.styles}
|
|
36
|
+
<style>
|
|
37
|
+
:host {
|
|
38
|
+
will-change: transform;
|
|
39
|
+
position: absolute;
|
|
40
|
+
display: block;
|
|
41
|
+
bottom: 20px;
|
|
42
|
+
right: 20px;
|
|
43
|
+
z-index: 10000;
|
|
44
|
+
color: #fff;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
#mainbox {
|
|
48
|
+
transition: all 0.2s;
|
|
49
|
+
position: absolute;
|
|
50
|
+
bottom: 0px;
|
|
51
|
+
right: 0px;
|
|
52
|
+
height: 60px;
|
|
53
|
+
width: 60px;
|
|
54
|
+
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
|
|
55
|
+
line-height: 60px;
|
|
56
|
+
text-align: center;
|
|
57
|
+
color: #ccc;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
background: ${this.goBright
|
|
60
|
+
? 'linear-gradient(-45deg, #eeeeeb, #eeeeeb)'
|
|
61
|
+
: 'linear-gradient(-45deg, #222222, #333333)'};
|
|
62
|
+
border-radius: 50% 50% 50% 50%;
|
|
63
|
+
user-select: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
#mainbox:hover {
|
|
67
|
+
transform: scale(1.05);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
#mainbox:active {
|
|
71
|
+
transform: scale(0.95);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
#mainbox .icon {
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: 0px;
|
|
77
|
+
left: 0px;
|
|
78
|
+
will-change: transform;
|
|
79
|
+
transform: ${this.showCombox ? 'rotate(0deg)' : 'rotate(-360deg)'};
|
|
80
|
+
transition: all 0.2s;
|
|
81
|
+
height: 100%;
|
|
82
|
+
width: 100%;
|
|
83
|
+
object-fit: contain;
|
|
84
|
+
-webkit-user-drag: none;
|
|
85
|
+
-khtml-user-drag: none;
|
|
86
|
+
-moz-user-drag: none;
|
|
87
|
+
-o-user-drag: none;
|
|
88
|
+
user-drag: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
#mainbox .icon img {
|
|
92
|
+
filter: grayscale(1) ${cssManager.bdTheme('invert(1)', '')};
|
|
93
|
+
position: absolute;
|
|
94
|
+
width: 100%;
|
|
95
|
+
top: 0px;
|
|
96
|
+
left: 0px;
|
|
97
|
+
will-change: transform;
|
|
98
|
+
transform: scale(0.2, 0.2) translateY(-5px);
|
|
99
|
+
}
|
|
100
|
+
#mainbox .icon.open:hover img {
|
|
101
|
+
filter: grayscale(0);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
#mainbox .icon.open {
|
|
105
|
+
opacity: ${this.showCombox ? '0' : '1'};
|
|
106
|
+
pointer-events: ${this.showCombox ? 'none' : 'all'};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
#mainbox .icon.close {
|
|
110
|
+
opacity: ${this.showCombox ? '1' : '0'};
|
|
111
|
+
pointer-events: ${this.showCombox ? 'all' : 'none'};
|
|
112
|
+
}
|
|
113
|
+
#mainbox .icon.close:hover dees-icon {
|
|
114
|
+
color: ${cssManager.bdTheme('#111', '#fff')};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
#mainbox .icon.open dees-icon {
|
|
118
|
+
position: absolute;
|
|
119
|
+
width: 100%;
|
|
120
|
+
height: 100%;
|
|
121
|
+
font-size: 32px;
|
|
122
|
+
color: ${cssManager.bdTheme('#777', '#999')};
|
|
123
|
+
top: 2px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
#mainbox .icon.close dees-icon {
|
|
127
|
+
position: absolute;
|
|
128
|
+
width: 100%;
|
|
129
|
+
height: 100%;
|
|
130
|
+
font-size: 24px;
|
|
131
|
+
color: ${cssManager.bdTheme('#666', '#CCC')};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
#comboxContainer sio-combox {
|
|
135
|
+
transition: transform 0.2s, opacity 0.2s;
|
|
136
|
+
will-change: transform;
|
|
137
|
+
transform: translateY(20px);
|
|
138
|
+
bottom: 80px;
|
|
139
|
+
opacity: 0;
|
|
140
|
+
pointer-events: none;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
#comboxContainer.show sio-combox {
|
|
144
|
+
transform: translateY(0px);
|
|
145
|
+
opacity: 1;
|
|
146
|
+
pointer-events: all;
|
|
147
|
+
}
|
|
148
|
+
</style>
|
|
149
|
+
<div id="mainbox" @click=${this.toggleCombox}>
|
|
150
|
+
<div class="icon open">
|
|
151
|
+
<dees-icon iconFA="message"></dees-icon>
|
|
152
|
+
<img src="https://assetbroker.lossless.one/brandfiles/00general/favicon_socialio.svg" />
|
|
153
|
+
</div>
|
|
154
|
+
<div class="icon close">
|
|
155
|
+
<dees-icon iconFa="xmark"></dees-icon>
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
<div id="comboxContainer" class="${this.showCombox ? 'show' : null}">
|
|
159
|
+
<sio-combox></sio-combox>
|
|
160
|
+
</div>
|
|
161
|
+
`;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* toggles the combox
|
|
166
|
+
*/
|
|
167
|
+
public async toggleCombox() {
|
|
168
|
+
console.log('toggle combox');
|
|
169
|
+
this.showCombox = !this.showCombox;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
public async firstUpdated(args) {
|
|
173
|
+
super.firstUpdated(args);
|
|
174
|
+
const domtools = await this.domtoolsPromise;
|
|
175
|
+
const sioCombox: SioCombox = this.shadowRoot.querySelector('sio-combox');
|
|
176
|
+
const mainBox: HTMLElement = this.shadowRoot.querySelector('#mainbox');
|
|
177
|
+
sioCombox.referenceObject = mainBox;
|
|
178
|
+
|
|
179
|
+
domtools.keyboard
|
|
180
|
+
.on([domtools.keyboard.keyEnum.Ctrl, domtools.keyboard.keyEnum.S])
|
|
181
|
+
.subscribe((event) => {
|
|
182
|
+
this.showCombox = !this.showCombox;
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
}
|