Compare commits
36 Commits
Author | SHA1 | Date | |
---|---|---|---|
8e23b7ebec | |||
b3d12c39bf | |||
d102d5a7e6 | |||
8be31958b4 | |||
e21f6c3920 | |||
356a756962 | |||
0bb66e8221 | |||
b70077c43f | |||
9c5f024e5f | |||
5eea208924 | |||
f21fdb2eb8 | |||
d6ea74cb71 | |||
10375576a7 | |||
367be854ff | |||
0933c1d83b | |||
af1eb73028 | |||
4bff0091c9 | |||
7bae4585f3 | |||
d9cdff2897 | |||
189060f11d | |||
fc2dfa8018 | |||
be44cb7a78 | |||
de6aba4289 | |||
3babbce2c5 | |||
707956b7ee | |||
c71a6170d5 | |||
3f98f2867c | |||
7c86f5a8f6 | |||
472ec3158e | |||
9a0d09d9de | |||
5975ca7320 | |||
97583c650d | |||
f5fd0662d3 | |||
14c91ed81f | |||
1aabacdf87 | |||
1747afe04a |
@ -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
|
||||||
|
20133
package-lock.json
generated
20133
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
35
package.json
35
package.json
@ -1,39 +1,40 @@
|
|||||||
{
|
{
|
||||||
"name": "@designestate/dees-domtools",
|
"name": "@designestate/dees-domtools",
|
||||||
"version": "1.0.98",
|
"version": "2.0.1",
|
||||||
"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",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
"type": "module",
|
||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(tstest test/ --web)",
|
"test": "(tstest test/ --web)",
|
||||||
"build": "(tsbuild --web && tsbundle npm)",
|
"build": "(tsbuild --web --allowimplicitany --skiplibcheck && tsbundle npm)",
|
||||||
"format": "(gitzone format)"
|
"format": "(gitzone format)"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.28",
|
"@gitzone/tsbuild": "^2.1.56",
|
||||||
"@gitzone/tsbundle": "^1.0.88",
|
"@gitzone/tsbundle": "^1.0.99",
|
||||||
"@gitzone/tstest": "^1.0.60",
|
"@gitzone/tstest": "^1.0.69",
|
||||||
"@pushrocks/tapbundle": "^3.2.14",
|
"@pushrocks/tapbundle": "^5.0.2",
|
||||||
"@types/node": "^16.11.9",
|
"@types/node": "^17.0.21",
|
||||||
"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.7",
|
||||||
"@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": "^3.0.1",
|
||||||
"@pushrocks/websetup": "^3.0.15",
|
"@pushrocks/websetup": "^3.0.16",
|
||||||
"@pushrocks/webstore": "^1.0.16",
|
"@pushrocks/webstore": "^1.0.18",
|
||||||
"lit-element": "^3.0.2",
|
"lit": "^2.2.1",
|
||||||
"sweet-scroll": "^4.0.0"
|
"sweet-scroll": "^4.0.0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -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();
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
import * as plugins from './domtools.plugins';
|
import * as plugins from './domtools.plugins.js';
|
||||||
import { Stringmap } from '@pushrocks/lik/dist_ts/lik.stringmap';
|
import { Stringmap } from '@pushrocks/lik/dist_ts/lik.stringmap.js';
|
||||||
import { FastMap } from '@pushrocks/lik/dist_ts/lik.fastmap';
|
import { FastMap } from '@pushrocks/lik/dist_ts/lik.fastmap.js';
|
||||||
import { TViewport } from './domtools.breakpoints';
|
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 { WebSetup } from '@pushrocks/websetup';
|
||||||
import { ThemeManager } from './domtools.classes.thememanager';
|
import { ThemeManager } from './domtools.classes.thememanager.js';
|
||||||
|
|
||||||
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({
|
||||||
@ -90,7 +92,7 @@ export class DomTools {
|
|||||||
}); // TODO: switch to scroller class
|
}); // TODO: switch to scroller class
|
||||||
public themeManager = new ThemeManager(this);
|
public themeManager = new ThemeManager(this);
|
||||||
|
|
||||||
private actionSetVirtualViewport = this.domToolsStatePart.createAction<TViewport>(
|
/* private actionSetVirtualViewport = this.domToolsStatePart.createAction<TViewport>(
|
||||||
async (statePart, payload) => {
|
async (statePart, payload) => {
|
||||||
const currentState = statePart.getState();
|
const currentState = statePart.getState();
|
||||||
currentState.virtualViewport = payload;
|
currentState.virtualViewport = payload;
|
||||||
@ -98,6 +100,10 @@ export class DomTools {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
public setVirtualViewport(environmentArg: TViewport) {
|
||||||
|
this.domToolsStatePart.dispatchAction(this.actionSetVirtualViewport, environmentArg);
|
||||||
|
} */
|
||||||
|
|
||||||
public domToolsReady = plugins.smartpromise.defer();
|
public domToolsReady = plugins.smartpromise.defer();
|
||||||
public domReady = plugins.smartpromise.defer();
|
public domReady = plugins.smartpromise.defer();
|
||||||
public globalStylesReady = plugins.smartpromise.defer();
|
public globalStylesReady = plugins.smartpromise.defer();
|
||||||
@ -106,6 +112,7 @@ export class DomTools {
|
|||||||
|
|
||||||
private runOnceTrackerStringMap = new Stringmap();
|
private runOnceTrackerStringMap = new Stringmap();
|
||||||
private runOnceResultMap = new FastMap();
|
private runOnceResultMap = new FastMap();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* run a function once and always get the Promise of the first execution
|
* run a function once and always get the Promise of the first execution
|
||||||
* @param identifierArg the indentifier arg identifies functions. functions with the same identifier are considered equal
|
* @param identifierArg the indentifier arg identifies functions. functions with the same identifier are considered equal
|
||||||
@ -131,7 +138,10 @@ export class DomTools {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// setStuff
|
// setStuff
|
||||||
|
/**
|
||||||
|
* allows to set global styles
|
||||||
|
* @param stylesText the css text you want to set
|
||||||
|
*/
|
||||||
public async setGlobalStyles(stylesText: string) {
|
public async setGlobalStyles(stylesText: string) {
|
||||||
await this.domReady.promise;
|
await this.domReady.promise;
|
||||||
const styleElement = document.createElement('style');
|
const styleElement = document.createElement('style');
|
||||||
@ -140,6 +150,10 @@ export class DomTools {
|
|||||||
this.elements.headElement.appendChild(styleElement);
|
this.elements.headElement.appendChild(styleElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* allows setting external css files
|
||||||
|
* @param cssLinkArg a url to an external stylesheet
|
||||||
|
*/
|
||||||
public async setExternalCss(cssLinkArg: string) {
|
public async setExternalCss(cssLinkArg: string) {
|
||||||
const cssTag = document.createElement('link');
|
const cssTag = document.createElement('link');
|
||||||
cssTag.rel = 'stylesheet';
|
cssTag.rel = 'stylesheet';
|
||||||
@ -148,10 +162,10 @@ export class DomTools {
|
|||||||
document.head.append(cssTag);
|
document.head.append(cssTag);
|
||||||
}
|
}
|
||||||
|
|
||||||
public setVirtualViewport(environmentArg: TViewport) {
|
/**
|
||||||
this.domToolsStatePart.dispatchAction(this.actionSetVirtualViewport, environmentArg);
|
* allows setting of website infos
|
||||||
}
|
* @param optionsArg the website info
|
||||||
|
*/
|
||||||
public async setWebsiteInfo(optionsArg: plugins.websetup.IWebSetupConstructorOptions) {
|
public async setWebsiteInfo(optionsArg: plugins.websetup.IWebSetupConstructorOptions) {
|
||||||
await this.websetup.setup(optionsArg);
|
await this.websetup.setup(optionsArg);
|
||||||
await this.websetup.readyPromise;
|
await this.websetup.readyPromise;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from './domtools.plugins';
|
import * as plugins from './domtools.plugins.js';
|
||||||
|
|
||||||
export class Scroller {
|
export class Scroller {
|
||||||
// TODO: move sweet scroll over to here;
|
// TODO: move sweet scroll over to here;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { LitElement } from 'lit-element';
|
import { DomTools } from './domtools.classes.domtools.js';
|
||||||
import { DomTools } from './domtools.classes.domtools';
|
import * as plugins from './domtools.plugins.js';
|
||||||
import * as plugins from './domtools.plugins';
|
|
||||||
|
|
||||||
export class ThemeManager {
|
export class ThemeManager {
|
||||||
public domtoolsRef: DomTools;
|
public domtoolsRef: DomTools;
|
||||||
@ -29,16 +28,25 @@ export class ThemeManager {
|
|||||||
this.themeObservable.next(this.goBrightBoolean);
|
this.themeObservable.next(this.goBrightBoolean);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set the theme of the website to bright
|
||||||
|
*/
|
||||||
public goBright() {
|
public goBright() {
|
||||||
this.goBrightBoolean = true;
|
this.goBrightBoolean = true;
|
||||||
this.updateAllConnectedElements();
|
this.updateAllConnectedElements();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set the theme of the website to dark
|
||||||
|
*/
|
||||||
public goDark() {
|
public goDark() {
|
||||||
this.goBrightBoolean = false;
|
this.goBrightBoolean = false;
|
||||||
this.updateAllConnectedElements();
|
this.updateAllConnectedElements();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* simply toggle between bright and dark
|
||||||
|
*/
|
||||||
public toggleDarkBright() {
|
public toggleDarkBright() {
|
||||||
this.goBrightBoolean = !this.goBrightBoolean;
|
this.goBrightBoolean = !this.goBrightBoolean;
|
||||||
this.updateAllConnectedElements();
|
this.updateAllConnectedElements();
|
||||||
|
59
ts/domtools.css.basestyles.ts
Normal file
59
ts/domtools.css.basestyles.ts
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
import { DomTools } from './domtools.classes.domtools.js';
|
||||||
|
|
||||||
|
import { css, unsafeCSS } from 'lit';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* changes scrollbar styles to be consistent across OS borders
|
||||||
|
*/
|
||||||
|
export const scrollBarStyles: string = (() => {
|
||||||
|
const returnStyles =
|
||||||
|
navigator.userAgent.indexOf('Mac OS X') === -1
|
||||||
|
? css`
|
||||||
|
/* width */
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Track */
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background: #111;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Handle */
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Handle on hover */
|
||||||
|
::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: #777;
|
||||||
|
}
|
||||||
|
`.cssText
|
||||||
|
: ``;
|
||||||
|
return returnStyles;
|
||||||
|
})();
|
||||||
|
|
||||||
|
export const globalBaseStyles: string = css`
|
||||||
|
/* global material font */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Material Icons';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url(https://fonts.gstatic.com/s/materialicons/v42/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2)
|
||||||
|
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;
|
||||||
|
font-family: 'Roboto', sans-serif;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* scroll bar styles */
|
||||||
|
${unsafeCSS(scrollBarStyles)}
|
||||||
|
`.cssText;
|
@ -1,6 +1,6 @@
|
|||||||
import { DomTools } from './domtools.classes.domtools';
|
import { DomTools } from './domtools.classes.domtools.js';
|
||||||
|
|
||||||
import { CSSResult, unsafeCSS } from 'lit-element';
|
import { CSSResult, unsafeCSS } from 'lit';
|
||||||
|
|
||||||
export const desktop = 1240;
|
export const desktop = 1240;
|
||||||
export const tablet = 1024;
|
export const tablet = 1024;
|
||||||
@ -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 size(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 size(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 size(max-width: ${phone}px) {
|
||||||
${cssArg.cssText}
|
${cssArg.cssText}
|
||||||
}
|
}
|
||||||
@media (min-width: ${phone}px) {
|
@media (max-width: ${phone}px) {
|
||||||
${cssArg.cssText}
|
${cssArg.cssText}
|
||||||
}
|
}
|
||||||
`);
|
`);
|
@ -1,31 +0,0 @@
|
|||||||
import { DomTools } from './domtools.classes.domtools';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* changes scrollbar styles to be consistent across OS borders
|
|
||||||
*/
|
|
||||||
export const scrollBarStyles = (() => {
|
|
||||||
const returnStyles =
|
|
||||||
navigator.userAgent.indexOf('Windows') !== -1
|
|
||||||
? `
|
|
||||||
/* width */
|
|
||||||
::-webkit-scrollbar {
|
|
||||||
width: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Track */
|
|
||||||
::-webkit-scrollbar-track {
|
|
||||||
background: #111;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Handle */
|
|
||||||
::-webkit-scrollbar-thumb {
|
|
||||||
background: #666;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Handle on hover */
|
|
||||||
::-webkit-scrollbar-thumb:hover {
|
|
||||||
background: #777;
|
|
||||||
}
|
|
||||||
`
|
|
||||||
: ``;
|
|
||||||
})();
|
|
@ -1,8 +1,8 @@
|
|||||||
import * as plugins from './domtools.plugins';
|
import * as plugins from './domtools.plugins.js';
|
||||||
import { DomTools } from './domtools.classes.domtools';
|
import { DomTools } from './domtools.classes.domtools.js';
|
||||||
import { scrollBarStyles } from './domtools.css.theme';
|
import { scrollBarStyles, globalBaseStyles } from './domtools.css.basestyles.js';
|
||||||
|
|
||||||
import { html, LitElement, css, unsafeCSS } from 'lit-element';
|
import { html, LitElement, css, unsafeCSS } from 'lit';
|
||||||
|
|
||||||
export const staticStyles = css`
|
export const staticStyles = css`
|
||||||
* {
|
* {
|
||||||
@ -11,6 +11,7 @@ export const staticStyles = css`
|
|||||||
}
|
}
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
|
box-sizing: border-box;
|
||||||
font-family: 'Roboto', sans-serif;
|
font-family: 'Roboto', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,34 +50,7 @@ export const setup = async (elementArg?: LitElement): Promise<DomTools> => {
|
|||||||
|
|
||||||
domTools.runOnce('elementBasicSetup', async () => {
|
domTools.runOnce('elementBasicSetup', async () => {
|
||||||
// bodyStyles
|
// bodyStyles
|
||||||
domTools.setGlobalStyles(`
|
domTools.setGlobalStyles(globalBaseStyles);
|
||||||
body {
|
|
||||||
margin: 0px;
|
|
||||||
font-family: 'Roboto', sans-serif;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
`);
|
|
||||||
|
|
||||||
// material font
|
|
||||||
domTools.setGlobalStyles(`
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Material Icons';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src: url(https://fonts.gstatic.com/s/materialicons/v42/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format('woff2');
|
|
||||||
}
|
|
||||||
`);
|
|
||||||
|
|
||||||
// Roboto Font
|
|
||||||
domTools.setGlobalStyles(`
|
|
||||||
@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');
|
|
||||||
`);
|
|
||||||
|
|
||||||
// scrollbars
|
|
||||||
domTools.setGlobalStyles(`
|
|
||||||
${scrollBarStyles}
|
|
||||||
`);
|
|
||||||
});
|
});
|
||||||
return domTools;
|
return domTools;
|
||||||
};
|
};
|
||||||
|
@ -19,7 +19,7 @@ import * as websetup from '@pushrocks/websetup';
|
|||||||
import * as webstore from '@pushrocks/webstore';
|
import * as webstore from '@pushrocks/webstore';
|
||||||
|
|
||||||
// subscope lik
|
// subscope lik
|
||||||
import { ObjectMap } from '@pushrocks/lik/dist_ts/lik.objectmap';
|
import { ObjectMap } from '@pushrocks/lik/dist_ts/lik.objectmap.js';
|
||||||
const lik = {
|
const lik = {
|
||||||
ObjectMap,
|
ObjectMap,
|
||||||
};
|
};
|
||||||
|
12
ts/index.ts
12
ts/index.ts
@ -1,16 +1,16 @@
|
|||||||
export * from './domtools.colors';
|
export * from './domtools.colors.js';
|
||||||
|
|
||||||
import * as elementBasic from './domtools.elementbasic';
|
import * as elementBasic from './domtools.elementbasic.js';
|
||||||
import * as breakpoints from './domtools.breakpoints';
|
import * as breakpoints from './domtools.css.breakpoints.js';
|
||||||
import * as css from './domtools.css';
|
import * as css from './domtools.css.js';
|
||||||
|
|
||||||
export { css, breakpoints, elementBasic };
|
export { css, breakpoints, elementBasic };
|
||||||
export { DomTools } from './domtools.classes.domtools';
|
export { DomTools } from './domtools.classes.domtools.js';
|
||||||
export { TypedRequest } from '@apiglobal/typedrequest';
|
export { TypedRequest } from '@apiglobal/typedrequest';
|
||||||
export { IWebSetupConstructorOptions } from '@pushrocks/websetup';
|
export { IWebSetupConstructorOptions } from '@pushrocks/websetup';
|
||||||
export { rxjs } from '@pushrocks/smartrx';
|
export { rxjs } from '@pushrocks/smartrx';
|
||||||
|
|
||||||
import * as allPlugins from './domtools.plugins';
|
import * as allPlugins from './domtools.plugins.js';
|
||||||
|
|
||||||
export const plugins = {
|
export const plugins = {
|
||||||
smartdelay: allPlugins.smartdelay,
|
smartdelay: allPlugins.smartdelay,
|
||||||
|
6
tsconfig.json
Normal file
6
tsconfig.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "ES2020",
|
||||||
|
"module": "Node12"
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user