Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions power-select-infinity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
"@babel/preset-typescript": "^7.17.12",
"@babel/runtime": "^7.16.7",
"@embroider/addon-dev": "^1.7.1",
"@gavant/glint-template-types": "^0.2.6",
"@glint/core": "^0.9.2",
"@glint/environment-ember-loose": "^0.9.2",
"@gavant/glint-template-types": "^0.3.3",
"@glint/core": "^0.9.7",
"@glint/environment-ember-loose": "^0.9.7",
"@html-next/vertical-collection": "3.0.0",
"@rollup/plugin-babel": "^5.3.1",
"@types/ember-data": "^4.4.6",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Component from '@glimmer/component';

import type { BeforeOptionsSignature } from '@gavant/glint-template-types/types/ember-power-select/components/power-select/before-options';
import type { BeforeOptionsSignature } from 'ember-power-select/components/power-select/before-options';

type Args<T> = BeforeOptionsSignature<T>['Args'];
type PowerSelectInfinityCreateMessageArgs<T> = Args<T>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import { tracked } from '@glimmer/tracking';
import { didCancel, task } from 'ember-concurrency';
// eslint-disable-next-line ember/use-ember-data-rfc-395-imports
import ModelRegistry from 'ember-data/types/registries/model';

import { Select } from '@gavant/glint-template-types/types/ember-power-select/components/power-select';
import { Select } from 'ember-power-select/components/power-select';

import type { PowerSelectInfinityArgs } from '../';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';

import { didCancel, task, TaskCancelation, timeout } from 'ember-concurrency';

import { PowerSelectArgs, Select } from '@gavant/glint-template-types/types/ember-power-select/components/power-select';
import { PowerSelectArgs, Select } from 'ember-power-select/components/power-select';

import { ensureSafeComponent } from '@embroider/util';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Ignore import
import PowerSelectOptions from 'ember-power-select/components/power-select/options';

export default class PowerSelectInfinityOptions extends PowerSelectOptions {
export default class PowerSelectInfinityOptions<T> extends PowerSelectOptions<T> {
get estimateHeight() {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Ignore import
return this.args.extra.estimateHeight ?? 30;
}

get renderAll() {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Ignore import
return this.args.extra.renderAll ?? true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ export default class PowerSelectInfinityTriggerSearch<T> extends Component<
@action
onFocus(select: Select) {
scheduleOnce('afterRender', null, select.actions.search, '');
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
scheduleOnce('afterRender', null, select.actions.open);
}

Expand Down Expand Up @@ -147,6 +149,8 @@ export default class PowerSelectInfinityTriggerSearch<T> extends Component<
onBlur(select: Select, event: FocusEvent) {
if (this.args.extra?.clearSearchOnBlur) {
scheduleOnce('afterRender', null, select.actions.search, '');
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
scheduleOnce('afterRender', null, select.actions.open);
}
this.args.onBlur?.(select, event);
Expand Down
8 changes: 3 additions & 5 deletions power-select-infinity/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,13 @@
},
"include": [
"src/**/*",
"types/**/*"
"types/**/*",
"../node_modules/@gavant/glint-template-types/types/ember-power-select/**/*"
],
"exclude": [
"dist/**/*"
],
"glint": {
"environment": "ember-loose",
"transform": {
"include": []
}
"environment": "ember-loose"
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

37 changes: 0 additions & 37 deletions power-select-infinity/types/ember-power-select/index.d.ts

This file was deleted.

This file was deleted.

Loading