ode-ngjs-front 1.2.6-feat-produit.202303031659 → 1.2.7
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/dist/5a177ed9e4e64baa8287a6f6e5625ab4.html +127 -0
- package/dist/d6dec5bea5ec25a97b20e8259e193c57.html +162 -0
- package/dist/e42fe8833e44d61abdaa936837b6b949.html +10 -0
- package/dist/f3f8289907cc5f53b11e2bc5f451be96.html +31 -0
- package/dist/ode-ngjs-front.js +5 -5
- package/dist/ode-ngjs-front.js.map +1 -1
- package/dist/ts/directives/business/explorer/domino-folder.directive.d.ts +28 -0
- package/dist/ts/directives/business/explorer/domino-folder.directive.d.ts.map +1 -0
- package/dist/ts/directives/business/explorer/domino-item.directive.d.ts +27 -0
- package/dist/ts/directives/business/explorer/domino-item.directive.d.ts.map +1 -0
- package/dist/ts/directives/business/explorer/explorer.directive.d.ts +44 -0
- package/dist/ts/directives/business/explorer/explorer.directive.d.ts.map +1 -0
- package/dist/ts/directives/business/explorer/resource-list.directive.d.ts +37 -0
- package/dist/ts/directives/business/explorer/resource-list.directive.d.ts.map +1 -0
- package/dist/ts/directives/business/explorer/sidebar-folder.directive.d.ts +41 -0
- package/dist/ts/directives/business/explorer/sidebar-folder.directive.d.ts.map +1 -0
- package/dist/ts/directives/business/explorer/sidebar.directive.d.ts +26 -0
- package/dist/ts/directives/business/explorer/sidebar.directive.d.ts.map +1 -0
- package/dist/ts/directives/business/share/share-panel.directive.d.ts +155 -0
- package/dist/ts/directives/business/share/share-panel.directive.d.ts.map +1 -1
- package/dist/ts/directives/business/toaster/toaster.directive.d.ts +69 -0
- package/dist/ts/directives/business/toaster/toaster.directive.d.ts.map +1 -0
- package/dist/ts/directives/index.d.ts +9 -0
- package/dist/ts/directives/index.d.ts.map +1 -1
- package/dist/ts/models/ui.model.d.ts +18 -0
- package/dist/ts/models/ui.model.d.ts.map +1 -0
- package/dist/ts/modules/explorer.module.d.ts +5 -0
- package/dist/ts/modules/explorer.module.d.ts.map +1 -1
- package/dist/ts/modules/index.d.ts +2 -0
- package/dist/ts/modules/index.d.ts.map +1 -1
- package/dist/version.txt +1 -1
- package/dist/widgets/qwant-widget/qwant-widget.widget.js +1 -1
- package/dist/widgets/qwant-widget/qwant-widget.widget.js.map +1 -1
- package/dist/widgets/school-widget/school-widget.widget.js +1 -1
- package/dist/widgets/school-widget/school-widget.widget.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IAttributes, IController, IDirective, IScope } from "angular";
|
|
2
|
+
import { IFolder } from "ode-ts-client";
|
|
3
|
+
import { UiModel } from "../../../models/ui.model";
|
|
4
|
+
export declare class Controller implements IController {
|
|
5
|
+
constructor();
|
|
6
|
+
model: UiModel;
|
|
7
|
+
folder: IFolder;
|
|
8
|
+
private selected;
|
|
9
|
+
toggleSelect(selected?: boolean): void;
|
|
10
|
+
openSubfolder(): void;
|
|
11
|
+
}
|
|
12
|
+
declare class Directive implements IDirective<IScope, JQLite, IAttributes, IController[]> {
|
|
13
|
+
restrict: string;
|
|
14
|
+
template: any;
|
|
15
|
+
scope: {
|
|
16
|
+
folder: string;
|
|
17
|
+
};
|
|
18
|
+
bindToController: boolean;
|
|
19
|
+
controller: (typeof Controller)[];
|
|
20
|
+
controllerAs: string;
|
|
21
|
+
require: string[];
|
|
22
|
+
link(scope: IScope, elem: JQLite, attrs: IAttributes, controllers?: IController[]): void;
|
|
23
|
+
}
|
|
24
|
+
/** The ode-domino-folder directive.
|
|
25
|
+
*/
|
|
26
|
+
export declare function DirectiveFactory(): Directive;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=domino-folder.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domino-folder.directive.d.ts","sourceRoot":"","sources":["../../../../../src/ts/directives/business/explorer/domino-folder.directive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,UAAW,YAAW,WAAW;;IAM1C,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAC,OAAO,CAAC;IACf,OAAO,CAAC,QAAQ,CAAiB;IAEjC,YAAY,CAAE,QAAQ,CAAC,EAAC,OAAO,GAAG,IAAI;IAiBtC,aAAa,IAAG,IAAI;CAGvB;AAGD,cAAM,SAAU,YAAW,UAAU,CAAC,MAAM,EAAC,MAAM,EAAC,WAAW,EAAC,WAAW,EAAE,CAAC;IAC1E,QAAQ,SAAO;IAClB,QAAQ,MAAqD;IAC7D,KAAK;;MAEA;IACL,gBAAgB,UAAQ;IACxB,UAAU,wBAAgB;IAC1B,YAAY,SAAU;IACtB,OAAO,WAAuC;IAE3C,IAAI,CAAC,KAAK,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,EAAE,KAAK,EAAC,WAAW,EAAE,WAAW,CAAC,EAAC,WAAW,EAAE,GAAG,IAAI;CAMvF;AAED;GACG;AACH,wBAAgB,gBAAgB,cAE/B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IAttributes, IController, IDirective, IScope } from "angular";
|
|
2
|
+
import { IResource } from "ode-ts-client";
|
|
3
|
+
import { UiModel } from "../../../models/ui.model";
|
|
4
|
+
export declare class Controller implements IController {
|
|
5
|
+
constructor();
|
|
6
|
+
model: UiModel;
|
|
7
|
+
item: IResource;
|
|
8
|
+
private selected;
|
|
9
|
+
toggleSelect(selected?: boolean): void;
|
|
10
|
+
}
|
|
11
|
+
declare class Directive implements IDirective<IScope, JQLite, IAttributes, IController[]> {
|
|
12
|
+
restrict: string;
|
|
13
|
+
template: any;
|
|
14
|
+
scope: {
|
|
15
|
+
item: string;
|
|
16
|
+
};
|
|
17
|
+
bindToController: boolean;
|
|
18
|
+
controller: (typeof Controller)[];
|
|
19
|
+
controllerAs: string;
|
|
20
|
+
require: string[];
|
|
21
|
+
link(scope: IScope, elem: JQLite, attrs: IAttributes, controllers?: IController[]): void;
|
|
22
|
+
}
|
|
23
|
+
/** The ode-domino-item directive.
|
|
24
|
+
*/
|
|
25
|
+
export declare function DirectiveFactory(): Directive;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=domino-item.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domino-item.directive.d.ts","sourceRoot":"","sources":["../../../../../src/ts/directives/business/explorer/domino-item.directive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,UAAW,YAAW,WAAW;;IAM1C,KAAK,EAAC,OAAO,CAAC;IACd,IAAI,EAAC,SAAS,CAAC;IACf,OAAO,CAAC,QAAQ,CAAiB;IAEjC,YAAY,CAAE,QAAQ,CAAC,EAAC,OAAO,GAAG,IAAI;CAgBzC;AAGD,cAAM,SAAU,YAAW,UAAU,CAAC,MAAM,EAAC,MAAM,EAAC,WAAW,EAAC,WAAW,EAAE,CAAC;IAC1E,QAAQ,SAAO;IAClB,QAAQ,MAAmD;IAC3D,KAAK;;MAEA;IACL,gBAAgB,UAAQ;IACxB,UAAU,wBAAgB;IAC1B,YAAY,SAAU;IACtB,OAAO,WAAqC;IAEzC,IAAI,CAAC,KAAK,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,EAAE,KAAK,EAAC,WAAW,EAAE,WAAW,CAAC,EAAC,WAAW,EAAE,GAAG,IAAI;CAOvF;AAED;GACG;AACH,wBAAgB,gBAAgB,cAE/B"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IAttributes, IController, IDirective, ILocationService, IScope, IWindowService } from "angular";
|
|
2
|
+
import { IOrder } from "ode-ts-client";
|
|
3
|
+
import { UiModel } from "../../../models/ui.model";
|
|
4
|
+
export declare class Controller implements IController {
|
|
5
|
+
private $location;
|
|
6
|
+
private $window;
|
|
7
|
+
model: UiModel;
|
|
8
|
+
private app;
|
|
9
|
+
private resource;
|
|
10
|
+
constructor($location: ILocationService, $window: IWindowService);
|
|
11
|
+
$onInit(): void;
|
|
12
|
+
getSortClass(sort: IOrder): {
|
|
13
|
+
active: boolean;
|
|
14
|
+
} | undefined;
|
|
15
|
+
toggleSortOrder(sort: IOrder): void;
|
|
16
|
+
onCreate(): void;
|
|
17
|
+
}
|
|
18
|
+
declare class Directive implements IDirective {
|
|
19
|
+
restrict: string;
|
|
20
|
+
template: any;
|
|
21
|
+
scope: {
|
|
22
|
+
app: string;
|
|
23
|
+
resource: string;
|
|
24
|
+
};
|
|
25
|
+
bindToController: boolean;
|
|
26
|
+
controller: (string | typeof Controller)[];
|
|
27
|
+
controllerAs: string;
|
|
28
|
+
link(scope: IScope, elem: JQLite, attr: IAttributes, controller: IController | undefined): void;
|
|
29
|
+
}
|
|
30
|
+
/** The ode-explorer directive.
|
|
31
|
+
*
|
|
32
|
+
* Usage:
|
|
33
|
+
* 1) import your directive's factory,
|
|
34
|
+
* import { Explorer } from 'ode-ngjs-front';
|
|
35
|
+
* 2) Add it to your angular module,
|
|
36
|
+
* ng.directives.push( ng.directive("odeExplorer", Explorer.DirectiveFactory) );
|
|
37
|
+
* 3) Use it,
|
|
38
|
+
* <ode-explorer app="blog" resource="blog"></ode-explorer>
|
|
39
|
+
*
|
|
40
|
+
* 4) TODO unit-testing : https://docs.angularjs.org/guide/unit-testing#testing-a-controller
|
|
41
|
+
*/
|
|
42
|
+
export declare function DirectiveFactory(): Directive;
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=explorer.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explorer.directive.d.ts","sourceRoot":"","sources":["../../../../../src/ts/directives/business/explorer/explorer.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzG,OAAO,EAAqB,MAAM,EAA0D,MAAM,eAAe,CAAC;AAClH,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,UAAW,YAAW,WAAW;IAK7B,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,OAAO;IAL5B,KAAK,EAAC,OAAO,CAAC;IACd,OAAO,CAAC,GAAG,CAAK;IAChB,OAAO,CAAC,QAAQ,CAAc;gBAET,SAAS,EAAC,gBAAgB,EAC1B,OAAO,EAAC,cAAc;IAQ3C,OAAO;IAMP,YAAY,CAAE,IAAI,EAAC,MAAM;;;IAOzB,eAAe,CAAE,IAAI,EAAC,MAAM;IAU5B,QAAQ,IAAG,IAAI;CAclB;AAGD,cAAM,SAAU,YAAW,UAAU;IACjC,QAAQ,SAAO;IAClB,QAAQ,MAAgD;IACxD,KAAK;;;MAGA;IACL,gBAAgB,UAAQ;IACxB,UAAU,iCAAsC;IAChD,YAAY,SAAU;IAEnB,IAAI,CAAC,KAAK,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,EAAE,IAAI,EAAC,WAAW,EAAE,UAAU,EAAC,WAAW,GAAC,SAAS,GAAG,IAAI;CAO5F;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,cAE/B"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IAttributes, IController, IDirective, IScope } from "angular";
|
|
2
|
+
import { ISearchResults } from "ode-ts-client";
|
|
3
|
+
import { UiModel } from "../../../models/ui.model";
|
|
4
|
+
export declare class Controller implements IController {
|
|
5
|
+
constructor();
|
|
6
|
+
model: UiModel;
|
|
7
|
+
display(resultset: ISearchResults): void;
|
|
8
|
+
}
|
|
9
|
+
declare class Directive implements IDirective<IScope, JQLite, IAttributes, IController[]> {
|
|
10
|
+
restrict: string;
|
|
11
|
+
template: any;
|
|
12
|
+
scope: {};
|
|
13
|
+
bindToController: boolean;
|
|
14
|
+
transclude: {
|
|
15
|
+
folders: string;
|
|
16
|
+
items: string;
|
|
17
|
+
};
|
|
18
|
+
controller: (typeof Controller)[];
|
|
19
|
+
controllerAs: string;
|
|
20
|
+
require: string[];
|
|
21
|
+
link(scope: IScope, elem: JQLite, attrs: IAttributes, controllers?: IController[]): void;
|
|
22
|
+
}
|
|
23
|
+
/** The ode-resource-list directive.
|
|
24
|
+
*
|
|
25
|
+
* Usage (pseudo-code):
|
|
26
|
+
* <div ode-resource-list context="instance of UiContext">_Content to transclude here_</div>
|
|
27
|
+
* The content to transclude can reference some scope values :
|
|
28
|
+
* * Use _{{$parent.ctrl.xxx}}_ to access this directive's controller.
|
|
29
|
+
* * Use _<ode-list-folder>{{$parent.folder.xxx}}</ode-list-folder>_
|
|
30
|
+
* where {{$parent.folder}} is an IFolder
|
|
31
|
+
* * Use _<ode-list-item>{{$parent.item.xxx}}</ode-list-folder>_
|
|
32
|
+
* where {{$parent.item}} is an IResource
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export declare function DirectiveFactory(): Directive;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=resource-list.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-list.directive.d.ts","sourceRoot":"","sources":["../../../../../src/ts/directives/business/explorer/resource-list.directive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,qBAAa,UAAW,YAAW,WAAW;;IAK1C,KAAK,EAAE,OAAO,CAAC;IAEf,OAAO,CAAE,SAAS,EAAC,cAAc;CASpC;AAGD,cAAM,SAAU,YAAW,UAAU,CAAC,MAAM,EAAC,MAAM,EAAC,WAAW,EAAC,WAAW,EAAE,CAAC;IAC1E,QAAQ,SAAO;IAClB,QAAQ,MAAqD;IAC7D,KAAK,KAAM;IACX,gBAAgB,UAAQ;IACrB,UAAU;;;MAGR;IACL,UAAU,wBAAgB;IAC1B,YAAY,SAAU;IACtB,OAAO,WAAwC;IAE5C,IAAI,CAAC,KAAK,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,EAAE,KAAK,EAAC,WAAW,EAAE,WAAW,CAAC,EAAC,WAAW,EAAE,GAAG,IAAI;CAmBvF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,cAE/B"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { IController, IDirective, IRootScopeService } from "angular";
|
|
2
|
+
import { IFolder } from "ode-ts-client";
|
|
3
|
+
declare type OnSelectParam = {
|
|
4
|
+
folderCtrl: FolderController;
|
|
5
|
+
};
|
|
6
|
+
export declare class FolderController implements IController {
|
|
7
|
+
private $rootScope;
|
|
8
|
+
constructor($rootScope: IRootScopeService);
|
|
9
|
+
folder?: IFolder;
|
|
10
|
+
onSelect?: (param: OnSelectParam) => void;
|
|
11
|
+
private _isSelected;
|
|
12
|
+
private _subfolders;
|
|
13
|
+
get isSelected(): boolean;
|
|
14
|
+
get hasChildren(): boolean;
|
|
15
|
+
get showSubfolders(): boolean;
|
|
16
|
+
get subfolders(): IFolder[];
|
|
17
|
+
set subfolders(subFolders: IFolder[]);
|
|
18
|
+
getClass(): {
|
|
19
|
+
[classname: string]: boolean;
|
|
20
|
+
};
|
|
21
|
+
toggle(open?: boolean): void;
|
|
22
|
+
}
|
|
23
|
+
declare class Directive implements IDirective {
|
|
24
|
+
restrict: string;
|
|
25
|
+
templateUrl: any;
|
|
26
|
+
scope: {
|
|
27
|
+
folder: string;
|
|
28
|
+
onSelect: string;
|
|
29
|
+
};
|
|
30
|
+
bindToController: boolean;
|
|
31
|
+
controller: (string | typeof FolderController)[];
|
|
32
|
+
controllerAs: string;
|
|
33
|
+
}
|
|
34
|
+
/** The folder directive.
|
|
35
|
+
*
|
|
36
|
+
* Usage (pseudo-code):
|
|
37
|
+
* <div ode-sidebar-folder="IFolder" on-select="selectFolderCallback(OnSelectParam)"></div>
|
|
38
|
+
*/
|
|
39
|
+
export declare function DirectiveFactory(): Directive;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=sidebar-folder.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-folder.directive.d.ts","sourceRoot":"","sources":["../../../../../src/ts/directives/business/explorer/sidebar-folder.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,aAAK,aAAa,GAAG;IAAC,UAAU,EAAC,gBAAgB,CAAA;CAAC,CAAC;AAGnD,qBAAa,gBAAiB,YAAW,WAAW;IACvC,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAC,iBAAiB;IAG7C,MAAM,CAAC,EAAC,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAC,CAAC,KAAK,EAAC,aAAa,KAAG,IAAI,CAAC;IAEtC,OAAO,CAAC,WAAW,CAAiB;IACpC,OAAO,CAAC,WAAW,CAAgB;IAEnC,IAAI,UAAU,IAAG,OAAO,CAEvB;IAED,IAAI,WAAW,IAAG,OAAO,CAExB;IAED,IAAI,cAAc,IAAG,OAAO,CAE3B;IAED,IAAI,UAAU,IAAG,OAAO,EAAE,CAEzB;IAED,IAAI,UAAU,CAAE,UAAU,EAAC,OAAO,EAAE,EAGnC;IAED,QAAQ,IAAG;QAAC,CAAC,SAAS,EAAC,MAAM,GAAG,OAAO,CAAA;KAAC;IAMxC,MAAM,CAAE,IAAI,CAAC,EAAC,OAAO,GAAG,IAAI;CAM/B;AAGD,cAAM,SAAU,YAAW,UAAU;IACjC,QAAQ,SAAO;IAClB,WAAW,MAA2D;IACtE,KAAK;;;MAGA;IACL,gBAAgB,UAAQ;IACxB,UAAU,uCAAmC;IAC7C,YAAY,SAAU;CACtB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,cAE/B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IAttributes, IController, IDirective, IScope } from "angular";
|
|
2
|
+
import { UiModel } from "../../../models/ui.model";
|
|
3
|
+
import { FolderController } from "./sidebar-folder.directive";
|
|
4
|
+
export declare class Controller implements IController {
|
|
5
|
+
constructor();
|
|
6
|
+
model: UiModel;
|
|
7
|
+
onSelectFolder(folderCtrl: FolderController): void;
|
|
8
|
+
}
|
|
9
|
+
declare class Directive implements IDirective<IScope, JQLite, IAttributes, IController[]> {
|
|
10
|
+
restrict: string;
|
|
11
|
+
template: any;
|
|
12
|
+
scope: {};
|
|
13
|
+
bindToController: boolean;
|
|
14
|
+
controller: (typeof Controller)[];
|
|
15
|
+
controllerAs: string;
|
|
16
|
+
require: string[];
|
|
17
|
+
link(scope: IScope, elem: JQLite, attrs: IAttributes, controllers?: IController[]): void;
|
|
18
|
+
}
|
|
19
|
+
/** The sidebar directive.
|
|
20
|
+
*
|
|
21
|
+
* Usage:
|
|
22
|
+
* <ode-sidebar></ode-sidebar>
|
|
23
|
+
*/
|
|
24
|
+
export declare function DirectiveFactory(): Directive;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=sidebar.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar.directive.d.ts","sourceRoot":"","sources":["../../../../../src/ts/directives/business/explorer/sidebar.directive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEvE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG9D,qBAAa,UAAW,YAAW,WAAW;;IAK1C,KAAK,EAAE,OAAO,CAAC;IAElB,cAAc,CAAC,UAAU,EAAC,gBAAgB,GAAE,IAAI;CAMhD;AAGD,cAAM,SAAU,YAAW,UAAU,CAAC,MAAM,EAAC,MAAM,EAAC,WAAW,EAAC,WAAW,EAAE,CAAC;IAC1E,QAAQ,SAAO;IAClB,QAAQ,MAA+C;IACvD,KAAK,KAAM;IACX,gBAAgB,UAAQ;IACxB,UAAU,wBAAgB;IAC1B,YAAY,SAAU;IACtB,OAAO,WAAmC;IAEvC,IAAI,CAAC,KAAK,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,EAAE,KAAK,EAAC,WAAW,EAAE,WAAW,CAAC,EAAC,WAAW,EAAE,GAAG,IAAI;CAMvF;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,cAE/B"}
|
|
@@ -1 +1,156 @@
|
|
|
1
|
+
import { IAttributes, IController, IDirective, IScope } from "angular";
|
|
2
|
+
import { Shareable, ShareVisible, SharePayload, ShareInfos, ShareAction } from "../../../legacy/rights";
|
|
3
|
+
import { UiModel } from "../../../models/ui.model";
|
|
4
|
+
import { NotifyService } from '../../../services/notify.service';
|
|
5
|
+
export declare const appPrefix: string;
|
|
6
|
+
export declare const infraPrefix: string;
|
|
7
|
+
export interface ShareCloseDelegate {
|
|
8
|
+
$canceled: boolean;
|
|
9
|
+
$close: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface ShareableWithId extends Shareable {
|
|
12
|
+
_id: string;
|
|
13
|
+
}
|
|
14
|
+
declare type tofix = void;
|
|
15
|
+
export declare class SharePanelController implements IController {
|
|
16
|
+
private $scope;
|
|
17
|
+
private notify;
|
|
18
|
+
display: {
|
|
19
|
+
showSaveSharebookmarkInput: boolean;
|
|
20
|
+
sharebookmarkSaved: boolean;
|
|
21
|
+
workflowAllowSharebookmarks: boolean;
|
|
22
|
+
showCloseConfirmation: boolean;
|
|
23
|
+
showBookmarkMembers: boolean;
|
|
24
|
+
search: {
|
|
25
|
+
processing: Boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
sharing: {
|
|
29
|
+
actions?: ShareAction[];
|
|
30
|
+
};
|
|
31
|
+
varyingRights: boolean | undefined;
|
|
32
|
+
varyingRightsI18nKey: string | undefined;
|
|
33
|
+
editResources: Shareable[];
|
|
34
|
+
sharingModel: ShareInfos & {
|
|
35
|
+
edited: any[];
|
|
36
|
+
editedInherited: any[];
|
|
37
|
+
changed?: boolean;
|
|
38
|
+
sharebookmarks?: any;
|
|
39
|
+
};
|
|
40
|
+
appPrefix: string;
|
|
41
|
+
shareTable: string;
|
|
42
|
+
resources: Array<ShareableWithId>;
|
|
43
|
+
maxResults: number;
|
|
44
|
+
translate?: Function;
|
|
45
|
+
actions: ShareAction[] | undefined;
|
|
46
|
+
search: string;
|
|
47
|
+
found: ShareVisible[];
|
|
48
|
+
maxEdit: number;
|
|
49
|
+
shareOverrideDefaultActions: string[] | undefined;
|
|
50
|
+
newSharebookmarkName: string;
|
|
51
|
+
constructor($scope: IDirectiveScope, notify: NotifyService);
|
|
52
|
+
model: UiModel;
|
|
53
|
+
autoClose?: boolean;
|
|
54
|
+
onValidate?(args: {
|
|
55
|
+
$data: SharePayload;
|
|
56
|
+
$resource: ShareableWithId;
|
|
57
|
+
$actions: ShareAction[];
|
|
58
|
+
}): tofix;
|
|
59
|
+
canEditDelegate?(args: {
|
|
60
|
+
$item: {
|
|
61
|
+
type: string;
|
|
62
|
+
id: string;
|
|
63
|
+
};
|
|
64
|
+
}): boolean;
|
|
65
|
+
confirmationCloseDelegate?(args: ShareCloseDelegate): tofix;
|
|
66
|
+
closeDelegate?(args: ShareCloseDelegate): tofix;
|
|
67
|
+
onCancel?(): tofix;
|
|
68
|
+
onSubmit?(args: {
|
|
69
|
+
$shared: SharePayload;
|
|
70
|
+
}): tofix;
|
|
71
|
+
onFeed?(args: {
|
|
72
|
+
$data: ShareInfos;
|
|
73
|
+
$resource: ShareableWithId;
|
|
74
|
+
$actions: ShareAction[];
|
|
75
|
+
}): tofix;
|
|
76
|
+
$onInit(): void;
|
|
77
|
+
$postLink(): void;
|
|
78
|
+
/** get directory workflow to manage allowSharebookmarks workflow */
|
|
79
|
+
private loadDirectoryWorkflow;
|
|
80
|
+
private loadAppBehavioursSharingConf;
|
|
81
|
+
canEdit(item: {
|
|
82
|
+
type: string;
|
|
83
|
+
id: string;
|
|
84
|
+
}): boolean;
|
|
85
|
+
isSubmitDisabled(): boolean;
|
|
86
|
+
createSharebookmark(newSharebookmarkName: string): void;
|
|
87
|
+
typeSort(value: any): number;
|
|
88
|
+
remove(element: ShareVisible): void;
|
|
89
|
+
displayMore(): void;
|
|
90
|
+
private requiredActions;
|
|
91
|
+
changeAction(item: {
|
|
92
|
+
type: string;
|
|
93
|
+
users: {
|
|
94
|
+
actions: {
|
|
95
|
+
[x: string]: any;
|
|
96
|
+
};
|
|
97
|
+
}[];
|
|
98
|
+
actions: {
|
|
99
|
+
[x: string]: any;
|
|
100
|
+
};
|
|
101
|
+
groups: {
|
|
102
|
+
actions: {
|
|
103
|
+
[x: string]: any;
|
|
104
|
+
};
|
|
105
|
+
}[];
|
|
106
|
+
id: any;
|
|
107
|
+
hide: boolean;
|
|
108
|
+
}, action: ShareAction): void;
|
|
109
|
+
private actionToRights;
|
|
110
|
+
private rightsToActions;
|
|
111
|
+
share(): Promise<void>;
|
|
112
|
+
private usersCache;
|
|
113
|
+
findUserOrGroup(): any;
|
|
114
|
+
addResults(): void;
|
|
115
|
+
private actionsConfiguration;
|
|
116
|
+
addEdit(item: ShareVisible): void;
|
|
117
|
+
setActions(actions: Array<ShareAction>): void;
|
|
118
|
+
clearSearch(): void;
|
|
119
|
+
canShowMore(): boolean;
|
|
120
|
+
getColor(profile?: string | Array<string>): string | undefined;
|
|
121
|
+
private differentRights;
|
|
122
|
+
private onFeedEvent;
|
|
123
|
+
private feeding;
|
|
124
|
+
feedData(): void;
|
|
125
|
+
}
|
|
126
|
+
interface IDirectiveScope extends IScope {
|
|
127
|
+
closePanel?(cancelled: boolean): Promise<void>;
|
|
128
|
+
revertClose?(): void;
|
|
129
|
+
}
|
|
130
|
+
declare class Directive implements IDirective<IDirectiveScope, JQLite, IAttributes, IController[]> {
|
|
131
|
+
restrict: string;
|
|
132
|
+
templateUrl: any;
|
|
133
|
+
scope: {
|
|
134
|
+
onCancel: string;
|
|
135
|
+
onSubmit: string;
|
|
136
|
+
onValidate: string;
|
|
137
|
+
onFeed: string;
|
|
138
|
+
closeDelegate: string;
|
|
139
|
+
confirmationCloseDelegate: string;
|
|
140
|
+
canEditDelegate: string;
|
|
141
|
+
autoClose: string;
|
|
142
|
+
};
|
|
143
|
+
bindToController: boolean;
|
|
144
|
+
controller: (string | typeof SharePanelController)[];
|
|
145
|
+
controllerAs: string;
|
|
146
|
+
require: string[];
|
|
147
|
+
link(scope: IDirectiveScope, element: JQLite, attrs: IAttributes, controllers?: IController[]): void;
|
|
148
|
+
}
|
|
149
|
+
/** The share-panel directive.
|
|
150
|
+
*
|
|
151
|
+
* Usage:
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
export declare function DirectiveFactory(): Directive;
|
|
155
|
+
export {};
|
|
1
156
|
//# sourceMappingURL=share-panel.directive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"share-panel.directive.d.ts","sourceRoot":"","sources":["../../../../../src/ts/directives/business/share/share-panel.directive.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"share-panel.directive.d.ts","sourceRoot":"","sources":["../../../../../src/ts/directives/business/share/share-panel.directive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAIvE,OAA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,GAAC,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,GAAC,SAAS;IAIzD,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,OAAO,CAAS;IACxB,QAAQ;CAwFX;AAKD,UAAU,eAAgB,SAAQ,MAAM;IACpC,UAAU,CAAC,CAAC,SAAS,EAAC,OAAO,GAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,WAAW,CAAC,IAAG,IAAI,CAAC;CACvB;AACD,cAAM,SAAU,YAAW,UAAU,CAAC,eAAe,EAAC,MAAM,EAAC,WAAW,EAAC,WAAW,EAAE,CAAC;IACnF,QAAQ,SAAM;IACd,WAAW,MAAuD;IAClE,KAAK;;;;;;;;;MASH;IACL,gBAAgB,UAAQ;IACxB,UAAU,2CAAiD;IAC3D,YAAY,SAAU;IACtB,OAAO,WAAsC;IAE1C,IAAI,CAAC,KAAK,EAAC,eAAe,EAAE,OAAO,EAAC,MAAM,EAAE,KAAK,EAAC,WAAW,EAAE,WAAW,CAAC,EAAC,WAAW,EAAE,GAAG,IAAI;CAmGnG;AAED;;;;GAIG;AACF,wBAAgB,gBAAgB,cAEhC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { IAttributes, IController, IDirective, IScope } from "angular";
|
|
2
|
+
import { IAction, IProperty, IResource } from "ode-ts-client";
|
|
3
|
+
import { UiModel } from "../../../models/ui.model";
|
|
4
|
+
import { NotifyService } from '../../../services/notify.service';
|
|
5
|
+
export declare class Controller implements IController {
|
|
6
|
+
private $scope;
|
|
7
|
+
private notify;
|
|
8
|
+
constructor($scope: IScope, notify: NotifyService);
|
|
9
|
+
model: UiModel;
|
|
10
|
+
private actionFilter;
|
|
11
|
+
private mobileFilter;
|
|
12
|
+
/** Flag to show/hide the properties modal. */
|
|
13
|
+
showProps: boolean;
|
|
14
|
+
/** Flag to show/hide the sharing modal. */
|
|
15
|
+
showShares: boolean;
|
|
16
|
+
props?: IProperty[];
|
|
17
|
+
items?: IResource[];
|
|
18
|
+
getClass(action: IAction): {
|
|
19
|
+
[classname: string]: boolean;
|
|
20
|
+
};
|
|
21
|
+
getActionClass(action: IAction): {
|
|
22
|
+
[classname: string]: boolean;
|
|
23
|
+
};
|
|
24
|
+
getI18nKey(action: IAction): string;
|
|
25
|
+
/**
|
|
26
|
+
* Visibility rules for the action buttons.
|
|
27
|
+
* @param action action to check
|
|
28
|
+
* @returns true if the action button must be visible
|
|
29
|
+
*/
|
|
30
|
+
isActivable(action: IAction): boolean;
|
|
31
|
+
activate(action: IAction): void;
|
|
32
|
+
/**
|
|
33
|
+
* Display the properties lightbox.
|
|
34
|
+
* @param props props to display/edit
|
|
35
|
+
* @param items apply to these resources
|
|
36
|
+
*/
|
|
37
|
+
private editProps;
|
|
38
|
+
/**
|
|
39
|
+
* Close the properties lightbox.
|
|
40
|
+
*/
|
|
41
|
+
closeProps(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Display the sharing lightbox.
|
|
44
|
+
* @param items apply to these resources
|
|
45
|
+
*/
|
|
46
|
+
private editShares;
|
|
47
|
+
/**
|
|
48
|
+
* Close the sharing lightbox.
|
|
49
|
+
*/
|
|
50
|
+
closeShares(): void;
|
|
51
|
+
}
|
|
52
|
+
declare class Directive implements IDirective<IScope, JQLite, IAttributes, IController[]> {
|
|
53
|
+
restrict: string;
|
|
54
|
+
template: any;
|
|
55
|
+
scope: {};
|
|
56
|
+
bindToController: boolean;
|
|
57
|
+
controller: (string | typeof Controller)[];
|
|
58
|
+
controllerAs: string;
|
|
59
|
+
require: string[];
|
|
60
|
+
link(scope: IScope, elem: JQLite, attrs: IAttributes, controllers?: IController[]): void;
|
|
61
|
+
}
|
|
62
|
+
/** The toaster directive.
|
|
63
|
+
*
|
|
64
|
+
* Usage:
|
|
65
|
+
* <ode-toaster context="instance of IExplorerContext"></ode-toaster>
|
|
66
|
+
*/
|
|
67
|
+
export declare function DirectiveFactory(): Directive;
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=toaster.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toaster.directive.d.ts","sourceRoot":"","sources":["../../../../../src/ts/directives/business/toaster/toaster.directive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAU,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAGjE,qBAAa,UAAW,YAAW,WAAW;IAChC,OAAO,CAAC,MAAM;IAAS,OAAO,CAAC,MAAM;gBAA7B,MAAM,EAAC,MAAM,EAAU,MAAM,EAAC,aAAa;IAkB7D,KAAK,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,YAAY,CAAkC;IACtD,OAAO,CAAC,YAAY,CAAkC;IAEtD,8CAA8C;IAC9C,SAAS,EAAC,OAAO,CAAU;IAC3B,2CAA2C;IAC3C,UAAU,EAAC,OAAO,CAAS;IAC3B,KAAK,CAAC,EAAC,SAAS,EAAE,CAAC;IACnB,KAAK,CAAC,EAAC,SAAS,EAAE,CAAC;IAEhB,QAAQ,CAAE,MAAM,EAAC,OAAO,GAAG;QAAC,CAAC,SAAS,EAAC,MAAM,GAAG,OAAO,CAAA;KAAC;IAMxD,cAAc,CAAE,MAAM,EAAC,OAAO,GAAG;QAAC,CAAC,SAAS,EAAC,MAAM,GAAG,OAAO,CAAA;KAAC;IASjE,UAAU,CAAE,MAAM,EAAC,OAAO,GAAI,MAAM;IAIpC;;;;OAIG;IACH,WAAW,CAAE,MAAM,EAAC,OAAO,GAAG,OAAO;IAUrC,QAAQ,CAAE,MAAM,EAAC,OAAO;IAmCxB;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAOjB;;OAEG;IACH,UAAU;IAMV;;;OAGG;IACH,OAAO,CAAC,UAAU;IAKlB;;OAEG;IACH,WAAW;CAIX;AAGD,cAAM,SAAU,YAAW,UAAU,CAAC,MAAM,EAAC,MAAM,EAAC,WAAW,EAAC,WAAW,EAAE,CAAC;IAC1E,QAAQ,SAAO;IAClB,QAAQ,MAA+C;IACvD,KAAK,KAAM;IACX,gBAAgB,UAAQ;IACxB,UAAU,iCAAuC;IACjD,YAAY,SAAU;IACtB,OAAO,WAAmC;IAEvC,IAAI,CAAC,KAAK,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,EAAE,KAAK,EAAC,WAAW,EAAE,WAAW,CAAC,EAAC,WAAW,EAAE,GAAG,IAAI;CAOvF;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,cAE/B"}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
export * as Explorer from './business/explorer/explorer.directive';
|
|
2
|
+
export * as Sidebar from './business/explorer/sidebar.directive';
|
|
3
|
+
export * as SidebarFolder from './business/explorer/sidebar-folder.directive';
|
|
4
|
+
export * as ResourceList from './business/explorer/resource-list.directive';
|
|
5
|
+
export * as DominoFolder from './business/explorer/domino-folder.directive';
|
|
6
|
+
export * as DominoItem from './business/explorer/domino-item.directive';
|
|
7
|
+
export * as Toaster from './business/toaster/toaster.directive';
|
|
1
8
|
export * as Modal from './components/modal/modal.directive';
|
|
2
9
|
export * as ModalContainer from './components/modal/modal-container.directive';
|
|
10
|
+
export * as PropsPanel from './business/props/props-panel.directive';
|
|
11
|
+
export * as SharePanel from './business/share/share-panel.directive';
|
|
3
12
|
export * as Translate from './components/i18n/translate.directive';
|
|
4
13
|
export * as I18n from './components/i18n/i18n.directive';
|
|
5
14
|
export * as I18nValue from './components/i18n/i18n-value.directive';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ts/directives/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"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K,MAAM,MAAM,sCAAsC,CAAC;AAC/D,OAAO,KAAK,OAAO,MAAM,wCAAwC,CAAC;AAClE,OAAO,KAAK,cAAc,MAAM,gDAAgD,CAAC;AACjF,OAAO,KAAK,aAAa,MAAM,+CAA+C,CAAC;AAC/E,OAAO,KAAK,QAAQ,MAAM,uCAAuC,CAAC;AAClE,OAAO,KAAK,iBAAiB,MAAM,gDAAgD,CAAC;AACpF,OAAO,KAAK,WAAW,MAAM,0CAA0C,CAAC;AACxE,OAAO,KAAK,IAAI,MAAM,kCAAkC,CAAC;AACzD,OAAO,KAAK,YAAY,MAAM,kDAAkD,CAAC;AACjF,OAAO,KAAK,QAAQ,MAAM,sCAAsC,CAAC;AACjE,OAAO,KAAK,IAAI,MAAM,kCAAkC,CAAC;AAGzD,OAAO,KAAK,MAAM,MAAM,oCAAoC,CAAC;AAC7D,OAAO,KAAK,MAAM,MAAM,oCAAoC,CAAC;AAC7D,OAAO,KAAK,SAAS,MAAM,uCAAuC,CAAC;AACnE,OAAO,KAAK,OAAO,MAAM,qCAAqC,CAAC;AAC/D,OAAO,KAAK,MAAM,MAAM,oCAAoC,CAAC;AAC7D,OAAO,KAAK,OAAO,MAAM,sCAAsC,CAAC;AAChE,OAAO,KAAK,QAAQ,MAAM,qCAAqC,CAAA;AAC/D,OAAO,KAAK,eAAe,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { App, GetResourcesResult, IContext, IExplorerContext, IFolder, IResource, ISearchParameters, ResourceType } from "ode-ts-client";
|
|
2
|
+
export declare class UiModel {
|
|
3
|
+
app: App;
|
|
4
|
+
resourceType: ResourceType;
|
|
5
|
+
explorer: IExplorerContext;
|
|
6
|
+
context?: IContext;
|
|
7
|
+
constructor(app: App, resourceType: ResourceType);
|
|
8
|
+
initialize(): Promise<IContext>;
|
|
9
|
+
get searchParameters(): ISearchParameters;
|
|
10
|
+
loadedFolders: IFolder[];
|
|
11
|
+
loadedItems: IResource[];
|
|
12
|
+
selectedFolders: IFolder[];
|
|
13
|
+
selectedItems: IResource[];
|
|
14
|
+
get currentFolder(): IFolder | undefined;
|
|
15
|
+
openAsSubfolder(f: IFolder): Promise<GetResourcesResult>;
|
|
16
|
+
breadcrumb: IFolder[];
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=ui.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.model.d.ts","sourceRoot":"","sources":["../../../src/ts/models/ui.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAA4B,kBAAkB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEnK,qBAAa,OAAO;IAChB,GAAG,EAAC,GAAG,CAAC;IACR,YAAY,EAAC,YAAY,CAAC;IAC1B,QAAQ,EAAC,gBAAgB,CAAC;IAC1B,OAAO,CAAC,EAAC,QAAQ,CAAC;gBAEL,GAAG,EAAC,GAAG,EAAE,YAAY,EAAC,YAAY;IAMzC,UAAU;IAKhB,IAAI,gBAAgB,IAAG,iBAAiB,CAEvC;IAED,aAAa,EAAC,OAAO,EAAE,CAAM;IAC7B,WAAW,EAAC,SAAS,EAAE,CAAM;IAE7B,eAAe,EAAC,OAAO,EAAE,CAAM;IAC/B,aAAa,EAAC,SAAS,EAAE,CAAM;IAE/B,IAAI,aAAa,IAAG,OAAO,GAAC,SAAS,CAGpC;IAED,eAAe,CAAE,CAAC,EAAC,OAAO,GAAG,OAAO,CAAC,kBAAkB,CAAC;IASxD,UAAU,EAAC,OAAO,EAAE,CAAM;CAE7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explorer.module.d.ts","sourceRoot":"","sources":["../../../src/ts/modules/explorer.module.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"explorer.module.d.ts","sourceRoot":"","sources":["../../../src/ts/modules/explorer.module.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAM3C;;GAEG;AACF,wBAAgB,iBAAiB,IAAG,OAAO,CAe1C"}
|
|
@@ -18,5 +18,7 @@ export declare abstract class OdeModules {
|
|
|
18
18
|
static getUi(): string;
|
|
19
19
|
/** Widgets module : declares lazy loaded directives (widgets for the timeline) */
|
|
20
20
|
static getWidgets(): string;
|
|
21
|
+
/** Explorer module. Declares components for exploring assets from resource-producing apps. */
|
|
22
|
+
static getExplorer(): string;
|
|
21
23
|
}
|
|
22
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ts/modules/index.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;GAUG;AACH,8BAAsB,UAAU;IAC5B,sGAAsG;IACtG,MAAM,CAAC,OAAO,IAAG,MAAM;IAGvB,uFAAuF;IACvF,MAAM,CAAC,OAAO,IAAG,MAAM;IAGvB,uEAAuE;IACvE,MAAM,CAAC,KAAK,IAAG,MAAM;IAGrB,kFAAkF;IAClF,MAAM,CAAC,UAAU,IAAG,MAAM;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ts/modules/index.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;GAUG;AACH,8BAAsB,UAAU;IAC5B,sGAAsG;IACtG,MAAM,CAAC,OAAO,IAAG,MAAM;IAGvB,uFAAuF;IACvF,MAAM,CAAC,OAAO,IAAG,MAAM;IAGvB,uEAAuE;IACvE,MAAM,CAAC,KAAK,IAAG,MAAM;IAGrB,kFAAkF;IAClF,MAAM,CAAC,UAAU,IAAG,MAAM;IAG1B,8FAA8F;IAC9F,MAAM,CAAC,WAAW,IAAG,MAAM;CAG9B"}
|
package/dist/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ode-ngjs-front=1.2
|
|
1
|
+
ode-ngjs-front=1.2.7 05/04/2023 16:32:04
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkode_ngjs_front=self.webpackChunkode_ngjs_front||[]).push([[165],{8265:(t,e,n)=>{n.d(e,{Z:()=>a});const a=' <style>.widget-qwant .widget-header{border:0}
|
|
1
|
+
"use strict";(self.webpackChunkode_ngjs_front=self.webpackChunkode_ngjs_front||[]).push([[165],{8265:(t,e,n)=>{n.d(e,{Z:()=>a});const a=' <style>.widget-qwant .widget-header{border:0}</style> <div class="widget-qwant"> <div class="widget-header"> <div class="widget-options"> <div class="widget-handle"><i class="fas fa-grip-vertical"></i></div> </div> </div> <div class="widget-body" dnd-nodrag> <div class="widget-empty-message"> <div class="row row-cols-1 align-items-center"> <div class="mb-3"> <a href="https://www.qwant.com" target="_blank" rel="noopener" ng-click="trackEvent($event, {detail:{\'open\':\'qwant\'} })"> <img src="/assets/widgets/qwant/logo-qwant.svg" width="77" height="75" alt="Qwant"> </a> </div> </div> <form method="GET" target="_blank" action="https://www.qwant.com" autocomplete="off"> <div class="row row-cols-1 align-items-center"> <label class="sr-only" for="inputQwantQ" translate content="search"></label> <div class="input-group mb-2"> <input type="text" id="inputQwantQ" class="form-control" name="q" maxlength="255" i18n-placeholder="search"/> <input type="hidden" name="l" value="fr"/> <button class="btn btn-outline-secondary" aria-labelledby="inputQwantQ" ng-click="trackEvent($event, {detail:{\'search\':\'launch\'} })"> <i class="ic-search"></i> </button> </div> </div> </form> </div> </div> </div>'},3399:function(t,e,n){var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.odeModuleName=void 0;var i=a(n(4202)),o=n(9419),d=function(){function t(){this.restrict="E",this.template=n(8265).Z}return t.prototype.link=function(t){t.trackEvent=function(t,e){var n,a;void 0===e.bubbles&&(e.bubbles=!0);var i=null;!e||"qwant"!==(null===(n=e.detail)||void 0===n?void 0:n.open)&&"string"!=typeof(null===(a=e.detail)||void 0===a?void 0:a.search)||(i=new CustomEvent(o.TrackedActionFromWidget.qwant,e)),i&&t.currentTarget&&t.currentTarget.dispatchEvent(i)}},t}();o.notif().onLangReady().promise.then((function(t){o.conf().Platform.idiom.addKeys(n(2467))})),e.odeModuleName="odeQwantModule",i.default.module(e.odeModuleName,[]).directive("odeQwant",(function(){return new d}))},2467:t=>{t.exports=JSON.parse('{"qwant-widget.widget.title":"Qwant","qwant-junior":"QwantJunior","qwant":"Qwant"}')}}]);
|
|
2
2
|
//# sourceMappingURL=qwant-widget.widget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widgets/qwant-widget/qwant-widget.widget.js","mappings":"gIAGA,QAFW,
|
|
1
|
+
{"version":3,"file":"widgets/qwant-widget/qwant-widget.widget.js","mappings":"gIAGA,QAFW,orC,mLCDX,iBACA,UAGA,0BACI,KAAAA,SAAW,IACd,KAAAC,SAAW,SAiBZ,QAfC,YAAAC,KAAA,SAAKC,GAEJA,EAAMC,WAAa,SAACC,EAASC,G,aAEJ,IAAdA,EAAEC,UAAyBD,EAAEC,SAAU,GAEjD,IAAIC,EAAQ,MACRF,GAAuB,WAAT,QAAR,EAAAA,EAAEG,cAAM,eAAEC,OAA4C,iBAAX,QAAR,EAAAJ,EAAEG,cAAM,eAAEE,UACtDH,EAAQ,IAAII,YAAa,EAAAC,wBAAwBC,MAAOR,IAErDE,GAASH,EAAEU,eACdV,EAAEU,cAAcC,cAAcR,EAEhC,CACD,EACD,EAnBA,GA2BA,EAAAS,QAAQC,cAAcC,QAAQC,MAAM,SAAAC,GAEzB,EAAAC,OAAOC,SAASC,MAAMC,QAAS,EAAQ,MAElD,IAIa,EAAAC,cAAgB,iBAC7B,UAAQC,OAAQ,EAAAD,cAAe,IAAIE,UAAW,YAd9C,WACC,OAAO,IAAIC,CACZ,G","sources":["webpack://ode-ngjs-front/./src/ts/widgets/qwant-widget/qwant-widget.widget.html","webpack://ode-ngjs-front/./src/ts/widgets/qwant-widget/qwant-widget.widget.ts"],"sourcesContent":["// Module\nvar code = \" <style>.widget-qwant .widget-header{border:0}</style> <div class=\\\"widget-qwant\\\"> <div class=\\\"widget-header\\\"> <div class=\\\"widget-options\\\"> <div class=\\\"widget-handle\\\"><i class=\\\"fas fa-grip-vertical\\\"></i></div> </div> </div> <div class=\\\"widget-body\\\" dnd-nodrag> <div class=\\\"widget-empty-message\\\"> <div class=\\\"row row-cols-1 align-items-center\\\"> <div class=\\\"mb-3\\\"> <a href=\\\"https://www.qwant.com\\\" target=\\\"_blank\\\" rel=\\\"noopener\\\" ng-click=\\\"trackEvent($event, {detail:{'open':'qwant'} })\\\"> <img src=\\\"/assets/widgets/qwant/logo-qwant.svg\\\" width=\\\"77\\\" height=\\\"75\\\" alt=\\\"Qwant\\\"> </a> </div> </div> <form method=\\\"GET\\\" target=\\\"_blank\\\" action=\\\"https://www.qwant.com\\\" autocomplete=\\\"off\\\"> <div class=\\\"row row-cols-1 align-items-center\\\"> <label class=\\\"sr-only\\\" for=\\\"inputQwantQ\\\" translate content=\\\"search\\\"></label> <div class=\\\"input-group mb-2\\\"> <input type=\\\"text\\\" id=\\\"inputQwantQ\\\" class=\\\"form-control\\\" name=\\\"q\\\" maxlength=\\\"255\\\" i18n-placeholder=\\\"search\\\"/> <input type=\\\"hidden\\\" name=\\\"l\\\" value=\\\"fr\\\"/> <button class=\\\"btn btn-outline-secondary\\\" aria-labelledby=\\\"inputQwantQ\\\" ng-click=\\\"trackEvent($event, {detail:{'search':'launch'} })\\\"> <i class=\\\"ic-search\\\"></i> </button> </div> </div> </form> </div> </div> </div>\";\n// Exports\nexport default code;","import angular, { IAttributes, IController, IDirective, IScope } from \"angular\";\nimport { conf, notif, TrackedAction, TrackedScope, TrackedActionFromWidget } from \"../../utils\";\n\n/* Directive */\nclass Directive implements IDirective<TrackedScope,JQLite,IAttributes,IController[]> {\n restrict = 'E';\n\ttemplate = require('./qwant-widget.widget.html').default;\n\n\tlink(scope:TrackedScope) {\n\t\t// Give an opportunity to track some events from outside of this widget.\n\t\tscope.trackEvent = (e:Event, p:CustomEventInit<TrackedAction>) => {\n\t\t\t// Allow events to bubble up.\n\t\t\tif(typeof p.bubbles === \"undefined\") p.bubbles = true;\n\n\t\t\tlet event = null;\n\t\t\tif( p && (p.detail?.open==='qwant' || typeof p.detail?.search==='string') ) {\n\t\t\t\tevent = new CustomEvent( TrackedActionFromWidget.qwant, p );\n\t\t\t}\n\t\t\tif( event && e.currentTarget ) {\n\t\t\t\te.currentTarget.dispatchEvent(event);\n\t\t\t}\n\t\t}\n\t}\n}\n\n/** The qwant widget. */\nfunction DirectiveFactory() {\n\treturn new Directive();\n}\n\n// Preload translations\nnotif().onLangReady().promise.then( lang => {\n\tswitch( lang ) {\n\t\tdefault:\tconf().Platform.idiom.addKeys( require('./i18n/fr.json') ); break;\n\t}\n});\n\n// THIS ANGULAR MODULE WILL BE DYNAMICALLY ADDED TO THE APPLICATION.\n// RESPECT THE NAMING CONVENTION BY EXPORTING THE MODULE NAME :\nexport const odeModuleName = \"odeQwantModule\";\nangular.module( odeModuleName, []).directive( \"odeQwant\", DirectiveFactory );\n"],"names":["restrict","template","link","scope","trackEvent","e","p","bubbles","event","detail","open","search","CustomEvent","TrackedActionFromWidget","qwant","currentTarget","dispatchEvent","notif","onLangReady","promise","then","lang","conf","Platform","idiom","addKeys","odeModuleName","module","directive","Directive"],"sourceRoot":""}
|