Compare commits

...

48 Commits

Author SHA1 Message Date
20e2149fd9 2.0.53 2023-10-23 16:34:33 +02:00
af2eaf010f fix(core): update 2023-10-23 16:34:32 +02:00
fdfc7b4963 2.0.52 2023-10-22 16:03:38 +02:00
28be3f3095 fix(core): update 2023-10-22 16:03:37 +02:00
3b946d7700 2.0.51 2023-10-07 12:25:44 +02:00
20e14bf14d fix(core): update 2023-10-07 12:25:44 +02:00
23a9ea9dfc 2.0.50 2023-10-05 14:08:44 +02:00
a64af6f0ff fix(core): update 2023-10-05 14:08:43 +02:00
e456df08d1 2.0.49 2023-10-03 19:23:24 +02:00
fd758e5ec1 fix(core): update 2023-10-03 19:23:23 +02:00
c45eac1796 2.0.48 2023-10-03 19:20:39 +02:00
5530642c3e fix(core): update 2023-10-03 19:20:38 +02:00
6b8bd28057 2.0.47 2023-10-03 18:58:21 +02:00
1ba907d2cc fix(core): update 2023-10-03 18:58:20 +02:00
6a7da41c98 2.0.46 2023-10-03 13:20:28 +02:00
b67a602f78 fix(core): update 2023-10-03 13:20:27 +02:00
fa093e6f5b 2.0.45 2023-10-03 12:48:23 +02:00
29f26d2ea7 fix(core): update 2023-10-03 12:48:22 +02:00
77fe34ebac 2.0.44 2023-10-03 12:38:18 +02:00
9ccd2fb2cf fix(core): update 2023-10-03 12:38:17 +02:00
02f67c64df 2.0.43 2023-10-03 11:46:15 +02:00
31dd8aa258 fix(core): update 2023-10-03 11:46:14 +02:00
5f66725c6b 2.0.42 2023-10-03 11:33:39 +02:00
89af82d2c4 fix(core): update 2023-10-03 11:33:38 +02:00
98dab6c683 2.0.41 2023-09-17 14:30:55 +02:00
805ce5ed88 fix(core): update 2023-09-17 14:30:55 +02:00
6f30b7618d 2.0.40 2023-09-09 23:36:32 +02:00
42fd443ad8 fix(core): update 2023-09-09 23:36:31 +02:00
b2cb49a314 2.0.39 2023-08-27 13:33:37 +02:00
d580df7e0a fix(core): update 2023-08-27 13:33:36 +02:00
68ea3052fd 2.0.38 2023-08-20 17:10:11 +02:00
252d56a321 fix(core): update 2023-08-20 17:10:10 +02:00
497e6d1c11 2.0.37 2023-08-07 04:20:36 +02:00
f1949bdc5d fix(core): update 2023-08-07 04:20:36 +02:00
d36d4a921a 2.0.36 2023-08-06 19:38:53 +02:00
e6194045d1 fix(core): update 2023-08-06 19:38:52 +02:00
6147e5f02f 2.0.35 2023-08-06 19:37:29 +02:00
0e64232e26 fix(core): update 2023-08-06 19:37:28 +02:00
fa66a51612 2.0.34 2023-08-06 19:36:49 +02:00
b26cc004c1 fix(core): update 2023-08-06 19:36:48 +02:00
f923802ba1 2.0.33 2023-05-08 15:26:18 +02:00
cf589d727f fix(core): update 2023-05-08 15:26:17 +02:00
b6720aef9d 2.0.32 2023-05-08 10:14:48 +02:00
ce945173ec fix(core): update 2023-05-08 10:14:47 +02:00
0c016ea6d9 2.0.31 2023-05-07 20:56:08 +02:00
467b0d3011 fix(core): update 2023-05-07 20:56:08 +02:00
333e991231 2.0.30 2023-04-05 16:46:13 +02:00
94c6c5a525 fix(core): update 2023-04-05 16:46:13 +02:00
14 changed files with 2517 additions and 1239 deletions

View File

