@golemui/gui-lit 0.0.2 → 0.12.0

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.
Files changed (66) hide show
  1. package/README.md +17 -4
  2. package/{accordion.element-D1RfC2ew.js → accordion.element-81uTv6Ms.js} +29 -18
  3. package/{alert.element-B4rpyqGV.js → alert.element-DWrS5ggK.js} +17 -17
  4. package/button.element-hjhVBamJ.js +56 -0
  5. package/{calendar.element-D7mAbpAa.js → calendar.element-C1rLK7aY.js} +24 -18
  6. package/{checkbox.element--Kc7sWBx.js → checkbox.element-bu9_MvED.js} +8 -8
  7. package/{currency.element-D9dyGRBH.js → currency.element-Bxv2WxAx.js} +20 -19
  8. package/date-picker.element-GNC8f3Qi.js +157 -0
  9. package/{date.element-na_Uywms.js → date.element-Dzw-UJzC.js} +10 -10
  10. package/{dropdown.element-Cfj40aJz.js → dropdown.element-CebROj9s.js} +95 -78
  11. package/flex.element-BMqqfxjI.js +77 -0
  12. package/grid.element-CBMoOuLt.js +75 -0
  13. package/index.js +1104 -1031
  14. package/index.umd.cjs +319 -112
  15. package/lib/components/accordion.element.d.ts +1 -1
  16. package/lib/components/alert.element.d.ts +1 -1
  17. package/lib/components/button.element.d.ts +3 -2
  18. package/lib/components/calendar.element.d.ts +1 -0
  19. package/lib/components/checkbox.element.d.ts +1 -1
  20. package/lib/components/currency.element.d.ts +1 -1
  21. package/lib/components/date-picker.element.d.ts +4 -2
  22. package/lib/components/date.element.d.ts +1 -1
  23. package/lib/components/dropdown.element.d.ts +1 -1
  24. package/lib/components/flex.element.d.ts +1 -1
  25. package/lib/components/form.element.d.ts +6 -16
  26. package/lib/components/grid.element.d.ts +16 -0
  27. package/lib/components/list.element.d.ts +1 -1
  28. package/lib/components/markdown-text.element.d.ts +16 -0
  29. package/lib/components/markdown.element.d.ts +17 -0
  30. package/lib/components/number.element.d.ts +1 -1
  31. package/lib/components/password.element.d.ts +1 -1
  32. package/lib/components/radiogroup.element.d.ts +1 -1
  33. package/lib/components/range-calendar.element.d.ts +1 -0
  34. package/lib/components/range-date-input.element.d.ts +18 -0
  35. package/lib/components/range-date-picker.element.d.ts +30 -0
  36. package/lib/components/renderer.element.d.ts +1 -0
  37. package/lib/components/repeater.element.d.ts +5 -1
  38. package/lib/components/select.element.d.ts +1 -1
  39. package/lib/components/tabs.element.d.ts +1 -1
  40. package/lib/components/textarea.element.d.ts +1 -1
  41. package/lib/components/textinput.element.d.ts +1 -1
  42. package/lib/components/toggle.element.d.ts +1 -1
  43. package/lib/widget.loaders.d.ts +2 -2
  44. package/{list.element--aj6sNNU.js → list.element-DIIgN_Ww.js} +66 -59
  45. package/markdown-text.element-DY7b-dU5.js +53 -0
  46. package/markdown.element-ZD_n4ObO.js +73 -0
  47. package/{number.element-Bl5YReaL.js → number.element-B0E7W2TK.js} +20 -19
  48. package/package.json +11 -6
  49. package/{password.element-CKmcH8Gn.js → password.element-C4_eLdUO.js} +11 -10
  50. package/{radiogroup.element-Cn1lyyVE.js → radiogroup.element-BD8qBNoO.js} +8 -7
  51. package/{range-calendar.element-C2YUElqM.js → range-calendar.element-Bli9UfhN.js} +35 -27
  52. package/range-date-input.element-BwPvGk5F.js +72 -0
  53. package/range-date-picker.element-DJQOwDPh.js +170 -0
  54. package/renderer.element-B99qD2mz.js +48 -0
  55. package/repeater.element-AaifWsOB.js +136 -0
  56. package/{select.element-LWiqYxzA.js → select.element-BLxtqB0A.js} +9 -8
  57. package/{tabs.element-DYg1wAz9.js → tabs.element-k8JMNDXi.js} +18 -16
  58. package/{textarea.element-BXc-rLZE.js → textarea.element-DgDwfzYP.js} +14 -14
  59. package/{textinput.element-x9LYeW8B.js → textinput.element-DSLFDjfb.js} +17 -16
  60. package/{toggle.element-BP4YKWyR.js → toggle.element-BLu6F99u.js} +5 -5
  61. package/CHANGELOG.md +0 -529
  62. package/button.element-BnUBVNSH.js +0 -58
  63. package/date-picker.element-Dcs5OpxN.js +0 -136
  64. package/flex.element-BSMOum-h.js +0 -65
  65. package/renderer.element-B7AjPqr2.js +0 -43
  66. package/repeater.element-BfwzCooC.js +0 -83
