@seekora-ai/ui-sdk-angular 0.2.14 → 0.2.16

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 CHANGED
@@ -165,7 +165,6 @@ declare class SearchBarComponent implements OnInit, OnDestroy {
165
165
  performSearch(): void;
166
166
  getInputStyle(): Record<string, any>;
167
167
  getSuggestionsStyle(): Record<string, any>;
168
- get loadingStyle(): Record<string, any>;
169
168
  get emptyStyle(): Record<string, any>;
170
169
  getSuggestionStyle(index: number): Record<string, any>;
171
170
  }
@@ -195,7 +194,6 @@ declare class SearchResultsComponent implements OnInit, OnDestroy {
195
194
  extractedFields(item: any): ResultItem;
196
195
  onResultClick(result: any, index: number): void;
197
196
  get containerStyle(): Record<string, any>;
198
- get loadingStyle(): Record<string, any>;
199
197
  get errorStyle(): Record<string, any>;
200
198
  get emptyStyle(): Record<string, any>;
201
199
  getContainerStyle(): Record<string, any>;
@@ -234,7 +232,6 @@ declare class QuerySuggestionsComponent implements OnInit, OnDestroy, OnChanges
234
232
  get theme(): _seekora_ai_ui_sdk_types.Theme;
235
233
  getContainerStyle(): Record<string, any>;
236
234
  getTitleStyle(): Record<string, any>;
237
- getLoadingStyle(): Record<string, any>;
238
235
  getEmptyStyle(): Record<string, any>;
239
236
  getSuggestionStyle(index: number): Record<string, any>;
240
237
  getCountStyle(): Record<string, any>;
package/dist/index.esm.js CHANGED
@@ -702,10 +702,6 @@ let SearchBarComponent = (() => {
702
702
  *ngIf="showSuggestionsList"
703
703
  [style]="getSuggestionsStyle()"
704
704
  >
705
- <div *ngIf="suggestionsLoading" [style]="loadingStyle">
706
- Loading suggestions...
707
- </div>
708
-
709
705
  <div
710
706
  *ngFor="let suggestion of displayedSuggestions; let i = index"
711
707
  (click)="selectSuggestion(suggestion.query)"
@@ -714,7 +710,7 @@ let SearchBarComponent = (() => {
714
710
  >
715
711
  {{ suggestion.query }}
716
712
  </div>
717
-
713
+
718
714
  <div *ngIf="!suggestionsLoading && displayedSuggestions.length === 0 && query.length >= minQueryLength" [style]="emptyStyle">
719
715
  No suggestions found
720
716
  </div>
@@ -763,7 +759,7 @@ let SearchBarComponent = (() => {
763
759
  this.searchContext = searchContext;
764
760
  this.searchService = searchService;
765
761
  this.suggestionsService = suggestionsService;
766
- this.placeholder = __runInitializers(this, _placeholder_initializers, 'Search...');
762
+ this.placeholder = __runInitializers(this, _placeholder_initializers, 'Powered by Seekora');
767
763
  this.showSuggestions = (__runInitializers(this, _placeholder_extraInitializers), __runInitializers(this, _showSuggestions_initializers, true));
768
764
  this.minQueryLength = (__runInitializers(this, _showSuggestions_extraInitializers), __runInitializers(this, _minQueryLength_initializers, 1));
769
765
  this.maxSuggestions = (__runInitializers(this, _minQueryLength_extraInitializers), __runInitializers(this, _maxSuggestions_initializers, 10));
@@ -937,13 +933,6 @@ let SearchBarComponent = (() => {
937
933
  zIndex: 1000,
938
934
  };
939
935
  }
940
- get loadingStyle() {
941
- const theme = this.searchContext.theme;
942
- return {
943
- padding: theme.spacing.medium,
944
- textAlign: 'center',
945
- };
946
- }
947
936
  get emptyStyle() {
948
937
  const theme = this.searchContext.theme;
949
938
  return {
@@ -1003,10 +992,6 @@ let SearchResultsComponent = (() => {
1003
992
  let _classDecorators = [Component({
1004
993
  selector: 'seekora-search-results',
1005
994
  template: `
1006
- <div *ngIf="loading" [style]="containerStyle">
1007
- <div [style]="loadingStyle">Loading results...</div>
1008
- </div>
1009
-
1010
995
  <div *ngIf="error && !loading" [style]="containerStyle">
1011
996
  <div [style]="errorStyle">Error: {{ error.message }}</div>
1012
997
  </div>
@@ -1123,14 +1108,6 @@ let SearchResultsComponent = (() => {
1123
1108
  get containerStyle() {
1124
1109
  return {};
1125
1110
  }
1126
- get loadingStyle() {
1127
- const theme = this.searchContext.theme;
1128
- return {
1129
- padding: theme.spacing.large,
1130
- textAlign: 'center',
1131
- color: theme.colors.text,
1132
- };
1133
- }
1134
1111
  get errorStyle() {
1135
1112
  const theme = this.searchContext.theme;
1136
1113
  return {
@@ -1267,14 +1244,6 @@ let QuerySuggestionsComponent = (() => {
1267
1244
  {{ title }}
1268
1245
  </div>
1269
1246
 
1270
- <div *ngIf="suggestionsLoading">
1271
- <ng-content select="[loading]">
1272
- <div [style]="getLoadingStyle()">
1273
- Loading suggestions...
1274
- </div>
1275
- </ng-content>
1276
- </div>
1277
-
1278
1247
  <div *ngIf="!suggestionsLoading && (error || displayedSuggestions.length === 0)">
1279
1248
  <ng-content select="[empty]">
1280
1249
  <div [style]="getEmptyStyle()">
@@ -1423,13 +1392,6 @@ let QuerySuggestionsComponent = (() => {
1423
1392
  color: this.theme.colors.text,
1424
1393
  };
1425
1394
  }
1426
- getLoadingStyle() {
1427
- return {
1428
- padding: this.theme.spacing.medium,
1429
- textAlign: 'center',
1430
- color: this.theme.colors.text,
1431
- };
1432
- }
1433
1395
  getEmptyStyle() {
1434
1396
  return {
1435
1397
  padding: this.theme.spacing.medium,
@@ -1496,9 +1458,6 @@ let StatsComponent = (() => {
1496
1458
  let _classDecorators = [Component({
1497
1459
  selector: 'seekora-stats',
1498
1460
  template: `
1499
- <div *ngIf="loading" [style]="containerStyle">
1500
- <span [style]="textStyle">Loading...</span>
1501
- </div>
1502
1461
  <div *ngIf="!loading && hasResults" [style]="containerStyle">
1503
1462
  <span [style]="textStyle">
1504
1463
  {{ resultsText }}