Compare commits

...

16 Commits

Author SHA1 Message Date
0933c1d83b 1.0.109 2022-01-28 18:05:57 +01:00
af1eb73028 fix(core): update 2022-01-28 18:05:57 +01:00
4bff0091c9 1.0.108 2022-01-28 16:03:13 +01:00
7bae4585f3 fix(core): update 2022-01-28 16:03:13 +01:00
d9cdff2897 1.0.107 2022-01-24 06:56:32 +01:00
189060f11d fix(core): update 2022-01-24 06:56:30 +01:00
fc2dfa8018 1.0.106 2022-01-22 18:59:30 +01:00
be44cb7a78 fix(core): update 2022-01-22 18:59:29 +01:00
de6aba4289 1.0.105 2022-01-22 18:56:31 +01:00
3babbce2c5 fix(core): update 2022-01-22 18:56:30 +01:00
707956b7ee 1.0.104 2022-01-14 18:20:46 +01:00
c71a6170d5 fix(core): update 2022-01-14 18:20:45 +01:00
3f98f2867c 1.0.103 2021-12-13 23:18:07 +01:00
7c86f5a8f6 fix(core): update 2021-12-13 23:18:06 +01:00
472ec3158e 1.0.102 2021-11-26 17:36:00 +01:00
9a0d09d9de fix(core): update 2021-11-26 17:36:00 +01:00
8 changed files with 1690 additions and 1575 deletions

View File

@ -36,6 +36,7 @@ auditProductionDependencies:
- npmci command npm audit --audit-level=high --only=prod --production - npmci command npm audit --audit-level=high --only=prod --production
tags: tags:
- docker - docker
allow_failure: true
auditDevDependencies: auditDevDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci image: registry.gitlab.com/hosttoday/ht-docker-node:npmci

