qcobjectsnewapp 2.4.16 → 2.4.18
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/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.18
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjectsnewapp",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.18",
|
|
4
4
|
"description": "App template for New App in QCObjects",
|
|
5
5
|
"targets": {
|
|
6
6
|
"default": {
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"npm-run-all": "^4.1.5",
|
|
113
113
|
"parcel": "^2.8.3",
|
|
114
114
|
"process": "^0.11.10",
|
|
115
|
-
"qcobjects-cli": "^2.4.
|
|
115
|
+
"qcobjects-cli": "^2.4.42",
|
|
116
116
|
"qcobjects-command-publish-static": "^1.0.2",
|
|
117
117
|
"qcobjects-tsconfig": "^2.4.10",
|
|
118
118
|
"systemjs": "^6.14.1",
|
|
@@ -123,8 +123,8 @@
|
|
|
123
123
|
"grunt-contrib-jasmine": "^4.0.0",
|
|
124
124
|
"npm-watch": "^0.11.0",
|
|
125
125
|
"nyc": "^15.1.0",
|
|
126
|
-
"qcobjects": "^2.4.
|
|
127
|
-
"qcobjects-sdk": "^2.4.
|
|
126
|
+
"qcobjects": "^2.4.68",
|
|
127
|
+
"qcobjects-sdk": "^2.4.34",
|
|
128
128
|
"semistandard": "^16.0.1"
|
|
129
129
|
},
|
|
130
130
|
"engines": {
|
package/src/css/index.css
CHANGED
|
@@ -101,6 +101,7 @@ nav {
|
|
|
101
101
|
|
|
102
102
|
nav > quick-component {
|
|
103
103
|
width: 0;
|
|
104
|
+
min-height: 100%;
|
|
104
105
|
position: fixed;
|
|
105
106
|
z-index: 1;
|
|
106
107
|
top: 0;
|
|
@@ -111,7 +112,6 @@ nav > quick-component {
|
|
|
111
112
|
background-color: #111;
|
|
112
113
|
transition: 0.5s;
|
|
113
114
|
padding-top: 60px;
|
|
114
|
-
padding-bottom: 20%;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
nav > quick-component a {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
6
|
import global, { Package, Controller, logger, _DOMCreateElement, type Effect, New, ClassFactory, type QCObjectsElement, type QCObjectsShadowedElement, type Component } from "qcobjects";
|
|
7
|
+
import { Fade } from "qcobjects-sdk";
|
|
7
8
|
|
|
8
9
|
Package("org.quickcorp.custom.controllers", [
|
|
9
10
|
class MainController extends Controller {
|
|
@@ -27,37 +28,43 @@ Package("org.quickcorp.custom.controllers", [
|
|
|
27
28
|
},
|
|
28
29
|
|
|
29
30
|
class SideNavController extends Controller {
|
|
30
|
-
effect
|
|
31
|
+
effect: Effect|null = null;
|
|
31
32
|
visibility!: boolean;
|
|
32
|
-
|
|
33
|
+
componentRoot!: any;
|
|
34
|
+
component:Component;
|
|
35
|
+
|
|
36
|
+
constructor (args:{component:Component, dependencies:Array<any>}) {
|
|
33
37
|
logger.debug("Initializing SideNavController...");
|
|
34
|
-
super(
|
|
35
|
-
this.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
super(args);
|
|
39
|
+
this.component = args.component;
|
|
40
|
+
if (this.component.shadowed) {
|
|
41
|
+
this.componentRoot = this.component.shadowRoot;
|
|
42
|
+
} else {
|
|
43
|
+
this.componentRoot = this.component.body;
|
|
44
|
+
}
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
done (...args: any[]) {
|
|
42
48
|
const _ret_ = super.done(args);
|
|
49
|
+
this.effect = New(Fade, {
|
|
50
|
+
duration: 300
|
|
51
|
+
});
|
|
52
|
+
(global as any).sideNavController = this;
|
|
43
53
|
this.close();
|
|
44
54
|
return _ret_;
|
|
45
55
|
}
|
|
46
56
|
|
|
47
57
|
open () {
|
|
48
|
-
|
|
49
|
-
if (typeof componentRoot !== "undefined") {
|
|
58
|
+
if (this.componentRoot !== null) {
|
|
50
59
|
if (this.effect != null) {
|
|
51
|
-
this.effect.apply(componentRoot, 0, 1);
|
|
60
|
+
this.effect.apply(this.componentRoot, 0, 1);
|
|
52
61
|
}
|
|
53
|
-
componentRoot.
|
|
54
|
-
componentRoot.style.overflowX = "visible";
|
|
62
|
+
this.componentRoot?.classList.add("open");
|
|
55
63
|
// eslint-disable-next-line no-extra-boolean-cast
|
|
56
|
-
if (!!componentRoot
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
parentElement.subelements(".
|
|
60
|
-
parentElement.subelements(".closebtn")[0].style.display = "block";
|
|
64
|
+
if (!!this.componentRoot?.parentElement) {
|
|
65
|
+
if (this.componentRoot.parentElement !== null) {
|
|
66
|
+
(this.componentRoot.parentElement as QCObjectsElement).subelements(".navbtn")[0].style.display = "none";
|
|
67
|
+
(this.componentRoot.parentElement as QCObjectsElement).subelements(".closebtn")[0].style.display = "block";
|
|
61
68
|
}
|
|
62
69
|
}
|
|
63
70
|
}
|
|
@@ -66,18 +73,15 @@ Package("org.quickcorp.custom.controllers", [
|
|
|
66
73
|
}
|
|
67
74
|
|
|
68
75
|
close () {
|
|
69
|
-
|
|
70
|
-
if (typeof componentRoot !== "undefined") {
|
|
76
|
+
if (this.componentRoot !== null) {
|
|
71
77
|
if (this.effect != null) {
|
|
72
|
-
this.effect.apply(componentRoot, 1, 0);
|
|
78
|
+
this.effect.apply(this.componentRoot, 1, 0);
|
|
73
79
|
}
|
|
74
|
-
componentRoot.
|
|
75
|
-
componentRoot.style.overflowX = "hidden";
|
|
80
|
+
this.componentRoot?.classList.remove("open");
|
|
76
81
|
// eslint-disable-next-line no-extra-boolean-cast
|
|
77
|
-
if (!!componentRoot
|
|
78
|
-
|
|
79
|
-
parentElement.subelements(".
|
|
80
|
-
parentElement.subelements(".closebtn")[0].style.display = "none";
|
|
82
|
+
if (!!this.componentRoot?.parentElement) {
|
|
83
|
+
(this.componentRoot.parentElement as QCObjectsElement).subelements(".navbtn")[0].style.display = "block";
|
|
84
|
+
(this.componentRoot.parentElement as QCObjectsElement).subelements(".closebtn")[0].style.display = "none";
|
|
81
85
|
}
|
|
82
86
|
}
|
|
83
87
|
this.visibility = false;
|
|
@@ -95,6 +99,12 @@ Package("org.quickcorp.custom.controllers", [
|
|
|
95
99
|
|
|
96
100
|
class HeaderController extends Controller {
|
|
97
101
|
installer: any;
|
|
102
|
+
component!: Component;
|
|
103
|
+
|
|
104
|
+
constructor(args:{component:Component, dependencies:Array<any>}){
|
|
105
|
+
super(args);
|
|
106
|
+
logger.debug("Header controller initialized");
|
|
107
|
+
}
|
|
98
108
|
|
|
99
109
|
loadInstallerButton () {
|
|
100
110
|
const componentRoot = (this.component.shadowed != null) ? (this.component.shadowRoot as QCObjectsShadowedElement) : (this.component.body as QCObjectsElement);
|