@quandis/qbo4.configuration 4.0.1-CI-20241008-165825 → 4.0.1-CI-20241010-231112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/Configuration.d.ts +35 -35
- package/src/Configuration.js +104 -104
- package/src/IConfiguration.d.ts +34 -34
- package/src/IConfiguration.js +37 -37
- package/src/Program.d.ts +24 -24
- package/src/Program.js +8 -8
- package/src/Services.d.ts +9 -9
- package/src/Services.js +18 -18
- package/src/qbo-config-editor.d.ts +19 -18
- package/src/qbo-config-editor.js +89 -84
- package/src/qbo-config-editor.js.map +1 -1
- package/src/qbo-config-editor.ts +4 -1
- package/src/qbo-css.d.ts +35 -35
- package/src/qbo-css.js +226 -226
- package/src/qbo-template.d.ts +22 -22
- package/src/qbo-template.js +417 -417
- package/src/styles.d.ts +1 -1
- package/src/styles.js +6 -6
- package/src/styles.js.map +1 -1
- package/src/styles.ts +5 -5
- package/wwwroot/css/qbo-config-editor.css +2 -2
- package/wwwroot/css/qbo-configuration.css +1730 -1730
- package/wwwroot/css/qbo-configuration.css.map +1 -1
- package/wwwroot/css/qbo-configuration.min.css +5 -5
- package/wwwroot/js/esm/qbo4.configuration.js +39556 -39055
- package/wwwroot/js/esm/qbo4.configuration.min.js +76 -76
- package/wwwroot/js/esm/qbo4.configuration.min.js.LICENSE.txt +41 -41
- package/wwwroot/js/esm/qbo4.configuration.min.js.map +1 -1
- package/wwwroot/js/qbo4.configuration.js +39632 -39131
- package/wwwroot/js/qbo4.configuration.min.js +76 -76
- package/wwwroot/js/qbo4.configuration.min.js.LICENSE.txt +41 -41
- package/wwwroot/js/qbo4.configuration.min.js.map +1 -1
package/src/qbo-config-editor.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { LitElement, html, css, } from 'lit';
|
|
11
|
-
import { property } from 'lit/decorators.js';
|
|
12
|
-
import { JsonConfigurationSource } from './Configuration.js';
|
|
13
|
-
export class QboConfigEditor extends LitElement {
|
|
14
|
-
static get formAssociated() {
|
|
15
|
-
return true;
|
|
16
|
-
}
|
|
17
|
-
// configSource = new JsonConfigurationSource({});
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { LitElement, html, css, } from 'lit';
|
|
11
|
+
import { property } from 'lit/decorators.js';
|
|
12
|
+
import { JsonConfigurationSource } from './Configuration.js';
|
|
13
|
+
export class QboConfigEditor extends LitElement {
|
|
14
|
+
static get formAssociated() {
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
// configSource = new JsonConfigurationSource({});
|
|
18
18
|
static { this.styles = css `
|
|
19
19
|
:host {
|
|
20
20
|
display: block;
|
|
@@ -23,65 +23,66 @@ export class QboConfigEditor extends LitElement {
|
|
|
23
23
|
.form-group {
|
|
24
24
|
margin-bottom: 10px;
|
|
25
25
|
}
|
|
26
|
-
`; }
|
|
27
|
-
constructor() {
|
|
28
|
-
super();
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
this.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
this.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
this.configData[
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
this.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
this.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
26
|
+
`; }
|
|
27
|
+
constructor() {
|
|
28
|
+
super();
|
|
29
|
+
this.apiEndpoint = new URL('repository/search', this.baseURI);
|
|
30
|
+
// @property({ type: Object })
|
|
31
|
+
this.configData = {};
|
|
32
|
+
// Use attachInternals() to get access to form internals
|
|
33
|
+
this._internals = this.attachInternals();
|
|
34
|
+
}
|
|
35
|
+
_handleInput(e) {
|
|
36
|
+
// Update the value on input events
|
|
37
|
+
this.value = e.target.value;
|
|
38
|
+
this._internals.setFormValue(this.value);
|
|
39
|
+
}
|
|
40
|
+
async kc_connectedCallback() {
|
|
41
|
+
super.connectedCallback();
|
|
42
|
+
// check payload
|
|
43
|
+
if (this.value) {
|
|
44
|
+
this.configData = JSON.parse(this.value);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
handleInputChange(key, event) {
|
|
48
|
+
event.preventDefault();
|
|
49
|
+
const target = event.target;
|
|
50
|
+
this.configData[key] = target.value;
|
|
51
|
+
this.requestUpdate();
|
|
52
|
+
}
|
|
53
|
+
updateConfigData(key, newValue, event, isKey = false) {
|
|
54
|
+
event.preventDefault();
|
|
55
|
+
if (isKey) {
|
|
56
|
+
const oldValue = this.configData[key];
|
|
57
|
+
delete this.configData[key];
|
|
58
|
+
this.configData[newValue] = oldValue;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
this.configData[key] = newValue;
|
|
62
|
+
}
|
|
63
|
+
this.requestUpdate();
|
|
64
|
+
}
|
|
65
|
+
addKeyValuePair(event) {
|
|
66
|
+
event.preventDefault();
|
|
67
|
+
const newKey = `newKey${Object.keys(this.configData).length}`;
|
|
68
|
+
this.configData[newKey] = 'newValue';
|
|
69
|
+
this.requestUpdate();
|
|
70
|
+
}
|
|
71
|
+
deleteKeyValuePair(key, event) {
|
|
72
|
+
event.preventDefault();
|
|
73
|
+
delete this.configData[key];
|
|
74
|
+
this.requestUpdate();
|
|
75
|
+
}
|
|
76
|
+
saveChanges(event) {
|
|
77
|
+
event.preventDefault();
|
|
78
|
+
console.log('Saving changes:', this.configData);
|
|
79
|
+
}
|
|
80
|
+
cancelChanges(event) {
|
|
81
|
+
event.preventDefault();
|
|
82
|
+
console.log('Cancelling changes');
|
|
83
|
+
}
|
|
84
|
+
render() {
|
|
85
|
+
const source = new JsonConfigurationSource(this.configData);
|
|
85
86
|
return html `<slot></slot>
|
|
86
87
|
<form>
|
|
87
88
|
${Array.from(source.getValues()).map(({ key, value }) => html `
|
|
@@ -96,12 +97,16 @@ export class QboConfigEditor extends LitElement {
|
|
|
96
97
|
<button class="btn btn-secondary" @click="${this.cancelChanges}">Cancel</button>
|
|
97
98
|
</div>
|
|
98
99
|
</form>
|
|
99
|
-
`;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
__decorate([
|
|
103
|
-
property({ type: String }),
|
|
104
|
-
__metadata("design:type", Object)
|
|
105
|
-
], QboConfigEditor.prototype, "value", void 0);
|
|
106
|
-
|
|
100
|
+
`;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
__decorate([
|
|
104
|
+
property({ type: String }),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], QboConfigEditor.prototype, "value", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
property({ type: URL }),
|
|
109
|
+
__metadata("design:type", Object)
|
|
110
|
+
], QboConfigEditor.prototype, "apiEndpoint", void 0);
|
|
111
|
+
customElements.define('qbo-config-editor', QboConfigEditor);
|
|
107
112
|
//# sourceMappingURL=qbo-config-editor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qbo-config-editor.js","sourceRoot":"","sources":["qbo-config-editor.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,GAAG,MAAM,KAAK,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAG7D,MAAM,OAAO,eAAgB,SAAQ,UAAU;IAK3C,MAAM,KAAK,cAAc;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;
|
|
1
|
+
{"version":3,"file":"qbo-config-editor.js","sourceRoot":"","sources":["qbo-config-editor.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,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AAI,CAAC,UAAU,CAAC,CAAC;QAC5D,OAAO,IAAI,CAAA;;UAET,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,IAAI,CAAA;;sDAEf,GAAG,aAAa,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,EAAE,IAAI,CAAC;sDAC1E,KAAK,aAAa,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;qDACvE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC,CAAC;OACpF,CAAC;;8DAEsD,IAAI,CAAC,eAAe;sDAC5B,IAAI,CAAC,WAAW;wDACd,IAAI,CAAC,aAAa;;;KAGrE,CAAC;IACF,CAAC;;AAnGD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACrB;AAGN;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;;oDACiC;AAmG7D,cAAc,CAAC,MAAM,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC"}
|
package/src/qbo-config-editor.ts
CHANGED
|
@@ -15,6 +15,9 @@ export class QboConfigEditor extends LitElement {
|
|
|
15
15
|
@property({ type: String })
|
|
16
16
|
value;
|
|
17
17
|
|
|
18
|
+
@property({ type: URL })
|
|
19
|
+
apiEndpoint = new URL('repository/search', this.baseURI);
|
|
20
|
+
|
|
18
21
|
// @property({ type: Object })
|
|
19
22
|
configData: Object = {};
|
|
20
23
|
|
|
@@ -42,7 +45,7 @@ export class QboConfigEditor extends LitElement {
|
|
|
42
45
|
this._internals.setFormValue(this.value);
|
|
43
46
|
}
|
|
44
47
|
|
|
45
|
-
async
|
|
48
|
+
async kc_connectedCallback() {
|
|
46
49
|
super.connectedCallback();
|
|
47
50
|
// check payload
|
|
48
51
|
if (this.value) {
|
package/src/qbo-css.d.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { EditorView } from "@codemirror/view";
|
|
3
|
-
export declare class QboCss extends LitElement {
|
|
4
|
-
static styles: import("lit").CSSResult[];
|
|
5
|
-
dragging: boolean;
|
|
6
|
-
resizing: boolean;
|
|
7
|
-
offsetX: number;
|
|
8
|
-
offsetY: number;
|
|
9
|
-
startWidth: number;
|
|
10
|
-
startHeight: number;
|
|
11
|
-
editorError: any;
|
|
12
|
-
editing: boolean;
|
|
13
|
-
storageKey: string;
|
|
14
|
-
customcss: string;
|
|
15
|
-
editorCoding: boolean;
|
|
16
|
-
templateEndpoint: string;
|
|
17
|
-
editor: EditorView | null;
|
|
18
|
-
styleElement: HTMLElement | null;
|
|
19
|
-
connectedCallback(): Promise<void>;
|
|
20
|
-
disconnectedCallback(): Promise<void>;
|
|
21
|
-
_onMouseDown(event: any): void;
|
|
22
|
-
_onResizeMouseDown(event: any): void;
|
|
23
|
-
_onMouseMove(event: any): void;
|
|
24
|
-
_onMouseUp(): void;
|
|
25
|
-
requestEdit(event: any): void;
|
|
26
|
-
toggleEdit(editing: boolean): void;
|
|
27
|
-
cancel(): void;
|
|
28
|
-
firstUpdated(changedProperties: any): void;
|
|
29
|
-
updated(changedProperties: any): void;
|
|
30
|
-
code(event: Event): Promise<void>;
|
|
31
|
-
save(): void;
|
|
32
|
-
setCss(content: any): void;
|
|
33
|
-
edit(): import("lit-html").TemplateResult<1>;
|
|
34
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
35
|
-
}
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { EditorView } from "@codemirror/view";
|
|
3
|
+
export declare class QboCss extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
dragging: boolean;
|
|
6
|
+
resizing: boolean;
|
|
7
|
+
offsetX: number;
|
|
8
|
+
offsetY: number;
|
|
9
|
+
startWidth: number;
|
|
10
|
+
startHeight: number;
|
|
11
|
+
editorError: any;
|
|
12
|
+
editing: boolean;
|
|
13
|
+
storageKey: string;
|
|
14
|
+
customcss: string;
|
|
15
|
+
editorCoding: boolean;
|
|
16
|
+
templateEndpoint: string;
|
|
17
|
+
editor: EditorView | null;
|
|
18
|
+
styleElement: HTMLElement | null;
|
|
19
|
+
connectedCallback(): Promise<void>;
|
|
20
|
+
disconnectedCallback(): Promise<void>;
|
|
21
|
+
_onMouseDown(event: any): void;
|
|
22
|
+
_onResizeMouseDown(event: any): void;
|
|
23
|
+
_onMouseMove(event: any): void;
|
|
24
|
+
_onMouseUp(): void;
|
|
25
|
+
requestEdit(event: any): void;
|
|
26
|
+
toggleEdit(editing: boolean): void;
|
|
27
|
+
cancel(): void;
|
|
28
|
+
firstUpdated(changedProperties: any): void;
|
|
29
|
+
updated(changedProperties: any): void;
|
|
30
|
+
code(event: Event): Promise<void>;
|
|
31
|
+
save(): void;
|
|
32
|
+
setCss(content: any): void;
|
|
33
|
+
edit(): import("lit-html").TemplateResult<1>;
|
|
34
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
35
|
+
}
|