@operato/input 2.0.0-alpha.9 → 2.0.0-alpha.90

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 (197) hide show
  1. package/CHANGELOG.md +244 -0
  2. package/demo/index-multiple-colors.html +14 -2
  3. package/demo/index-partition-keys.html +13 -2
  4. package/demo/index-select.html +20 -9
  5. package/demo/index-table.html +13 -2
  6. package/demo/index.html +13 -2
  7. package/dist/src/locale/locale-picker.d.ts +1 -1
  8. package/dist/src/ox-buttons-radio.d.ts +1 -1
  9. package/dist/src/ox-checkbox.d.ts +5 -4
  10. package/dist/src/ox-checkbox.js +12 -6
  11. package/dist/src/ox-checkbox.js.map +1 -1
  12. package/dist/src/ox-input-3axis.d.ts +1 -1
  13. package/dist/src/ox-input-3dish.d.ts +1 -1
  14. package/dist/src/ox-input-angle.d.ts +1 -1
  15. package/dist/src/ox-input-barcode.d.ts +1 -1
  16. package/dist/src/ox-input-barcode.js +2 -2
  17. package/dist/src/ox-input-barcode.js.map +1 -1
  18. package/dist/src/ox-input-code.d.ts +2 -3
  19. package/dist/src/ox-input-code.js +8 -15
  20. package/dist/src/ox-input-code.js.map +1 -1
  21. package/dist/src/ox-input-color-gradient.d.ts +1 -1
  22. package/dist/src/ox-input-color-stops.d.ts +1 -1
  23. package/dist/src/ox-input-color.d.ts +1 -1
  24. package/dist/src/ox-input-container.d.ts +2 -2
  25. package/dist/src/ox-input-container.js +2 -2
  26. package/dist/src/ox-input-container.js.map +1 -1
  27. package/dist/src/ox-input-crontab.d.ts +1 -2
  28. package/dist/src/ox-input-crontab.js +4 -7
  29. package/dist/src/ox-input-crontab.js.map +1 -1
  30. package/dist/src/ox-input-data.d.ts +4 -5
  31. package/dist/src/ox-input-data.js +88 -36
  32. package/dist/src/ox-input-data.js.map +1 -1
  33. package/dist/src/ox-input-duration.d.ts +1 -2
  34. package/dist/src/ox-input-duration.js +13 -9
  35. package/dist/src/ox-input-duration.js.map +1 -1
  36. package/dist/src/ox-input-file.d.ts +2 -2
  37. package/dist/src/ox-input-file.js +10 -9
  38. package/dist/src/ox-input-file.js.map +1 -1
  39. package/dist/src/ox-input-hashtags.d.ts +1 -1
  40. package/dist/src/ox-input-i18n-label.d.ts +33 -0
  41. package/dist/src/ox-input-i18n-label.js +130 -0
  42. package/dist/src/ox-input-i18n-label.js.map +1 -0
  43. package/dist/src/ox-input-image.d.ts +2 -2
  44. package/dist/src/ox-input-image.js +4 -4
  45. package/dist/src/ox-input-image.js.map +1 -1
  46. package/dist/src/ox-input-key-values.d.ts +2 -2
  47. package/dist/src/ox-input-key-values.js +9 -10
  48. package/dist/src/ox-input-key-values.js.map +1 -1
  49. package/dist/src/ox-input-mass-fraction.d.ts +2 -2
  50. package/dist/src/ox-input-mass-fraction.js +46 -29
  51. package/dist/src/ox-input-mass-fraction.js.map +1 -1
  52. package/dist/src/ox-input-multiple-colors.d.ts +2 -2
  53. package/dist/src/ox-input-multiple-colors.js +7 -7
  54. package/dist/src/ox-input-multiple-colors.js.map +1 -1
  55. package/dist/src/ox-input-options.d.ts +2 -2
  56. package/dist/src/ox-input-options.js +5 -7
  57. package/dist/src/ox-input-options.js.map +1 -1
  58. package/dist/src/ox-input-partition-keys.d.ts +2 -2
  59. package/dist/src/ox-input-partition-keys.js +10 -10
  60. package/dist/src/ox-input-partition-keys.js.map +1 -1
  61. package/dist/src/ox-input-privilege.d.ts +1 -2
  62. package/dist/src/ox-input-privilege.js +15 -31
  63. package/dist/src/ox-input-privilege.js.map +1 -1
  64. package/dist/src/ox-input-quantifier.d.ts +1 -1
  65. package/dist/src/ox-input-scene-component-id.d.ts +1 -1
  66. package/dist/src/ox-input-search.d.ts +2 -2
  67. package/dist/src/ox-input-search.js +5 -4
  68. package/dist/src/ox-input-search.js.map +1 -1
  69. package/dist/src/ox-input-select-buttons.d.ts +1 -1
  70. package/dist/src/ox-input-stack.d.ts +1 -1
  71. package/dist/src/ox-input-table.d.ts +1 -1
  72. package/dist/src/ox-input-table.js +12 -12
  73. package/dist/src/ox-input-table.js.map +1 -1
  74. package/dist/src/ox-input-textarea.d.ts +1 -1
  75. package/dist/src/ox-input-unit-number.d.ts +2 -2
  76. package/dist/src/ox-input-unit-number.js +5 -4
  77. package/dist/src/ox-input-unit-number.js.map +1 -1
  78. package/dist/src/ox-input-value-map.d.ts +2 -2
  79. package/dist/src/ox-input-value-map.js +17 -17
  80. package/dist/src/ox-input-value-map.js.map +1 -1
  81. package/dist/src/ox-input-value-ranges.d.ts +2 -2
  82. package/dist/src/ox-input-value-ranges.js +22 -17
  83. package/dist/src/ox-input-value-ranges.js.map +1 -1
  84. package/dist/src/ox-input-work-shift.d.ts +1 -1
  85. package/dist/src/ox-input-work-shift.js +4 -8
  86. package/dist/src/ox-input-work-shift.js.map +1 -1
  87. package/dist/src/ox-select.d.ts +2 -2
  88. package/dist/src/ox-select.js +16 -10
  89. package/dist/src/ox-select.js.map +1 -1
  90. package/dist/stories/ox-input-3axis.stories.js +14 -1
  91. package/dist/stories/ox-input-3axis.stories.js.map +1 -1
  92. package/dist/stories/ox-input-3dish.stories.js +14 -1
  93. package/dist/stories/ox-input-3dish.stories.js.map +1 -1
  94. package/dist/stories/ox-input-angle.stories.js +13 -1
  95. package/dist/stories/ox-input-angle.stories.js.map +1 -1
  96. package/dist/stories/ox-input-barcode.stories.js +13 -1
  97. package/dist/stories/ox-input-barcode.stories.js.map +1 -1
  98. package/dist/stories/ox-input-code.stories.d.ts +4 -0
  99. package/dist/stories/ox-input-code.stories.js +18 -3
  100. package/dist/stories/ox-input-code.stories.js.map +1 -1
  101. package/dist/stories/ox-input-crontab.stories.js +13 -1
  102. package/dist/stories/ox-input-crontab.stories.js.map +1 -1
  103. package/dist/stories/ox-input-data.stories.d.ts +29 -0
  104. package/dist/stories/ox-input-data.stories.js +50 -0
  105. package/dist/stories/ox-input-data.stories.js.map +1 -0
  106. package/dist/stories/ox-input-duration.stories.js +13 -1
  107. package/dist/stories/ox-input-duration.stories.js.map +1 -1
  108. package/dist/stories/ox-input-file.stories.js +13 -1
  109. package/dist/stories/ox-input-file.stories.js.map +1 -1
  110. package/dist/stories/ox-input-hashtags.stories.js +13 -1
  111. package/dist/stories/ox-input-hashtags.stories.js.map +1 -1
  112. package/dist/stories/ox-input-i18n-label.stories.d.ts +29 -0
  113. package/dist/stories/ox-input-i18n-label.stories.js +70 -0
  114. package/dist/stories/ox-input-i18n-label.stories.js.map +1 -0
  115. package/dist/stories/ox-input-key-values.stories.js +13 -1
  116. package/dist/stories/ox-input-key-values.stories.js.map +1 -1
  117. package/dist/stories/ox-input-mass-fraction.stories.js +13 -1
  118. package/dist/stories/ox-input-mass-fraction.stories.js.map +1 -1
  119. package/dist/stories/ox-input-multiple-colors.stories.js +21 -11
  120. package/dist/stories/ox-input-multiple-colors.stories.js.map +1 -1
  121. package/dist/stories/ox-input-options.stories.js +13 -1
  122. package/dist/stories/ox-input-options.stories.js.map +1 -1
  123. package/dist/stories/ox-input-partition-keys.stories.js +13 -1
  124. package/dist/stories/ox-input-partition-keys.stories.js.map +1 -1
  125. package/dist/stories/ox-input-privilege.stories.js +13 -1
  126. package/dist/stories/ox-input-privilege.stories.js.map +1 -1
  127. package/dist/stories/ox-input-quantifier.stories.js +13 -1
  128. package/dist/stories/ox-input-quantifier.stories.js.map +1 -1
  129. package/dist/stories/ox-input-range.stories.js +13 -1
  130. package/dist/stories/ox-input-range.stories.js.map +1 -1
  131. package/dist/stories/ox-input-search.stories.js +13 -1
  132. package/dist/stories/ox-input-search.stories.js.map +1 -1
  133. package/dist/stories/ox-input-select-buttons.stories.js +13 -1
  134. package/dist/stories/ox-input-select-buttons.stories.js.map +1 -1
  135. package/dist/stories/ox-input-unit.stories.js +14 -1
  136. package/dist/stories/ox-input-unit.stories.js.map +1 -1
  137. package/dist/stories/ox-input-value-map.stories.js +13 -1
  138. package/dist/stories/ox-input-value-map.stories.js.map +1 -1
  139. package/dist/stories/ox-input-value-ranges.stories.js +13 -1
  140. package/dist/stories/ox-input-value-ranges.stories.js.map +1 -1
  141. package/dist/stories/ox-input-work-shift.stories.js +13 -1
  142. package/dist/stories/ox-input-work-shift.stories.js.map +1 -1
  143. package/dist/stories/ox-select.stories.js +13 -1
  144. package/dist/stories/ox-select.stories.js.map +1 -1
  145. package/dist/tsconfig.tsbuildinfo +1 -1
  146. package/package.json +25 -21
  147. package/src/ox-checkbox.ts +9 -6
  148. package/src/ox-input-barcode.ts +2 -2
  149. package/src/ox-input-code.ts +6 -13
  150. package/src/ox-input-container.ts +2 -2
  151. package/src/ox-input-crontab.ts +4 -8
  152. package/src/ox-input-data.ts +97 -38
  153. package/src/ox-input-duration.ts +13 -10
  154. package/src/ox-input-file.ts +10 -9
  155. package/src/ox-input-i18n-label.ts +140 -0
  156. package/src/ox-input-image.ts +4 -4
  157. package/src/ox-input-key-values.ts +27 -22
  158. package/src/ox-input-mass-fraction.ts +46 -29
  159. package/src/ox-input-multiple-colors.ts +7 -7
  160. package/src/ox-input-options.ts +5 -7
  161. package/src/ox-input-partition-keys.ts +28 -22
  162. package/src/ox-input-privilege.ts +15 -32
  163. package/src/ox-input-search.ts +5 -4
  164. package/src/ox-input-table.ts +12 -12
  165. package/src/ox-input-unit-number.ts +5 -4
  166. package/src/ox-input-value-map.ts +19 -19
  167. package/src/ox-input-value-ranges.ts +24 -19
  168. package/src/ox-input-work-shift.ts +4 -8
  169. package/src/ox-select.ts +16 -10
  170. package/stories/ox-input-3axis.stories.ts +14 -1
  171. package/stories/ox-input-3dish.stories.ts +14 -1
  172. package/stories/ox-input-angle.stories.ts +13 -1
  173. package/stories/ox-input-barcode.stories.ts +13 -1
  174. package/stories/ox-input-code.stories.ts +25 -3
  175. package/stories/ox-input-crontab.stories.ts +13 -1
  176. package/stories/ox-input-data.stories.ts +65 -0
  177. package/stories/ox-input-duration.stories.ts +13 -1
  178. package/stories/ox-input-file.stories.ts +13 -1
  179. package/stories/ox-input-hashtags.stories.ts +13 -1
  180. package/stories/ox-input-i18n-label.stories.ts +85 -0
  181. package/stories/ox-input-key-values.stories.ts +13 -1
  182. package/stories/ox-input-mass-fraction.stories.ts +13 -1
  183. package/stories/ox-input-multiple-colors.stories.ts +21 -11
  184. package/stories/ox-input-options.stories.ts +13 -1
  185. package/stories/ox-input-partition-keys.stories.ts +13 -1
  186. package/stories/ox-input-privilege.stories.ts +13 -1
  187. package/stories/ox-input-quantifier.stories.ts +13 -1
  188. package/stories/ox-input-range.stories.ts +13 -1
  189. package/stories/ox-input-search.stories.ts +13 -1
  190. package/stories/ox-input-select-buttons.stories.ts +13 -1
  191. package/stories/ox-input-unit.stories.ts +14 -1
  192. package/stories/ox-input-value-map.stories.ts +13 -1
  193. package/stories/ox-input-value-ranges.stories.ts +13 -1
  194. package/stories/ox-input-work-shift.stories.ts +13 -1
  195. package/stories/ox-select.stories.ts +13 -1
  196. package/themes/app-theme.css +1 -1
  197. package/themes/input-theme.css +20 -7
