@studyportals/inlinesearch-interfaces 2.0.0-0 → 2.0.0-2
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.
|
@@ -2,6 +2,7 @@ export declare enum InlineSearchCommands {
|
|
|
2
2
|
INLINE_SEARCH_READY_EVENT = "InlineSearch:ReadyEvent",
|
|
3
3
|
INLINE_SEARCH_APP_RENDER_EVENT = "InlineSearch:AppRenderEvent",
|
|
4
4
|
INLINE_SEARCH_APP_USER_INPUT_EVENT = "InlineSearch:AppUserInputEvent",
|
|
5
|
+
INLINE_SEARCH_APP_CLEAR_INPUT_EVENT = "InlineSearch:AppClearInputEvent",
|
|
5
6
|
INLINE_SEARCH_SUGGESTION_CLICK_EVENT = "InlineSearch:SuggestionClickEvent",
|
|
6
7
|
INLINE_SEARCH_SEND_EVENT = "InlineSearch:SendEvent",
|
|
7
8
|
INLINE_SEARCH_APP_USER_KEYBOARD_EVENT = "InlineSearch:AppUserKeyboardEvent"
|
|
@@ -6,6 +6,7 @@ var InlineSearchCommands;
|
|
|
6
6
|
InlineSearchCommands["INLINE_SEARCH_READY_EVENT"] = "InlineSearch:ReadyEvent";
|
|
7
7
|
InlineSearchCommands["INLINE_SEARCH_APP_RENDER_EVENT"] = "InlineSearch:AppRenderEvent";
|
|
8
8
|
InlineSearchCommands["INLINE_SEARCH_APP_USER_INPUT_EVENT"] = "InlineSearch:AppUserInputEvent";
|
|
9
|
+
InlineSearchCommands["INLINE_SEARCH_APP_CLEAR_INPUT_EVENT"] = "InlineSearch:AppClearInputEvent";
|
|
9
10
|
InlineSearchCommands["INLINE_SEARCH_SUGGESTION_CLICK_EVENT"] = "InlineSearch:SuggestionClickEvent";
|
|
10
11
|
InlineSearchCommands["INLINE_SEARCH_SEND_EVENT"] = "InlineSearch:SendEvent";
|
|
11
12
|
InlineSearchCommands["INLINE_SEARCH_APP_USER_KEYBOARD_EVENT"] = "InlineSearch:AppUserKeyboardEvent";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IEvent } from '@studyportals/event-aggregation-service-interface';
|
|
2
|
+
import { InlineSearchCommands } from '../enums';
|
|
3
|
+
export declare class InlineSearchAppClearInput implements IEvent {
|
|
4
|
+
static readonly EventType = InlineSearchCommands.INLINE_SEARCH_APP_CLEAR_INPUT_EVENT;
|
|
5
|
+
readonly timestamp: Date;
|
|
6
|
+
readonly eventType = InlineSearchCommands.INLINE_SEARCH_APP_CLEAR_INPUT_EVENT;
|
|
7
|
+
static is(event: IEvent): event is InlineSearchAppClearInput;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InlineSearchAppClearInput = void 0;
|
|
4
|
+
const enums_1 = require("../enums");
|
|
5
|
+
class InlineSearchAppClearInput {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.timestamp = new Date();
|
|
8
|
+
this.eventType = InlineSearchAppClearInput.EventType;
|
|
9
|
+
}
|
|
10
|
+
static is(event) {
|
|
11
|
+
return event.eventType === InlineSearchAppClearInput.EventType;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.InlineSearchAppClearInput = InlineSearchAppClearInput;
|
|
15
|
+
InlineSearchAppClearInput.EventType = enums_1.InlineSearchCommands.INLINE_SEARCH_APP_CLEAR_INPUT_EVENT;
|
package/events/index.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ export * from './InlineSearchAppUserInputEvent';
|
|
|
3
3
|
export * from './InlineSearchReadyEvent';
|
|
4
4
|
export * from './InlineSearchSuggestionClickEvent';
|
|
5
5
|
export * from './InlineSearchAppUserKeyboardEvent';
|
|
6
|
+
export * from './InlineSearchAppClearInput';
|
|
6
7
|
export * from './InlineSearchSendEvent';
|
package/events/index.js
CHANGED
|
@@ -19,4 +19,5 @@ __exportStar(require("./InlineSearchAppUserInputEvent"), exports);
|
|
|
19
19
|
__exportStar(require("./InlineSearchReadyEvent"), exports);
|
|
20
20
|
__exportStar(require("./InlineSearchSuggestionClickEvent"), exports);
|
|
21
21
|
__exportStar(require("./InlineSearchAppUserKeyboardEvent"), exports);
|
|
22
|
+
__exportStar(require("./InlineSearchAppClearInput"), exports);
|
|
22
23
|
__exportStar(require("./InlineSearchSendEvent"), exports);
|