ode-ngjs-front 1.0.0-dev.202112090236 → 1.0.0-release.202112091525

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.
@@ -1,7 +1,9 @@
1
1
  import { IAttributes, IController, IDirective, IScope } from "angular";
2
2
  import { IWebApp } from "ode-ts-client";
3
+ import { XitiService } from "../../..";
3
4
  declare type AppEvent = {
4
5
  app: IWebApp;
6
+ element: Element;
5
7
  $mutex?: boolean;
6
8
  ctrlKey: boolean;
7
9
  metaKey: boolean;
@@ -18,6 +20,7 @@ declare class TriggerDirective implements IDirective<ITriggerScope, JQLite, IAtt
18
20
  }
19
21
  /** The connector-lightbox controller. */
20
22
  export declare class Controller {
23
+ private xitiSvc;
21
24
  apply?: () => void;
22
25
  skipCheck?: boolean;
23
26
  display: {
@@ -30,13 +33,15 @@ export declare class Controller {
30
33
  isAuthenticatedConnector(app: IWebApp): boolean;
31
34
  isAuthenticatedConnectorFirstAccess(app: IWebApp): boolean;
32
35
  openAppWithCheck(appEvent: AppEvent): void;
36
+ private windowOpen;
37
+ constructor(xitiSvc: XitiService);
33
38
  }
34
39
  /** The connector-lightbox directive. */
35
40
  declare class Directive implements IDirective<IScope, JQLite, IAttributes, IController[]> {
36
41
  restrict: string;
37
42
  template: any;
38
43
  scope: {};
39
- controller: (typeof Controller)[];
44
+ controller: (string | typeof Controller)[];
40
45
  controllerAs: string;
41
46
  require: string[];
42
47
  link(scope: IScope, elem: JQLite, attrs: IAttributes, controllers?: IController[]): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"connector-lightbox.directive.d.ts","sourceRoot":"","sources":["../../../../../src/ts/directives/business/portal/connector-lightbox.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAO,OAAO,EAAQ,MAAM,eAAe,CAAC;AAGnD,aAAK,QAAQ,GAA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,gDAAgD;AAChD,wBAAgB,gBAAgB,cAE/B"}
1
+ {"version":3,"file":"connector-lightbox.directive.d.ts","sourceRoot":"","sources":["../../../../../src/ts/directives/business/portal/connector-lightbox.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAO,OAAO,EAAQ,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,aAAK,QAAQ,GAAG;IACZ,GAAG,EAAC,OAAO,CAAC;IACZ,OAAO,EAAC,OAAO,CAAC;IAChB,MAAM,CAAC,EAAC,OAAO,CAAC;IAChB,OAAO,EAAC,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,UAAU,aAAc,SAAQ,MAAM;IAClC,wBAAwB,EAAE,OAAO,CAAC;CACrC;AAMD,cAAM,gBAAiB,YAAW,UAAU,CAAC,aAAa,EAAC,MAAM,EAAC,WAAW,CAAC;IAE1E,QAAQ,SAAM;IACd,KAAK;;MAEH;IAEF,IAAI,CAAC,KAAK,EAAC,aAAa,EAAE,IAAI,EAAC,MAAM,EAAE,KAAK,EAAC,WAAW,GAAG,IAAI;CAiBlE;AAED,yCAAyC;AAEzC,qBAAa,UAAU;IAyFf,OAAO,CAAC,OAAO;IAtFf,KAAK,CAAC,EAAC,MAAI,IAAI,CAAC;IAGpB,SAAS,CAAC,EAAC,OAAO,CAAC;IAGnB,OAAO;;MAEL;IAEF,OAAO,CAAC,gBAAgB,CAAC,CAAU;IACnC,+BAA+B,CAAC,EAAC,MAAM,EAAE,CAAC;IAE1C,OAAO;IAIP,SAAS;IA8BT,wBAAwB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO;IAI/C,mCAAmC,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO;IAK1D,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;YAuB5B,UAAU;gBAOZ,OAAO,EAAC,WAAW;CAGlC;AAED,wCAAwC;AAExC,cAAM,SAAU,YAAW,UAAU,CAAC,MAAM,EAAC,MAAM,EAAC,WAAW,EAAC,WAAW,EAAE,CAAC;IAE1E,QAAQ,SAAM;IACd,QAAQ,MAA0D;IAClE,KAAK,KAAK;IACb,UAAU,iCAA2B;IACrC,YAAY,SAAU;IACnB,OAAO,WAAyB;IAE1B,IAAI,CAAC,KAAK,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,EAAE,KAAK,EAAC,WAAW,EAAE,WAAW,CAAC,EAAC,WAAW,EAAE;CAyBtF;AAED,wDAAwD;AACxD,wBAAgB,uBAAuB,qBAEtC;AAED,gDAAgD;AAChD,wBAAgB,gBAAgB,cAE/B"}
@@ -1,7 +1,22 @@
1
1
  /** The xiti loader service. */
2
2
  export declare class XitiService {
3
- /** Apply XiTi tracking. */
4
- runScript(): void;
3
+ /** Apply XiTi tracking (navigation). */
4
+ runScript(): Promise<void | undefined>;
5
+ /** Apply XiTi tracking (click). */
6
+ trackClick(name: string, element: Element): Promise<void>;
7
+ /** Load XiTi implementation, if needed. */
5
8
  private loadScript;
9
+ /** Load XiTi CAS mapping for @param name. */
10
+ private loadCasMapping;
11
+ /**
12
+ * 2021 implementation of XiTi.
13
+ * @requires loadScript() must be called and its Promise resolved beforehand.
14
+ */
15
+ private run;
16
+ /**
17
+ * Track clicks on connector.
18
+ * @requires loadScript() must be called and its Promise resolved beforehand.
19
+ */
20
+ private click;
6
21
  }
7
22
  //# sourceMappingURL=xiti.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"xiti.service.d.ts","sourceRoot":"","sources":["../../../src/ts/services/xiti.service.ts"],"names":[],"mappings":"AAMA,+BAA+B;AAC/B,qBAAa,WAAW;IAEpB,2BAA2B;IACpB,SAAS;YASF,UAAU;CAyF3B"}
1
+ {"version":3,"file":"xiti.service.d.ts","sourceRoot":"","sources":["../../../src/ts/services/xiti.service.ts"],"names":[],"mappings":"AAYA,+BAA+B;AAC/B,qBAAa,WAAW;IAEpB,wCAAwC;IACjC,SAAS;IAchB,mCAAmC;IAC5B,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAehD,2CAA2C;YAC7B,UAAU;IASxB,6CAA6C;YAC/B,cAAc;IAQ5B;;;OAGG;YACW,GAAG;IAsFjB;;;OAGG;IACH,OAAO,CAAC,KAAK;CAsChB"}
@@ -1 +1 @@
1
- {"version":3,"file":"school-widget.widget.d.ts","sourceRoot":"","sources":["../../../../src/ts/widgets/school-widget/school-widget.widget.ts"],"names":[],"mappings":"AAgLA,eAAO,MAAM,aAAa,0BAA0B,CAAC"}
1
+ {"version":3,"file":"school-widget.widget.d.ts","sourceRoot":"","sources":["../../../../src/ts/widgets/school-widget/school-widget.widget.ts"],"names":[],"mappings":"AA+LA,eAAO,MAAM,aAAa,0BAA0B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-ngjs-front",
3
- "version": "1.0.0-dev.202112090236",
3
+ "version": "1.0.0-release.202112091525",
4
4
  "description": "Open Digital Education Frontend Framework",
5
5
  "main": "dist/ts/index.js",
6
6
  "types": "dist/ts/index.d.ts",