otimus-library 0.4.92 → 0.4.93

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.
@@ -1209,8 +1209,6 @@ class OcAutocompleteComponent {
1209
1209
  this.ocOptionNotFound = new EventEmitter();
1210
1210
  this.ocClick = new EventEmitter();
1211
1211
  this.ocHiddenChipsCountChange = new EventEmitter();
1212
- this.hasSuffix = false;
1213
- this.hasPrefix = false;
1214
1212
  this.selectedValues = [];
1215
1213
  this.hiddenChipsCount = 0;
1216
1214
  this._autoVisibleChipCount = null;
@@ -1253,6 +1251,12 @@ class OcAutocompleteComponent {
1253
1251
  get ocStyle() {
1254
1252
  return this._ocStyle || this.styleThemeService.getStyleTheme() || 'otimus';
1255
1253
  }
1254
+ get hasPrefix() {
1255
+ return !!this.ocPrefix;
1256
+ }
1257
+ get hasSuffix() {
1258
+ return !!this.ocSuffix || !!this.ocHasDeleteButton;
1259
+ }
1256
1260
  static { this.MIN_TYPING_SPACE_PX = 100; }
1257
1261
  static { this.MORE_CHIP_RESERVE_PX = 50; }
1258
1262
  static { this.CONTAINER_HORIZONTAL_PADDING_PX = 28; }
@@ -1320,12 +1324,6 @@ class OcAutocompleteComponent {
1320
1324
  return this.ocMaxWidth || '100%';
1321
1325
  }
1322
1326
  ngOnChanges(changes) {
1323
- if (this.ocPrefix) {
1324
- this.hasPrefix = true;
1325
- }
1326
- if (this.ocSuffix) {
1327
- this.hasSuffix = true;
1328
- }
1329
1327
  this.formatOcValueType();
1330
1328
  this.loadOptions();
1331
1329
  // Sync ocLoading to dropdown portal when it changes
@@ -1344,15 +1342,6 @@ class OcAutocompleteComponent {
1344
1342
  this.ocValue = null;
1345
1343
  }
1346
1344
  }
1347
- ngAfterContentInit() {
1348
- // Set prefix/suffix flags after content has been initialized
1349
- if (this.ocPrefix) {
1350
- this.hasPrefix = true;
1351
- }
1352
- if (this.ocSuffix) {
1353
- this.hasSuffix = true;
1354
- }
1355
- }
1356
1345
  ngAfterViewInit() {
1357
1346
  this.formatOcValueType();
1358
1347
  this.loadOptions();