Wykres commitów

55 Commity (83fe1ff28e88b1982b528161bf8215d61b4f4592)

Autor SHA1 Wiadomość Data
Konnor Rogers 7891dbef93
Add missing extensions (#1770)
* fix(typescript): add missing extension to imports in typescript

This is required for the types to work with the new
`--module-resolution=node16`.

The list of places to fix was obtained by a crude script:

```sh
rg -g'**/*.ts' -g'!**/*.test.ts' ' from\s+.\.' | rg -v '\.js'
```

References #1765

* add missing extensions

* revert tsconfig

* prettier

* fix test files for NodeNext

* prettier

* changelog entry

* prettier

* prettier

* prettier

---------

Co-authored-by: Andrey Lushnikov <aslushnikov@gmail.com>
2023-12-08 12:30:31 -05:00
Cory LaViska 1383ea3fe8
React import paths (#1507)
* fix react imports in examples

* move types to definition files

* update changelog

* update changelog
2023-08-11 13:09:44 -04:00
Konnor Rogers 3a61d20d93
Create non-auto-registering routes (#1450)
* initial attempt at not auto defining

* add files with -

* continued work on removing auto-define

* fix component definitions

* update with new tag stuff

* fix lots of things

* fix improper scoped elements

* working through side effects

* continued react wrapper work

* update changelog

* formatting

* fixes

* update changelog

* lint / formatting

* fix version injection

* fix version injection, work on test

* fix version injection, work on test

* fix merge conflicts

* fix jsdoc null issue

* fix templates

* use exports

* working on tests

* working on registration mocking

* fix customElements test

* linting

* fix some test stuff

* clean up test

* clean up comment

* rename scopedElements to dependencies

* linting / formatting

* linting / formatting

* mark all packages external and still bundle

* set bundle false

* set bundle true

* dont minify

* fix merge conflicts

* use built shoelace-element

* fix lint errors

* prettier

* appease eslint

* appease eslint gods

* appease eslint gods

* appease eslint gods

* appease eslint gods

* add shoelace-autoloader

* move it all into 1 function

* add exportmaps note

* prettier

* add jsdelivr entrypoint

* read as utf8

* update docs with .component.js importS

* prettier
2023-07-24 13:00:07 -04:00
Konnor Rogers 60d7f688eb
fix extensionless imports (#1394) 2023-06-22 10:56:24 -04:00
konnorrogers c6cc7b6983 prettier 2023-06-13 15:43:21 -04:00
konnorrogers 0e869ec18d fix the tests 2023-06-13 15:40:04 -04:00
dhellgartner 38a9e98d9b
Tab group tests (#1128)
* remove duplicate test

* Add tests for sl-tab-group -- initial round of tests

* use individual fixtures for each test

* extract mocks + utility functions in external files

* remove unnecessary internals of intersection observer from the mock

* added first test on scroll buttons

* add scrolling tests

* remove resize observer mock

Resize observer is triggered but waiting for element
to be updated is not enough. You need to free the main thread
with the test for some time

* Also removed intersection observer mock

By waiting long enough for the things to happen automatically

* Fix problems with resize observer

These problems appeared after npm ci but (according
to the sources linked in the comments) unproblematic

* Handle merge request comments

* replace custom wait function with corresponding function
 from openwc/testing
* Extracted waitForScrollingToEnd and isElementVisibleFromScrolling into
dedicated files to be reused
* Improve queryByTestId --> make it usable for more complex values
* Add js docs

* run lint fix

* Added tests for selecting a tab by click

* added further tests for tab group selection

* use Promise<void> instead of Promise<any>

to avoid eslint errors

---------

Co-authored-by: Dominikus Hellgartner <dominikus.hellgartner@gmail.com>
2023-01-27 09:55:28 -05:00
Cory LaViska f86578a213 fix tab panel display 2023-01-13 15:57:02 -05:00
Cory LaViska 3c2f5ec48e sort this, eslint 2023-01-13 15:43:55 -05:00
Cory LaViska edc9e69f30 add @documentation tag 2023-01-12 10:26:25 -05:00
Cory LaViska 7885572ebd jsdoc exported functions 2022-12-06 11:48:57 -05:00
Cory LaViska f2efa73e20 improve documentation 2022-12-06 11:18:14 -05:00
Cory LaViska 80a16ee42a remove slot wrappers 2022-12-02 17:03:59 -05:00
Cory LaViska d79d7da299 various improvements in forced-colors mode 2022-11-14 16:12:24 -05:00
Cory LaViska bfa320c5b5 fix a11y test 2022-11-02 08:43:52 -05:00
Manuel Schmidt 8121faa1d4
Enrich components `@summary` with description from docs (#962)
* keep header styles with repositioned description text

* `animated-image` move description to component

* code style

* `avatar` add summary from docs

* `badge` add summary from docs

* `breadcrumb` add summary from docs

* `button` add summary from docs

* lead sentence is now part of the header

* `button-group` add summary from docs

* `card` add summary from docs

* `checkbox` add summary from docs

* `color-picker` add summary from docs

* `details` add summary from docs

* `dialog` add summary from docs

* `divider` add summary from docs

* `drawer` add summary from docs

* `dropdown` add summary from docs

* `format-bytes` add summary from docs

* `format-date` add summary from docs

* `format-number` add summary from docs

* `icon` add summary from docs

* `icon-button` add summary from docs

* `image-comparer` add summary from docs

* `include` add summary from docs

* `input` add summary from docs

* `menu` add summary from docs

* `menu-item` add summary from docs

* `menu-label` add summary from docs

* `popup` add summary from docs

* `progressbar` add summary from docs

* `progress-ring` add summary from docs

* `radio` add summary from docs

* `radio-button` add summary from docs

* `range` add summary from docs

* `rating` add summary from docs

* `relative-time` add summary from docs

* `select` add summary from docs

* `skeleton` add summary from docs

* `spinner` add summary from docs

* `split-panel` add summary from docs

* `switch` add summary from docs

* `tab-group` add summary from docs

* `tag` add summary from docs

* `textarea` add summary from docs

* `tooltip` add summary from docs

* `visually-hidden` add summary from docs

* `animation` add summary from docs

* `breadcrumb-item` add summary from docs

* `mutation-observer` add summary from docs

* `radio-group` add summary from docs

* `resize-observer` add summary from docs

* `tab` add summary from docs

* `tab-panel` add summary from docs

* `tree` add summary from docs

* `tree-item` add summary from docs

* remove `title` for further usage of `Sl` classnames in docs

* revert: use markdown parser for component summary
2022-10-21 09:56:35 -04:00
Buni48 22fa81433e
tests for sl-tab-panel (#956) 2022-10-18 10:49:50 -04:00
Cory LaViska 32f24a881e make dir/lang reactive everywhere 2022-08-17 11:37:37 -04:00
Cory LaViska 864d567572 improve tab accessibility 2022-07-20 15:29:19 -04:00
Cory LaViska 71119c963d use classMap instead of inline style 2022-07-19 09:06:24 -04:00
Cory LaViska ecf5ab5aad use classMap instead of inline style 2022-07-19 09:06:12 -04:00
Philipp Sonntag 3fb4cba856
Added type declaration to styles property for all components (#829)
* Updated the plop template with type for styles property
2022-07-19 08:27:39 -04:00
Cory LaViska 300cbd090f revert path aliases 2022-03-24 08:01:09 -04:00
Cory LaViska e32c15204c Revert recent changes 2022-03-24 07:48:03 -04:00
Cory LaViska f34960d82a revert path aliases since we can't override WTR's TS config 2022-03-23 09:30:39 -04:00
Cory LaViska a5cd9a4968 refactor parts and exported parts 2022-03-09 15:54:18 -05:00
Cory LaViska ff1e11022d reintroduce path aliasing and fix autosort 2022-03-02 09:28:34 -05:00
Cory LaViska 3fa41ea8d9 revert path aliasing and update import orders 2022-02-26 10:48:56 -05:00
Jason O'Neill 0330498bbb eslint: enable one-liner functions, dangling promises 2022-01-16 20:44:10 -08:00
Jason O'Neill 9fb3b5cfed feat: add ESLint, improve types, improve a11y 2022-01-15 21:47:14 -08:00
Cory LaViska 33accf65ef prefix light dom ids 2021-12-17 10:31:14 -05:00
Cory LaViska 0135a37af8 a11y improvements; fixes #579 2021-11-12 17:40:26 -05:00
Cory LaViska 1dd556d6c8 react examples and fixes 2021-11-04 18:12:47 -04:00
Cory LaViska e12ee97bd9 add --padding to tab panel 2021-10-04 09:29:14 -04:00
Cory LaViska 383e039297 sass => lit styles 2021-07-09 20:45:44 -04:00
Cory LaViska 2ea5b65cb8 remove redundant types 2021-06-30 20:04:46 -04:00
Cory LaViska cc7ab8f7c4 fix bad type 2021-06-28 09:25:47 -04:00
Cory LaViska 6883851866 don't use inferred types for analyzer 2021-06-28 09:23:39 -04:00
Cory LaViska 0da9955403 Add dashes back to metadata 2021-06-25 16:25:46 -04:00
Cory LaViska d0b9488c1c switch to custom elements manifest analyzer 2021-06-24 18:24:54 -04:00
Cory LaViska b0921b5be0 fixes #451 2021-06-02 08:47:55 -04:00
Cory LaViska e34090a87b update lit/esbuild 2021-05-27 17:00:43 -04:00
Cory LaViska 389dd0b44e update to lit-element and lit-html prerelease 2021-03-24 10:21:21 -04:00
Cory LaViska 334a7ca832 reenable autoregistration 2021-03-18 09:04:23 -04:00
Cory LaViska 0213eb2376 prettier 2021-03-12 09:09:08 -05:00
ibirrer a14346ea87
declare types for component tags (#371) 2021-03-12 09:07:38 -05:00
Cory LaViska 28965a422d fix default exports for all components 2021-03-08 19:14:32 -05:00
Cory LaViska a0ea729bb9 use @tag instead of @customElement for treeshaking 2021-03-08 07:51:31 -05:00
Cory LaViska 2f4d93700a migrate to LitElement 2021-03-06 12:01:39 -05:00
Cory LaViska fe45f2159f Shoemaker rework 2021-02-26 09:09:13 -05:00