package/CHANGELOG.md CHANGED
@@ -3,6 +3,250 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.0-alpha.90](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.89...v2.0.0-alpha.90) (2024-04-18)
7
+
8
+ **Note:** Version bump only for package @operato/input
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.0.0-alpha.89](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.88...v2.0.0-alpha.89) (2024-04-18)
15
+
16
+ **Note:** Version bump only for package @operato/input
17
+
18
+
19
+
20
+
21
+
22
+ ## [2.0.0-alpha.87](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.86...v2.0.0-alpha.87) (2024-04-17)
23
+
24
+ **Note:** Version bump only for package @operato/input
25
+
26
+
27
+
28
+
29
+
30
+ ## [2.0.0-alpha.85](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.84...v2.0.0-alpha.85) (2024-04-16)
31
+
32
+
33
+ ### :bug: Bug Fix
34
+
35
+ * tweak filters-form style ([6fb293d](https://github.com/hatiolab/operato/commit/6fb293d7d34ea7b01b3011264f554158beb62621))
36
+
37
+
38
+
39
+ ## [2.0.0-alpha.82](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.81...v2.0.0-alpha.82) (2024-04-15)
40
+
41
+ **Note:** Version bump only for package @operato/input
42
+
43
+
44
+
45
+
46
+
47
+ ## [2.0.0-alpha.81](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.80...v2.0.0-alpha.81) (2024-04-15)
48
+
49
+
50
+ ### :bug: Bug Fix
51
+
52
+ * use button-container styles ([bd91be3](https://github.com/hatiolab/operato/commit/bd91be3eaf5337a0ffe8cfc3b37191b6427ce5f6))
53
+
54
+
55
+
56
+ ## [2.0.0-alpha.80](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.79...v2.0.0-alpha.80) (2024-04-15)
57
+
58
+ **Note:** Version bump only for package @operato/input
59
+
60
+
61
+
62
+
63
+
64
+ ## [2.0.0-alpha.68](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.67...v2.0.0-alpha.68) (2024-04-13)
65
+
66
+
67
+ ### :bug: Bug Fix
68
+
69
+ * mwc=>md for context ([2bc13f2](https://github.com/hatiolab/operato/commit/2bc13f285f257782f73e5d7b5d1ddd197df85393))
70
+
71
+
72
+
73
+ ## [2.0.0-alpha.64](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.63...v2.0.0-alpha.64) (2024-04-13)
74
+
75
+
76
+ ### :bug: Bug Fix
77
+
78
+ * mwc=>md for context ([269d5fe](https://github.com/hatiolab/operato/commit/269d5fedca38096ce41850afe88a17ed1fd656dd))
79
+
80
+
81
+
82
+ ## [2.0.0-alpha.62](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.61...v2.0.0-alpha.62) (2024-04-12)
83
+
84
+
85
+ ### :bug: Bug Fix
86
+
87
+ * change the labels of ox-input-mass-fraction ([3165762](https://github.com/hatiolab/operato/commit/31657626acca7f4412ab02549e8c2de0fb25fcec))
88
+ * mwc=>md for context ([464c406](https://github.com/hatiolab/operato/commit/464c4067415805c0199b8a17e966b5c71ea833ec))
89
+ * mwc=>md for context ([6b88ef7](https://github.com/hatiolab/operato/commit/6b88ef7bed215f64415ccdd44d2603bc893e573d))
90
+
91
+
92
+
93
+ ## [2.0.0-alpha.59](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.58...v2.0.0-alpha.59) (2024-04-11)
94
+
95
+
96
+ ### :bug: Bug Fix
97
+
98
+ * add show-line-numbers option for ox-input-code ([0d63b0b](https://github.com/hatiolab/operato/commit/0d63b0b80ae6833fa9b37037c2f40394adfd3c27))
99
+
100
+
101
+
102
+ ## [2.0.0-alpha.57](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.56...v2.0.0-alpha.57) (2024-04-07)
103
+
104
+ **Note:** Version bump only for package @operato/input
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+ **Note:** Version bump only for package @operato/input
113
+
114
+
115
+
116
+
117
+
118
+ ## [2.0.0-alpha.52](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.51...v2.0.0-alpha.52) (2024-03-29)
119
+
120
+ **Note:** Version bump only for package @operato/input
121
+
122
+
123
+
124
+
125
+
126
+ ## [2.0.0-alpha.51](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.50...v2.0.0-alpha.51) (2024-03-29)
127
+
128
+
129
+ ### :bug: Bug Fix
130
+
131
+ * upgrade lit ([e661c33](https://github.com/hatiolab/operato/commit/e661c333d2bb97f784b5ac2c0e365714ee5e80ff))
132
+
133
+
134
+
135
+ ## [2.0.0-alpha.49](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.48...v2.0.0-alpha.49) (2024-03-28)
136
+
137
+
138
+ ### :bug: Bug Fix
139
+
140
+ * i18n label ([fd48ef2](https://github.com/hatiolab/operato/commit/fd48ef2bd9bde7846a032fed5d34283fbb27a065))
141
+
142
+
143
+
144
+ ## [2.0.0-alpha.48](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.47...v2.0.0-alpha.48) (2024-03-28)
145
+
146
+ **Note:** Version bump only for package @operato/input
147
+
148
+
149
+
150
+
151
+
152
+ ## [2.0.0-alpha.47](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.46...v2.0.0-alpha.47) (2024-03-27)
153
+
154
+ **Note:** Version bump only for package @operato/input
155
+
156
+
157
+
158
+
159
+
160
+ ## [2.0.0-alpha.35](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.34...v2.0.0-alpha.35) (2024-03-13)
161
+
162
+ **Note:** Version bump only for package @operato/input
163
+
164
+
165
+
166
+
167
+
168
+ ## [2.0.0-alpha.34](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.33...v2.0.0-alpha.34) (2024-03-12)
169
+
170
+
171
+ ### :bug: Bug Fix
172
+
173
+ * multilingual common-code ([80ca17f](https://github.com/hatiolab/operato/commit/80ca17f32f87808d78ac23ff2737584d6ac8098e))
174
+
175
+
176
+
177
+ ## [2.0.0-alpha.32](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.31...v2.0.0-alpha.32) (2024-03-12)
178
+
179
+
180
+ ### :bug: Bug Fix
181
+
182
+ * multilingual common-code ([184bcd9](https://github.com/hatiolab/operato/commit/184bcd9ce23ead50e46d9b6cc7bf6788e63b6e21))
183
+
184
+
185
+
186
+ ## [2.0.0-alpha.31](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.30...v2.0.0-alpha.31) (2024-03-03)
187
+
188
+
189
+ ### :bug: Bug Fix
190
+
191
+ * revert ox-input-data min-width style ([f4edc49](https://github.com/hatiolab/operato/commit/f4edc49f4e8609fce1203fab9838f5b490573ee1))
192
+
193
+
194
+
195
+ ## [2.0.0-alpha.30](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.29...v2.0.0-alpha.30) (2024-03-03)
196
+
197
+
198
+ ### :bug: Bug Fix
199
+
200
+ * upgrade cm6-graphql ([ec4bc9f](https://github.com/hatiolab/operato/commit/ec4bc9fdf7df0f7d698abc30c4de88c77d8119bf))
201
+
202
+
203
+
204
+ ## [2.0.0-alpha.28](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.27...v2.0.0-alpha.28) (2024-02-20)
205
+
206
+
207
+ ### :bug: Bug Fix
208
+
209
+ * upgrade devDependencies for webcomponents ([1489b8b](https://github.com/hatiolab/operato/commit/1489b8b790d9bcee779a070a630697f25c01728f))
210
+
211
+
212
+
213
+ ## [2.0.0-alpha.20](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.19...v2.0.0-alpha.20) (2024-02-05)
214
+
215
+
216
+ ### :bug: Bug Fix
217
+
218
+ * bug on ox-input-data ([6d17bc2](https://github.com/hatiolab/operato/commit/6d17bc26d8320b2aa393825ed3264df40ad5624c))
219
+
220
+
221
+
222
+ ## [2.0.0-alpha.19](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.18...v2.0.0-alpha.19) (2024-02-05)
223
+
224
+
225
+ ### :bug: Bug Fix
226
+
227
+ * bug on ox-input-data ([3893ad1](https://github.com/hatiolab/operato/commit/3893ad1a900befde2d68b875063461ae60307c5a))
228
+
229
+
230
+
231
+ ## [2.0.0-alpha.13](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.12...v2.0.0-alpha.13) (2024-01-28)
232
+
233
+
234
+ ### :bug: Bug Fix
235
+
236
+ * ox-input-data ([36b4329](https://github.com/hatiolab/operato/commit/36b4329c0bcaf0582b1c3def6125b7bc5480c968))
237
+
238
+
239
+
240
+ ## [2.0.0-alpha.11](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.10...v2.0.0-alpha.11) (2024-01-24)
241
+
242
+
243
+ ### :bug: Bug Fix
244
+
245
+ * fix typo ([522552c](https://github.com/hatiolab/operato/commit/522552cf9cf4d51ab8b20fe941623d2bae3fa840))
246
+ * ox-input-data 자동 타입 식별 기능 ([294015b](https://github.com/hatiolab/operato/commit/294015b3e9b82c7262b7e317c20a3d06de337339))
247
+
248
+
249
+
6
250
  ## [2.0.0-alpha.9](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.8...v2.0.0-alpha.9) (2024-01-20)
7
251
 
8
252
 
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en-GB">
3
3
  <head>
4
4
  <meta charset="utf-8" />
@@ -9,7 +9,19 @@
9
9
  </style>
10
10
  <link href="/themes/app-theme.css" rel="stylesheet" />
11
11
  <link href="/themes/input-theme.css" rel="stylesheet" />
12
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
12
+ <link
13
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
14
+ rel="stylesheet"
15
+ />
16
+ <link
17
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
18
+ rel="stylesheet"
19
+ />
20
+ <link
21
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
22
+ rel="stylesheet"
23
+ />
24
+
13
25
  <script src="https://cdnjs.cloudflare.com/ajax/libs/web-animations/2.3.2/web-animations-next-lite.min.js"></script>
14
26
  </head>
15
27
  <body>
@@ -1,9 +1,20 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en-GB">
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <link href="/themes/app-theme.css" rel="stylesheet" />
6
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
6
+ <link
7
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
8
+ rel="stylesheet"
9
+ />
10
+ <link
11
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
12
+ rel="stylesheet"
13
+ />
14
+ <link
15
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
16
+ rel="stylesheet"
17
+ />
7
18
  </head>
8
19
  <body>
9
20
  <form id="demo"></form>
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en-GB">
3
3
  <head>
4
4
  <meta charset="utf-8" />
@@ -33,7 +33,18 @@
33
33
  </style>
34
34
 
35
35
  <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
36
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
36
+ <link
37
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
38
+ rel="stylesheet"
39
+ />
40
+ <link
41
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
42
+ rel="stylesheet"
43
+ />
44
+ <link
45
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
46
+ rel="stylesheet"
47
+ />
37
48
  </head>
38
49
  <body>
39
50
  <form id="demo"></form>
@@ -67,9 +78,9 @@
67
78
  </ox-select>
68
79
 
69
80
  <ox-select name="multiple" @change=${onchanged} placeholder="multiple select" .value=${[
70
- 'B',
71
- 'TOO LONG VALUE'
72
- ]}>
81
+ 'B',
82
+ 'TOO LONG VALUE'
83
+ ]}>
73
84
  <ox-popup-list multiple with-search>
74
85
  <div option value="A">A</div>
75
86
  <div option value="B">B</div>
@@ -79,10 +90,10 @@
79
90
  </ox-select>
80
91
 
81
92
  <ox-select name="multiple with checkbox" @change=${onchanged} placeholder="multiple with checkbox" .value=${[
82
- 'B',
83
- 'C',
84
- 'F'
85
- ]}>
93
+ 'B',
94
+ 'C',
95
+ 'F'
96
+ ]}>
86
97
  <ox-popup-list attr-selected="checked" multiple with-search>
87
98
  <ox-checkbox option @change=${e => {
88
99
  const options = e.target.parentElement.querySelectorAll('[option]')
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en-GB">
3
3
  <head>
4
4
  <meta charset="utf-8" />
@@ -11,7 +11,18 @@
11
11
  <script src="https://cdnjs.cloudflare.com/ajax/libs/web-animations/2.3.2/web-animations-next-lite.min.js"></script>
12
12
 
13
13
  <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
14
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
14
+ <link
15
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
16
+ rel="stylesheet"
17
+ />
18
+ <link
19
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
20
+ rel="stylesheet"
21
+ />
22
+ <link
23
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
24
+ rel="stylesheet"
25
+ />
15
26
  </head>
16
27
  <body>
17
28
  <form id="demo"></form>
package/demo/index.html CHANGED
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en-GB">
3
3
  <head>
4
4
  <meta charset="utf-8" />
@@ -14,7 +14,18 @@
14
14
  </style>
15
15
  <link href="/themes/app-theme.css" rel="stylesheet" />
16
16
  <link href="/themes/input-theme.css" rel="stylesheet" />
17
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
17
+ <link
18
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
19
+ rel="stylesheet"
20
+ />
21
+ <link
22
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
23
+ rel="stylesheet"
24
+ />
25
+ <link
26
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
27
+ rel="stylesheet"
28
+ />
18
29
  </head>
19
30
  <body>
20
31
  <a href="./index-3dish.html">3dish</a>
@@ -1,5 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
2
  export declare class LocalePicker extends LitElement {
3
- render(): import("lit").TemplateResult<1>;
3
+ render(): import("lit-html").TemplateResult<1>;
4
4
  localeChanged(event: Event): void;
5
5
  }
@@ -22,7 +22,7 @@ export declare class PropertyButtonsRadio extends OxFormField {
22
22
  value: Object | null;
23
23
  mandatory: boolean;
24
24
  _slotObserver: MutationObserver;
25
- render(): import("lit").TemplateResult<1>;
25
+ render(): import("lit-html").TemplateResult<1>;
26
26
  connectedCallback(): void;
27
27
  disconnectedCallback(): void;
28
28
  updated(changes: PropertyValues<this>): void;
@@ -7,13 +7,14 @@ export declare class OxCheckbox extends OxFormField {
7
7
  checked: boolean | undefined;
8
8
  indeterminatable: boolean;
9
9
  indeterminate: boolean;
10
+ left: boolean;
10
11
  _hasInner: boolean;
11
- render(): import("lit").TemplateResult<1>;
12
+ render(): import("lit-html").TemplateResult<1>;
12
13
  connectedCallback(): void;
13
14
  onClick(): void;
14
- get checkedIcon(): import("lit").TemplateResult<1>;
15
- get uncheckedIcon(): import("lit").TemplateResult<1>;
16
- get indeterminateIcon(): import("lit").TemplateResult<1>;
15
+ get checkedIcon(): import("lit-html").TemplateResult<1>;
16
+ get uncheckedIcon(): import("lit-html").TemplateResult<1>;
17
+ get indeterminateIcon(): import("lit-html").TemplateResult<1>;
17
18
  onKeyDown(e: KeyboardEvent): void;
18
19
  protected appendFormData({ formData }: FormDataEvent): void;
19
20
  }
@@ -14,16 +14,15 @@ let OxCheckbox = class OxCheckbox extends OxFormField {
14
14
  this.checked = false;
15
15
  this.indeterminatable = false;
16
16
  this.indeterminate = false;
17
+ this.left = false;
17
18
  this._hasInner = !!this.innerHTML.trim().length;
18
19
  }
19
20
  static { this.styles = [
20
21
  css `
21
- :host {
22
- display: flex;
23
- }
24
-
25
22
  div {
26
23
  display: flex;
24
+ gap: var(--input-intra-gap, 7px);
25
+
27
26
  align-items: center;
28
27
  cursor: pointer;
29
28
  }
@@ -68,7 +67,6 @@ let OxCheckbox = class OxCheckbox extends OxFormField {
68
67
  }
69
68
 
70
69
  [label] {
71
- margin: var(--ox-checkbox-label-margin, 0 0 0 7px);
72
70
  color: var(--ox-checkbox-label-color, #3a5877);
73
71
  }
74
72
 
@@ -80,10 +78,15 @@ let OxCheckbox = class OxCheckbox extends OxFormField {
80
78
  render() {
81
79
  return html `
82
80
  <div @click=${this.onClick} ?disabled=${this.disabled}>
81
+ ${this._hasInner && this.left
82
+ ? html ` <span label>
83
+ <slot></slot>
84
+ </span>`
85
+ : ''}
83
86
  <a href="#" @click=${(e) => e.preventDefault()} checkbox>
84
87
  ${this.indeterminate ? this.indeterminateIcon : this.checked ? this.checkedIcon : this.uncheckedIcon}
85
88
  </a>
86
- ${this._hasInner
89
+ ${this._hasInner && !this.left
87
90
  ? html ` <span label>
88
91
  <slot></slot>
89
92
  </span>`
@@ -164,6 +167,9 @@ __decorate([
164
167
  __decorate([
165
168
  property({ type: Boolean, attribute: 'indeterminate', reflect: true })
166
169
  ], OxCheckbox.prototype, "indeterminate", void 0);
170
+ __decorate([
171
+ property({ type: Boolean, attribute: 'left-label' })
172
+ ], OxCheckbox.prototype, "left", void 0);
167
173
  __decorate([
168
174
  state()
169
175
  ], OxCheckbox.prototype, "_hasInner", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"ox-checkbox.js","sourceRoot":"","sources":["../../src/ox-checkbox.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH;;EAEE;AAEF,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAGtC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,WAAW;IAApC;;QA+D6D,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CAAC;;AA5FiE;IAAjE,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;2CAAqC;AAC1C;IAA3D,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;oDAAkC;AACrB;IAAvE,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAA+B;AAE7F;IAAR,KAAK,EAAE;6CAAoD;AAnEjD,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;GAChB,UAAU,CA4JtB","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\n/*\n This component is inspired by https://github.com/Polydile/dile-components, thanks Dile.\n*/\n\nimport { css, html } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\n\nimport { OxFormField } from './ox-form-field'\n\n@customElement('ox-checkbox')\nexport class OxCheckbox extends OxFormField {\n static styles = [\n css`\n :host {\n display: flex;\n }\n\n div {\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n\n [disabled] {\n opacity: var(--ox-checkbox-disabled-opacity, 0.5);\n cursor: auto;\n }\n\n [checkbox] {\n display: flex;\n border-radius: var(--ox-checkbox-border-radius, 4px);\n border: var(--ox-checkbox-border, 1px solid rgba(0, 0, 0, 0.3));\n background-color: var(--ox-checkbox-background-color, #fff);\n width: var(--ox-checkbox-size, 15px);\n height: var(--ox-checkbox-size, 15px);\n align-items: center;\n justify-content: center;\n }\n\n a {\n background-color: var(--ox-checkbox-unchecked-background-color, #fff);\n border: var(--ox-checkbox-unchecked-border, 1px solid rgba(0, 0, 0, 0.3));\n }\n\n :host([checked]) a {\n background-color: var(--ox-checkbox-checked-background-color, #fff);\n border: var(--ox-checkbox-checked-border, 1px solid #38a25b);\n }\n\n path {\n fill: var(--ox-checkbox-fill-color, rgba(0, 0, 0, 0.1));\n }\n\n :host([checked]) path {\n fill: var(--ox-checkbox-checked-color, #38a25b);\n }\n\n svg {\n width: var(--ox-checkbox-size, 15px);\n height: var(--ox-checkbox-size, 15px);\n }\n\n [label] {\n margin: var(--ox-checkbox-label-margin, 0 0 0 7px);\n color: var(--ox-checkbox-label-color, #3a5877);\n }\n\n :host([checked]) [label] {\n font-weight: var(--ox-checkbox-checked-font-weight, bold);\n }\n `\n ]\n\n @property({ type: Boolean, attribute: 'checked', reflect: true }) checked: boolean | undefined = false\n @property({ type: Boolean, attribute: 'indeterminatable' }) indeterminatable: boolean = false\n @property({ type: Boolean, attribute: 'indeterminate', reflect: true }) indeterminate: boolean = false\n\n @state() _hasInner: boolean = !!this.innerHTML.trim().length\n\n render() {\n return html`\n <div @click=${this.onClick} ?disabled=${this.disabled}>\n <a href=\"#\" @click=${(e: Event) => e.preventDefault()} checkbox>\n ${this.indeterminate ? this.indeterminateIcon : this.checked ? this.checkedIcon : this.uncheckedIcon}\n </a>\n ${this._hasInner\n ? html` <span label>\n <slot></slot>\n </span>`\n : ''}\n </div>\n `\n }\n\n connectedCallback() {\n super.connectedCallback()\n\n this.setAttribute('tabindex', '0')\n this.addEventListener('keydown', this.onKeyDown.bind(this))\n }\n\n onClick() {\n if (this.disabled) {\n return\n }\n\n if (!this.indeterminatable) {\n this.indeterminate = false\n this.checked = !this.checked\n } else {\n if (this.indeterminate) {\n this.indeterminate = false\n this.checked = true\n } else if (this.checked) {\n this.indeterminate = false\n this.checked = false\n } else {\n this.indeterminate = true\n this.checked = undefined\n }\n }\n\n this.dispatchEvent(\n new CustomEvent('change', {\n bubbles: true,\n composed: true,\n detail: this.checked\n })\n )\n }\n\n get checkedIcon() {\n return html`\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path d=\"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z\" />\n </svg>\n `\n }\n\n get uncheckedIcon() {\n return html`\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path d=\"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z\" />\n </svg>\n `\n }\n\n get indeterminateIcon() {\n return html`\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <line x1=\"4\" x2=\"20\" y1=\"12\" y2=\"12\" stroke=\"rgba(0, 0, 0, 0.7)\" stroke-width=\"2\" stroke-linecap=\"round\" />\n </svg>\n `\n }\n\n onKeyDown(e: KeyboardEvent) {\n e.preventDefault()\n\n if (e.key === ' ' || e.key == 'Spacebar') {\n this.onClick()\n }\n }\n\n protected appendFormData({ formData }: FormDataEvent): void {\n this.name && !this.indeterminate && formData.append(this.name, this.checked ? 'true' : 'false')\n }\n}\n"]}
1
+ {"version":3,"file":"ox-checkbox.js","sourceRoot":"","sources":["../../src/ox-checkbox.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH;;EAEE;AAEF,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAGtC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,WAAW;IAApC;;QA4D6D,YAAO,GAAwB,KAAK,CAAA;QAC1C,qBAAgB,GAAY,KAAK,CAAA;QACrB,kBAAa,GAAY,KAAK,CAAA;QAChD,SAAI,GAAY,KAAK,CAAA;QAElE,cAAS,GAAY,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,CAAA;IA8F9D,CAAC;aA9JQ,WAAM,GAAG;QACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuDF;KACF,AAzDY,CAyDZ;IASD,MAAM;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AE,kBAAkB,EAAE,CAAC;oDAAkC;AACrB;IAAvE,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAA+B;AAChD;IAArD,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;wCAAsB;AAElE;IAAR,KAAK,EAAE;6CAAoD;AAjEjD,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;GAChB,UAAU,CA+JtB","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\n/*\n This component is inspired by https://github.com/Polydile/dile-components, thanks Dile.\n*/\n\nimport { css, html } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\n\nimport { OxFormField } from './ox-form-field'\n\n@customElement('ox-checkbox')\nexport class OxCheckbox extends OxFormField {\n static styles = [\n css`\n div {\n display: flex;\n gap: var(--input-intra-gap, 7px);\n\n align-items: center;\n cursor: pointer;\n }\n\n [disabled] {\n opacity: var(--ox-checkbox-disabled-opacity, 0.5);\n cursor: auto;\n }\n\n [checkbox] {\n display: flex;\n border-radius: var(--ox-checkbox-border-radius, 4px);\n border: var(--ox-checkbox-border, 1px solid rgba(0, 0, 0, 0.3));\n background-color: var(--ox-checkbox-background-color, #fff);\n width: var(--ox-checkbox-size, 15px);\n height: var(--ox-checkbox-size, 15px);\n align-items: center;\n justify-content: center;\n }\n\n a {\n background-color: var(--ox-checkbox-unchecked-background-color, #fff);\n border: var(--ox-checkbox-unchecked-border, 1px solid rgba(0, 0, 0, 0.3));\n }\n\n :host([checked]) a {\n background-color: var(--ox-checkbox-checked-background-color, #fff);\n border: var(--ox-checkbox-checked-border, 1px solid #38a25b);\n }\n\n path {\n fill: var(--ox-checkbox-fill-color, rgba(0, 0, 0, 0.1));\n }\n\n :host([checked]) path {\n fill: var(--ox-checkbox-checked-color, #38a25b);\n }\n\n svg {\n width: var(--ox-checkbox-size, 15px);\n height: var(--ox-checkbox-size, 15px);\n }\n\n [label] {\n color: var(--ox-checkbox-label-color, #3a5877);\n }\n\n :host([checked]) [label] {\n font-weight: var(--ox-checkbox-checked-font-weight, bold);\n }\n `\n ]\n\n @property({ type: Boolean, attribute: 'checked', reflect: true }) checked: boolean | undefined = false\n @property({ type: Boolean, attribute: 'indeterminatable' }) indeterminatable: boolean = false\n @property({ type: Boolean, attribute: 'indeterminate', reflect: true }) indeterminate: boolean = false\n @property({ type: Boolean, attribute: 'left-label' }) left: boolean = false\n\n @state() _hasInner: boolean = !!this.innerHTML.trim().length\n\n render() {\n return html`\n <div @click=${this.onClick} ?disabled=${this.disabled}>\n ${this._hasInner && this.left\n ? html` <span label>\n <slot></slot>\n </span>`\n : ''}\n <a href=\"#\" @click=${(e: Event) => e.preventDefault()} checkbox>\n ${this.indeterminate ? this.indeterminateIcon : this.checked ? this.checkedIcon : this.uncheckedIcon}\n </a>\n ${this._hasInner && !this.left\n ? html` <span label>\n <slot></slot>\n </span>`\n : ''}\n </div>\n `\n }\n\n connectedCallback() {\n super.connectedCallback()\n\n this.setAttribute('tabindex', '0')\n this.addEventListener('keydown', this.onKeyDown.bind(this))\n }\n\n onClick() {\n if (this.disabled) {\n return\n }\n\n if (!this.indeterminatable) {\n this.indeterminate = false\n this.checked = !this.checked\n } else {\n if (this.indeterminate) {\n this.indeterminate = false\n this.checked = true\n } else if (this.checked) {\n this.indeterminate = false\n this.checked = false\n } else {\n this.indeterminate = true\n this.checked = undefined\n }\n }\n\n this.dispatchEvent(\n new CustomEvent('change', {\n bubbles: true,\n composed: true,\n detail: this.checked\n })\n )\n }\n\n get checkedIcon() {\n return html`\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path d=\"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z\" />\n </svg>\n `\n }\n\n get uncheckedIcon() {\n return html`\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path d=\"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z\" />\n </svg>\n `\n }\n\n get indeterminateIcon() {\n return html`\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <line x1=\"4\" x2=\"20\" y1=\"12\" y2=\"12\" stroke=\"rgba(0, 0, 0, 0.7)\" stroke-width=\"2\" stroke-linecap=\"round\" />\n </svg>\n `\n }\n\n onKeyDown(e: KeyboardEvent) {\n e.preventDefault()\n\n if (e.key === ' ' || e.key == 'Spacebar') {\n this.onClick()\n }\n }\n\n protected appendFormData({ formData }: FormDataEvent): void {\n this.name && !this.indeterminate && formData.append(this.name, this.checked ? 'true' : 'false')\n }\n}\n"]}
@@ -6,5 +6,5 @@ export declare class OxInput3Axis extends OxFormField {
6
6
  static styles: import("lit").CSSResult[];
7
7
  firstUpdated(): void;
8
8
  _onChange(e: Event): void;
9
- render(): import("lit").TemplateResult<1>;
9
+ render(): import("lit-html").TemplateResult<1>;
10
10
  }
@@ -27,5 +27,5 @@ export declare class OxInput3Dish extends OxFormField {
27
27
  };
28
28
  firstUpdated(): void;
29
29
  _onChange(e: Event): void;
30
- render(): import("lit").TemplateResult<1>;
30
+ render(): import("lit-html").TemplateResult<1>;
31
31
  }
@@ -6,7 +6,7 @@ export declare class OxInputAngle extends OxFormField {
6
6
  static styles: import("lit").CSSResult[];
7
7
  placeholder?: string;
8
8
  input: HTMLInputElement;
9
- render(): import("lit").TemplateResult<1>;
9
+ render(): import("lit-html").TemplateResult<1>;
10
10
  _onChangeValue(e: Event): void;
11
11
  _toDegree(value: string | number | undefined): number;
12
12
  _toRadian(degree: string | number | undefined): number | undefined;
@@ -62,7 +62,7 @@ export declare class OxInputBarcode extends OxFormField {
62
62
  private video;
63
63
  connectedCallback(): void;
64
64
  disconnectedCallback(): void;
65
- render(): import("lit").TemplateResult<1>;
65
+ render(): import("lit-html").TemplateResult<1>;
66
66
  onInputChange(e: Event): void;
67
67
  onInputKeyDown(e: KeyboardEvent): void;
68
68
  scan(e: MouseEvent): Promise<void>;
@@ -172,12 +172,12 @@ let OxInputBarcode = class OxInputBarcode extends OxFormField {
172
172
  this.popup = OxPopup.open({
173
173
  template: html `
174
174
  <video></video>
175
- <mwc-icon
175
+ <md-icon
176
176
  style="position: fixed; right: 0; top: 0; color: red; tabindex: 0"
177
177
  @click=${() => {
178
178
  this.stopScan();
179
179
  }}
180
- >close</mwc-icon
180
+ >close</md-icon
181
181
  >
182
182
  `,
183
183
  width: '100vw',