Compare commits

...

44 Commits

Author SHA1 Message Date
7023888f38 2.0.8 2022-04-19 18:16:21 +02:00
1356666700 fix(core): update 2022-04-19 18:16:20 +02:00
b436fe77b0 2.0.7 2022-04-19 18:13:26 +02:00
3de788bb75 fix(core): update 2022-04-19 18:13:26 +02:00
d50e320f17 2.0.6 2022-04-14 16:42:52 +02:00
a7532c8816 fix(core): update 2022-04-14 16:42:51 +02:00
2d5944cdd7 2.0.5 2022-03-29 15:54:06 +02:00
5a8527068a fix(core): update 2022-03-29 15:54:06 +02:00
ffd0bb925a 2.0.4 2022-03-25 16:03:40 +01:00
4a5fb3ef4b fix(core): update 2022-03-25 16:03:40 +01:00
a059c268af 2.0.3 2022-03-25 14:01:44 +01:00
714aa77839 fix(core): update 2022-03-25 14:01:44 +01:00
2527e6e586 2.0.2 2022-03-25 02:28:39 +01:00
88f7f20b6f fix(core): update 2022-03-25 02:28:39 +01:00
8e23b7ebec 2.0.1 2022-03-18 14:26:31 +01:00
b3d12c39bf fix(core): update 2022-03-18 14:26:31 +01:00
d102d5a7e6 2.0.0 2022-03-16 13:42:30 +01:00
8be31958b4 1.0.115 2022-03-16 13:39:50 +01:00
e21f6c3920 fix(core): update 2022-03-16 13:39:50 +01:00
356a756962 1.0.114 2022-03-04 08:21:58 +01:00
0bb66e8221 fix(core): update 2022-03-04 08:21:57 +01:00
b70077c43f 1.0.113 2022-03-02 19:18:40 +01:00
9c5f024e5f 1.0.112 2022-03-02 19:00:52 +01:00
5eea208924 fix(core): update 2022-03-02 19:00:52 +01:00
f21fdb2eb8 1.0.111 2022-03-02 18:00:35 +01:00
d6ea74cb71 fix(core): update 2022-03-02 18:00:35 +01:00
10375576a7 1.0.110 2022-03-02 17:44:46 +01:00
367be854ff fix(core): update 2022-03-02 17:44:45 +01:00
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
13 changed files with 7109 additions and 14914 deletions

View File

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

