fix(core): update

This commit is contained in:
Philipp Kunz 2023-01-11 17:19:22 +01:00
parent ae40a9f541
commit 600ab56026
4 changed files with 134 additions and 67 deletions

View File

@ -17,7 +17,7 @@
"dependencies": { "dependencies": {
"@designestate/dees-domtools": "^2.0.28", "@designestate/dees-domtools": "^2.0.28",
"@designestate/dees-element": "^2.0.18", "@designestate/dees-element": "^2.0.18",
"@designestate/dees-wcctools": "^1.0.75", "@designestate/dees-wcctools": "^1.0.76",
"@fortawesome/fontawesome-svg-core": "^6.2.1", "@fortawesome/fontawesome-svg-core": "^6.2.1",
"@fortawesome/free-brands-svg-icons": "^6.2.1", "@fortawesome/free-brands-svg-icons": "^6.2.1",
"@fortawesome/free-regular-svg-icons": "^6.2.1", "@fortawesome/free-regular-svg-icons": "^6.2.1",

97
pnpm-lock.yaml generated
View File

@ -3,7 +3,7 @@ lockfileVersion: 5.4
specifiers: specifiers:
'@designestate/dees-domtools': ^2.0.28 '@designestate/dees-domtools': ^2.0.28
'@designestate/dees-element': ^2.0.18 '@designestate/dees-element': ^2.0.18
'@designestate/dees-wcctools': ^1.0.75 '@designestate/dees-wcctools': ^1.0.76
'@fortawesome/fontawesome-svg-core': ^6.2.1 '@fortawesome/fontawesome-svg-core': ^6.2.1
'@fortawesome/free-brands-svg-icons': ^6.2.1 '@fortawesome/free-brands-svg-icons': ^6.2.1
'@fortawesome/free-regular-svg-icons': ^6.2.1 '@fortawesome/free-regular-svg-icons': ^6.2.1
@ -22,7 +22,7 @@ specifiers:
dependencies: dependencies:
'@designestate/dees-domtools': 2.0.28 '@designestate/dees-domtools': 2.0.28
'@designestate/dees-element': 2.0.18 '@designestate/dees-element': 2.0.18
'@designestate/dees-wcctools': 1.0.75_@types+node@18.11.18 '@designestate/dees-wcctools': 1.0.76_@types+node@18.11.18
'@fortawesome/fontawesome-svg-core': 6.2.1 '@fortawesome/fontawesome-svg-core': 6.2.1
'@fortawesome/free-brands-svg-icons': 6.2.1 '@fortawesome/free-brands-svg-icons': 6.2.1
'@fortawesome/free-regular-svg-icons': 6.2.1 '@fortawesome/free-regular-svg-icons': 6.2.1
@ -181,15 +181,15 @@ packages:
- supports-color - supports-color
dev: false dev: false
/@designestate/dees-wcctools/1.0.75_@types+node@18.11.18: /@designestate/dees-wcctools/1.0.76_@types+node@18.11.18:
resolution: {integrity: sha512-K+so4VIIzBvdwJatLu5zZq/V4ROfPX+mKNOLulKkBH7RRqRRiiL02+ShQv2SpjIZ5sLN8Y4iz3R4LuIkwiTjcQ==} resolution: {integrity: sha512-TN+A+A6KK7VtkTF6r9m1HPYwtH6rmcw2JJYO+2tBqV7qozNQ39EUjWk217jTkyiy7ynOZEI6SfIFXP+2UgG2NA==}
dependencies: dependencies:
'@designestate/dees-domtools': 2.0.28 '@designestate/dees-domtools': 2.0.28
'@designestate/dees-element': 2.0.18 '@designestate/dees-element': 2.0.18
'@gitzone/tsrun': 1.2.39_@types+node@18.11.18 '@gitzone/tsrun': 1.2.39_@types+node@18.11.18
'@pushrocks/smartdelay': 2.0.13 '@pushrocks/smartdelay': 2.0.13
'@pushrocks/smartexpress': 4.0.23 '@pushrocks/smartexpress': 4.0.23
lit: 2.5.0 lit: 2.6.0
transitivePeerDependencies: transitivePeerDependencies:
- '@swc/core' - '@swc/core'
- '@swc/wasm' - '@swc/wasm'
@ -369,12 +369,22 @@ packages:
resolution: {integrity: sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==} resolution: {integrity: sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==}
dev: true dev: true
/@lit-labs/ssr-dom-shim/1.0.0:
resolution: {integrity: sha512-ic93MBXfApIFTrup4a70M/+ddD8xdt2zxxj9sRwHQzhS9ag/syqkD8JPdTXsc1gUy2K8TTirhlCqyTEM/sifNw==}
dev: false
/@lit/reactive-element/1.4.1: /@lit/reactive-element/1.4.1:
resolution: {integrity: sha512-qDv4851VFSaBWzpS02cXHclo40jsbAjRXnebNXpm0uVg32kCneZPo9RYVQtrTNICtZ+1wAYHu1ZtxWSWMbKrBw==} resolution: {integrity: sha512-qDv4851VFSaBWzpS02cXHclo40jsbAjRXnebNXpm0uVg32kCneZPo9RYVQtrTNICtZ+1wAYHu1ZtxWSWMbKrBw==}
/@lit/reactive-element/1.5.0: /@lit/reactive-element/1.5.0:
resolution: {integrity: sha512-fQh9FDK0LPTwDk+0HhSZEtb8K0LTN1wXerwpGrWA+a8tWulYRDLI4vQDWp4GOIsewn0572KYV/oZ3+492D7osA==} resolution: {integrity: sha512-fQh9FDK0LPTwDk+0HhSZEtb8K0LTN1wXerwpGrWA+a8tWulYRDLI4vQDWp4GOIsewn0572KYV/oZ3+492D7osA==}
/@lit/reactive-element/1.6.0:
resolution: {integrity: sha512-33H04h4tx9NVEADti0haZTNxssCnqZlMlyjri5k9kwDWAe2W1iENroZt7VWwmsPhlWUD8sSoPXSHqd0DdL29Pw==}
dependencies:
'@lit-labs/ssr-dom-shim': 1.0.0
dev: false
/@nodelib/fs.scandir/2.1.5: /@nodelib/fs.scandir/2.1.5:
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
engines: {node: '>= 8'} engines: {node: '>= 8'}
@ -655,7 +665,7 @@ packages:
'@pushrocks/smartdelay': 2.0.13 '@pushrocks/smartdelay': 2.0.13
'@pushrocks/smartenv': 5.0.5 '@pushrocks/smartenv': 5.0.5
'@pushrocks/smartfeed': 1.0.11 '@pushrocks/smartfeed': 1.0.11
'@pushrocks/smartfile': 10.0.5 '@pushrocks/smartfile': 10.0.7
'@pushrocks/smartmanifest': 1.0.8 '@pushrocks/smartmanifest': 1.0.8
'@pushrocks/smartmime': 1.0.5 '@pushrocks/smartmime': 1.0.5
'@pushrocks/smartpath': 5.0.5 '@pushrocks/smartpath': 5.0.5
@ -712,6 +722,30 @@ packages:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
/@pushrocks/smartfile/10.0.7:
resolution: {integrity: sha512-ZjMkHLjiKaHFy5bz2k+0bLNr3S0Ef6EU65vuZuq8MbhJQW/xhBUWZWT/sKNSkPiXVCWI+vpHOA6j1G3qCnLspg==}
dependencies:
'@pushrocks/lik': 6.0.0
'@pushrocks/smartdelay': 2.0.13
'@pushrocks/smartfile-interfaces': 1.0.7
'@pushrocks/smarthash': 3.0.2
'@pushrocks/smartjson': 5.0.5
'@pushrocks/smartmime': 1.0.5
'@pushrocks/smartpath': 5.0.5
'@pushrocks/smartpromise': 3.1.7
'@pushrocks/smartrequest': 2.0.11
'@pushrocks/smartstream': 2.0.3
'@pushrocks/streamfunction': 4.0.4
'@types/fs-extra': 11.0.1
'@types/glob': 8.0.0
'@types/js-yaml': 4.0.5
fs-extra: 11.1.0
glob: 8.0.3
js-yaml: 4.1.0
transitivePeerDependencies:
- supports-color
dev: false
/@pushrocks/smartfile/9.0.6: /@pushrocks/smartfile/9.0.6:
resolution: {integrity: sha512-mXFrnHpM3Eq0MLokGP6DDRTk+v/HDlQwnNq4HFuCqs8YW6uTU/FoRJDnrCAf+spSzkDm0m1ajz/4rke8Dk9l6A==} resolution: {integrity: sha512-mXFrnHpM3Eq0MLokGP6DDRTk+v/HDlQwnNq4HFuCqs8YW6uTU/FoRJDnrCAf+spSzkDm0m1ajz/4rke8Dk9l6A==}
dependencies: dependencies:
@ -750,6 +784,15 @@ packages:
'@types/through2': 2.0.36 '@types/through2': 2.0.36
through2: 4.0.2 through2: 4.0.2
/@pushrocks/smarthash/3.0.2:
resolution: {integrity: sha512-jXW4f8k6iqOQRvkCmXMID1C+qXyNvUMKm7apPETxnO+L172VlzxP1dml0Ey1+vjfpU2luKCteJWX7W95sOdLDg==}
dependencies:
'@pushrocks/smartjson': 5.0.5
'@pushrocks/smartpromise': 3.1.7
'@types/through2': 2.0.38
through2: 4.0.2
dev: false
/@pushrocks/smartjson/4.0.6: /@pushrocks/smartjson/4.0.6:
resolution: {integrity: sha512-lykr068RSDHs0+EXCvIDVxjKnDtRQ2M7EXOo5jVrUU6/OEdfRl9ErM1K/oPafiEi47/PtTrwLlp1KdSgqkRjmg==} resolution: {integrity: sha512-lykr068RSDHs0+EXCvIDVxjKnDtRQ2M7EXOo5jVrUU6/OEdfRl9ErM1K/oPafiEi47/PtTrwLlp1KdSgqkRjmg==}
dependencies: dependencies:
@ -1398,6 +1441,13 @@ packages:
dependencies: dependencies:
'@types/node': 18.11.18 '@types/node': 18.11.18
/@types/fs-extra/11.0.1:
resolution: {integrity: sha512-MxObHvNl4A69ofaTRU8DFqvgzzv8s9yRtaPPm5gud9HDNvpB3GPQFvNuTWAI59B9huVGV5jXYJwbCsmBsOGYWA==}
dependencies:
'@types/jsonfile': 6.1.1
'@types/node': 18.11.18
dev: false
/@types/fs-extra/9.0.13: /@types/fs-extra/9.0.13:
resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==}
dependencies: dependencies:
@ -1458,6 +1508,12 @@ packages:
/@types/js-yaml/4.0.5: /@types/js-yaml/4.0.5:
resolution: {integrity: sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==} resolution: {integrity: sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==}
/@types/jsonfile/6.1.1:
resolution: {integrity: sha512-GSgiRCVeapDN+3pqA35IkQwasaCh/0YFH5dEF6S88iDvEn901DjOeH3/QPY+XYP1DFzDZPvIvfeEgk+7br5png==}
dependencies:
'@types/node': 18.11.18
dev: false
/@types/keygrip/1.0.2: /@types/keygrip/1.0.2:
resolution: {integrity: sha512-GJhpTepz2udxGexqos8wgaBx4I/zWIDPh/KOGEwAqtuGDkOUJu5eFvwmdBX4AmB8Odsr+9pHCQqiAqDL/yKMKw==} resolution: {integrity: sha512-GJhpTepz2udxGexqos8wgaBx4I/zWIDPh/KOGEwAqtuGDkOUJu5eFvwmdBX4AmB8Odsr+9pHCQqiAqDL/yKMKw==}
dev: true dev: true
@ -1560,6 +1616,12 @@ packages:
dependencies: dependencies:
'@types/node': 18.11.18 '@types/node': 18.11.18
/@types/through2/2.0.38:
resolution: {integrity: sha512-YFu+nHmjxMurkH1BSzA0Z1WrKDAY8jUKPZctNQn7mc+/KKtp2XxnclHFXxdB1m7Iqnzb5aywgP8TMK283LezGQ==}
dependencies:
'@types/node': 18.11.18
dev: false
/@types/trusted-types/2.0.2: /@types/trusted-types/2.0.2:
resolution: {integrity: sha512-F5DIZ36YVLE+PN+Zwws4kJogq47hNgX3Nx6WyDJ3kcplxyke3XIzB8uK5n/Lpm1HBsbGzd6nmGehL8cPekP+Tg==} resolution: {integrity: sha512-F5DIZ36YVLE+PN+Zwws4kJogq47hNgX3Nx6WyDJ3kcplxyke3XIzB8uK5n/Lpm1HBsbGzd6nmGehL8cPekP+Tg==}
@ -2795,6 +2857,15 @@ packages:
jsonfile: 6.1.0 jsonfile: 6.1.0
universalify: 2.0.0 universalify: 2.0.0
/fs-extra/11.1.0:
resolution: {integrity: sha512-0rcTq621PD5jM/e0a3EJoGC/1TC5ZBCERW82LQuwfGnCa1V8w7dpYH1yNu+SLb6E5dkeCBzKEyLGlFrnr+dUyw==}
engines: {node: '>=14.14'}
dependencies:
graceful-fs: 4.2.10
jsonfile: 6.1.0
universalify: 2.0.0
dev: false
/fs.realpath/1.0.0: /fs.realpath/1.0.0:
resolution: {integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=} resolution: {integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=}
@ -3330,6 +3401,12 @@ packages:
dependencies: dependencies:
'@types/trusted-types': 2.0.2 '@types/trusted-types': 2.0.2
/lit-html/2.6.0:
resolution: {integrity: sha512-slNAAYfvC7LxeryDOnPFl5uTpxGYGJ6UR9SFmfY+gQ+sf30z1atDPXlgjcSTtwymNdlwDhfGjq+EemQRXp9z1g==}
dependencies:
'@types/trusted-types': 2.0.2
dev: false
/lit/2.4.0: /lit/2.4.0:
resolution: {integrity: sha512-fdgzxEtLrZFQU/BqTtxFQCLwlZd9bdat+ltzSFjvWkZrs7eBmeX0L5MHUMb3kYIkuS8Xlfnii/iI5klirF8/Xg==} resolution: {integrity: sha512-fdgzxEtLrZFQU/BqTtxFQCLwlZd9bdat+ltzSFjvWkZrs7eBmeX0L5MHUMb3kYIkuS8Xlfnii/iI5klirF8/Xg==}
dependencies: dependencies:
@ -3345,6 +3422,14 @@ packages:
lit-element: 3.2.2 lit-element: 3.2.2
lit-html: 2.5.0 lit-html: 2.5.0
/lit/2.6.0:
resolution: {integrity: sha512-GUKVozhomdYlFVuB4UNipbPB5RcXNX4ns43uDA1gSTZN1oHe7mnj05fpYbESxXfxg/Gn905HTIzymCFrr/cn3A==}
dependencies:
'@lit/reactive-element': 1.6.0
lit-element: 3.2.2
lit-html: 2.6.0
dev: false
/locate-path/5.0.0: /locate-path/5.0.0:
resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==}
engines: {node: '>=8'} engines: {node: '>=8'}

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@designestate/dees-catalog', name: '@designestate/dees-catalog',
version: '1.0.124', version: '1.0.125',
description: 'website for lossless.com' description: 'website for lossless.com'
} }

