@seekora-ai/ui-sdk-angular 0.2.15 → 0.2.17
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/index.d.ts +0 -3
- package/dist/index.esm.js +2 -43
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -43
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -703,10 +703,6 @@ let SearchBarComponent = (() => {
|
|
|
703
703
|
*ngIf="showSuggestionsList"
|
|
704
704
|
[style]="getSuggestionsStyle()"
|
|
705
705
|
>
|
|
706
|
-
<div *ngIf="suggestionsLoading" [style]="loadingStyle">
|
|
707
|
-
Loading suggestions...
|
|
708
|
-
</div>
|
|
709
|
-
|
|
710
706
|
<div
|
|
711
707
|
*ngFor="let suggestion of displayedSuggestions; let i = index"
|
|
712
708
|
(click)="selectSuggestion(suggestion.query)"
|
|
@@ -715,7 +711,7 @@ let SearchBarComponent = (() => {
|
|
|
715
711
|
>
|
|
716
712
|
{{ suggestion.query }}
|
|
717
713
|
</div>
|
|
718
|
-
|
|
714
|
+
|
|
719
715
|
<div *ngIf="!suggestionsLoading && displayedSuggestions.length === 0 && query.length >= minQueryLength" [style]="emptyStyle">
|
|
720
716
|
No suggestions found
|
|
721
717
|
</div>
|
|
@@ -764,7 +760,7 @@ let SearchBarComponent = (() => {
|
|
|
764
760
|
this.searchContext = searchContext;
|
|
765
761
|
this.searchService = searchService;
|
|
766
762
|
this.suggestionsService = suggestionsService;
|
|
767
|
-
this.placeholder = __runInitializers(this, _placeholder_initializers, '
|
|
763
|
+
this.placeholder = __runInitializers(this, _placeholder_initializers, 'Powered by Seekora');
|
|
768
764
|
this.showSuggestions = (__runInitializers(this, _placeholder_extraInitializers), __runInitializers(this, _showSuggestions_initializers, true));
|
|
769
765
|
this.minQueryLength = (__runInitializers(this, _showSuggestions_extraInitializers), __runInitializers(this, _minQueryLength_initializers, 1));
|
|
770
766
|
this.maxSuggestions = (__runInitializers(this, _minQueryLength_extraInitializers), __runInitializers(this, _maxSuggestions_initializers, 10));
|
|
@@ -938,13 +934,6 @@ let SearchBarComponent = (() => {
|
|
|
938
934
|
zIndex: 1000,
|
|
939
935
|
};
|
|
940
936
|
}
|
|
941
|
-
get loadingStyle() {
|
|
942
|
-
const theme = this.searchContext.theme;
|
|
943
|
-
return {
|
|
944
|
-
padding: theme.spacing.medium,
|
|
945
|
-
textAlign: 'center',
|
|
946
|
-
};
|
|
947
|
-
}
|
|
948
937
|
get emptyStyle() {
|
|
949
938
|
const theme = this.searchContext.theme;
|
|
950
939
|
return {
|
|
@@ -1004,10 +993,6 @@ let SearchResultsComponent = (() => {
|
|
|
1004
993
|
let _classDecorators = [core.Component({
|
|
1005
994
|
selector: 'seekora-search-results',
|
|
1006
995
|
template: `
|
|
1007
|
-
<div *ngIf="loading" [style]="containerStyle">
|
|
1008
|
-
<div [style]="loadingStyle">Loading results...</div>
|
|
1009
|
-
</div>
|
|
1010
|
-
|
|
1011
996
|
<div *ngIf="error && !loading" [style]="containerStyle">
|
|
1012
997
|
<div [style]="errorStyle">Error: {{ error.message }}</div>
|
|
1013
998
|
</div>
|
|
@@ -1124,14 +1109,6 @@ let SearchResultsComponent = (() => {
|
|
|
1124
1109
|
get containerStyle() {
|
|
1125
1110
|
return {};
|
|
1126
1111
|
}
|
|
1127
|
-
get loadingStyle() {
|
|
1128
|
-
const theme = this.searchContext.theme;
|
|
1129
|
-
return {
|
|
1130
|
-
padding: theme.spacing.large,
|
|
1131
|
-
textAlign: 'center',
|
|
1132
|
-
color: theme.colors.text,
|
|
1133
|
-
};
|
|
1134
|
-
}
|
|
1135
1112
|
get errorStyle() {
|
|
1136
1113
|
const theme = this.searchContext.theme;
|
|
1137
1114
|
return {
|
|
@@ -1268,14 +1245,6 @@ let QuerySuggestionsComponent = (() => {
|
|
|
1268
1245
|
{{ title }}
|
|
1269
1246
|
</div>
|
|
1270
1247
|
|
|
1271
|
-
<div *ngIf="suggestionsLoading">
|
|
1272
|
-
<ng-content select="[loading]">
|
|
1273
|
-
<div [style]="getLoadingStyle()">
|
|
1274
|
-
Loading suggestions...
|
|
1275
|
-
</div>
|
|
1276
|
-
</ng-content>
|
|
1277
|
-
</div>
|
|
1278
|
-
|
|
1279
1248
|
<div *ngIf="!suggestionsLoading && (error || displayedSuggestions.length === 0)">
|
|
1280
1249
|
<ng-content select="[empty]">
|
|
1281
1250
|
<div [style]="getEmptyStyle()">
|
|
@@ -1424,13 +1393,6 @@ let QuerySuggestionsComponent = (() => {
|
|
|
1424
1393
|
color: this.theme.colors.text,
|
|
1425
1394
|
};
|
|
1426
1395
|
}
|
|
1427
|
-
getLoadingStyle() {
|
|
1428
|
-
return {
|
|
1429
|
-
padding: this.theme.spacing.medium,
|
|
1430
|
-
textAlign: 'center',
|
|
1431
|
-
color: this.theme.colors.text,
|
|
1432
|
-
};
|
|
1433
|
-
}
|
|
1434
1396
|
getEmptyStyle() {
|
|
1435
1397
|
return {
|
|
1436
1398
|
padding: this.theme.spacing.medium,
|
|
@@ -1497,9 +1459,6 @@ let StatsComponent = (() => {
|
|
|
1497
1459
|
let _classDecorators = [core.Component({
|
|
1498
1460
|
selector: 'seekora-stats',
|
|
1499
1461
|
template: `
|
|
1500
|
-
<div *ngIf="loading" [style]="containerStyle">
|
|
1501
|
-
<span [style]="textStyle">Loading...</span>
|
|
1502
|
-
</div>
|
|
1503
1462
|
<div *ngIf="!loading && hasResults" [style]="containerStyle">
|
|
1504
1463
|
<span [style]="textStyle">
|
|
1505
1464
|
{{ resultsText }}
|