21885
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,39 +1,40 @@
{
"name": "@designestate/dees-domtools",
"version": "1.0.101",
"version": "2.0.8",
"private": false,
"description": "tools to simplify complex css structures",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",
"type": "module",
"author": "Lossless GmbH",
"license": "MIT",
"scripts": {
"test": "(tstest test/ --web)",
"build": "(tsbuild --web && tsbundle npm)",
"build": "(tsbuild --web --allowimplicitany --skiplibcheck && tsbundle npm)",
"format": "(gitzone format)"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.28",
"@gitzone/tsbundle": "^1.0.88",
"@gitzone/tstest": "^1.0.60",
"@pushrocks/tapbundle": "^3.2.14",
"@types/node": "^16.11.9",
"@gitzone/tsbuild": "^2.1.61",
"@gitzone/tsbundle": "^1.0.102",
"@gitzone/tstest": "^1.0.70",
"@pushrocks/tapbundle": "^5.0.3",
"@types/node": "^17.0.23",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.15.0"
},
"dependencies": {
"@apiglobal/typedrequest": "^1.0.65",
"@designestate/dees-comms": "^1.0.11",
"@pushrocks/lik": "^5.0.0",
"@apiglobal/typedrequest": "^2.0.3",
"@designestate/dees-comms": "^1.0.22",
"@pushrocks/lik": "^5.0.4",
"@pushrocks/smartdelay": "^2.0.13",
"@pushrocks/smartpromise": "^3.1.6",
"@pushrocks/smartrouter": "^1.0.11",
"@pushrocks/smartrx": "^2.0.19",
"@pushrocks/smartstate": "^1.0.21",
"@pushrocks/webrequest": "^2.0.13",
"@pushrocks/websetup": "^3.0.15",
"@pushrocks/webstore": "^1.0.16",
"lit": "^2.0.2",
"@pushrocks/smartpromise": "^3.1.7",
"@pushrocks/smartrouter": "^1.0.12",
"@pushrocks/smartrx": "^2.0.25",
"@pushrocks/smartstate": "^2.0.0",
"@pushrocks/webrequest": "^3.0.3",
"@pushrocks/websetup": "^3.0.16",
"@pushrocks/webstore": "^1.0.18",
"lit": "^2.2.2",
"sweet-scroll": "^4.0.0"
},
"files": [

View File

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

View File

@ -1,14 +1,15 @@
import * as plugins from './domtools.plugins';
import { Stringmap } from '@pushrocks/lik/dist_ts/lik.stringmap';
import { FastMap } from '@pushrocks/lik/dist_ts/lik.fastmap';
import { TViewport } from './domtools.css.breakpoints';
import * as plugins from './domtools.plugins.js';
import { Stringmap } from '@pushrocks/lik/dist_ts/lik.stringmap.js';
import { FastMap } from '@pushrocks/lik/dist_ts/lik.fastmap.js';
import { TViewport } from './domtools.css.breakpoints.js';
import { Scroller } from './domtools.classes.scroller';
import { Scroller } from './domtools.classes.scroller.js';
import { WebSetup } from '@pushrocks/websetup';
import { ThemeManager } from './domtools.classes.thememanager';
import { ThemeManager } from './domtools.classes.thememanager.js';
export interface IDomToolsState {
virtualViewport: TViewport;
jwt: string;
}
export class DomTools {
@ -73,6 +74,7 @@ export class DomTools {
public smartstate = new plugins.smartstate.Smartstate();
public domToolsStatePart = this.smartstate.getStatePart<IDomToolsState>('domtools', {
virtualViewport: 'native',
jwt: null
});
public router = new plugins.smartrouter.SmartRouter({

View File

@ -1,4 +1,4 @@
import * as plugins from './domtools.plugins';
import * as plugins from './domtools.plugins.js';
export class Scroller {
// TODO: move sweet scroll over to here;

View File

@ -1,5 +1,5 @@
import { DomTools } from './domtools.classes.domtools';
import * as plugins from './domtools.plugins';
import { DomTools } from './domtools.classes.domtools.js';
import * as plugins from './domtools.plugins.js';
export class ThemeManager {
public domtoolsRef: DomTools;

View File

@ -1,4 +1,4 @@
import { DomTools } from './domtools.classes.domtools';
import { DomTools } from './domtools.classes.domtools.js';
import { css, unsafeCSS } from 'lit';
@ -7,11 +7,11 @@ import { css, unsafeCSS } from 'lit';
*/
export const scrollBarStyles: string = (() => {
const returnStyles =
navigator.userAgent.indexOf('Mac OS X') !== -1
navigator.userAgent.indexOf('Mac OS X') === -1
? css`
/* width */
::-webkit-scrollbar {
width: 8px;
width: 6px;
}
/* Track */
@ -43,10 +43,6 @@ export const globalBaseStyles: string = css`
format('woff2');
}
/* Roboto Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100;300;400');
/* global body styles */
body {
margin: 0px;

View File

@ -1,20 +1,43 @@
import { DomTools } from './domtools.classes.domtools';
import { DomTools } from './domtools.classes.domtools.js';
import { CSSResult, unsafeCSS } from 'lit';
export const desktop = 1240;
export const desktop = 1600;
export const notebook = 1240;
export const tablet = 1024;
export const phablet = 600;
export const phone = 400;
export type TViewport = 'native' | 'desktop' | 'tablet' | 'phablet' | 'phone';
export const cssForTablet = (cssArg: CSSResult) => {
export const cssForDesktop = (cssArg: CSSResult) => {
return unsafeCSS(`
@container wccToolsViewport (min-width: ${tablet}px) {
@container wccToolsViewport (min-width: ${desktop}px) {
${cssArg.cssText}
}
@media (min-width: ${tablet}px) {
@media (min-width: ${desktop}px) {
${cssArg.cssText}
}
`);
};
export const cssForNotebook = (cssArg: CSSResult) => {
return unsafeCSS(`
@container wccToolsViewport (max-width: ${notebook}px) {
${cssArg.cssText}
}
@media (max-width: ${notebook}px) {
${cssArg.cssText}
}
`);
};
export const cssForTablet = (cssArg: CSSResult) => {
return unsafeCSS(`
@container wccToolsViewport (max-width: ${tablet}px) {
${cssArg.cssText}
}
@media (max-width: ${tablet}px) {
${cssArg.cssText}
}
`);
@ -22,10 +45,10 @@ export const cssForTablet = (cssArg: CSSResult) => {
export const cssForPhablet = (cssArg: CSSResult) => {
return unsafeCSS(`
@container wccToolsViewport (min-width: ${phablet}px) {
@container wccToolsViewport (max-width: ${phablet}px) {
${cssArg.cssText}
}
@media (min-width: ${phablet}px) {
@media (max-width: ${phablet}px) {
${cssArg.cssText}
}
`);
@ -33,10 +56,10 @@ export const cssForPhablet = (cssArg: CSSResult) => {
export const cssForPhone = (cssArg: CSSResult) => {
return unsafeCSS(`
@container wccToolsViewport (min-width: ${phone}px) {
@container wccToolsViewport (max-width: ${phone}px) {
${cssArg.cssText}
}
@media (min-width: ${phone}px) {
@media (max-width: ${phone}px) {
${cssArg.cssText}
}
`);

View File

@ -1,6 +1,6 @@
import * as plugins from './domtools.plugins';
import { DomTools } from './domtools.classes.domtools';
import { scrollBarStyles, globalBaseStyles } from './domtools.css.basestyles';
import * as plugins from './domtools.plugins.js';
import { DomTools } from './domtools.classes.domtools.js';
import { scrollBarStyles, globalBaseStyles } from './domtools.css.basestyles.js';
import { html, LitElement, css, unsafeCSS } from 'lit';
@ -11,6 +11,7 @@ export const staticStyles = css`
}
:host {
box-sizing: border-box;
font-family: 'Roboto', sans-serif;
}

View File

@ -19,7 +19,7 @@ import * as websetup from '@pushrocks/websetup';
import * as webstore from '@pushrocks/webstore';
// subscope lik
import { ObjectMap } from '@pushrocks/lik/dist_ts/lik.objectmap';
import { ObjectMap } from '@pushrocks/lik/dist_ts/lik.objectmap.js';
const lik = {
ObjectMap,
};

View File

@ -1,16 +1,16 @@
export * from './domtools.colors';
export * from './domtools.colors.js';
import * as elementBasic from './domtools.elementbasic';
import * as breakpoints from './domtools.css.breakpoints';
import * as css from './domtools.css';
import * as elementBasic from './domtools.elementbasic.js';
import * as breakpoints from './domtools.css.breakpoints.js';
import * as css from './domtools.css.js';
export { css, breakpoints, elementBasic };
export { DomTools } from './domtools.classes.domtools';
export { DomTools } from './domtools.classes.domtools.js';
export { TypedRequest } from '@apiglobal/typedrequest';
export { IWebSetupConstructorOptions } from '@pushrocks/websetup';
export { rxjs } from '@pushrocks/smartrx';
import * as allPlugins from './domtools.plugins';
import * as allPlugins from './domtools.plugins.js';
export const plugins = {
smartdelay: allPlugins.smartdelay,

6
tsconfig.json Normal file
View File

@ -0,0 +1,6 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "Node12"
}
}