View File

@ -14,27 +14,36 @@ import {
faTiktok, faTiktok,
} from '@fortawesome/free-brands-svg-icons'; } from '@fortawesome/free-brands-svg-icons';
import {} from '@fortawesome/free-regular-svg-icons'; import {
import { faDesktop, faRss, faUsers } from '@fortawesome/free-solid-svg-icons'; faMessage as faMessageRegular,
faSun as faSunRegular,
} from '@fortawesome/free-regular-svg-icons';
import {
faBell as faBellSolid,
faBug as faBugSolid,
faDesktop as faDesktopSolid,
faRss as faRssSolid,
faUsers as faUsersSolid,
faSun as faSunSolid,
faGrip as faGripSolid,
} from '@fortawesome/free-solid-svg-icons';
type TFontAwesomeIcon = export const faIcons = {
// normal // normal
| 'desktop' bell: faBellSolid,
| 'rss' bellSolid: faBellSolid,
// brands bug: faBugSolid,
| 'facebook' bugSolid: faBugSolid,
| 'google' desktop: faDesktopSolid,
| 'linkedin' desktopSolid: faDesktopSolid,
| 'instagram' grip: faGripSolid,
| 'medium' gripSolid: faGripSolid,
| 'slack' message: faMessageRegular,
| 'tiktok' messageSolid: faMessageRegular,
| 'twitter' rss: faRssSolid,
| 'users'; rssSolid: faRssSolid,
const faIcons: { [key: string]: IconDefinition } = { sun: faSunRegular,
// normal sunSolid: faSunSolid,
desktop: faDesktop,
rss: faRss,
// brands // brands
facebook: faFacebook, facebook: faFacebook,
google: faGoogle, google: faGoogle,
@ -44,7 +53,7 @@ const faIcons: { [key: string]: IconDefinition } = {
slack: faSlackHash, slack: faSlackHash,
tiktok: faTiktok, tiktok: faTiktok,
twitter: faTwitter, twitter: faTwitter,
users: faUsers, users: faUsersSolid,
}; };
declare global { declare global {
@ -58,21 +67,18 @@ export class DeesIcon extends DeesElement {
public static demo = () => html` public static demo = () => html`
<dees-icon iconName="visibility"></dees-icon> <dees-icon iconName="visibility"></dees-icon>
<div style="background: #fff; padding: 10px; font-size: 24px"> <div style="background: #fff; padding: 10px; font-size: 24px">
<dees-icon iconName="visibility"></dees-icon> <dees-icon iconFA="message"></dees-icon>
<dees-icon iconName="info"></dees-icon> <dees-icon iconFA="sun"></dees-icon>
<dees-icon iconName="brightness_4"></dees-icon> <dees-icon iconFA="sunSolid"></dees-icon>
<dees-icon brandName="facebook"></dees-icon> <dees-icon iconFA="facebook"></dees-icon>
</div> </div>
`; `;
@property() @property()
public iconName: string; public iconFA: keyof typeof faIcons;
@property() @property()
public brandName: TFontAwesomeIcon; public iconSize: number = 20;
@property()
public svgSize: number = 20;
constructor() { constructor() {
super(); super();
@ -85,48 +91,24 @@ export class DeesIcon extends DeesElement {
<style> <style>
:host { :host {
display: block; display: block;
line-height: inherit;
font-size: inherit;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
white-space: nowrap; white-space: nowrap;
} }
#iconContainer svg { #iconContainer svg {
display: inline-block; display: inline-block;
height: ${this.svgSize}px; height: ${this.iconSize}px;
}
.material-symbols-outlined {
font-family: 'Material Symbols Outlined';
font-weight: normal;
font-style: normal;
line-height: inherit;
font-size: inherit; /* Preferred icon size */
display: inline-block;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
} }
</style> </style>
${this.iconName <div id="iconContainer"></div>
? html`
<i
class="material-symbols-outlined"
>
${this.iconName}
</i>`
: html``}
${this.brandName ? html`<div id="iconContainer"></div>` : html``}
`; `;
} }
public async firstUpdated() { public async firstUpdated() {
if (this.brandName && !this.iconName) { if (this.iconFA) {
this.shadowRoot.querySelector('#iconContainer').innerHTML = icon( this.shadowRoot.querySelector('#iconContainer').innerHTML = this.iconFA
faIcons[this.brandName] ? icon(faIcons[this.iconFA]).html[0]
).html[0]; : 'icon not found';
} }
} }
} }