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.
@@ -870,66 +870,74 @@ declare module "loadSDK" {
870
870
  export default loadSDK;
871
871
  }
872
872
  declare module "MainProcess" { }
873
- declare module "assign" { }
874
- declare module "SourceJS" {
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 SourceJS extends InheritClass implements ISourceJS {
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 "SourceCSS" {
898
- import { ISourceCSS } from "./types/global";
892
+ declare module "SourceJS" {
893
+ import { ISourceJS } from "./types/global";
899
894
  import { InheritClass } from "InheritClass";
900
- export class SourceCSS extends InheritClass implements ISourceCSS {
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 "WidgetsFactory" {
917
- export let _ComponentWidget_: CustomElementConstructor;
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 View extends InheritClass {
924
- constructor({ component, dependencies }: {
925
- component?: undefined;
926
- dependencies?: never[] | undefined;
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 "VO" {
924
+ declare module "Toggle" {
931
925
  import { InheritClass } from "InheritClass";
932
- export class VO extends InheritClass {
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 "Timer" {
958
- import { ITimer, TTimerParams } from "./types/global";
965
+ declare module "VO" {
959
966
  import { InheritClass } from "InheritClass";
960
- export class Timer extends InheritClass implements ITimer {
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 "Toggle" {
970
+ declare module "View" {
967
971
  import { InheritClass } from "InheritClass";
968
- export class Toggle extends InheritClass {
969
- _toggle: boolean;
970
- _inverse: boolean;
971
- _positive: Function | null;
972
- _negative: Function | null;
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 "QCObjects" {
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 QCObjects from "MainProcess";
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 "QCObjects";
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(function (_imported_) {
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(function (funcName) {
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 QCObjects from "./MainProcess";
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";
@@ -493,7 +493,7 @@ if (isBrowser) {
493
493
  if (!componentWidget.hasAttribute("shadowed")) {
494
494
  componentBody.setAttribute("shadowed", "true");
495
495
  }
496
- __enabled__atributes__.map(function (attributeName) {
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.map(function (_attribute_name_) {
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].map(function (element) {
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 "./QCObjects.js";
1
+ import QCObjects from "./qcobjects.js";
2
2
  module.exports = QCObjects;
package/src/index.mts CHANGED
@@ -1,2 +1,2 @@
1
- import QCObjects from "./QCObjects.js";
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 "./QCObjects";
1
+ import * as QCObjects from "./qcobjects";
2
2
  export default QCObjects;