qcobjects 2.5.123-beta → 2.5.124-beta
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 +1 -1
- package/build/Import.js +2 -2
- package/build/Processor.js +2 -2
- package/build/QCObjects.js +2 -2
- package/build/WidgetsFactory.js +3 -3
- package/build/index.cjs +2 -2
- package/build/index.js +1 -1
- package/build/index.mjs +1 -1
- package/build-esbuild.js +3 -3
- package/package.json +1 -1
- package/public/browser/QCObjects.js +9 -9
- package/public/browser/QCObjects.js.map +2 -2
- package/public/cjs/QCObjects.cjs +24 -24
- package/public/cjs/QCObjects.cjs.map +3 -3
- package/public/esm/QCObjects.mjs +20 -20
- package/public/esm/QCObjects.mjs.map +3 -3
- package/public/types/index.d.ts +53 -53
- package/src/Import.ts +2 -2
- package/src/Processor.ts +2 -2
- package/src/QCObjects.ts +1 -1
- package/src/WidgetsFactory.ts +3 -3
- package/src/index.cts +1 -1
- package/src/index.mts +1 -1
- package/src/index.ts +1 -1
package/public/types/index.d.ts
CHANGED
|
@@ -870,66 +870,74 @@ declare module "loadSDK" {
|
|
|
870
870
|
export default loadSDK;
|
|
871
871
|
}
|
|
872
872
|
declare module "MainProcess" { }
|
|
873
|
-
declare module "
|
|
874
|
-
|
|
875
|
-
import { ISourceJS } from "./types/global";
|
|
873
|
+
declare module "SourceCSS" {
|
|
874
|
+
import { ISourceCSS } from "./types/global";
|
|
876
875
|
import { InheritClass } from "InheritClass";
|
|
877
|
-
export class
|
|
876
|
+
export class SourceCSS extends InheritClass implements ISourceCSS {
|
|
878
877
|
domain: string;
|
|
879
878
|
basePath: string;
|
|
880
|
-
type: string;
|
|
881
|
-
containerTag: string;
|
|
882
879
|
url: string;
|
|
883
880
|
data: {};
|
|
884
881
|
async: boolean;
|
|
885
882
|
external: boolean;
|
|
886
883
|
constructor(o: any);
|
|
884
|
+
fail(): void;
|
|
885
|
+
Cast(o: any): any;
|
|
887
886
|
set(name: string, value: any): void;
|
|
888
887
|
get(name: string, _default?: any): any;
|
|
889
|
-
status: boolean;
|
|
890
888
|
done(): void;
|
|
891
|
-
fail(): void;
|
|
892
889
|
rebuild(): void;
|
|
893
|
-
Cast(o: any): any;
|
|
894
|
-
_new_(properties: any): void;
|
|
895
890
|
}
|
|
896
891
|
}
|
|
897
|
-
declare module "
|
|
898
|
-
import {
|
|
892
|
+
declare module "SourceJS" {
|
|
893
|
+
import { ISourceJS } from "./types/global";
|
|
899
894
|
import { InheritClass } from "InheritClass";
|
|
900
|
-
export class
|
|
895
|
+
export class SourceJS extends InheritClass implements ISourceJS {
|
|
901
896
|
domain: string;
|
|
902
897
|
basePath: string;
|
|
898
|
+
type: string;
|
|
899
|
+
containerTag: string;
|
|
903
900
|
url: string;
|
|
904
901
|
data: {};
|
|
905
902
|
async: boolean;
|
|
906
903
|
external: boolean;
|
|
907
904
|
constructor(o: any);
|
|
908
|
-
fail(): void;
|
|
909
|
-
Cast(o: any): any;
|
|
910
905
|
set(name: string, value: any): void;
|
|
911
906
|
get(name: string, _default?: any): any;
|
|
907
|
+
status: boolean;
|
|
912
908
|
done(): void;
|
|
909
|
+
fail(): void;
|
|
913
910
|
rebuild(): void;
|
|
911
|
+
Cast(o: any): any;
|
|
912
|
+
_new_(properties: any): void;
|
|
914
913
|
}
|
|
915
914
|
}
|
|
916
|
-
declare module "
|
|
917
|
-
|
|
918
|
-
export const RegisterWidget: (widgetName: string) => void;
|
|
919
|
-
export const RegisterWidgets: (...args: string[]) => void;
|
|
920
|
-
}
|
|
921
|
-
declare module "View" {
|
|
915
|
+
declare module "Timer" {
|
|
916
|
+
import { ITimer, TTimerParams } from "./types/global";
|
|
922
917
|
import { InheritClass } from "InheritClass";
|
|
923
|
-
export class
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
});
|
|
918
|
+
export class Timer extends InheritClass implements ITimer {
|
|
919
|
+
duration: number;
|
|
920
|
+
alive: boolean;
|
|
921
|
+
thread({ timing, intervalInterceptor, duration }: TTimerParams): void;
|
|
928
922
|
}
|
|
929
923
|
}
|
|
930
|
-
declare module "
|
|
924
|
+
declare module "Toggle" {
|
|
931
925
|
import { InheritClass } from "InheritClass";
|
|
932
|
-
export class
|
|
926
|
+
export class Toggle extends InheritClass {
|
|
927
|
+
_toggle: boolean;
|
|
928
|
+
_inverse: boolean;
|
|
929
|
+
_positive: Function | null;
|
|
930
|
+
_negative: Function | null;
|
|
931
|
+
_dispatched: Function | null;
|
|
932
|
+
_args: {};
|
|
933
|
+
constructor(positive: Function, negative: Function, args: Array<any>);
|
|
934
|
+
changeToggle(): void;
|
|
935
|
+
_new_({ positive, negative, args }: {
|
|
936
|
+
positive: Function;
|
|
937
|
+
negative: Function;
|
|
938
|
+
args: Array<any>;
|
|
939
|
+
}): void;
|
|
940
|
+
fire(): Promise<Toggle>;
|
|
933
941
|
}
|
|
934
942
|
}
|
|
935
943
|
declare module "TransitionEffect" {
|
|
@@ -954,38 +962,30 @@ declare module "TransitionEffect" {
|
|
|
954
962
|
apply({ alphaFrom, alphaTo, angleFrom, angleTo, radiusFrom, radiusTo, scaleFrom, scaleTo }: TTransitionEffectParams): void;
|
|
955
963
|
}
|
|
956
964
|
}
|
|
957
|
-
declare module "
|
|
958
|
-
import { ITimer, TTimerParams } from "./types/global";
|
|
965
|
+
declare module "VO" {
|
|
959
966
|
import { InheritClass } from "InheritClass";
|
|
960
|
-
export class
|
|
961
|
-
duration: number;
|
|
962
|
-
alive: boolean;
|
|
963
|
-
thread({ timing, intervalInterceptor, duration }: TTimerParams): void;
|
|
967
|
+
export class VO extends InheritClass {
|
|
964
968
|
}
|
|
965
969
|
}
|
|
966
|
-
declare module "
|
|
970
|
+
declare module "View" {
|
|
967
971
|
import { InheritClass } from "InheritClass";
|
|
968
|
-
export class
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
_dispatched: Function | null;
|
|
974
|
-
_args: {};
|
|
975
|
-
constructor(positive: Function, negative: Function, args: Array<any>);
|
|
976
|
-
changeToggle(): void;
|
|
977
|
-
_new_({ positive, negative, args }: {
|
|
978
|
-
positive: Function;
|
|
979
|
-
negative: Function;
|
|
980
|
-
args: Array<any>;
|
|
981
|
-
}): void;
|
|
982
|
-
fire(): Promise<Toggle>;
|
|
972
|
+
export class View extends InheritClass {
|
|
973
|
+
constructor({ component, dependencies }: {
|
|
974
|
+
component?: undefined;
|
|
975
|
+
dependencies?: never[] | undefined;
|
|
976
|
+
});
|
|
983
977
|
}
|
|
984
978
|
}
|
|
985
|
-
declare module "
|
|
979
|
+
declare module "WidgetsFactory" {
|
|
980
|
+
export let _ComponentWidget_: CustomElementConstructor;
|
|
981
|
+
export const RegisterWidget: (widgetName: string) => void;
|
|
982
|
+
export const RegisterWidgets: (...args: string[]) => void;
|
|
983
|
+
}
|
|
984
|
+
declare module "assign" { }
|
|
985
|
+
declare module "qcobjects" {
|
|
986
986
|
export * as AssignPolyfill from "assign";
|
|
987
987
|
export * as __top__ from "top";
|
|
988
|
-
export * as
|
|
988
|
+
export * as qcobjects from "MainProcess";
|
|
989
989
|
export { _top, resetTop } from "top";
|
|
990
990
|
export { _QC_CLASSES, _QC_PACKAGES, _QC_PACKAGES_IMPORTED, _QC_READY_LISTENERS } from "PrimaryCollections";
|
|
991
991
|
export { _DataStringify } from "DataStringify";
|
|
@@ -1056,7 +1056,7 @@ declare module "QCObjects" {
|
|
|
1056
1056
|
export default _default;
|
|
1057
1057
|
}
|
|
1058
1058
|
declare module "index" {
|
|
1059
|
-
import * as QCObjects from "
|
|
1059
|
+
import * as QCObjects from "qcobjects";
|
|
1060
1060
|
export default QCObjects;
|
|
1061
1061
|
}
|
|
1062
1062
|
declare module "localStorage" {
|
package/src/Import.ts
CHANGED
|
@@ -46,8 +46,8 @@ export const Import = function (packagename:string, ready?:Function, external?:b
|
|
|
46
46
|
const readyImported = function (e: { target: { remove: () => void; }; }) {
|
|
47
47
|
_QC_PACKAGES_IMPORTED.push(ready as never);
|
|
48
48
|
if (allPackagesImported()) {
|
|
49
|
-
_QC_PACKAGES_IMPORTED.map(
|
|
50
|
-
_QC_READY_LISTENERS.push(_imported_);
|
|
49
|
+
_QC_PACKAGES_IMPORTED.map( (_imported_) => {
|
|
50
|
+
return _QC_READY_LISTENERS.push(_imported_);
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
if (isBrowser && CONFIG.get("removePackageScriptAfterLoading")) {
|
package/src/Processor.ts
CHANGED
|
@@ -51,8 +51,8 @@ export class Processor extends InheritClass implements IProcessor {
|
|
|
51
51
|
process(template: string, component: IComponent | null = null) {
|
|
52
52
|
const processorHandler = (component !== null) ? (component.processorHandler) : (New(Processor, { component: null }));
|
|
53
53
|
if (typeof template === "string") {
|
|
54
|
-
Object.keys(processorHandler.processors).map(
|
|
55
|
-
[...template.matchAll(new RegExp("\\$" + funcName + "\\((.*)\\).*", "g"))].map(
|
|
54
|
+
Object.keys(processorHandler.processors).map( (funcName) => {
|
|
55
|
+
return [...template.matchAll(new RegExp("\\$" + funcName + "\\((.*)\\).*", "g"))].map(
|
|
56
56
|
function (procesorMatch) {
|
|
57
57
|
const match0 = `$${funcName}(${procesorMatch[1]})`;
|
|
58
58
|
template = template.replace(match0, processorHandler.execute.bind(processorHandler).call(processorHandler, component, funcName, procesorMatch[1]));
|
package/src/QCObjects.ts
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
export * as AssignPolyfill from "./assign";
|
|
35
35
|
export * as __top__ from "./top";
|
|
36
|
-
export * as
|
|
36
|
+
export * as qcobjects from "./MainProcess";
|
|
37
37
|
export {_top, resetTop} from "./top";
|
|
38
38
|
export { _QC_CLASSES, _QC_PACKAGES, _QC_PACKAGES_IMPORTED, _QC_READY_LISTENERS } from "./PrimaryCollections";
|
|
39
39
|
export { _DataStringify } from "./DataStringify";
|
package/src/WidgetsFactory.ts
CHANGED
|
@@ -493,7 +493,7 @@ if (isBrowser) {
|
|
|
493
493
|
if (!componentWidget.hasAttribute("shadowed")) {
|
|
494
494
|
componentBody.setAttribute("shadowed", "true");
|
|
495
495
|
}
|
|
496
|
-
__enabled__atributes__.
|
|
496
|
+
__enabled__atributes__.forEach( (attributeName) => {
|
|
497
497
|
if (componentWidget.hasAttribute(attributeName)) {
|
|
498
498
|
componentBody.setAttribute(attributeName, componentWidget?.getAttribute(attributeName) as any);
|
|
499
499
|
componentWidget.removeAttribute(attributeName);
|
|
@@ -504,11 +504,11 @@ if (isBrowser) {
|
|
|
504
504
|
}).map(function (a) {
|
|
505
505
|
return a.split("-")[1];
|
|
506
506
|
});
|
|
507
|
-
data_attributenames.
|
|
507
|
+
data_attributenames.forEach(function (_attribute_name_) {
|
|
508
508
|
componentBody.setAttribute("data-" + _attribute_name_, componentWidget?.getAttribute("data-" + _attribute_name_) as any);
|
|
509
509
|
componentWidget.removeAttribute("data-" + _attribute_name_);
|
|
510
510
|
});
|
|
511
|
-
[...(componentWidget as any).children].
|
|
511
|
+
[...(componentWidget as any).children].forEach( (element) => {
|
|
512
512
|
componentBody.appendChild(element.cloneNode(true));
|
|
513
513
|
element.remove();
|
|
514
514
|
});
|
package/src/index.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import QCObjects from "./
|
|
1
|
+
import QCObjects from "./qcobjects.js";
|
|
2
2
|
module.exports = QCObjects;
|
package/src/index.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import QCObjects from "./
|
|
1
|
+
import QCObjects from "./qcobjects.js";
|
|
2
2
|
export default QCObjects;
|
package/src/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as QCObjects from "./
|
|
1
|
+
import * as QCObjects from "./qcobjects";
|
|
2
2
|
export default QCObjects;
|