I see “actions” as a primitive for custom elements.
For example, the `<dialog>` element have `showModal`, `show`, `open`, `close`; popovers have `togglePopover`, `hidePopover`, `showPopover`; and so on.
For declarative custom elements, we need a way to describe actions. An action might set CSS custom state or internal ARIA or set a form value or have effects on other elements inside (or outside?) of a shadow tree.
Actions then become something we can map events to or become something that invokers can target.
Perhaps if actions are abstract enough, we can reuse them between custom elements and attributes too — or tap into actions that exist in built-in elements.
@mayank “HTML modules” as a macro is such a cool idea. I agree 100% that it’s a place we should focus in on things like this. The #webComponentsCG sees this as a big next step towards clarifying #declarativeCustomElements API. Converting your blog to an explainer would be a great next step.
Disclaimer: in a recent meeting with implementors we agreed that Cross Root Aria and Scoped Custom Element Registries are of higher priority. Having solid plans for #HTMLModules when they get done will be 🔥
@knowler What did it do? Can we learn from it for #declarativeCustomElements?
The amount of really good stuff proposed in the 2011-2013 timeline is kind of amazing. Hopefully with the number of things that were "impossible" then (across CSS, JS, and HTML), but are _shipping_ now, we can get even more velocity around bringing some long standing requests for custom elements, et al!
@TheWebTech come join the conversation with the #webComponentsCG where we are looking to solve these problems with #declarativeCustomElements, right now!
<p>This group is for collaboration between people working on web components libraries, tools, documentation and standards. </p><p>We will work together on projects of shared interest in order to enhance interoperability, solve common problems, build shared community resources, and ultimately continue to grow a cooperative, productive, and happy web components ecosystem. </p><p>Areas we expect to work on include gap analysis, design principles, common protocols, discoverability and quality, documentation, tooling, and more. </p>
@konnorrogers @brad_frost Good thing we're working on #declarativeCustomElements at the #webComponentsCG... Browser implementors are also interested in finding solutions to:
> What would be awesome is to be able to simply wire Web Components up and have them Just Work, even if JS fails for whatever reason.
Exciting times!
And then another Demo Day is done!! Learn more about proposals for the future of #declarativeCustomElements here: https://github.com/w3c/webcomponents-cg/issues/84#issuecomment-2018598166
The #webComponentsCG is looking hard into the work to bring the future of #webComponents to life. If that's your bag, come join in the discussion: https://discord.gg/kbba8cKPg9
Thanks for all the great demos over the last couple of weeks from @jaredwhite @justinfagnani @jrjurman @trusktr Rob Eisenberg, Sasha Firsov, Jochen Kühner, and more! 🙇🏻♀️ 🙇 🙇🏽♂️
Lots of very interesting ideas today at the #webComponentsCG's #declarativeCustomElements Demo Days no. 1! 🔥
If you missed out, you can find more info at https://github.com/w3c/webcomponents-cg/issues/84
If you never want to miss out again, join the convo at https://discord.gg/s933rmKR9R
If you want to see Demo Days no. 2, share you availability and subscribe to https://calendar.google.com/calendar/u/0/[email protected]
See you there! 👋
@davatron5000 Use cases, share your use cases! Use cases for #declarativeCustomElements (today's session) or #openStylableShadowRoots (next week's session) are all key to presenting to implementors in April. 🙇
Beyond that, whatever #webComponentsCG members are willing to contribute is a win. Helping gather/document the use cases you and others share; as well as prototypes/proposals. Testing those out and sharing your thoughts.
You help most by being you as often as possible for the community!
😅 Running meetings is not for the feint of heart. Running meetings where the gathering is discussing ways for ward for the web... an even more complicated endeavor! We're doing it at the #webComponentsCG, however!
Today we had a great session on #declarativeCustomElements and #htmlModules and more. Learn more about the discussion, here: https://github.com/w3c/webcomponents-cg/issues/79#issuecomment-1957721815
At the WCCG's February Meeting (#77), we resolved to hold a breakout session specifically focusing on gathering use cases and proposals to present to implementors in the April Quarterly Face-to-fac...