@operato/input 1.17.5 → 2.0.0-alpha.100

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 (199) hide show
  1. package/CHANGELOG.md +269 -20
  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 +49 -6
  16. package/dist/src/ox-input-barcode.js +97 -69
  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 +1 -1
  31. package/dist/src/ox-input-data.js +2 -2
  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 +2 -2
  41. package/dist/src/ox-input-i18n-label.js +3 -2
  42. package/dist/src/ox-input-i18n-label.js.map +1 -1
  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-select-buttons.js +1 -1
  71. package/dist/src/ox-input-select-buttons.js.map +1 -1
  72. package/dist/src/ox-input-stack.d.ts +1 -1
  73. package/dist/src/ox-input-table.d.ts +1 -1
  74. package/dist/src/ox-input-table.js +12 -12
  75. package/dist/src/ox-input-table.js.map +1 -1
  76. package/dist/src/ox-input-textarea.d.ts +1 -1
  77. package/dist/src/ox-input-unit-number.d.ts +2 -2
  78. package/dist/src/ox-input-unit-number.js +5 -4
  79. package/dist/src/ox-input-unit-number.js.map +1 -1
  80. package/dist/src/ox-input-value-map.d.ts +2 -2
  81. package/dist/src/ox-input-value-map.js +17 -17
  82. package/dist/src/ox-input-value-map.js.map +1 -1
  83. package/dist/src/ox-input-value-ranges.d.ts +2 -2
  84. package/dist/src/ox-input-value-ranges.js +22 -17
  85. package/dist/src/ox-input-value-ranges.js.map +1 -1
  86. package/dist/src/ox-input-work-shift.d.ts +1 -1
  87. package/dist/src/ox-input-work-shift.js +4 -8
  88. package/dist/src/ox-input-work-shift.js.map +1 -1
  89. package/dist/src/ox-select.d.ts +2 -2
  90. package/dist/src/ox-select.js +16 -10
  91. package/dist/src/ox-select.js.map +1 -1
  92. package/dist/stories/ox-input-3axis.stories.js +14 -1
  93. package/dist/stories/ox-input-3axis.stories.js.map +1 -1
  94. package/dist/stories/ox-input-3dish.stories.js +14 -1
  95. package/dist/stories/ox-input-3dish.stories.js.map +1 -1
  96. package/dist/stories/ox-input-angle.stories.js +13 -1
  97. package/dist/stories/ox-input-angle.stories.js.map +1 -1
  98. package/dist/stories/ox-input-barcode.stories.js +17 -1
  99. package/dist/stories/ox-input-barcode.stories.js.map +1 -1
  100. package/dist/stories/ox-input-code.stories.d.ts +4 -0
  101. package/dist/stories/ox-input-code.stories.js +18 -3
  102. package/dist/stories/ox-input-code.stories.js.map +1 -1
  103. package/dist/stories/ox-input-crontab.stories.js +13 -1
  104. package/dist/stories/ox-input-crontab.stories.js.map +1 -1
  105. package/dist/stories/ox-input-data.stories.d.ts +0 -4
  106. package/dist/stories/ox-input-data.stories.js +14 -4
  107. package/dist/stories/ox-input-data.stories.js.map +1 -1
  108. package/dist/stories/ox-input-duration.stories.js +13 -1
  109. package/dist/stories/ox-input-duration.stories.js.map +1 -1
  110. package/dist/stories/ox-input-file.stories.js +13 -1
  111. package/dist/stories/ox-input-file.stories.js.map +1 -1
  112. package/dist/stories/ox-input-hashtags.stories.js +13 -1
  113. package/dist/stories/ox-input-hashtags.stories.js.map +1 -1
  114. package/dist/stories/ox-input-i18n-label.stories.js +14 -2
  115. package/dist/stories/ox-input-i18n-label.stories.js.map +1 -1
  116. package/dist/stories/ox-input-key-values.stories.js +13 -1
  117. package/dist/stories/ox-input-key-values.stories.js.map +1 -1
  118. package/dist/stories/ox-input-mass-fraction.stories.js +13 -1
  119. package/dist/stories/ox-input-mass-fraction.stories.js.map +1 -1
  120. package/dist/stories/ox-input-multiple-colors.stories.js +21 -11
  121. package/dist/stories/ox-input-multiple-colors.stories.js.map +1 -1
  122. package/dist/stories/ox-input-options.stories.js +13 -1
  123. package/dist/stories/ox-input-options.stories.js.map +1 -1
  124. package/dist/stories/ox-input-partition-keys.stories.js +13 -1
  125. package/dist/stories/ox-input-partition-keys.stories.js.map +1 -1
  126. package/dist/stories/ox-input-privilege.stories.js +13 -1
  127. package/dist/stories/ox-input-privilege.stories.js.map +1 -1
  128. package/dist/stories/ox-input-quantifier.stories.js +13 -1
  129. package/dist/stories/ox-input-quantifier.stories.js.map +1 -1
  130. package/dist/stories/ox-input-range.stories.js +13 -1
  131. package/dist/stories/ox-input-range.stories.js.map +1 -1
  132. package/dist/stories/ox-input-search.stories.js +13 -1
  133. package/dist/stories/ox-input-search.stories.js.map +1 -1
  134. package/dist/stories/ox-input-select-buttons.stories.js +13 -1
  135. package/dist/stories/ox-input-select-buttons.stories.js.map +1 -1
  136. package/dist/stories/ox-input-unit.stories.js +14 -1
  137. package/dist/stories/ox-input-unit.stories.js.map +1 -1
  138. package/dist/stories/ox-input-value-map.stories.js +13 -1
  139. package/dist/stories/ox-input-value-map.stories.js.map +1 -1
  140. package/dist/stories/ox-input-value-ranges.stories.js +13 -1
  141. package/dist/stories/ox-input-value-ranges.stories.js.map +1 -1
  142. package/dist/stories/ox-input-work-shift.stories.js +13 -1
  143. package/dist/stories/ox-input-work-shift.stories.js.map +1 -1
  144. package/dist/stories/ox-select.stories.js +13 -1
  145. package/dist/stories/ox-select.stories.js.map +1 -1
  146. package/dist/tsconfig.tsbuildinfo +1 -1
  147. package/package.json +22 -22
  148. package/src/ox-checkbox.ts +9 -6
  149. package/src/ox-input-barcode.ts +128 -63
  150. package/src/ox-input-code.ts +6 -13
  151. package/src/ox-input-container.ts +2 -2
  152. package/src/ox-input-crontab.ts +4 -8
  153. package/src/ox-input-data.ts +2 -2
  154. package/src/ox-input-duration.ts +13 -10
  155. package/src/ox-input-file.ts +10 -9
  156. package/src/ox-input-i18n-label.ts +3 -2
  157. package/src/ox-input-image.ts +4 -4
  158. package/src/ox-input-key-values.ts +27 -22
  159. package/src/ox-input-mass-fraction.ts +46 -29
  160. package/src/ox-input-multiple-colors.ts +7 -7
  161. package/src/ox-input-options.ts +5 -7
  162. package/src/ox-input-partition-keys.ts +28 -22
  163. package/src/ox-input-privilege.ts +15 -32
  164. package/src/ox-input-search.ts +5 -4
  165. package/src/ox-input-select-buttons.ts +1 -1
  166. package/src/ox-input-table.ts +12 -12
  167. package/src/ox-input-unit-number.ts +5 -4
  168. package/src/ox-input-value-map.ts +19 -19
  169. package/src/ox-input-value-ranges.ts +24 -19
  170. package/src/ox-input-work-shift.ts +4 -8
  171. package/src/ox-select.ts +16 -10
  172. package/stories/ox-input-3axis.stories.ts +14 -1
  173. package/stories/ox-input-3dish.stories.ts +14 -1
  174. package/stories/ox-input-angle.stories.ts +13 -1
  175. package/stories/ox-input-barcode.stories.ts +17 -1
  176. package/stories/ox-input-code.stories.ts +25 -3
  177. package/stories/ox-input-crontab.stories.ts +13 -1
  178. package/stories/ox-input-data.stories.ts +14 -4
  179. package/stories/ox-input-duration.stories.ts +13 -1
  180. package/stories/ox-input-file.stories.ts +13 -1
  181. package/stories/ox-input-hashtags.stories.ts +13 -1
  182. package/stories/ox-input-i18n-label.stories.ts +14 -2
  183. package/stories/ox-input-key-values.stories.ts +13 -1
  184. package/stories/ox-input-mass-fraction.stories.ts +13 -1
  185. package/stories/ox-input-multiple-colors.stories.ts +21 -11
  186. package/stories/ox-input-options.stories.ts +13 -1
  187. package/stories/ox-input-partition-keys.stories.ts +13 -1
  188. package/stories/ox-input-privilege.stories.ts +13 -1
  189. package/stories/ox-input-quantifier.stories.ts +13 -1
  190. package/stories/ox-input-range.stories.ts +13 -1
  191. package/stories/ox-input-search.stories.ts +13 -1
  192. package/stories/ox-input-select-buttons.stories.ts +13 -1
  193. package/stories/ox-input-unit.stories.ts +14 -1
  194. package/stories/ox-input-value-map.stories.ts +13 -1
  195. package/stories/ox-input-value-ranges.stories.ts +13 -1
  196. package/stories/ox-input-work-shift.stories.ts +13 -1
  197. package/stories/ox-select.stories.ts +13 -1
  198. package/themes/app-theme.css +1 -1
  199. package/themes/input-theme.css +20 -7
