fhdp-extenders 4.10.6-SNAPSHOT-1684412389643 → 4.10.6-SNAPSHOT-1690808691620
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/cached-package.json +1 -1
- package/dist/Module.d.ts +31 -31
- package/dist/Module.js +54 -53
- package/dist/Module.js.map +1 -1
- package/dist/source/RelocatorRules.d.ts +7 -7
- package/dist/source/RelocatorRules.js +267 -260
- package/dist/source/RelocatorRules.js.map +1 -1
- package/dist/source/constants.d.ts +1 -1
- package/dist/source/constants.js +4 -3
- package/dist/source/constants.js.map +1 -1
- package/dist/source/extenders/CookieParser.d.ts +3 -3
- package/dist/source/extenders/CookieParser.js +13 -11
- package/dist/source/extenders/CookieParser.js.map +1 -1
- package/dist/source/extenders/CookiePoliticsHandler.d.ts +6 -6
- package/dist/source/extenders/CookiePoliticsHandler.js +82 -79
- package/dist/source/extenders/CookiePoliticsHandler.js.map +1 -1
- package/dist/source/extenders/DynamicRelocator.d.ts +3 -3
- package/dist/source/extenders/DynamicRelocator.js +192 -190
- package/dist/source/extenders/DynamicRelocator.js.map +1 -1
- package/dist/source/extenders/FHMLExtender.d.ts +1 -1
- package/dist/source/extenders/FHMLExtender.js +306 -304
- package/dist/source/extenders/FHMLExtender.js.map +1 -1
- package/dist/source/extenders/PortalProcessHandler.d.ts +27 -27
- package/dist/source/extenders/PortalProcessHandler.js +181 -181
- package/dist/source/extenders/PortalProcessHandler.js.map +1 -1
- package/package.json +7 -7
- package/source/extenders/PortalProcessHandler.ts +2 -2
package/cached-package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"fhdp-extenders","version":"4.10.6-SNAPSHOT-
|
|
1
|
+
{"name":"fhdp-extenders","version":"4.10.6-SNAPSHOT-1690808691620","author":{"name":"Jakub Kosecki","email":"j.kosecki@doittechnology.pl"},"main":"dist/Module.js","types":"dist/Module.d.ts","scripts":{"prepublishOnly":"node prepublish","postpublish":"node postpublish","build":"tsc","prepare":"yarn build","test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"@types/bootstrap":"4.3.1","@types/jquery":"3.3.31","@types/node":"14.14.36","@types/jqueryui":"1.12.10","typescript":"5.0.4"},"dependencies":{"fh-basic-controls":"4.10.6-SNAPSHOT-1690808691620","fh-forms-handler":"4.10.6-SNAPSHOT-1690808691620","lodash":"4.17.21","moment":"2.29.4","moment-timezone":"0.5.34"}}
|
package/dist/Module.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { getCookie } from "./source/extenders/CookieParser";
|
|
2
|
-
import { addTranslationForCookiePolitics } from "./source/extenders/CookiePoliticsHandler";
|
|
3
|
-
export interface DynamicRelocatorExtensionRule {
|
|
4
|
-
type: 'extension';
|
|
5
|
-
selector: string;
|
|
6
|
-
condition: (mutation: any) => Promise<boolean>;
|
|
7
|
-
ruleMutator: (mutation: any) => Promise<void>;
|
|
8
|
-
}
|
|
9
|
-
export interface DynamicRelocatorExclusionRule {
|
|
10
|
-
type: 'exclusion';
|
|
11
|
-
selector: string;
|
|
12
|
-
condition: (mutation: any) => Promise<boolean>;
|
|
13
|
-
}
|
|
14
|
-
export interface ExtenderConfig {
|
|
15
|
-
i18n: any;
|
|
16
|
-
extendFHML?: boolean;
|
|
17
|
-
mobileMaxWidth?: number;
|
|
18
|
-
enableMobileNavbar?: boolean;
|
|
19
|
-
enableErrorBelowField?: boolean;
|
|
20
|
-
enableDynamicFooterPosition?: boolean;
|
|
21
|
-
enableCurrentMenuElementHighlight?: boolean;
|
|
22
|
-
currentMenuElementHighlighBottomBorderStyle?: string;
|
|
23
|
-
enableFHMLinTooltips?: boolean;
|
|
24
|
-
enableSessionCounterRules?: boolean;
|
|
25
|
-
enableCookieAlert?: boolean;
|
|
26
|
-
additionalRules?: Array<DynamicRelocatorExclusionRule | DynamicRelocatorExtensionRule>;
|
|
27
|
-
}
|
|
28
|
-
declare class FHDPExtender {
|
|
29
|
-
constructor(config: ExtenderConfig);
|
|
30
|
-
}
|
|
31
|
-
export { FHDPExtender, getCookie, addTranslationForCookiePolitics };
|
|
1
|
+
import { getCookie } from "./source/extenders/CookieParser";
|
|
2
|
+
import { addTranslationForCookiePolitics } from "./source/extenders/CookiePoliticsHandler";
|
|
3
|
+
export interface DynamicRelocatorExtensionRule {
|
|
4
|
+
type: 'extension';
|
|
5
|
+
selector: string;
|
|
6
|
+
condition: (mutation: any) => Promise<boolean>;
|
|
7
|
+
ruleMutator: (mutation: any) => Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export interface DynamicRelocatorExclusionRule {
|
|
10
|
+
type: 'exclusion';
|
|
11
|
+
selector: string;
|
|
12
|
+
condition: (mutation: any) => Promise<boolean>;
|
|
13
|
+
}
|
|
14
|
+
export interface ExtenderConfig {
|
|
15
|
+
i18n: any;
|
|
16
|
+
extendFHML?: boolean;
|
|
17
|
+
mobileMaxWidth?: number;
|
|
18
|
+
enableMobileNavbar?: boolean;
|
|
19
|
+
enableErrorBelowField?: boolean;
|
|
20
|
+
enableDynamicFooterPosition?: boolean;
|
|
21
|
+
enableCurrentMenuElementHighlight?: boolean;
|
|
22
|
+
currentMenuElementHighlighBottomBorderStyle?: string;
|
|
23
|
+
enableFHMLinTooltips?: boolean;
|
|
24
|
+
enableSessionCounterRules?: boolean;
|
|
25
|
+
enableCookieAlert?: boolean;
|
|
26
|
+
additionalRules?: Array<DynamicRelocatorExclusionRule | DynamicRelocatorExtensionRule>;
|
|
27
|
+
}
|
|
28
|
+
declare class FHDPExtender {
|
|
29
|
+
constructor(config: ExtenderConfig);
|
|
30
|
+
}
|
|
31
|
+
export { FHDPExtender, getCookie, addTranslationForCookiePolitics };
|
package/dist/Module.js
CHANGED
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
//
|
|
32
|
-
//
|
|
33
|
-
//
|
|
34
|
-
//
|
|
35
|
-
//
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addTranslationForCookiePolitics = exports.getCookie = exports.FHDPExtender = void 0;
|
|
4
|
+
var CookieParser_1 = require("./source/extenders/CookieParser");
|
|
5
|
+
Object.defineProperty(exports, "getCookie", { enumerable: true, get: function () { return CookieParser_1.getCookie; } });
|
|
6
|
+
var CookiePoliticsHandler_1 = require("./source/extenders/CookiePoliticsHandler");
|
|
7
|
+
Object.defineProperty(exports, "addTranslationForCookiePolitics", { enumerable: true, get: function () { return CookiePoliticsHandler_1.addTranslationForCookiePolitics; } });
|
|
8
|
+
var DynamicRelocator_1 = require("./source/extenders/DynamicRelocator");
|
|
9
|
+
var FHMLExtender_1 = require("./source/extenders/FHMLExtender");
|
|
10
|
+
var RelocatorRules_1 = require("./source/RelocatorRules");
|
|
11
|
+
var FHDPExtender = /** @class */ (function () {
|
|
12
|
+
function FHDPExtender(config) {
|
|
13
|
+
if (config.extendFHML) {
|
|
14
|
+
(0, FHMLExtender_1.extendFHML)();
|
|
15
|
+
}
|
|
16
|
+
if (config.mobileMaxWidth) {
|
|
17
|
+
(0, RelocatorRules_1.SET_BORDER_WINDOW_WIDHT)(config.mobileMaxWidth);
|
|
18
|
+
}
|
|
19
|
+
if (config.enableMobileNavbar) {
|
|
20
|
+
(0, RelocatorRules_1.initMobileNavbarRules)();
|
|
21
|
+
}
|
|
22
|
+
if (config.enableErrorBelowField) {
|
|
23
|
+
(0, RelocatorRules_1.initErrorBelowFieldRule)();
|
|
24
|
+
}
|
|
25
|
+
if (config.enableDynamicFooterPosition) {
|
|
26
|
+
(0, RelocatorRules_1.initDynamicFooterPositionRule)();
|
|
27
|
+
}
|
|
28
|
+
if (config.enableCurrentMenuElementHighlight) {
|
|
29
|
+
(0, RelocatorRules_1.initCurrentMenuElementHighlightRule)(config.currentMenuElementHighlighBottomBorderStyle || '3px solid #ffc107');
|
|
30
|
+
}
|
|
31
|
+
// if (config.enableFHMLinTooltips) {
|
|
32
|
+
// addFHMLToTooltipRule();
|
|
33
|
+
// }
|
|
34
|
+
// if (config.enableSessionCounterRules === undefined || config.enableSessionCounterRules === true) {
|
|
35
|
+
// excludeSessionCounterRule();
|
|
36
|
+
// }
|
|
37
|
+
if (config.enableCookieAlert) {
|
|
38
|
+
(0, CookiePoliticsHandler_1.rerenderCookieAlert)(config.i18n);
|
|
39
|
+
}
|
|
40
|
+
if (config.additionalRules && config.additionalRules.length > 0) {
|
|
41
|
+
for (var _i = 0, _a = config.additionalRules; _i < _a.length; _i++) {
|
|
42
|
+
var rule = _a[_i];
|
|
43
|
+
if (rule.type === 'exclusion') {
|
|
44
|
+
(0, DynamicRelocator_1.excludeRule)(rule.selector, rule.condition);
|
|
45
|
+
}
|
|
46
|
+
else if (rule.type === 'extension') {
|
|
47
|
+
(0, DynamicRelocator_1.addRule)(rule.selector, rule.condition, rule.ruleMutator);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return FHDPExtender;
|
|
53
|
+
}());
|
|
54
|
+
exports.FHDPExtender = FHDPExtender;
|
|
54
55
|
//# sourceMappingURL=Module.js.map
|
package/dist/Module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Module.js","sourceRoot":"","sources":["../Module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Module.js","sourceRoot":"","sources":["../Module.ts"],"names":[],"mappings":";;;AAAA,gEAA0D;AAmFpC,0FAnFd,wBAAS,OAmFc;AAlF/B,kFAA8G;AAkF7E,gHAlFzB,uDAA+B,OAkFyB;AAjFhE,wEAAyE;AACzE,gEAA0D;AAC1D,0DAQiC;AA8BjC;IACI,sBAAY,MAAsB;QAChC,IAAI,MAAM,CAAC,UAAU,EAAE;YACrB,IAAA,yBAAU,GAAE,CAAC;SACd;QACD,IAAI,MAAM,CAAC,cAAc,EAAE;YACzB,IAAA,wCAAuB,EAAC,MAAM,CAAC,cAAc,CAAC,CAAC;SAChD;QACD,IAAI,MAAM,CAAC,kBAAkB,EAAE;YAC7B,IAAA,sCAAqB,GAAE,CAAC;SACzB;QACD,IAAI,MAAM,CAAC,qBAAqB,EAAE;YAChC,IAAA,wCAAuB,GAAE,CAAC;SAC3B;QACD,IAAI,MAAM,CAAC,2BAA2B,EAAE;YACtC,IAAA,8CAA6B,GAAE,CAAA;SAChC;QACD,IAAG,MAAM,CAAC,iCAAiC,EAAE;YAC3C,IAAA,oDAAmC,EAAC,MAAM,CAAC,2CAA2C,IAAI,mBAAmB,CAAC,CAAC;SAChH;QACD,qCAAqC;QACrC,4BAA4B;QAC5B,IAAI;QACJ,qGAAqG;QACrG,iCAAiC;QACjC,IAAI;QACJ,IAAI,MAAM,CAAC,iBAAiB,EAAE;YAC5B,IAAA,2CAAmB,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;SAClC;QACD,IAAI,MAAM,CAAC,eAAe,IAAI,MAAM,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE;YAC/D,KAAmB,UAAsB,EAAtB,KAAA,MAAM,CAAC,eAAe,EAAtB,cAAsB,EAAtB,IAAsB,EAAE;gBAAtC,IAAM,IAAI,SAAA;gBACb,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW,EAAE;oBAC7B,IAAA,8BAAW,EAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;iBAC3C;qBAAM,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW,EAAE;oBACpC,IAAA,0BAAO,EAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;iBAC1D;aACF;SACF;IACH,CAAC;IACL,mBAAC;AAAD,CAAC,AAvCD,IAuCC;AAEO,oCAAY"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare let BORDER_WINDOW_WIDTH: number;
|
|
2
|
-
export declare const SET_BORDER_WINDOW_WIDHT: (width: number) => void;
|
|
3
|
-
export declare const initMobileNavbarRules: () => void;
|
|
4
|
-
export declare const initErrorBelowFieldRule: () => void;
|
|
5
|
-
export declare const initDynamicFooterPositionRule: () => void;
|
|
6
|
-
export declare const initCurrentMenuElementHighlightRule: (borderBottomStyle: string) => void;
|
|
7
|
-
export declare const initHomeAutoSelectRule: () => void;
|
|
1
|
+
export declare let BORDER_WINDOW_WIDTH: number;
|
|
2
|
+
export declare const SET_BORDER_WINDOW_WIDHT: (width: number) => void;
|
|
3
|
+
export declare const initMobileNavbarRules: () => void;
|
|
4
|
+
export declare const initErrorBelowFieldRule: () => void;
|
|
5
|
+
export declare const initDynamicFooterPositionRule: () => void;
|
|
6
|
+
export declare const initCurrentMenuElementHighlightRule: (borderBottomStyle: string) => void;
|
|
7
|
+
export declare const initHomeAutoSelectRule: () => void;
|