Open Windvis opened 1 year ago
I think we should probably just inline the ember-data-table components here, and convert them to .gts. The way we're extending the base addon components is a bad practise anyways, and this will give us more control. It would also allow us to drop the dependency.
We should take a look at all the exposed data table components and deprecate the ones that we don't want to be used as a standalone thing. We can then remove the app-reexports in the next major.
Official support for this in Ember is starting to get better and better so it would be nice if we can support it as a first-class citizen as well.
Some options:
I think converting to .gts/.ts makes the most sense.
We might need to use this tool to strip some reference comments when publishing, since those cause issues in consuming apps.
Files we need to convert:
Components
- [x] `Helpers (Done)
- [x] `{{link-to-models}}` (private, but we still need types internally)Modifiers (Done)
- [x] `{{au-date-input}}` - [x] `{{au-inputmask}}` - [x] `{{floating-ui}}` (private, but we still need types internally)Services
- [ ] `Toaster` (Partial implementation in #490 but it's not working fully yet)Conversion guide
Components
template-registry.ts
file, this allows glint to type check the loose-mode versionloose-mode-test.ts
file. This verifies that the component is registered in the template registry.npm run lint:types
to validate the typesHelpers & Modifiers
template-registry.ts
file (if the helper isn't private), this allows glint to type check the loose-mode versionloose-mode-test.ts
file (if the helper isn't private). This verifies that the helper/modifier is registered in the template registry.npm run lint:types
to validate the typesServices
npm run lint:types
to validate the types