package/CHANGELOG.md DELETED
@@ -1,529 +0,0 @@
1
- ## 0.19.0 (2026-03-02)
2
-
3
- This was a version bump only for gui-lit to align it with other projects, there were no code changes.
4
-
5
- ## 0.18.0 (2026-01-13)
6
-
7
- ### 🚀 Features
8
-
9
- - add currency field ([232ab3a](https://github.com/golemui/formforge/commit/232ab3a))
10
-
11
- ### ❤️ Thank You
12
-
13
- - Raul Jimenez @Elecash
14
-
15
- ## 0.17.0 (2026-01-11)
16
-
17
- ### 🚀 Features
18
-
19
- - add web component number ([e8f91f1](https://github.com/golemui/formforge/commit/e8f91f1))
20
- - add web component checkbox ([9f391ff](https://github.com/golemui/formforge/commit/9f391ff))
21
-
22
- ### ❤️ Thank You
23
-
24
- - Raul Jimenez @Elecash
25
-
26
- ## 0.16.0 (2026-01-05)
27
-
28
- ### 🚀 Features
29
-
30
- - add minimumHeight and autoGrow to textarea ([9bc9c3b](https://github.com/golemui/formforge/commit/9bc9c3b))
31
- - add textarea component ([bd8499a](https://github.com/golemui/formforge/commit/bd8499a))
32
-
33
- ### ❤️ Thank You
34
-
35
- - Raul Jimenez @Elecash
36
-
37
- ## 0.15.2 (2026-01-03)
38
-
39
- ### 🩹 Fixes
40
-
41
- - **cypress:** rename formError to formHealth ([0aee3df](https://github.com/golemui/formforge/commit/0aee3df))
42
-
43
- ### ❤️ Thank You
44
-
45
- - Joan Llenas
46
-
47
- ## 0.15.1 (2025-12-27)
48
-
49
- ### 🩹 Fixes
50
-
51
- - scroll to default tab on first render of tabs ([91e6de7](https://github.com/golemui/formforge/commit/91e6de7))
52
-
53
- ### ❤️ Thank You
54
-
55
- - Raul Jimenez @Elecash
56
-
57
- ## 0.15.0 (2025-12-27)
58
-
59
- ### 🚀 Features
60
-
61
- - **lit:** add toggle component to lit ([b832b4f](https://github.com/golemui/formforge/commit/b832b4f))
62
-
63
- ### 🩹 Fixes
64
-
65
- - **lit:** set proper index to tabs and sections ([571e02f](https://github.com/golemui/formforge/commit/571e02f))
66
- - **lit:** fix required and checked in checkbox ([acebd93](https://github.com/golemui/formforge/commit/acebd93))
67
- - **lit:** fix checkbox required and checked attributes ([e250f03](https://github.com/golemui/formforge/commit/e250f03))
68
-
69
- ### ❤️ Thank You
70
-
71
- - joanllenas
72
- - Raul Jimenez @Elecash
73
-
74
- ## 0.14.11 (2025-12-21)
75
-
76
- ### 🩹 Fixes
77
-
78
- - **lit:** fix checkbox attributes and property bindings ([0ed1beb](https://github.com/golemui/formforge/commit/0ed1beb))
79
-
80
- ### ❤️ Thank You
81
-
82
- - Raul Jimenez @Elecash
83
-
84
- ## 0.14.10 (2025-12-20)
85
-
86
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
87
-
88
- ## 0.14.9 (2025-12-20)
89
-
90
- ### 🩹 Fixes
91
-
92
- - **lit:** Fix validateOn property in lit form ([2fd03f5](https://github.com/golemui/formforge/commit/2fd03f5))
93
-
94
- ### ❤️ Thank You
95
-
96
- - Raul Jimenez @Elecash
97
-
98
- ## 0.14.8 (2025-12-20)
99
-
100
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
101
-
102
- ## 0.14.7 (2025-12-18)
103
-
104
- ### 🩹 Fixes
105
-
106
- - **lit:** fix the disabled test ([a646ffc](https://github.com/golemui/formforge/commit/a646ffc))
107
-
108
- ### ❤️ Thank You
109
-
110
- - Joan Llenas
111
-
112
- ## 0.14.6 (2025-12-18)
113
-
114
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
115
-
116
- ## 0.14.5 (2025-12-17)
117
-
118
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
119
-
120
- ## 0.14.4 (2025-12-17)
121
-
122
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
123
-
124
- ## 0.14.3 (2025-12-16)
125
-
126
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
127
-
128
- ## 0.14.2 (2025-12-16)
129
-
130
- ### 🩹 Fixes
131
-
132
- - enhance type safety for vanilla loaders ([879042a](https://github.com/golemui/formforge/commit/879042a))
133
- - minor refactors and fixes ([b413896](https://github.com/golemui/formforge/commit/b413896))
134
-
135
- ### ❤️ Thank You
136
-
137
- - Joan Llenas
138
-
139
- ## 0.14.1 (2025-12-15)
140
-
141
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
142
-
143
- ## 0.14.0 (2025-12-14)
144
-
145
- ### 🚀 Features
146
-
147
- - **lit:** add form vanilla component ([3f4fde2](https://github.com/golemui/formforge/commit/3f4fde2))
148
-
149
- ### 🩹 Fixes
150
-
151
- - add validators-vanilla as a dependency for the component library ([f0ef637](https://github.com/golemui/formforge/commit/f0ef637))
152
-
153
- ### ❤️ Thank You
154
-
155
- - Raul Jimenez @Elecash
156
-
157
- ## 0.13.0 (2025-12-11)
158
-
159
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
160
-
161
- ## 0.12.0 (2025-12-11)
162
-
163
- ### 🚀 Features
164
-
165
- - add scroll to tabs component ([e19d353](https://github.com/golemui/formforge/commit/e19d353))
166
-
167
- ### ❤️ Thank You
168
-
169
- - Raul Jimenez @Elecash
170
-
171
- ## 0.11.0 (2025-12-08)
172
-
173
- ### 🚀 Features
174
-
175
- - add disabled styles, simplify styling ([7a72c70](https://github.com/golemui/formforge/commit/7a72c70))
176
-
177
- ### ❤️ Thank You
178
-
179
- - Raul Jimenez @Elecash
180
-
181
- ## 0.10.0 (2025-12-08)
182
-
183
- ### 🚀 Features
184
-
185
- - **lit:** add radiogroup lit element component ([447037b](https://github.com/golemui/formforge/commit/447037b))
186
-
187
- ### 🩹 Fixes
188
-
189
- - add required attribute instead of aria-required ([4808e9a](https://github.com/golemui/formforge/commit/4808e9a))
190
- - infer option value types before sending data ([5669a16](https://github.com/golemui/formforge/commit/5669a16))
191
- - **lit:** use new implementation for updateOptions in radiogroup ([c50aa7d](https://github.com/golemui/formforge/commit/c50aa7d))
192
-
193
- ### ❤️ Thank You
194
-
195
- - Raul Jimenez @Elecash
196
-
197
- ## 0.9.0 (2025-12-08)
198
-
199
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
200
-
201
- ## 0.8.0 (2025-12-07)
202
-
203
- ### 🩹 Fixes
204
-
205
- - **lit:** fix select disabled state ([4c17542](https://github.com/golemui/formforge/commit/4c17542))
206
- - select's Option type refactor ([11c0fef](https://github.com/golemui/formforge/commit/11c0fef))
207
-
208
- ### ❤️ Thank You
209
-
210
- - Joan Llenas
211
- - Raul Jimenez @Elecash
212
-
213
- ## 0.7.1 (2025-12-07)
214
-
215
- ### 🩹 Fixes
216
-
217
- - add error messages to lit and angular selects ([2c3e86b](https://github.com/golemui/formforge/commit/2c3e86b))
218
- - **lit:** Fix lit select value selection ([94b47aa](https://github.com/golemui/formforge/commit/94b47aa))
219
-
220
- ### ❤️ Thank You
221
-
222
- - Raul Jimenez @Elecash
223
-
224
- ## 0.7.0 (2025-12-04)
225
-
226
- ### 🚀 Features
227
-
228
- - add number control input ([773ac61](https://github.com/golemui/formforge/commit/773ac61))
229
-
230
- ### 🩹 Fixes
231
-
232
- - remove min and max properties ([7d61d68](https://github.com/golemui/formforge/commit/7d61d68))
233
-
234
- ### ❤️ Thank You
235
-
236
- - Raul Jimenez @Elecash
237
-
238
- ## 0.6.0 (2025-12-03)
239
-
240
- ### 🚀 Features
241
-
242
- - **lit:** Add select component ([b81344e](https://github.com/golemui/formforge/commit/b81344e))
243
-
244
- ### ❤️ Thank You
245
-
246
- - Raul Jimenez @Elecash
247
-
248
- ## 0.5.0 (2025-11-30)
249
-
250
- ### 🚀 Features
251
-
252
- - add aria to validation messages ([e9e1c7a](https://github.com/golemui/formforge/commit/e9e1c7a))
253
- - add keyboard navigation to tabs component ([ec0ea15](https://github.com/golemui/formforge/commit/ec0ea15))
254
- - **aria:** add aria to validator messages ([91935a3](https://github.com/golemui/formforge/commit/91935a3))
255
-
256
- ### 🩹 Fixes
257
-
258
- - add field uid to tabs ids and aria ([ae4ae07](https://github.com/golemui/formforge/commit/ae4ae07))
259
-
260
- ### ❤️ Thank You
261
-
262
- - Raul Jimenez @Elecash
263
-
264
- ## 0.4.0 (2025-11-30)
265
-
266
- ### 🚀 Features
267
-
268
- - unify props in checkbox and textinput ([271b32a](https://github.com/golemui/formforge/commit/271b32a))
269
-
270
- ### ❤️ Thank You
271
-
272
- - Raul Jimenez @Elecash
273
-
274
- ## 0.3.26 (2025-11-29)
275
-
276
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
277
-
278
- ## 0.3.25 (2025-11-27)
279
-
280
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
281
-
282
- ## 0.3.24 (2025-11-27)
283
-
284
- ### 🩹 Fixes
285
-
286
- - **lit:** remove all lit external dependencies from builds ([1ad4504](https://github.com/golemui/formforge/commit/1ad4504))
287
-
288
- ### ❤️ Thank You
289
-
290
- - Raul Jimenez @Elecash
291
-
292
- ## 0.3.23 (2025-11-27)
293
-
294
- ### 🩹 Fixes
295
-
296
- - **lit:** Use experimental decorators ([77856c0](https://github.com/golemui/formforge/commit/77856c0))
297
-
298
- ### ❤️ Thank You
299
-
300
- - Raul Jimenez @Elecash
301
-
302
- ## 0.3.22 (2025-11-27)
303
-
304
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
305
-
306
- ## 0.3.21 (2025-11-27)
307
-
308
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
309
-
310
- ## 0.3.20 (2025-11-26)
311
-
312
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
313
-
314
- ## 0.3.19 (2025-11-26)
315
-
316
- ### 🩹 Fixes
317
-
318
- - add all js files in lit-vanilla and react-vanilla ([3f94cf1](https://github.com/golemui/formforge/commit/3f94cf1))
319
-
320
- ### ❤️ Thank You
321
-
322
- - Raul Jimenez @Elecash
323
-
324
- ## 0.3.18 (2025-11-26)
325
-
326
- ### 🩹 Fixes
327
-
328
- - build all libraries with vite ([2880d7f](https://github.com/golemui/formforge/commit/2880d7f))
329
-
330
- ### ❤️ Thank You
331
-
332
- - Raul Jimenez @Elecash
333
-
334
- ## 0.3.17 (2025-11-25)
335
-
336
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
337
-
338
- ## 0.3.16 (2025-11-25)
339
-
340
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
341
-
342
- ## 0.3.15 (2025-11-25)
343
-
344
- ### 🩹 Fixes
345
-
346
- - build with nx ([3f423b4](https://github.com/golemui/formforge/commit/3f423b4))
347
-
348
- ### ❤️ Thank You
349
-
350
- - Raul Jimenez @Elecash
351
-
352
- ## 0.3.14 (2025-11-24)
353
-
354
- ### 🩹 Fixes
355
-
356
- - package.json paths in core, lit and lit-vanilla ([677e530](https://github.com/golemui/formforge/commit/677e530))
357
-
358
- ### ❤️ Thank You
359
-
360
- - Raul Jimenez @Elecash
361
-
362
- ## 0.3.13 (2025-11-24)
363
-
364
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
365
-
366
- ## 0.3.12 (2025-11-24)
367
-
368
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
369
-
370
- ## 0.3.11 (2025-11-24)
371
-
372
- ### 🩹 Fixes
373
-
374
- - build files to output cjs and js ([20d24ec](https://github.com/golemui/formforge/commit/20d24ec))
375
-
376
- ### ❤️ Thank You
377
-
378
- - Raul Jimenez @Elecash
379
-
380
- ## 0.3.10 (2025-11-24)
381
-
382
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
383
-
384
- ## 0.3.9 (2025-11-24)
385
-
386
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
387
-
388
- ## 0.3.8 (2025-11-24)
389
-
390
- ### 🩹 Fixes
391
-
392
- - build libs for es2022 and commonjs ([7a7c037](https://github.com/golemui/formforge/commit/7a7c037))
393
-
394
- ### ❤️ Thank You
395
-
396
- - Raul Jimenez @Elecash
397
-
398
- ## 0.3.7 (2025-11-23)
399
-
400
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
401
-
402
- ## 0.3.6 (2025-11-23)
403
-
404
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
405
-
406
- ## 0.3.5 (2025-11-23)
407
-
408
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
409
-
410
- ## 0.3.4 (2025-11-23)
411
-
412
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
413
-
414
- ## 0.3.3 (2025-11-23)
415
-
416
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
417
-
418
- ## 0.3.2 (2025-11-23)
419
-
420
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
421
-
422
- ## 0.3.1 (2025-11-23)
423
-
424
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
425
-
426
- ## 0.3.0 (2025-11-23)
427
-
428
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
429
-
430
- ## 0.2.4 (2025-11-22)
431
-
432
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
433
-
434
- ## 0.2.3 (2025-11-22)
435
-
436
- ### 🩹 Fixes
437
-
438
- - **react:** fix react package jsons build ([b98d9e2](https://github.com/golemui/formforge/commit/b98d9e2))
439
-
440
- ### ❤️ Thank You
441
-
442
- - Raul Jimenez @Elecash
443
-
444
- ## 0.2.2 (2025-11-22)
445
-
446
- ### 🩹 Fixes
447
-
448
- - **lit:** use repeat directive in stack instead of map ([083f044](https://github.com/golemui/formforge/commit/083f044))
449
-
450
- ### ❤️ Thank You
451
-
452
- - Raul Jimenez @Elecash
453
-
454
- ## 0.2.1 (2025-11-16)
455
-
456
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
457
-
458
- ## 0.2.0 (2025-11-16)
459
-
460
- ### 🚀 Features
461
-
462
- - **lit:** integrate touched flag ([8f9d918](https://github.com/golemui/formforge/commit/8f9d918))
463
-
464
- ### ❤️ Thank You
465
-
466
- - Joan Llenas
467
-
468
- ## 0.1.5 (2025-11-16)
469
-
470
- ### 🩹 Fixes
471
-
472
- - lint errors and peer dependencies ([d0f139d](https://github.com/golemui/formforge/commit/d0f139d))
473
- - set build paths for release artifacts ([9760118](https://github.com/golemui/formforge/commit/9760118))
474
-
475
- ### ❤️ Thank You
476
-
477
- - Raul Jimenez @Elecash
478
-
479
- ## 0.1.4 (2025-11-16)
480
-
481
- ### 🩹 Fixes
482
-
483
- - set correct paths for release artifacts ([8941d2f](https://github.com/golemui/formforge/commit/8941d2f))
484
- - create release tool ([7cd7845](https://github.com/golemui/formforge/commit/7cd7845))
485
-
486
- ### ❤️ Thank You
487
-
488
- - Raul Jimenez @Elecash
489
-
490
- ## 0.1.3 (2025-11-15)
491
-
492
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
493
-
494
- ## 0.1.2 (2025-11-15)
495
-
496
- This was a version bump only for lit-vanilla to align it with other projects, there were no code changes.
497
-
498
- ## 0.1.1 (2025-11-15)
499
-
500
- ### 🩹 Fixes
501
-
502
- - update dependencies on libraries ([374b3c9](https://github.com/golemui/formforge/commit/374b3c9))
503
-
504
- ### ❤️ Thank You
505
-
506
- - Raul Jimenez @Elecash
507
-
508
- ## 0.1.0 (2025-11-15)
509
-
510
- ### 🚀 Features
511
-
512
- - **lit:** Add touched support to Lit controls ([a279a76](https://github.com/golemui/formforge/commit/a279a76))
513
- - **lit:** Integrate required validators in controls ([f05fbf7](https://github.com/golemui/formforge/commit/f05fbf7))
514
- - **checkbox:** Add props to checkbox component ([c3ac241](https://github.com/golemui/formforge/commit/c3ac241))
515
- - **lit:** Add lit vanilla components, create shared lib for playgrounds ([3e34ad1](https://github.com/golemui/formforge/commit/3e34ad1))
516
- - **lit:** Add readonly support to lit controls ([361f476](https://github.com/golemui/formforge/commit/361f476))
517
- - **lit:** Add lit element support ([a122d2d](https://github.com/golemui/formforge/commit/a122d2d))
518
-
519
- ### 🩹 Fixes
520
-
521
- - **lit:** Fix lit form element event dispatching ([5669e26](https://github.com/golemui/formforge/commit/5669e26))
522
- - **core:** Rename Button to Interactive ([25fcea3](https://github.com/golemui/formforge/commit/25fcea3))
523
- - **repeater:** Fix lit repeater and add docs ([6e5a97a](https://github.com/golemui/formforge/commit/6e5a97a))
524
- - **css:** Use BEM ([a3ac802](https://github.com/golemui/formforge/commit/a3ac802))
525
-
526
- ### ❤️ Thank You
527
-
528
- - Joan Llenas
529
- - Raul Jimenez @Elecash
@@ -1,58 +0,0 @@
1
- import * as p from "@golemui/lit";
2
- import { consume as c, provide as u } from "@lit/context";
3
- import { LitElement as l, html as h } from "lit";
4
- import { property as b, customElement as m } from "lit/decorators.js";
5
- var f = Object.defineProperty, g = Object.getOwnPropertyDescriptor, d = (s, t, a, i) => {
6
- for (var e = i > 1 ? void 0 : i ? g(t, a) : t, o = s.length - 1, n; o >= 0; o--)
7
- (n = s[o]) && (e = (i ? n(t, a, e) : n(e)) || e);
8
- return i && e && f(t, a, e), e;
9
- };
10
- let r = class extends l {
11
- constructor() {
12
- super(...arguments), this.adapter = new p.ActionWidgetAdapter(), this.subscriptions = [];
13
- }
14
- createRenderRoot() {
15
- return this;
16
- }
17
- connectedCallback() {
18
- super.connectedCallback(), this.classList.add("gui-button"), this.adapter.context = this.formContext, this.adapter.init(this.widget), this.subscriptions.push(
19
- this.adapter.templateDataChanged$.subscribe(() => this.requestUpdate())
20
- );
21
- }
22
- updated(s) {
23
- super.updated(s);
24
- const t = this.adapter.templateData.size;
25
- t ? this.style.flex = String(t) : this.style.removeProperty("flex");
26
- }
27
- render() {
28
- return h`
29
- <div class="gui-widget">
30
- <button
31
- type="button"
32
- id=${this.widget.uid}
33
- data-cy=${`${this.widget.uid}_button`}
34
- @click=${() => this.adapter.click()}
35
- ?disabled=${this.adapter.templateData.disabled === !0}
36
- >
37
- ${this.adapter.templateData.label}
38
- </button>
39
- </div>
40
- `;
41
- }
42
- disconnectedCallback() {
43
- super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions.forEach((s) => s.unsubscribe());
44
- }
45
- };
46
- d([
47
- c({ context: p.formContext }),
48
- b({ attribute: !1 })
49
- ], r.prototype, "formContext", 2);
50
- d([
51
- u({ context: p.actionContext })
52
- ], r.prototype, "adapter", 2);
53
- r = d([
54
- m("gui-button-action")
55
- ], r);
56
- export {
57
- r as ButtonElement
58
- };