package/CHANGELOG.md CHANGED
@@ -3,17 +3,98 @@
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
- ### [1.17.5](https://github.com/hatiolab/operato/compare/v1.17.4...v1.17.5) (2024-03-18)
6
+ ## [2.0.0-alpha.100](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.99...v2.0.0-alpha.100) (2024-04-21)
7
+
8
+ **Note:** Version bump only for package @operato/input
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.0.0-alpha.99](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.98...v2.0.0-alpha.99) (2024-04-21)
15
+
16
+ **Note:** Version bump only for package @operato/input
17
+
18
+
19
+
20
+
21
+
22
+ ## [2.0.0-alpha.98](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.97...v2.0.0-alpha.98) (2024-04-21)
23
+
24
+ **Note:** Version bump only for package @operato/input
25
+
26
+
27
+
28
+
29
+
30
+ ## [2.0.0-alpha.94](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.93...v2.0.0-alpha.94) (2024-04-20)
31
+
32
+ **Note:** Version bump only for package @operato/input
33
+
34
+
35
+
36
+
37
+
38
+ ## [2.0.0-alpha.92](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.91...v2.0.0-alpha.92) (2024-04-19)
39
+
40
+
41
+ ### :bug: Bug Fix
42
+
43
+ * common styles for grist ([6683ec7](https://github.com/hatiolab/operato/commit/6683ec7b21515b49d43420e6a5ef890ff882a96b))
44
+
45
+
46
+
47
+ ## [2.0.0-alpha.90](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.89...v2.0.0-alpha.90) (2024-04-18)
48
+
49
+ **Note:** Version bump only for package @operato/input
50
+
51
+
52
+
53
+
54
+
55
+ ## [2.0.0-alpha.89](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.88...v2.0.0-alpha.89) (2024-04-18)
56
+
57
+ **Note:** Version bump only for package @operato/input
58
+
59
+
60
+
61
+
62
+
63
+ ## [2.0.0-alpha.87](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.86...v2.0.0-alpha.87) (2024-04-17)
64
+
65
+ **Note:** Version bump only for package @operato/input
66
+
67
+
68
+
69
+
70
+
71
+ ## [2.0.0-alpha.85](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.84...v2.0.0-alpha.85) (2024-04-16)
72
+
73
+
74
+ ### :bug: Bug Fix
75
+
76
+ * tweak filters-form style ([6fb293d](https://github.com/hatiolab/operato/commit/6fb293d7d34ea7b01b3011264f554158beb62621))
77
+
78
+
79
+
80
+ ## [2.0.0-alpha.82](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.81...v2.0.0-alpha.82) (2024-04-15)
81
+
82
+ **Note:** Version bump only for package @operato/input
83
+
84
+
85
+
86
+
87
+
88
+ ## [2.0.0-alpha.81](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.80...v2.0.0-alpha.81) (2024-04-15)
7
89
 
8
90
 
9
91
  ### :bug: Bug Fix
10
92
 
11
- * multilingual common-code ([339ef8d](https://github.com/hatiolab/operato/commit/339ef8d38feb6e1384eeb8d0622e2c627808d828))
12
- * multilingual common-code ([5ff959d](https://github.com/hatiolab/operato/commit/5ff959db975313ebc2af40d3e9e9e0ad51e5cc53))
93
+ * use button-container styles ([bd91be3](https://github.com/hatiolab/operato/commit/bd91be3eaf5337a0ffe8cfc3b37191b6427ce5f6))
13
94
 
14
95
 
15
96
 
16
- ### [1.17.2](https://github.com/hatiolab/operato/compare/v1.17.1...v1.17.2) (2024-02-28)
97
+ ## [2.0.0-alpha.80](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.79...v2.0.0-alpha.80) (2024-04-15)
17
98
 
18
99
  **Note:** Version bump only for package @operato/input
19
100
 
@@ -21,45 +102,87 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
21
102
 
22
103
 
23
104
 
24
- ### [1.14.3](https://github.com/hatiolab/operato/compare/v1.14.2...v1.14.3) (2024-02-05)
105
+ ## [2.0.0-alpha.68](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.67...v2.0.0-alpha.68) (2024-04-13)
106
+
107
+
108
+ ### :bug: Bug Fix
109
+
110
+ * mwc=>md for context ([2bc13f2](https://github.com/hatiolab/operato/commit/2bc13f285f257782f73e5d7b5d1ddd197df85393))
111
+
112
+
113
+
114
+ ## [2.0.0-alpha.64](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.63...v2.0.0-alpha.64) (2024-04-13)
25
115
 
26
116
 
27
117
  ### :bug: Bug Fix
28
118
 
29
- * bug on ox-input-data ([a277474](https://github.com/hatiolab/operato/commit/a2774741fd475e7458a5ad0a450a88a94ac0a53d))
30
- * bug on ox-input-data ([6710eb1](https://github.com/hatiolab/operato/commit/6710eb12bfd4ab5cea30193e67bca327eeeaea28))
119
+ * mwc=>md for context ([269d5fe](https://github.com/hatiolab/operato/commit/269d5fedca38096ce41850afe88a17ed1fd656dd))
31
120
 
32
121
 
33
122
 
34
- ### [1.13.14](https://github.com/hatiolab/operato/compare/v1.13.13...v1.13.14) (2024-01-24)
123
+ ## [2.0.0-alpha.62](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.61...v2.0.0-alpha.62) (2024-04-12)
35
124
 
36
125
 
37
126
  ### :bug: Bug Fix
38
127
 
39
- * ox-input-data ([bd485dd](https://github.com/hatiolab/operato/commit/bd485dd1c508ec4247794ace55066b73cc70a1d7))
128
+ * change the labels of ox-input-mass-fraction ([3165762](https://github.com/hatiolab/operato/commit/31657626acca7f4412ab02549e8c2de0fb25fcec))
129
+ * mwc=>md for context ([464c406](https://github.com/hatiolab/operato/commit/464c4067415805c0199b8a17e966b5c71ea833ec))
130
+ * mwc=>md for context ([6b88ef7](https://github.com/hatiolab/operato/commit/6b88ef7bed215f64415ccdd44d2603bc893e573d))
131
+
132
+
133
+
134
+ ## [2.0.0-alpha.59](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.58...v2.0.0-alpha.59) (2024-04-11)
135
+
136
+
137
+ ### :bug: Bug Fix
138
+
139
+ * add show-line-numbers option for ox-input-code ([0d63b0b](https://github.com/hatiolab/operato/commit/0d63b0b80ae6833fa9b37037c2f40394adfd3c27))
140
+
141
+
142
+
143
+ ## [2.0.0-alpha.57](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.56...v2.0.0-alpha.57) (2024-04-07)
144
+
145
+ **Note:** Version bump only for package @operato/input
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+ **Note:** Version bump only for package @operato/input
154
+
155
+
156
+
157
+
158
+
159
+ ## [2.0.0-alpha.52](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.51...v2.0.0-alpha.52) (2024-03-29)
160
+
161
+ **Note:** Version bump only for package @operato/input
162
+
163
+
40
164
 
41
165
 
42
166
 
43
- ### [1.13.12](https://github.com/hatiolab/operato/compare/v1.13.11...v1.13.12) (2024-01-24)
167
+ ## [2.0.0-alpha.51](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.50...v2.0.0-alpha.51) (2024-03-29)
44
168
 
45
169
 
46
170
  ### :bug: Bug Fix
47
171
 
48
- * fix typo ([5e71d20](https://github.com/hatiolab/operato/commit/5e71d20af7f30c57249cfbdfdeb9e88c48ef738e))
49
- * ox-input-data 자동 타입 식별 기능 ([0763ddb](https://github.com/hatiolab/operato/commit/0763ddb2b0b9334c357d4b16df530ee3c8b883f3))
172
+ * upgrade lit ([e661c33](https://github.com/hatiolab/operato/commit/e661c333d2bb97f784b5ac2c0e365714ee5e80ff))
50
173
 
51
174
 
52
175
 
53
- ### [1.13.11](https://github.com/hatiolab/operato/compare/v1.13.10...v1.13.11) (2024-01-18)
176
+ ## [2.0.0-alpha.49](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.48...v2.0.0-alpha.49) (2024-03-28)
54
177
 
55
178
 
56
179
  ### :bug: Bug Fix
57
180
 
58
- * add composable property for ox-input-mass-fraction ([046f7d6](https://github.com/hatiolab/operato/commit/046f7d64a8280b6ad762cda0c88f58fa1fd644d8))
181
+ * i18n label ([fd48ef2](https://github.com/hatiolab/operato/commit/fd48ef2bd9bde7846a032fed5d34283fbb27a065))
59
182
 
60
183
 
61
184
 
62
- ### [1.13.9](https://github.com/hatiolab/operato/compare/v1.13.8...v1.13.9) (2024-01-17)
185
+ ## [2.0.0-alpha.48](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.47...v2.0.0-alpha.48) (2024-03-28)
63
186
 
64
187
  **Note:** Version bump only for package @operato/input
65
188
 
@@ -67,7 +190,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
67
190
 
68
191
 
69
192
 
70
- ### [1.13.7](https://github.com/hatiolab/operato/compare/v1.13.6...v1.13.7) (2024-01-15)
193
+ ## [2.0.0-alpha.47](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.46...v2.0.0-alpha.47) (2024-03-27)
71
194
 
72
195
  **Note:** Version bump only for package @operato/input
73
196
 
@@ -75,21 +198,147 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
75
198
 
76
199
 
77
200
 
78
- ### [1.13.4](https://github.com/hatiolab/operato/compare/v1.13.3...v1.13.4) (2024-01-15)
201
+ ## [2.0.0-alpha.35](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.34...v2.0.0-alpha.35) (2024-03-13)
202
+
203
+ **Note:** Version bump only for package @operato/input
204
+
205
+
206
+
207
+
208
+
209
+ ## [2.0.0-alpha.34](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.33...v2.0.0-alpha.34) (2024-03-12)
210
+
211
+
212
+ ### :bug: Bug Fix
213
+
214
+ * multilingual common-code ([80ca17f](https://github.com/hatiolab/operato/commit/80ca17f32f87808d78ac23ff2737584d6ac8098e))
215
+
216
+
217
+
218
+ ## [2.0.0-alpha.32](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.31...v2.0.0-alpha.32) (2024-03-12)
219
+
220
+
221
+ ### :bug: Bug Fix
222
+
223
+ * multilingual common-code ([184bcd9](https://github.com/hatiolab/operato/commit/184bcd9ce23ead50e46d9b6cc7bf6788e63b6e21))
224
+
225
+
226
+
227
+ ## [2.0.0-alpha.31](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.30...v2.0.0-alpha.31) (2024-03-03)
228
+
229
+
230
+ ### :bug: Bug Fix
231
+
232
+ * revert ox-input-data min-width style ([f4edc49](https://github.com/hatiolab/operato/commit/f4edc49f4e8609fce1203fab9838f5b490573ee1))
233
+
234
+
235
+
236
+ ## [2.0.0-alpha.30](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.29...v2.0.0-alpha.30) (2024-03-03)
237
+
238
+
239
+ ### :bug: Bug Fix
240
+
241
+ * upgrade cm6-graphql ([ec4bc9f](https://github.com/hatiolab/operato/commit/ec4bc9fdf7df0f7d698abc30c4de88c77d8119bf))
242
+
243
+
244
+
245
+ ## [2.0.0-alpha.28](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.27...v2.0.0-alpha.28) (2024-02-20)
246
+
247
+
248
+ ### :bug: Bug Fix
249
+
250
+ * upgrade devDependencies for webcomponents ([1489b8b](https://github.com/hatiolab/operato/commit/1489b8b790d9bcee779a070a630697f25c01728f))
251
+
252
+
253
+
254
+ ## [2.0.0-alpha.20](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.19...v2.0.0-alpha.20) (2024-02-05)
255
+
256
+
257
+ ### :bug: Bug Fix
258
+
259
+ * bug on ox-input-data ([6d17bc2](https://github.com/hatiolab/operato/commit/6d17bc26d8320b2aa393825ed3264df40ad5624c))
260
+
261
+
262
+
263
+ ## [2.0.0-alpha.19](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.18...v2.0.0-alpha.19) (2024-02-05)
264
+
265
+
266
+ ### :bug: Bug Fix
267
+
268
+ * bug on ox-input-data ([3893ad1](https://github.com/hatiolab/operato/commit/3893ad1a900befde2d68b875063461ae60307c5a))
269
+
270
+
271
+
272
+ ## [2.0.0-alpha.13](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.12...v2.0.0-alpha.13) (2024-01-28)
273
+
274
+
275
+ ### :bug: Bug Fix
276
+
277
+ * ox-input-data ([36b4329](https://github.com/hatiolab/operato/commit/36b4329c0bcaf0582b1c3def6125b7bc5480c968))
278
+
279
+
280
+
281
+ ## [2.0.0-alpha.11](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.10...v2.0.0-alpha.11) (2024-01-24)
79
282
 
80
283
 
81
284
  ### :bug: Bug Fix
82
285
 
83
- * change class name OxInputUnit -> OxInputUnitNumber ([8447341](https://github.com/hatiolab/operato/commit/8447341805ed5949bdc5f2a6347d772a04365eac))
286
+ * fix typo ([522552c](https://github.com/hatiolab/operato/commit/522552cf9cf4d51ab8b20fe941623d2bae3fa840))
287
+ * ox-input-data 자동 타입 식별 기능 ([294015b](https://github.com/hatiolab/operato/commit/294015b3e9b82c7262b7e317c20a3d06de337339))
84
288
 
85
289
 
86
290
 
87
- ### [1.13.3](https://github.com/hatiolab/operato/compare/v1.13.2...v1.13.3) (2024-01-13)
291
+ ## [2.0.0-alpha.9](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.8...v2.0.0-alpha.9) (2024-01-20)
88
292
 
89
293
 
90
294
  ### :bug: Bug Fix
91
295
 
92
- * add caret into ox-input-unit ([2ef5b5b](https://github.com/hatiolab/operato/commit/2ef5b5b73c67ca302f4f2eb8a2f9df83240070b3))
296
+ * use zbar-wasm for barcode scan ([41f632e](https://github.com/hatiolab/operato/commit/41f632e1e395e17364713e1ecb8f878615fc91ca))
297
+
298
+
299
+
300
+ ## [2.0.0-alpha.8](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.7...v2.0.0-alpha.8) (2024-01-20)
301
+
302
+
303
+ ### :bug: Bug Fix
304
+
305
+ * add composable property for ox-input-mass-fraction ([1b42a2e](https://github.com/hatiolab/operato/commit/1b42a2e250984c33bda03beab9162070a5a52fdb))
306
+ * use zbar-wasm for barcode scan ([0916624](https://github.com/hatiolab/operato/commit/09166249b35fe0da0cb738868bd385e38c54cbca))
307
+ * use zbar-wasm for barcode scan ([c60c262](https://github.com/hatiolab/operato/commit/c60c262d809963033d5b531ae42f0ab6af3d3e65))
308
+
309
+
310
+
311
+ ## [2.0.0-alpha.4](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.3...v2.0.0-alpha.4) (2024-01-15)
312
+
313
+ **Note:** Version bump only for package @operato/input
314
+
315
+
316
+
317
+
318
+
319
+ ## [2.0.0-alpha.3](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.2...v2.0.0-alpha.3) (2024-01-14)
320
+
321
+
322
+ ### :bug: Bug Fix
323
+
324
+ * add caret into ox-input-unit ([e3cbdce](https://github.com/hatiolab/operato/commit/e3cbdced6de70a6eebebaf10468abecc6eec9946))
325
+ * change class name OxInputUnit -> OxInputUnitNumber ([8d9453d](https://github.com/hatiolab/operato/commit/8d9453d9b05fe5c738cdf006fdeef1b674c8a2f1))
326
+
327
+
328
+
329
+ ## [2.0.0-alpha.2](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.1...v2.0.0-alpha.2) (2024-01-09)
330
+
331
+ **Note:** Version bump only for package @operato/input
332
+
333
+
334
+
335
+
336
+
337
+ ## [2.0.0-alpha.0](https://github.com/hatiolab/operato/compare/v1.13.1...v2.0.0-alpha.0) (2024-01-05)
338
+
339
+ **Note:** Version bump only for package @operato/input
340
+
341
+
93
342
 
94
343
 
95
344
 
@@ -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,a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AAI,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IACjG,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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E,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;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
  }