@coveops/abi 0.9.0 → 1.0.1
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/abi/abi.css +1 -1
- package/dist/abi/abi.esm.js +1 -1
- package/dist/abi/index.esm.js +1 -1
- package/dist/abi/{p-0b2d2c7b.entry.js → p-03b6e905.entry.js} +1 -1
- package/dist/abi/p-1fd19815.entry.js +1 -0
- package/dist/abi/{p-9f80f982.entry.js → p-3303b27f.entry.js} +1 -1
- package/dist/abi/p-50003f11.entry.js +1 -0
- package/dist/abi/p-d6d34d34.js +2 -0
- package/dist/abi/p-dd8b0f76.entry.js +1 -0
- package/dist/abi/p-ddacae1a.js +49 -0
- package/dist/bundle/index.css +1 -1
- package/dist/bundle/index.html +64 -57
- package/dist/bundle/index.js +129 -54
- package/dist/cjs/abi.cjs.js +2 -2
- package/dist/cjs/faq-popup-component.cjs.entry.js +3 -3
- package/dist/cjs/{index-87155b50.js → index-355878fc.js} +55 -0
- package/dist/cjs/{index-03be0841.js → index-8f6652e1.js} +4 -1
- package/dist/cjs/index.cjs.js +27 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/results-manager.cjs.entry.js +12 -12
- package/dist/cjs/sample-component.cjs.entry.js +2 -2
- package/dist/cjs/standalone-searchbox-listener.cjs.entry.js +43 -0
- package/dist/cjs/strip-html-component.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/faq-popup-component/faq-popup-component.css +6 -0
- package/dist/collection/components/results-manager/results-manager.js +2 -0
- package/dist/collection/components/standalone-searchbox-listener/standalone-searchbox-listener.css +1 -0
- package/dist/collection/components/standalone-searchbox-listener/standalone-searchbox-listener.js +45 -0
- package/dist/collection/index.js +26 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +123 -17
- package/dist/esm/abi.js +2 -2
- package/dist/esm/faq-popup-component.entry.js +3 -3
- package/dist/esm/{index-99665e7c.js → index-3c594d24.js} +55 -0
- package/dist/esm/{index-42e9a708.js → index-886ab6f0.js} +2 -2
- package/dist/esm/index.js +27 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/results-manager.entry.js +12 -12
- package/dist/esm/sample-component.entry.js +2 -2
- package/dist/esm/standalone-searchbox-listener.entry.js +39 -0
- package/dist/esm/strip-html-component.entry.js +1 -1
- package/dist/types/components/standalone-searchbox-listener/standalone-searchbox-listener.d.ts +7 -0
- package/dist/types/components.d.ts +13 -0
- package/package.json +1 -1
- package/src/components/faq-popup-component/faq-popup-component.css +6 -0
- package/src/components/results-manager/AppTemplate.html +1 -1
- package/src/components/results-manager/DocumentsTemplate.html +4 -1
- package/src/components/results-manager/ELearningTemplate.html +1 -1
- package/src/components/results-manager/FAQTemplate.html +6 -2
- package/src/components/results-manager/KATemplate.html +7 -4
- package/src/components/results-manager/MediaTemplate.html +35 -8
- package/src/components/results-manager/PeopleTemplate.html +9 -1
- package/src/components/results-manager/QuickLinksTemplate.html +2 -2
- package/src/components/results-manager/SitePagesTemplate.html +11 -6
- package/src/components/results-manager/results-manager.tsx +4 -0
- package/src/components/results-manager/template-1.html +37 -12
- package/src/components/standalone-searchbox-listener/standalone-searchbox-listener.css +1 -0
- package/src/components/standalone-searchbox-listener/standalone-searchbox-listener.tsx +52 -0
- package/src/components.d.ts +13 -0
- package/src/index.ts +29 -1
- package/src/pages/index.html +64 -57
- package/src/pages/recs.html +59 -0
- package/src/style/index.css +8 -1
- package/dist/abi/p-0f4a7ce9.js +0 -49
- package/dist/abi/p-d46927d1.entry.js +0 -1
- package/dist/abi/p-e7416b40.entry.js +0 -1
- package/dist/abi/p-facfefe1.js +0 -2
package/dist/esm/abi.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-3c594d24.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Stencil Client Patch Browser v2.17.3 | MIT Licensed | https://stenciljs.com
|
|
@@ -13,5 +13,5 @@ const patchBrowser = () => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["faq-popup-component",[[1,"faq-popup-component",{"result":[32]}]]],["results-manager",[[0,"results-manager"]]],["sample-component",[[1,"sample-component",{"pagerState":[32],"statusState":[32]}]]],["strip-html-component",[[1,"strip-html-component",{"result":[32]}]]]], options);
|
|
16
|
+
return bootstrapLazy([["faq-popup-component",[[1,"faq-popup-component",{"result":[32]}]]],["results-manager",[[0,"results-manager"]]],["sample-component",[[1,"sample-component",{"pagerState":[32],"statusState":[32]}]]],["standalone-searchbox-listener",[[1,"standalone-searchbox-listener",null,[[8,"header/searchbox/query","handleStandaloneSearchbox"]]]]],["strip-html-component",[[1,"strip-html-component",{"result":[32]}]]]], options);
|
|
17
17
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement, H as Host } from './index-
|
|
2
|
-
import { i as initializeBindings, F as Fde } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement, H as Host } from './index-3c594d24.js';
|
|
2
|
+
import { i as initializeBindings, F as Fde } from './index-886ab6f0.js';
|
|
3
3
|
import { r as resultContext } from './result-template-decorators-881a4c8e-ed85ad21.js';
|
|
4
4
|
import './headless.esm-085e70ed-c4dfb380.js';
|
|
5
5
|
|
|
6
|
-
const faqPopupComponentCss = "b{color:var(--atomic-primary)}";
|
|
6
|
+
const faqPopupComponentCss = "b{color:var(--atomic-primary)}:host{color:#CAA144 !important;font-size:1.7rem !important;max-height:unset !important;line-height:normal !important}";
|
|
7
7
|
|
|
8
8
|
const FaqPopupComponent = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -25,6 +25,40 @@ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
|
25
25
|
return false;
|
|
26
26
|
})()
|
|
27
27
|
;
|
|
28
|
+
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
29
|
+
if (listeners) {
|
|
30
|
+
listeners.map(([flags, name, method]) => {
|
|
31
|
+
const target = getHostListenerTarget(elm, flags) ;
|
|
32
|
+
const handler = hostListenerProxy(hostRef, method);
|
|
33
|
+
const opts = hostListenerOpts(flags);
|
|
34
|
+
plt.ael(target, name, handler, opts);
|
|
35
|
+
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
40
|
+
try {
|
|
41
|
+
{
|
|
42
|
+
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
43
|
+
// instance is ready, let's call it's member method for this event
|
|
44
|
+
hostRef.$lazyInstance$[methodName](ev);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
catch (e) {
|
|
52
|
+
consoleError(e);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const getHostListenerTarget = (elm, flags) => {
|
|
56
|
+
if (flags & 8 /* TargetWindow */)
|
|
57
|
+
return win;
|
|
58
|
+
return elm;
|
|
59
|
+
};
|
|
60
|
+
// prettier-ignore
|
|
61
|
+
const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
28
62
|
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
29
63
|
const createTime = (fnName, tagName = '') => {
|
|
30
64
|
{
|
|
@@ -600,6 +634,13 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
600
634
|
const instance = hostRef.$lazyInstance$ ;
|
|
601
635
|
let promise;
|
|
602
636
|
if (isInitialLoad) {
|
|
637
|
+
{
|
|
638
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
639
|
+
if (hostRef.$queuedListeners$) {
|
|
640
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
641
|
+
hostRef.$queuedListeners$ = null;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
603
644
|
{
|
|
604
645
|
promise = safeCall(instance, 'componentWillLoad');
|
|
605
646
|
}
|
|
@@ -929,6 +970,10 @@ const connectedCallback = (elm) => {
|
|
|
929
970
|
}
|
|
930
971
|
}
|
|
931
972
|
else {
|
|
973
|
+
// not the first time this has connected
|
|
974
|
+
// reattach any event listeners to the host
|
|
975
|
+
// since they would have been removed when disconnected
|
|
976
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
932
977
|
// fire off connectedCallback() on component instance
|
|
933
978
|
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
934
979
|
}
|
|
@@ -939,6 +984,12 @@ const disconnectedCallback = (elm) => {
|
|
|
939
984
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
940
985
|
const hostRef = getHostRef(elm);
|
|
941
986
|
const instance = hostRef.$lazyInstance$ ;
|
|
987
|
+
{
|
|
988
|
+
if (hostRef.$rmListeners$) {
|
|
989
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
990
|
+
hostRef.$rmListeners$ = undefined;
|
|
991
|
+
}
|
|
992
|
+
}
|
|
942
993
|
{
|
|
943
994
|
safeCall(instance, 'disconnectedCallback');
|
|
944
995
|
}
|
|
@@ -968,6 +1019,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
968
1019
|
{
|
|
969
1020
|
cmpMeta.$members$ = compactMeta[2];
|
|
970
1021
|
}
|
|
1022
|
+
{
|
|
1023
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1024
|
+
}
|
|
971
1025
|
const tagName = cmpMeta.$tagName$;
|
|
972
1026
|
const HostElement = class extends HTMLElement {
|
|
973
1027
|
// StencilLazyHost
|
|
@@ -1048,6 +1102,7 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1048
1102
|
elm['s-p'] = [];
|
|
1049
1103
|
elm['s-rc'] = [];
|
|
1050
1104
|
}
|
|
1105
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1051
1106
|
return hostRefs.set(elm, hostRef);
|
|
1052
1107
|
};
|
|
1053
1108
|
const isMemberInElement = (elm, memberName) => memberName in elm;
|