Compare commits
34 Commits
Author | SHA1 | Date | |
---|---|---|---|
d6047f2e78 | |||
03769c8412 | |||
1a782eb4ee | |||
a27adf25cb | |||
96e237b9af | |||
710e06b2f1 | |||
a3bc25c4ac | |||
ee5b712a37 | |||
879ae5ad91 | |||
2bbda416b2 | |||
de88957857 | |||
aa0c63d569 | |||
d843f27fd3 | |||
a26755b7d3 | |||
345a562a21 | |||
3fae99554d | |||
ed30ed3f8f | |||
beef47959b | |||
aec2cf18fd | |||
0f45633666 | |||
8588888ce7 | |||
2a62a635cd | |||
0eb2557956 | |||
9960bf7018 | |||
f26f0d0450 | |||
53fadfcbd5 | |||
497d3a3ac5 | |||
37524765ae | |||
ab0219d3e4 | |||
7cefd9cba5 | |||
4cf5ca2d7f | |||
a9791220fb | |||
4aed14c7a2 | |||
49d1cba3fd |
24
package.json
24
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@designestate/dees-catalog",
|
"name": "@designestate/dees-catalog",
|
||||||
"version": "1.0.152",
|
"version": "1.0.169",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "website for lossless.com",
|
"description": "website for lossless.com",
|
||||||
"main": "dist_ts_web/index.js",
|
"main": "dist_ts_web/index.js",
|
||||||
@ -15,25 +15,27 @@
|
|||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@designestate/dees-domtools": "^2.0.28",
|
"@designestate/dees-domtools": "^2.0.30",
|
||||||
"@designestate/dees-element": "^2.0.19",
|
"@designestate/dees-element": "^2.0.20",
|
||||||
"@designestate/dees-wcctools": "^1.0.76",
|
"@designestate/dees-wcctools": "^1.0.76",
|
||||||
"@fortawesome/fontawesome-svg-core": "^6.3.0",
|
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
||||||
"@fortawesome/free-brands-svg-icons": "^6.3.0",
|
"@fortawesome/free-brands-svg-icons": "^6.4.0",
|
||||||
"@fortawesome/free-regular-svg-icons": "^6.3.0",
|
"@fortawesome/free-regular-svg-icons": "^6.4.0",
|
||||||
"@fortawesome/free-solid-svg-icons": "^6.3.0",
|
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
||||||
"@pushrocks/smartpromise": "^3.1.7",
|
"@pushrocks/smartpromise": "^4.0.0",
|
||||||
"@tsclass/tsclass": "^4.0.34",
|
"@pushrocks/smartstring": "^4.0.5",
|
||||||
|
"@tsclass/tsclass": "^4.0.36",
|
||||||
|
"highlight.js": "11.7.0",
|
||||||
"pdfjs-dist": "^2.15.349"
|
"pdfjs-dist": "^2.15.349"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.65",
|
"@gitzone/tsbuild": "^2.1.65",
|
||||||
"@gitzone/tsbundle": "^2.0.7",
|
"@gitzone/tsbundle": "^2.0.7",
|
||||||
"@gitzone/tstest": "^1.0.74",
|
"@gitzone/tstest": "^1.0.74",
|
||||||
"@gitzone/tswatch": "^2.0.5",
|
"@gitzone/tswatch": "^2.0.7",
|
||||||
"@pushrocks/projectinfo": "^5.0.1",
|
"@pushrocks/projectinfo": "^5.0.1",
|
||||||
"@pushrocks/tapbundle": "^5.0.4",
|
"@pushrocks/tapbundle": "^5.0.4",
|
||||||
"@types/node": "^18.15.9"
|
"@types/node": "^18.15.11"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
|
1930
pnpm-lock.yaml
generated
1930
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@designestate/dees-catalog',
|
name: '@designestate/dees-catalog',
|
||||||
version: '1.0.152',
|
version: '1.0.169',
|
||||||
description: 'website for lossless.com'
|
description: 'website for lossless.com'
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ export class DeesButton extends DeesElement {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: ${cssManager.bdTheme('#fff', '#333')};
|
background: ${cssManager.bdTheme('#fff', '#333')};
|
||||||
box-shadow: ${cssManager.bdTheme('0px 1px 4px rgba(0,0,0,0.3)', 'none')};
|
box-shadow: ${cssManager.bdTheme('0px 1px 3px rgba(0,0,0,0.3)', 'none')};
|
||||||
border: 1px solid ${cssManager.bdTheme('#eee', '#333')};
|
border: 1px solid ${cssManager.bdTheme('#eee', '#333')};
|
||||||
border-top: ${cssManager.bdTheme('1px solid #eee', '1px solid #444')};
|
border-top: ${cssManager.bdTheme('1px solid #eee', '1px solid #444')};
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
178
ts_web/elements/dees-dataview-codebox.ts
Normal file
178
ts_web/elements/dees-dataview-codebox.ts
Normal file
@ -0,0 +1,178 @@
|
|||||||
|
import {
|
||||||
|
DeesElement,
|
||||||
|
html,
|
||||||
|
customElement,
|
||||||
|
TemplateResult,
|
||||||
|
property,
|
||||||
|
state,
|
||||||
|
} from '@designestate/dees-element';
|
||||||
|
|
||||||
|
import hlight from 'highlight.js';
|
||||||
|
|
||||||
|
import * as smartstring from '@pushrocks/smartstring';
|
||||||
|
|
||||||
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'dees-dataview-codebox': DeesDataviewCodebox;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@customElement('dees-dataview-codebox')
|
||||||
|
export class DeesDataviewCodebox extends DeesElement {
|
||||||
|
public static demo = () => html`<dees-dataview-codebox proglang="typescript">
|
||||||
|
import * as text from './hello'; const hiThere = 'nice'; const myFunction = async () => {
|
||||||
|
console.log('nice one'); }
|
||||||
|
</dees-dataview-codebox>`;
|
||||||
|
|
||||||
|
@property()
|
||||||
|
public progLang: string = 'typescript';
|
||||||
|
|
||||||
|
@property({
|
||||||
|
type: String,
|
||||||
|
reflect: true,
|
||||||
|
})
|
||||||
|
public codeToDisplay: string = '';
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
render(): TemplateResult {
|
||||||
|
return html`
|
||||||
|
${domtools.elementBasic.styles}
|
||||||
|
<style>
|
||||||
|
:host {
|
||||||
|
position: relative;
|
||||||
|
display: block;
|
||||||
|
text-align: left;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.mainbox {
|
||||||
|
position: relative;
|
||||||
|
color: ${this.goBright ? '#333333' : '#ffffff'};
|
||||||
|
}
|
||||||
|
|
||||||
|
.languageLabel {
|
||||||
|
color: #fff;
|
||||||
|
font-size: 12px;
|
||||||
|
z-index: 10;
|
||||||
|
background: #6596ff;
|
||||||
|
display: inline-block;
|
||||||
|
position: absolute;
|
||||||
|
right: 32px;
|
||||||
|
padding: 4px;
|
||||||
|
border-bottom-left-radius: 3px;
|
||||||
|
border-bottom-right-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-keyword {
|
||||||
|
color: #ff65ec;
|
||||||
|
}
|
||||||
|
|
||||||
|
.codegrid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 50px auto;
|
||||||
|
background: ${this.goBright ? '#ffffff' : '#191919'};
|
||||||
|
border-top: 1px solid ${this.goBright ? '#ffffff' : '#333333'};
|
||||||
|
box-shadow: 0px 0px 5px ${this.goBright ? 'rgba(0,0,0,0.1)' : 'rgba(0,0,0,0.5)'};
|
||||||
|
border-radius: 3px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lineNumbers {
|
||||||
|
background: ${this.goBright ? '#fafafa' : '#151515'};
|
||||||
|
color: ${this.goBright ? '#acacac' : '#666666'};
|
||||||
|
padding: 30px 16px 0px 0px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lineCounter:last-child {
|
||||||
|
opacity: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
overflow-x: auto;
|
||||||
|
margin: 0px;
|
||||||
|
padding: 30px 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
font-weight: ${this.goBright ? '400' : '300'};
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
code,
|
||||||
|
code *,
|
||||||
|
.lineNumbers {
|
||||||
|
line-height: 1.4em;
|
||||||
|
font-weight: 200;
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-string {
|
||||||
|
color: #ffa465;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-built_in {
|
||||||
|
color: #65ff6a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-function {
|
||||||
|
color: ${this.goBright ? '#2765DF': '#6596ff' };
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-params {
|
||||||
|
color: ${this.goBright ? '#3DB420' : '#65d5ff' };
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-comment {
|
||||||
|
color: ${this.goBright ? '#EF9300' : '#ffd765' };
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class="mainbox">
|
||||||
|
<div class="languageLabel">${this.progLang}</div>
|
||||||
|
<div class="codegrid">
|
||||||
|
<div class="lineNumbers">
|
||||||
|
${(() => {
|
||||||
|
let lineCounter = 0;
|
||||||
|
return this.codeToDisplay.split('\n').map(lineArg => {
|
||||||
|
lineCounter++;
|
||||||
|
return html`<div class="lineCounter">${lineCounter}</div>`;
|
||||||
|
})
|
||||||
|
})()}
|
||||||
|
</div>
|
||||||
|
<pre><code></code></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
|
@state()
|
||||||
|
private codeToDisplayStore = '';
|
||||||
|
|
||||||
|
public async updated(_changedProperties) {
|
||||||
|
super.updated(_changedProperties);
|
||||||
|
console.log('highlighting now');
|
||||||
|
console.log(this.childNodes);
|
||||||
|
const slottedCodeNodes: Text[] = [];
|
||||||
|
this.childNodes.forEach((childNode) => {
|
||||||
|
if (childNode.nodeName === '#text') {
|
||||||
|
slottedCodeNodes.push(childNode as Text);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (this.codeToDisplay && this.codeToDisplay !== this.codeToDisplayStore) {
|
||||||
|
this.codeToDisplayStore = smartstring.indent.normalize(this.codeToDisplay).trimStart();
|
||||||
|
}
|
||||||
|
if (slottedCodeNodes[0] && slottedCodeNodes[0].wholeText && !this.codeToDisplay) {
|
||||||
|
this.codeToDisplayStore = smartstring.indent.normalize(slottedCodeNodes[0].wholeText).trimStart();
|
||||||
|
this.codeToDisplay = this.codeToDisplayStore;
|
||||||
|
}
|
||||||
|
await domtools.plugins.smartdelay.delayFor(0);
|
||||||
|
const localCodeNode = this.shadowRoot.querySelector('code');
|
||||||
|
const html = hlight.highlight(this.codeToDisplayStore, {language: this.progLang, ignoreIllegals: true});
|
||||||
|
localCodeNode.innerHTML = html.value;
|
||||||
|
}
|
||||||
|
}
|
169
ts_web/elements/dees-dataview-statusobject.ts
Normal file
169
ts_web/elements/dees-dataview-statusobject.ts
Normal file
@ -0,0 +1,169 @@
|
|||||||
|
import {
|
||||||
|
DeesElement,
|
||||||
|
html,
|
||||||
|
customElement,
|
||||||
|
TemplateResult,
|
||||||
|
property,
|
||||||
|
state,
|
||||||
|
cssManager,
|
||||||
|
css,
|
||||||
|
} from '@designestate/dees-element';
|
||||||
|
|
||||||
|
import * as tsclass from '@tsclass/tsclass';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'dees-dataview-statusobject': DeesDataviewStatusobject;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@customElement('dees-dataview-statusobject')
|
||||||
|
export class DeesDataviewStatusobject extends DeesElement {
|
||||||
|
public static demo = () => html`<dees-dataview-statusobject
|
||||||
|
.statusObject=${{
|
||||||
|
id: '1',
|
||||||
|
name: 'Demo Item',
|
||||||
|
combinedStatus: 'partly_ok',
|
||||||
|
combinedStatusText: 'partly_ok',
|
||||||
|
details: [
|
||||||
|
{
|
||||||
|
name: 'Detail 1',
|
||||||
|
value: 'Value 1',
|
||||||
|
status: 'ok',
|
||||||
|
statusText: 'OK',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Detail 2',
|
||||||
|
value: 'Value 2',
|
||||||
|
status: 'partly_ok',
|
||||||
|
statusText: 'partly_ok',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Detail 3',
|
||||||
|
value: 'Value 3',
|
||||||
|
status: 'not_ok',
|
||||||
|
statusText: 'not_ok',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Detail 4',
|
||||||
|
value: 'Value 4 jhdkfjhalskdfjhfdjskalsdkfjhfdjskalskdjfhjdkslaksjdhfjdkslaskdfjhfjdkslaskdjfhjdskalskdjhfdjskalskdjfhdjskl',
|
||||||
|
status: 'ok',
|
||||||
|
statusText: 'OK',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
</dees-dataview-statusobject>`;
|
||||||
|
|
||||||
|
@property({ type: Object }) statusObject: tsclass.code.IStatusObject;
|
||||||
|
|
||||||
|
public static styles = [
|
||||||
|
cssManager.defaultStyles,
|
||||||
|
css`
|
||||||
|
.mainbox {
|
||||||
|
border-radius: 3px;
|
||||||
|
background: ${cssManager.bdTheme('#fff', '#1b1b1b')};
|
||||||
|
box-shadow: 0px 1px 3px #00000030;
|
||||||
|
min-height: 48px;
|
||||||
|
color: ${cssManager.bdTheme('#000', '#fff')};
|
||||||
|
}
|
||||||
|
|
||||||
|
.heading {
|
||||||
|
display: grid;
|
||||||
|
align-items: center;
|
||||||
|
grid-template-columns: 40px auto 120px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
display: block;
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
height: 48px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 48px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.statusdot {
|
||||||
|
height: 8px;
|
||||||
|
width: 8px;
|
||||||
|
border-radius: 6px;
|
||||||
|
background: grey;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copyMain {
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 8px;
|
||||||
|
font-weight: 600;
|
||||||
|
text-transform: uppercase;
|
||||||
|
border: 1px solid ${cssManager.bdTheme('#999', '#444')};
|
||||||
|
text-align: center;
|
||||||
|
padding: 4px;
|
||||||
|
border-radius: 3px;
|
||||||
|
margin-right: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.statusdot.ok {
|
||||||
|
background: green;
|
||||||
|
}
|
||||||
|
|
||||||
|
.statusdot.not_ok{
|
||||||
|
background: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.statusdot.partly_ok {
|
||||||
|
background: orange;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail {
|
||||||
|
minheight: 60px;
|
||||||
|
align-items: center;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 40px auto;
|
||||||
|
border-top: 1px dotted ${cssManager.bdTheme('#999', '#444')};
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail .detailsText {
|
||||||
|
padding-top: 8px;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
padding-right: 8px;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail .detailsText .label {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail .detailsText .value {
|
||||||
|
font-size: 16px;
|
||||||
|
font-family: Roboto Mono;
|
||||||
|
}
|
||||||
|
`,
|
||||||
|
];
|
||||||
|
|
||||||
|
render(): TemplateResult {
|
||||||
|
return html`
|
||||||
|
<div class="mainbox">
|
||||||
|
<div class="heading">
|
||||||
|
<div class="statusdot ${this.statusObject?.combinedStatus}"></div>
|
||||||
|
<h1>${this.statusObject?.name || 'no status object assigned'}</h1>
|
||||||
|
<div class="copyMain">Copy as JSON</div>
|
||||||
|
</div>
|
||||||
|
${this.statusObject?.details?.map((detailArg) => {
|
||||||
|
return html`
|
||||||
|
<div class="detail">
|
||||||
|
<div class="statusdot ${detailArg.status}"></div>
|
||||||
|
<div class="detailsText">
|
||||||
|
<div class="label">${detailArg.name}</div>
|
||||||
|
<div class="value">${detailArg.value}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
|
async firstUpdated() {}
|
||||||
|
}
|
@ -77,12 +77,22 @@ export class DeesInputDropdown extends DeesElement {
|
|||||||
max-width: 420px;
|
max-width: 420px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
border: 1px solid #CCC;
|
|
||||||
padding: 0px 8px;
|
padding: 0px 8px;
|
||||||
z-index: 0px;
|
z-index: 0px;
|
||||||
|
background: ${cssManager.bdTheme('#ffffff', '#333333')};
|
||||||
|
box-shadow: ${cssManager.bdTheme('0px 1px 4px rgba(0,0,0,0.3)', 'none')};
|
||||||
|
border-radius: 3px;
|
||||||
|
border-top: 1px solid #CCCCCC00;
|
||||||
|
border-bottom: 1px solid #66666600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selectedBox.show {
|
||||||
|
border-top: 1px solid ${cssManager.bdTheme('#ffffff', '#666666')};
|
||||||
|
border-bottom: 1px solid ${cssManager.bdTheme('#fafafa', '#222222')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.selectionBox {
|
.selectionBox {
|
||||||
|
will-change:transform;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
@ -91,27 +101,31 @@ export class DeesInputDropdown extends DeesElement {
|
|||||||
background: ${cssManager.bdTheme('#ffffff', '#222222')};
|
background: ${cssManager.bdTheme('#ffffff', '#222222')};
|
||||||
max-width: 420px;
|
max-width: 420px;
|
||||||
box-shadow: 0px 0px 5px rgba(0,0,0,0.2);
|
box-shadow: 0px 0px 5px rgba(0,0,0,0.2);
|
||||||
height: 40px;
|
min-height: 40px;
|
||||||
margin-top: -40px;
|
margin-top: -40px;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
|
transform: scale(0.99,0.99);
|
||||||
}
|
}
|
||||||
|
|
||||||
.selectionBox.show {
|
.selectionBox.show {
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
min-height: 160px;
|
transform: scale(1,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.option {
|
.option {
|
||||||
|
transition: all 0.1s;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
padding: 0px 4px;
|
padding: 0px 4px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.option:hover {
|
.option:hover {
|
||||||
background: ${cssManager.bdTheme('#fafafa', '#444')};;
|
color: #fff;
|
||||||
|
padding-left: 8px;
|
||||||
|
background: #0277bd;
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
]
|
]
|
||||||
@ -123,7 +137,7 @@ export class DeesInputDropdown extends DeesElement {
|
|||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="maincontainer">
|
<div class="maincontainer">
|
||||||
<div class="selectedBox" @click="${event => {this.toggleSelectionBox();}}">
|
<div class="selectedBox show" @click="${event => {this.toggleSelectionBox();}}">
|
||||||
${this.selectedOption?.option}
|
${this.selectedOption?.option}
|
||||||
</div>
|
</div>
|
||||||
<div class="selectionBox">
|
<div class="selectionBox">
|
||||||
@ -153,6 +167,7 @@ export class DeesInputDropdown extends DeesElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public toggleSelectionBox() {
|
public toggleSelectionBox() {
|
||||||
|
this.shadowRoot.querySelector('.selectedBox').classList.toggle('show');
|
||||||
this.shadowRoot.querySelector('.selectionBox').classList.toggle('show');
|
this.shadowRoot.querySelector('.selectionBox').classList.toggle('show');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,12 +10,13 @@ declare global {
|
|||||||
@customElement('dees-input-text')
|
@customElement('dees-input-text')
|
||||||
export class DeesInputText extends DeesElement {
|
export class DeesInputText extends DeesElement {
|
||||||
public static demo = () => html`
|
public static demo = () => html`
|
||||||
<dees-input-text .label=${'this is a label'}></dees-input-text>
|
<dees-input-text .label=${'this is a label'} .value=${'test'}></dees-input-text>
|
||||||
<dees-input-text .isPasswordBool=${true}></dees-input-text>
|
<dees-input-text .isPasswordBool=${true}></dees-input-text>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
// INSTANCE
|
// INSTANCE
|
||||||
public changeSubject = new domtools.rxjs.Subject();
|
public changeSubject = new domtools.rxjs.Subject<DeesInputText>();
|
||||||
|
public valueChangeSubject = new domtools.rxjs.Subject<string>();
|
||||||
|
|
||||||
@property({
|
@property({
|
||||||
type: String
|
type: String
|
||||||
@ -28,7 +29,8 @@ export class DeesInputText extends DeesElement {
|
|||||||
public key: string;
|
public key: string;
|
||||||
|
|
||||||
@property({
|
@property({
|
||||||
type: String
|
type: String,
|
||||||
|
reflect: true,
|
||||||
})
|
})
|
||||||
public value: string = '';
|
public value: string = '';
|
||||||
|
|
||||||
@ -140,6 +142,7 @@ export class DeesInputText extends DeesElement {
|
|||||||
const target: any = eventArg.target;
|
const target: any = eventArg.target;
|
||||||
this.value = target.value;
|
this.value = target.value;
|
||||||
this.changeSubject.next(this);
|
this.changeSubject.next(this);
|
||||||
|
this.valueChangeSubject.next(this.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async freeze() {
|
public async freeze() {
|
||||||
@ -155,4 +158,9 @@ export class DeesInputText extends DeesElement {
|
|||||||
this.showPasswordBool = !this.showPasswordBool;
|
this.showPasswordBool = !this.showPasswordBool;
|
||||||
console.log(`this.showPasswordBool is: ${this.showPasswordBool}`)
|
console.log(`this.showPasswordBool is: ${this.showPasswordBool}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async focus() {
|
||||||
|
const textInput = this.shadowRoot.querySelector('input');
|
||||||
|
textInput.focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -201,7 +201,9 @@ export class DeesStepper extends DeesElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public updated() {
|
public updated() {
|
||||||
this.setScrollStatus();
|
if (this.selectedStep) {
|
||||||
|
this.setScrollStatus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public scroller: typeof domtools.plugins.SweetScroll.prototype;
|
public scroller: typeof domtools.plugins.SweetScroll.prototype;
|
||||||
|
@ -2,6 +2,8 @@ export * from './dees-button-exit.js';
|
|||||||
export * from './dees-button.js';
|
export * from './dees-button.js';
|
||||||
export * from './dees-chips.js';
|
export * from './dees-chips.js';
|
||||||
export * from './dees-contextmenu.js';
|
export * from './dees-contextmenu.js';
|
||||||
|
export * from './dees-dataview-codebox.js';
|
||||||
|
export * from './dees-dataview-statusobject.js';
|
||||||
export * from './dees-form.js';
|
export * from './dees-form.js';
|
||||||
export * from './dees-form-submit.js';
|
export * from './dees-form-submit.js';
|
||||||
export * from './dees-icon.js';
|
export * from './dees-icon.js';
|
||||||
|
Reference in New Issue
Block a user