3217
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "@designestate/dees-domtools", "name": "@designestate/dees-domtools",
"version": "1.0.101", "version": "1.0.109",
"private": false, "private": false,
"description": "tools to simplify complex css structures", "description": "tools to simplify complex css structures",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
@ -13,27 +13,27 @@
"format": "(gitzone format)" "format": "(gitzone format)"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.28", "@gitzone/tsbuild": "^2.1.29",
"@gitzone/tsbundle": "^1.0.88", "@gitzone/tsbundle": "^1.0.89",
"@gitzone/tstest": "^1.0.60", "@gitzone/tstest": "^1.0.60",
"@pushrocks/tapbundle": "^3.2.14", "@pushrocks/tapbundle": "^4.0.0",
"@types/node": "^16.11.9", "@types/node": "^17.0.13",
"tslint": "^6.1.3", "tslint": "^6.1.3",
"tslint-config-prettier": "^1.15.0" "tslint-config-prettier": "^1.15.0"
}, },
"dependencies": { "dependencies": {
"@apiglobal/typedrequest": "^1.0.65", "@apiglobal/typedrequest": "^1.0.65",
"@designestate/dees-comms": "^1.0.11", "@designestate/dees-comms": "^1.0.16",
"@pushrocks/lik": "^5.0.0", "@pushrocks/lik": "^5.0.4",
"@pushrocks/smartdelay": "^2.0.13", "@pushrocks/smartdelay": "^2.0.13",
"@pushrocks/smartpromise": "^3.1.6", "@pushrocks/smartpromise": "^3.1.6",
"@pushrocks/smartrouter": "^1.0.11", "@pushrocks/smartrouter": "^1.0.12",
"@pushrocks/smartrx": "^2.0.19", "@pushrocks/smartrx": "^2.0.25",
"@pushrocks/smartstate": "^1.0.21", "@pushrocks/smartstate": "^1.0.23",
"@pushrocks/webrequest": "^2.0.13", "@pushrocks/webrequest": "^2.0.13",
"@pushrocks/websetup": "^3.0.15", "@pushrocks/websetup": "^3.0.16",
"@pushrocks/webstore": "^1.0.16", "@pushrocks/webstore": "^1.0.18",
"lit": "^2.0.2", "lit": "^2.1.2",
"sweet-scroll": "^4.0.0" "sweet-scroll": "^4.0.0"
}, },
"files": [ "files": [

View File

@ -3,7 +3,7 @@ import * as domtools from '../ts/index';
tap.test('first test', async () => { tap.test('first test', async () => {
const domtoolsInstance = await domtools.DomTools.setupDomTools(); const domtoolsInstance = await domtools.DomTools.setupDomTools();
expect(domtoolsInstance).to.be.instanceof(domtools.DomTools); expect(domtoolsInstance).toBeInstanceOf(domtools.DomTools);
}); });
tap.start(); tap.start();

View File

@ -9,6 +9,7 @@ import { ThemeManager } from './domtools.classes.thememanager';
export interface IDomToolsState { export interface IDomToolsState {
virtualViewport: TViewport; virtualViewport: TViewport;
jwt: string;
} }
export class DomTools { export class DomTools {
@ -73,6 +74,7 @@ export class DomTools {
public smartstate = new plugins.smartstate.Smartstate(); public smartstate = new plugins.smartstate.Smartstate();
public domToolsStatePart = this.smartstate.getStatePart<IDomToolsState>('domtools', { public domToolsStatePart = this.smartstate.getStatePart<IDomToolsState>('domtools', {
virtualViewport: 'native', virtualViewport: 'native',
jwt: null
}); });
public router = new plugins.smartrouter.SmartRouter({ public router = new plugins.smartrouter.SmartRouter({

View File

@ -7,11 +7,11 @@ import { css, unsafeCSS } from 'lit';
*/ */
export const scrollBarStyles: string = (() => { export const scrollBarStyles: string = (() => {
const returnStyles = const returnStyles =
navigator.userAgent.indexOf('Mac OS X') !== -1 navigator.userAgent.indexOf('Mac OS X') === -1
? css` ? css`
/* width */ /* width */
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 8px; width: 6px;
} }
/* Track */ /* Track */

View File

@ -11,10 +11,10 @@ export type TViewport = 'native' | 'desktop' | 'tablet' | 'phablet' | 'phone';
export const cssForTablet = (cssArg: CSSResult) => { export const cssForTablet = (cssArg: CSSResult) => {
return unsafeCSS(` return unsafeCSS(`
@container wccToolsViewport (min-width: ${tablet}px) { @container wccToolsViewport (max-width: ${tablet}px) {
${cssArg.cssText} ${cssArg.cssText}
} }
@media (min-width: ${tablet}px) { @media (max-width: ${tablet}px) {
${cssArg.cssText} ${cssArg.cssText}
} }
`); `);
@ -22,10 +22,10 @@ export const cssForTablet = (cssArg: CSSResult) => {
export const cssForPhablet = (cssArg: CSSResult) => { export const cssForPhablet = (cssArg: CSSResult) => {
return unsafeCSS(` return unsafeCSS(`
@container wccToolsViewport (min-width: ${phablet}px) { @container wccToolsViewport (max-width: ${phablet}px) {
${cssArg.cssText} ${cssArg.cssText}
} }
@media (min-width: ${phablet}px) { @media (max-width: ${phablet}px) {
${cssArg.cssText} ${cssArg.cssText}
} }
`); `);
@ -33,10 +33,10 @@ export const cssForPhablet = (cssArg: CSSResult) => {
export const cssForPhone = (cssArg: CSSResult) => { export const cssForPhone = (cssArg: CSSResult) => {
return unsafeCSS(` return unsafeCSS(`
@container wccToolsViewport (min-width: ${phone}px) { @container wccToolsViewport (max-width: ${phone}px) {
${cssArg.cssText} ${cssArg.cssText}
} }
@media (min-width: ${phone}px) { @media (max-width: ${phone}px) {
${cssArg.cssText} ${cssArg.cssText}
} }
`); `);

View File

@ -11,6 +11,7 @@ export const staticStyles = css`
} }
:host { :host {
box-sizing: border-box;
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
} }