@ -12,29 +12,25 @@ stages:
- release - release
- metadata - metadata
before_script:
- pnpm install -g pnpm
- pnpm install -g @shipzone/npmci
- npmci npm prepare
# ====================
# security stage
# ====================
# ==================== # ====================
# security stage # security stage
# ==================== # ====================
mirror:
stage: security
script:
- npmci git mirror
only:
- tags
tags:
- lossless
- docker
- notpriv
auditProductionDependencies: auditProductionDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security stage: security
script: script:
- npmci npm prepare
- npmci command npm install --production --ignore-scripts
- npmci command npm config set registry https://registry.npmjs.org - npmci command npm config set registry https://registry.npmjs.org
- npmci command npm audit --audit-level=high --only=prod --production - npmci command pnpm audit --audit-level=high --prod
tags: tags:
- lossless
- docker - docker
allow_failure: true allow_failure: true
@ -42,11 +38,10 @@ auditDevDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security stage: security
script: script:
- npmci npm prepare
- npmci command npm install --ignore-scripts
- npmci command npm config set registry https://registry.npmjs.org - npmci command npm config set registry https://registry.npmjs.org
- npmci command npm audit --audit-level=high --only=dev - npmci command pnpm audit --audit-level=high --dev
tags: tags:
- lossless
- docker - docker
allow_failure: true allow_failure: true
@ -57,7 +52,6 @@ auditDevDependencies:
testStable: testStable:
stage: test stage: test
script: script:
- npmci npm prepare
- npmci node install stable - npmci node install stable
- npmci npm install - npmci npm install
- npmci npm test - npmci npm test
@ -68,10 +62,9 @@ testStable:
testBuild: testBuild:
stage: test stage: test
script: script:
- npmci npm prepare
- npmci node install stable - npmci node install stable
- npmci npm install - npmci npm install
- npmci command npm run build - npmci npm build
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
@ -97,10 +90,9 @@ codequality:
only: only:
- tags - tags
script: script:
- npmci command npm install -g tslint typescript - npmci command npm install -g typescript
- npmci npm prepare - npmci npm prepare
- npmci npm install - npmci npm install
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
tags: tags:
- lossless - lossless
- docker - docker
@ -120,11 +112,9 @@ trigger:
pages: pages:
stage: metadata stage: metadata
script: script:
- npmci node install lts - npmci node install stable
- npmci command npm install -g @gitzone/tsdoc
- npmci npm prepare
- npmci npm install - npmci npm install
- npmci command tsdoc - npmci command npm run buildDocs
tags: tags:
- lossless - lossless
- docker - docker

24
.vscode/launch.json vendored
View File

@ -2,28 +2,10 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "current file", "command": "npm test",
"type": "node", "name": "Run npm test",
"request": "launch", "request": "launch",
"args": [ "type": "node-terminal"
"${relativeFile}"
],
"runtimeArgs": ["-r", "@gitzone/tsrun"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": "test.ts",
"type": "node",
"request": "launch",
"args": [
"test/test.ts"
],
"runtimeArgs": ["-r", "@gitzone/tsrun"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"
} }
] ]
} }

View File

