ode-ngjs-front 1.0.0-dev.202112071049 → 1.0.0-release.202112091419

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,3 +1,4 @@
1
+ /// <reference types="jquery" />
1
2
  import { IScope } from "angular";
2
3
  /**
3
4
  * This service was intended to be a jQuery minimal replacement, tailored to our needs.
@@ -20,7 +21,7 @@ export declare class NgHelperService {
20
21
  /** Replacement for $.height() */
21
22
  height(set: JQLite): number;
22
23
  /** Replacement for $.parents(selector) */
23
- parents(set: JQLite, selector: string): JQLite;
24
+ parents(set: JQLite, selector: string): JQuery<HTMLElement>;
24
25
  /** Available width for rendering the HTML document, in pixels. */
25
26
  get viewport(): number;
26
27
  get WIDE_SCREEN(): number;
@@ -1 +1 @@
1
- {"version":3,"file":"ng-helper.service.d.ts","sourceRoot":"","sources":["../../../src/ts/services/ng-helper.service.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAI1C;;;GAGG;AACH,qBAAa,eAAe;IAEjB,SAAS,CAAE,MAAM,EAAC,MAAM,EAAE,GAAG,CAAC,EAAC,MAAM,GAAC,CAAC,CAAC,KAAK,EAAC,MAAM,KAAK,GAAG,CAAC;IAmBpE,+BAA+B;IACxB,IAAI,CAAE,GAAG,EAAC,MAAM,EAAE,EAAE,EAAC,CAAC,KAA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MAAM,CAAA;KAAC,GAAG;QAAC,GAAG,EAAC,MAAM,CAAC;QAAC,IAAI,EAAC,MAAM,CAAA;KAAC;IAepF,gCAAgC;IACzB,KAAK,CAAC,GAAG,EAAC,MAAM,GAAG,MAAM;IAKhC,iCAAiC;IAC1B,MAAM,CAAC,GAAG,EAAC,MAAM,GAAG,MAAM;IAKjC,0CAA0C;IACnC,OAAO,CAAC,GAAG,EAAC,MAAM,EAAE,QAAQ,EAAC,MAAM;IAc1C,kEAAkE;IAClE,IAAW,QAAQ,IAAG,MAAM,CAI3B;IAGD,IAAW,WAAW,IAAG,MAAM,CAAqB;IACpD,IAAW,MAAM,IAAG,MAAM,CAAyB;IACnD,IAAW,UAAU,IAAG,MAAM,CAAqB;IACnD,IAAW,YAAY,IAAG,MAAM,CAAmB;CAUtD"}
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-ngjs-front",
3
- "version": "1.0.0-dev.202112071049",
3
+ "version": "1.0.0-release.202112091419",
4
4
  "description": "Open Digital Education Frontend Framework",
5
5
  "main": "dist/ts/index.js",
6
6
  "types": "dist/ts/index.d.ts",