@ -3,10 +3,10 @@
"projectType": "npm", "projectType": "npm",
"module": { "module": {
"githost": "gitlab.com", "githost": "gitlab.com",
"gitscope": "designestate", "gitscope": "design.estate",
"gitrepo": "dees-domtools", "gitrepo": "dees-domtools",
"shortDescription": "tools to simplify complex css structures", "description": "tools to simplify complex css structures",
"npmPackagename": "@designestate/dees-domtools", "npmPackagename": "@design.estate/dees-domtools",
"license": "MIT", "license": "MIT",
"projectDomain": "design.estate" "projectDomain": "design.estate"
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "@designestate/dees-domtools", "name": "@design.estate/dees-domtools",
"version": "2.0.29", "version": "2.0.53",
"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",
@ -11,30 +11,31 @@
"scripts": { "scripts": {
"test": "(tstest test/ --web)", "test": "(tstest test/ --web)",
"build": "(tsbuild --web --allowimplicitany && tsbundle npm)", "build": "(tsbuild --web --allowimplicitany && tsbundle npm)",
"format": "(gitzone format)" "format": "(gitzone format)",
"buildDocs": "tsdoc"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.63", "@git.zone/tsbuild": "^2.1.70",
"@gitzone/tsbundle": "^2.0.6", "@git.zone/tsbundle": "^2.0.10",
"@gitzone/tstest": "^1.0.72", "@git.zone/tstest": "^1.0.81",
"@pushrocks/tapbundle": "^5.0.4", "@push.rocks/tapbundle": "^5.0.15",
"@types/node": "^18.15.11" "@types/node": "^20.8.3"
}, },
"dependencies": { "dependencies": {
"@apiglobal/typedrequest": "^2.0.8", "@api.global/typedrequest": "^3.0.1",
"@designestate/dees-comms": "^1.0.22", "@design.estate/dees-comms": "^1.0.22",
"@pushrocks/lik": "^6.0.2", "@push.rocks/lik": "^6.0.5",
"@pushrocks/smartdelay": "^3.0.1", "@push.rocks/smartdelay": "^3.0.5",
"@pushrocks/smartjson": "^5.0.5", "@push.rocks/smartjson": "^5.0.10",
"@pushrocks/smartpromise": "^4.0.0", "@push.rocks/smartpromise": "^4.0.2",
"@pushrocks/smartrouter": "^1.0.14", "@push.rocks/smartrouter": "^1.0.16",
"@pushrocks/smartrx": "^3.0.0", "@push.rocks/smartrx": "^3.0.6",
"@pushrocks/smartstate": "^2.0.4", "@push.rocks/smartstate": "^2.0.17",
"@pushrocks/smarturl": "^3.0.5", "@push.rocks/smarturl": "^3.0.6",
"@pushrocks/webrequest": "^3.0.21", "@push.rocks/webrequest": "^3.0.33",
"@pushrocks/websetup": "^3.0.16", "@push.rocks/websetup": "^3.0.19",
"@pushrocks/webstore": "^2.0.5", "@push.rocks/webstore": "^2.0.13",
"lit": "^2.7.1", "lit": "^2.8.0",
"sweet-scroll": "^4.0.0" "sweet-scroll": "^4.0.0"
}, },
"files": [ "files": [

3551
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -21,7 +21,6 @@ Code Style | [![Code Style](https://badgen.net/badge/style/prettier/purple)](htt
PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@designestate/dees-domtools)](https://lossless.cloud) PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@designestate/dees-domtools)](https://lossless.cloud)
PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@designestate/dees-domtools)](https://lossless.cloud) PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@designestate/dees-domtools)](https://lossless.cloud)
BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@designestate/dees-domtools)](https://lossless.cloud) BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@designestate/dees-domtools)](https://lossless.cloud)
Platform support | [![Supports Windows 10](https://badgen.net/badge/supports%20Windows%2010/yes/green?icon=windows)](https://lossless.cloud) [![Supports Mac OS X](https://badgen.net/badge/supports%20Mac%20OS%20X/yes/green?icon=apple)](https://lossless.cloud)
## Usage ## Usage
@ -33,7 +32,6 @@ We are always happy for code contributions. If you are not the code contributing
For further information read the linked docs at the top of this readme. For further information read the linked docs at the top of this readme.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) ## Legal
> MIT licensed | **©** [Task Venture Capital GmbH](https://task.vc)
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy) | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
[![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com)

View File

@ -1,5 +1,5 @@
import { expect, tap } from '@pushrocks/tapbundle'; import { expect, tap } from '@push.rocks/tapbundle';
import * as domtools from '../ts/index'; import * as domtools from '../ts/index.js';
tap.test('first test', async () => { tap.test('first test', async () => {
const domtoolsInstance = await domtools.DomTools.setupDomTools(); const domtoolsInstance = await domtools.DomTools.setupDomTools();

View File

@ -2,7 +2,7 @@
* autocreated commitinfo by @pushrocks/commitinfo * autocreated commitinfo by @pushrocks/commitinfo
*/ */
export const commitinfo = { export const commitinfo = {
name: '@designestate/dees-domtools', name: '@design.estate/dees-domtools',
version: '2.0.29', version: '2.0.53',
description: 'tools to simplify complex css structures' description: 'tools to simplify complex css structures'
} }

View File

@ -1,7 +1,7 @@
import * as plugins from './domtools.plugins.js'; import * as plugins from './domtools.plugins.js';
import { TViewport } from './domtools.css.breakpoints.js'; import { type TViewport } from './domtools.css.breakpoints.js';
import { Scroller } from './domtools.classes.scroller.js'; import { Scroller } from './domtools.classes.scroller.js';
import { WebSetup } from '@pushrocks/websetup'; import { WebSetup } from '@push.rocks/websetup';
import { ThemeManager } from './domtools.classes.thememanager.js'; import { ThemeManager } from './domtools.classes.thememanager.js';
import { Keyboard } from './domtools.classes.keyboard.js'; import { Keyboard } from './domtools.classes.keyboard.js';
@ -152,7 +152,7 @@ export class DomTools {
public async setExternalScript(scriptLinkArg: string) { public async setExternalScript(scriptLinkArg: string) {
await this.domReady.promise; await this.domReady.promise;
const done = plugins.smartpromise.defer(); const done = plugins.smartpromise.defer();
const script = document.createElement('script') const script = document.createElement('script');
script.src = scriptLinkArg; script.src = scriptLinkArg;
script.addEventListener('load', function () { script.addEventListener('load', function () {
done.resolve(); done.resolve();

View File

@ -32,7 +32,7 @@ export const globalBaseStyles: string = css`
/* global body styles */ /* global body styles */
body { body {
margin: 0px; margin: 0px;
font-family: 'Inter', sans-serif; font-family: 'Roboto', 'Inter', sans-serif;
box-sizing: border-box; box-sizing: border-box;
} }

View File

@ -1,5 +1,5 @@
import * as plugins from './domtools.plugins.js'; import * as plugins from './domtools.plugins.js';
import { DomTools, IDomToolsContructorOptions } from './domtools.classes.domtools.js'; import { DomTools, type IDomToolsContructorOptions } from './domtools.classes.domtools.js';
import { scrollBarStyles, globalBaseStyles } from './domtools.css.basestyles.js'; import { scrollBarStyles, globalBaseStyles } from './domtools.css.basestyles.js';
import { html, LitElement, css, unsafeCSS } from 'lit'; import { html, LitElement, css, unsafeCSS } from 'lit';
@ -12,7 +12,7 @@ export const staticStyles = css`
:host { :host {
box-sizing: border-box; box-sizing: border-box;
font-family: 'Inter', sans-serif; font-family: 'Roboto', 'Inter', sans-serif;
} }
${unsafeCSS(scrollBarStyles)} ${unsafeCSS(scrollBarStyles)}
@ -29,7 +29,7 @@ export const styles = html`
} }
:host { :host {
font-family: 'Inter', sans-serif; font-family: 'Roboto', 'Inter', sans-serif;
} }
${scrollBarStyles} ${scrollBarStyles}
@ -40,7 +40,10 @@ export const styles = html`
* a basic setup for elements * a basic setup for elements
* makes sure everything is in check * makes sure everything is in check
*/ */
export const setup = async (elementArg?: LitElement, optionsArg: IDomToolsContructorOptions = {}): Promise<DomTools> => { export const setup = async (
elementArg?: LitElement,
optionsArg: IDomToolsContructorOptions = {}
): Promise<DomTools> => {
const domTools = await DomTools.setupDomTools(optionsArg); const domTools = await DomTools.setupDomTools(optionsArg);
if (elementArg) { if (elementArg) {

View File

@ -1,29 +1,29 @@
// designestate scope // designestate scope
import * as deesComms from '@designestate/dees-comms'; import * as deesComms from '@design.estate/dees-comms';
export { deesComms }; export { deesComms };
// apiglobal scope // apiglobal scope
import * as typedrequest from '@apiglobal/typedrequest'; import * as typedrequest from '@api.global/typedrequest';
export { typedrequest }; export { typedrequest };
// pushrocks scope // pushrocks scope
import * as smartdelay from '@pushrocks/smartdelay'; import * as smartdelay from '@push.rocks/smartdelay';
import * as smartjson from '@pushrocks/smartjson'; import * as smartjson from '@push.rocks/smartjson';
import * as smartpromise from '@pushrocks/smartpromise'; import * as smartpromise from '@push.rocks/smartpromise';
import * as smartrouter from '@pushrocks/smartrouter'; import * as smartrouter from '@push.rocks/smartrouter';
import * as smartrx from '@pushrocks/smartrx'; import * as smartrx from '@push.rocks/smartrx';
import * as smartstate from '@pushrocks/smartstate'; import * as smartstate from '@push.rocks/smartstate';
import * as smarturl from '@pushrocks/smarturl'; import * as smarturl from '@push.rocks/smarturl';
import * as webrequest from '@pushrocks/webrequest'; import * as webrequest from '@push.rocks/webrequest';
import * as websetup from '@pushrocks/websetup'; import * as websetup from '@push.rocks/websetup';
import * as webstore from '@pushrocks/webstore'; import * as webstore from '@push.rocks/webstore';
// subscope lik // subscope lik
import { ObjectMap } from '@pushrocks/lik/dist_ts/lik.objectmap.js'; import { ObjectMap } from '@push.rocks/lik/dist_ts/lik.objectmap.js';
import { Stringmap } from '@pushrocks/lik/dist_ts/lik.stringmap.js'; import { Stringmap } from '@push.rocks/lik/dist_ts/lik.stringmap.js';
import { FastMap } from '@pushrocks/lik/dist_ts/lik.fastmap.js'; import { FastMap } from '@push.rocks/lik/dist_ts/lik.fastmap.js';
const lik = { const lik = {
ObjectMap, ObjectMap,
Stringmap, Stringmap,

View File

@ -5,10 +5,9 @@ import * as breakpoints from './domtools.css.breakpoints.js';
import * as css from './domtools.css.js'; import * as css from './domtools.css.js';
export { css, breakpoints, elementBasic }; export { css, breakpoints, elementBasic };
export { DomTools, IDomToolsContructorOptions } from './domtools.classes.domtools.js'; export { DomTools, type IDomToolsContructorOptions } from './domtools.classes.domtools.js';
export { TypedRequest } from '@apiglobal/typedrequest'; export { TypedRequest } from '@api.global/typedrequest';
export { IWebSetupConstructorOptions } from '@pushrocks/websetup'; export { type IWebSetupConstructorOptions } from '@push.rocks/websetup';
export { rxjs } from '@pushrocks/smartrx';
import * as allPlugins from './domtools.plugins.js'; import * as allPlugins from './domtools.plugins.js';
@ -16,5 +15,8 @@ export const plugins = {
smartdelay: allPlugins.smartdelay, smartdelay: allPlugins.smartdelay,
smartpromise: allPlugins.smartpromise, smartpromise: allPlugins.smartpromise,
SweetScroll: allPlugins.SweetScroll, SweetScroll: allPlugins.SweetScroll,
smartstate: allPlugins.smartstate smartstate: allPlugins.smartstate,
smartrx: allPlugins.smartrx,
smarturl: allPlugins.smarturl,
typedrequest: allPlugins.typedrequest,
}; };

View File

@ -3,8 +3,9 @@
"experimentalDecorators": true, "experimentalDecorators": true,
"useDefineForClassFields": false, "useDefineForClassFields": false,
"target": "ES2022", "target": "ES2022",
"module": "ES2022", "module": "NodeNext",
"moduleResolution": "nodenext", "moduleResolution": "NodeNext",
"esModuleInterop": true "esModuleInterop": true,
"verbatimModuleSyntax": true,
} }
} }