@operato/input 9.0.0-beta.5 → 9.0.0-beta.53

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 (123) hide show
  1. package/CHANGELOG.md +221 -0
  2. package/dist/src/index.d.ts +0 -3
  3. package/dist/src/index.js +0 -3
  4. package/dist/src/index.js.map +1 -1
  5. package/dist/src/ox-input-angle.js +1 -3
  6. package/dist/src/ox-input-angle.js.map +1 -1
  7. package/dist/src/ox-input-background-pattern.d.ts +36 -0
  8. package/dist/src/ox-input-background-pattern.js +114 -0
  9. package/dist/src/ox-input-background-pattern.js.map +1 -0
  10. package/dist/src/ox-input-color-gradient.d.ts +12 -10
  11. package/dist/src/ox-input-color-gradient.js +104 -222
  12. package/dist/src/ox-input-color-gradient.js.map +1 -1
  13. package/dist/src/ox-input-color-stops.d.ts +26 -22
  14. package/dist/src/ox-input-color-stops.js +122 -151
  15. package/dist/src/ox-input-color-stops.js.map +1 -1
  16. package/dist/src/ox-input-color.d.ts +13 -5
  17. package/dist/src/ox-input-color.js +169 -96
  18. package/dist/src/ox-input-color.js.map +1 -1
  19. package/dist/src/ox-input-crontab.js +1 -0
  20. package/dist/src/ox-input-crontab.js.map +1 -1
  21. package/dist/src/ox-input-direction.js +1 -0
  22. package/dist/src/ox-input-direction.js.map +1 -1
  23. package/dist/src/ox-input-duration.js +4 -0
  24. package/dist/src/ox-input-duration.js.map +1 -1
  25. package/dist/src/ox-input-fill-style.d.ts +48 -0
  26. package/dist/src/ox-input-fill-style.js +328 -0
  27. package/dist/src/ox-input-fill-style.js.map +1 -0
  28. package/dist/src/ox-input-multiple-colors.js +2 -2
  29. package/dist/src/ox-input-multiple-colors.js.map +1 -1
  30. package/dist/src/ox-input-privilege.js +1 -0
  31. package/dist/src/ox-input-privilege.js.map +1 -1
  32. package/dist/src/ox-input-range.js +2 -0
  33. package/dist/src/ox-input-range.js.map +1 -1
  34. package/dist/src/ox-input-search.js +1 -1
  35. package/dist/src/ox-input-search.js.map +1 -1
  36. package/dist/src/ox-input-select-buttons.d.ts +1 -1
  37. package/dist/src/ox-input-select-buttons.js +2 -2
  38. package/dist/src/ox-input-select-buttons.js.map +1 -1
  39. package/dist/src/ox-input-table.d.ts +20 -2
  40. package/dist/src/ox-input-table.js +67 -160
  41. package/dist/src/ox-input-table.js.map +1 -1
  42. package/dist/src/ox-select-floor.js +1 -0
  43. package/dist/src/ox-select-floor.js.map +1 -1
  44. package/dist/src/ox-select.d.ts +3 -0
  45. package/dist/src/ox-select.js +19 -9
  46. package/dist/src/ox-select.js.map +1 -1
  47. package/dist/stories/ox-buttons-radio.stories.js +1 -1
  48. package/dist/stories/ox-buttons-radio.stories.js.map +1 -1
  49. package/dist/stories/ox-checkbox.stories.js +1 -1
  50. package/dist/stories/ox-checkbox.stories.js.map +1 -1
  51. package/dist/stories/ox-input-3axis.stories.js +1 -1
  52. package/dist/stories/ox-input-3axis.stories.js.map +1 -1
  53. package/dist/stories/ox-input-3dish.stories.js +1 -1
  54. package/dist/stories/ox-input-3dish.stories.js.map +1 -1
  55. package/dist/stories/ox-input-angle.stories.js +1 -1
  56. package/dist/stories/ox-input-angle.stories.js.map +1 -1
  57. package/dist/stories/ox-input-barcode.stories.js +1 -1
  58. package/dist/stories/ox-input-barcode.stories.js.map +1 -1
  59. package/dist/stories/ox-input-code.stories.js +1 -1
  60. package/dist/stories/ox-input-code.stories.js.map +1 -1
  61. package/dist/stories/ox-input-crontab.stories.js +1 -1
  62. package/dist/stories/ox-input-crontab.stories.js.map +1 -1
  63. package/dist/stories/ox-input-data.stories.js +1 -1
  64. package/dist/stories/ox-input-data.stories.js.map +1 -1
  65. package/dist/stories/ox-input-direction.stories.js +1 -1
  66. package/dist/stories/ox-input-direction.stories.js.map +1 -1
  67. package/dist/stories/ox-input-duration.stories.js +1 -1
  68. package/dist/stories/ox-input-duration.stories.js.map +1 -1
  69. package/dist/stories/ox-input-file.stories.js +1 -1
  70. package/dist/stories/ox-input-file.stories.js.map +1 -1
  71. package/dist/stories/ox-input-hashtags.stories.js +1 -1
  72. package/dist/stories/ox-input-hashtags.stories.js.map +1 -1
  73. package/dist/stories/ox-input-i18n-label.stories.js +1 -1
  74. package/dist/stories/ox-input-i18n-label.stories.js.map +1 -1
  75. package/dist/stories/ox-input-key-values.stories.js +1 -1
  76. package/dist/stories/ox-input-key-values.stories.js.map +1 -1
  77. package/dist/stories/ox-input-mass-fraction.stories.js +1 -1
  78. package/dist/stories/ox-input-mass-fraction.stories.js.map +1 -1
  79. package/dist/stories/ox-input-multiple-colors.stories.js +1 -1
  80. package/dist/stories/ox-input-multiple-colors.stories.js.map +1 -1
  81. package/dist/stories/ox-input-options.stories.js +1 -1
  82. package/dist/stories/ox-input-options.stories.js.map +1 -1
  83. package/dist/stories/ox-input-partition-keys.stories.js +1 -1
  84. package/dist/stories/ox-input-partition-keys.stories.js.map +1 -1
  85. package/dist/stories/ox-input-privilege.stories.js +1 -1
  86. package/dist/stories/ox-input-privilege.stories.js.map +1 -1
  87. package/dist/stories/ox-input-quantifier.stories.js +1 -1
  88. package/dist/stories/ox-input-quantifier.stories.js.map +1 -1
  89. package/dist/stories/ox-input-range.stories.js +1 -1
  90. package/dist/stories/ox-input-range.stories.js.map +1 -1
  91. package/dist/stories/ox-input-search.stories.js +1 -1
  92. package/dist/stories/ox-input-search.stories.js.map +1 -1
  93. package/dist/stories/ox-input-select-buttons.stories.js +1 -1
  94. package/dist/stories/ox-input-select-buttons.stories.js.map +1 -1
  95. package/dist/stories/ox-input-signature.stories.js +1 -1
  96. package/dist/stories/ox-input-signature.stories.js.map +1 -1
  97. package/dist/stories/ox-input-switch.stories.js +1 -1
  98. package/dist/stories/ox-input-switch.stories.js.map +1 -1
  99. package/dist/stories/ox-input-table-column-config.stories.js +1 -1
  100. package/dist/stories/ox-input-table-column-config.stories.js.map +1 -1
  101. package/dist/stories/ox-input-table.stories.d.ts +21 -0
  102. package/dist/stories/ox-input-table.stories.js +84 -0
  103. package/dist/stories/ox-input-table.stories.js.map +1 -0
  104. package/dist/stories/ox-input-unit.stories.js +1 -1
  105. package/dist/stories/ox-input-unit.stories.js.map +1 -1
  106. package/dist/stories/ox-input-value-map.stories.js +1 -1
  107. package/dist/stories/ox-input-value-map.stories.js.map +1 -1
  108. package/dist/stories/ox-input-value-ranges.stories.js +1 -1
  109. package/dist/stories/ox-input-value-ranges.stories.js.map +1 -1
  110. package/dist/stories/ox-input-work-shift.stories.js +1 -1
  111. package/dist/stories/ox-input-work-shift.stories.js.map +1 -1
  112. package/dist/stories/ox-select-floor.stories.js +1 -1
  113. package/dist/stories/ox-select-floor.stories.js.map +1 -1
  114. package/dist/stories/ox-select-images.stories.d.ts +32 -0
  115. package/dist/stories/ox-select-images.stories.js +120 -0
  116. package/dist/stories/ox-select-images.stories.js.map +1 -0
  117. package/dist/stories/ox-select-set-options.stories.js +1 -1
  118. package/dist/stories/ox-select-set-options.stories.js.map +1 -1
  119. package/dist/stories/ox-select.stories.js +1 -1
  120. package/dist/stories/ox-select.stories.js.map +1 -1
  121. package/dist/tsconfig.tsbuildinfo +1 -1
  122. package/package.json +31 -25
  123. package/tsconfig.tsbuildinfo +1 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,227 @@
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
+ ## [9.0.0-beta.53](https://github.com/hatiolab/operato/compare/v9.0.0-beta.52...v9.0.0-beta.53) (2025-03-04)
7
+
8
+
9
+ ### :bug: Bug Fix
10
+
11
+ * add guide-only option for scene fillstyle ([48baf4e](https://github.com/hatiolab/operato/commit/48baf4e5f4e22c5ad6ffb1cf2530dc97a4b00d94))
12
+
13
+
14
+
15
+ ## [9.0.0-beta.52](https://github.com/hatiolab/operato/compare/v9.0.0-beta.51...v9.0.0-beta.52) (2025-03-04)
16
+
17
+ **Note:** Version bump only for package @operato/input
18
+
19
+
20
+
21
+
22
+
23
+ ## [9.0.0-beta.49](https://github.com/hatiolab/operato/compare/v9.0.0-beta.48...v9.0.0-beta.49) (2025-02-14)
24
+
25
+ **Note:** Version bump only for package @operato/input
26
+
27
+
28
+
29
+
30
+
31
+ ## [9.0.0-beta.48](https://github.com/hatiolab/operato/compare/v9.0.0-beta.47...v9.0.0-beta.48) (2025-02-14)
32
+
33
+ **Note:** Version bump only for package @operato/input
34
+
35
+
36
+
37
+
38
+
39
+ ## [9.0.0-beta.47](https://github.com/hatiolab/operato/compare/v9.0.0-beta.46...v9.0.0-beta.47) (2025-02-14)
40
+
41
+ **Note:** Version bump only for package @operato/input
42
+
43
+
44
+
45
+
46
+
47
+ ## [9.0.0-beta.41](https://github.com/hatiolab/operato/compare/v9.0.0-beta.40...v9.0.0-beta.41) (2025-02-09)
48
+
49
+
50
+ ### :bug: Bug Fix
51
+
52
+ * ontap => onclick for ox-input-select-buttons ([cd09dc3](https://github.com/hatiolab/operato/commit/cd09dc337bcff1d4c52071eaea9ad68e1e77cde7))
53
+
54
+
55
+
56
+ ## [9.0.0-beta.38](https://github.com/hatiolab/operato/compare/v9.0.0-beta.37...v9.0.0-beta.38) (2025-02-02)
57
+
58
+ **Note:** Version bump only for package @operato/input
59
+
60
+
61
+
62
+
63
+
64
+ ## [9.0.0-beta.37](https://github.com/hatiolab/operato/compare/v9.0.0-beta.36...v9.0.0-beta.37) (2025-02-01)
65
+
66
+ **Note:** Version bump only for package @operato/input
67
+
68
+
69
+
70
+
71
+
72
+ ## [9.0.0-beta.35](https://github.com/hatiolab/operato/compare/v9.0.0-beta.34...v9.0.0-beta.35) (2025-02-01)
73
+
74
+
75
+ ### :bug: Bug Fix
76
+
77
+ * change tap => click event (due to polymer library being removed) ([2f1add0](https://github.com/hatiolab/operato/commit/2f1add0ed89214b63acb127de34f65caf3bec9b5))
78
+
79
+
80
+
81
+ ## [9.0.0-beta.34](https://github.com/hatiolab/operato/compare/v9.0.0-beta.33...v9.0.0-beta.34) (2025-01-31)
82
+
83
+ **Note:** Version bump only for package @operato/input
84
+
85
+
86
+
87
+
88
+
89
+ ## [9.0.0-beta.33](https://github.com/hatiolab/operato/compare/v9.0.0-beta.32...v9.0.0-beta.33) (2025-01-31)
90
+
91
+ **Note:** Version bump only for package @operato/input
92
+
93
+
94
+
95
+
96
+
97
+ ## [9.0.0-beta.32](https://github.com/hatiolab/operato/compare/v9.0.0-beta.31...v9.0.0-beta.32) (2025-01-31)
98
+
99
+ **Note:** Version bump only for package @operato/input
100
+
101
+
102
+
103
+
104
+
105
+ ## [9.0.0-beta.31](https://github.com/hatiolab/operato/compare/v9.0.0-beta.30...v9.0.0-beta.31) (2025-01-31)
106
+
107
+
108
+ ### :rocket: New Features
109
+
110
+ * add @operato/pickr ([ab5acaa](https://github.com/hatiolab/operato/commit/ab5acaad73d9a9af236dc4efaf612d7065b69725))
111
+
112
+
113
+ ### :bug: Bug Fix
114
+
115
+ * incorrect path - ox-input-table.stories.ts ([f19fb74](https://github.com/hatiolab/operato/commit/f19fb74bd50ef74ff212ec12311c96010e331996))
116
+ * missing table border styling event ([d5b7556](https://github.com/hatiolab/operato/commit/d5b7556ddc66a4b3ca24f45c025652d26211cb08))
117
+
118
+
119
+
120
+ ## [9.0.0-beta.29](https://github.com/hatiolab/operato/compare/v9.0.0-beta.28...v9.0.0-beta.29) (2025-01-30)
121
+
122
+
123
+ ### :rocket: New Features
124
+
125
+ * upgrade ox-input-color ([5405d0b](https://github.com/hatiolab/operato/commit/5405d0ba3dc07051f54251d17c1eaac6b491aad9))
126
+
127
+
128
+
129
+ ## [9.0.0-beta.28](https://github.com/hatiolab/operato/compare/v9.0.0-beta.27...v9.0.0-beta.28) (2025-01-28)
130
+
131
+
132
+ ### :rocket: New Features
133
+
134
+ * module property-panel ([d3dd184](https://github.com/hatiolab/operato/commit/d3dd18461756814dc17e33157a397d8d679650a6))
135
+
136
+
137
+
138
+ ## [9.0.0-beta.21](https://github.com/hatiolab/operato/compare/v9.0.0-beta.20...v9.0.0-beta.21) (2025-01-28)
139
+
140
+
141
+ ### :rocket: New Features
142
+
143
+ * module property-panel ([4f308a0](https://github.com/hatiolab/operato/commit/4f308a0ace57bb156e489eef7998cf443c38fa11))
144
+ * module property-panel ([b3e2576](https://github.com/hatiolab/operato/commit/b3e2576bfeb9d6d00eed64786764ff6e823bcb85))
145
+
146
+
147
+
148
+ ## [9.0.0-beta.20](https://github.com/hatiolab/operato/compare/v9.0.0-beta.19...v9.0.0-beta.20) (2025-01-27)
149
+
150
+
151
+ ### :rocket: New Features
152
+
153
+ * module property-panel ([03fb303](https://github.com/hatiolab/operato/commit/03fb303816c1629adca2a0ad843a8696ffaa4bef))
154
+
155
+
156
+
157
+ ## [9.0.0-beta.18](https://github.com/hatiolab/operato/compare/v9.0.0-beta.17...v9.0.0-beta.18) (2025-01-27)
158
+
159
+ **Note:** Version bump only for package @operato/input
160
+
161
+
162
+
163
+
164
+
165
+ ## [9.0.0-beta.16](https://github.com/hatiolab/operato/compare/v9.0.0-beta.15...v9.0.0-beta.16) (2025-01-27)
166
+
167
+
168
+ ### :rocket: New Features
169
+
170
+ * module property-panel ([eaa45f9](https://github.com/hatiolab/operato/commit/eaa45f98e3f4349732f2d0d9d346eef8093be3e8))
171
+
172
+
173
+
174
+ ## [9.0.0-beta.15](https://github.com/hatiolab/operato/compare/v9.0.0-beta.14...v9.0.0-beta.15) (2025-01-27)
175
+
176
+ **Note:** Version bump only for package @operato/input
177
+
178
+
179
+
180
+
181
+
182
+ ## [9.0.0-beta.14](https://github.com/hatiolab/operato/compare/v9.0.0-beta.13...v9.0.0-beta.14) (2025-01-27)
183
+
184
+
185
+ ### :rocket: New Features
186
+
187
+ * module property-panel ([d78e4cf](https://github.com/hatiolab/operato/commit/d78e4cf7080b95fa74e61b42094b9f3f59f1409b))
188
+
189
+
190
+
191
+ ## [9.0.0-beta.11](https://github.com/hatiolab/operato/compare/v9.0.0-beta.10...v9.0.0-beta.11) (2025-01-25)
192
+
193
+
194
+ ### :bug: Bug Fix
195
+
196
+ * tsconfig option useDefineForClassFields=false ([0d77c0a](https://github.com/hatiolab/operato/commit/0d77c0aa620282c65b3c05f8e0b559e82836b6ab))
197
+
198
+
199
+
200
+ ## [9.0.0-beta.10](https://github.com/hatiolab/operato/compare/v9.0.0-beta.9...v9.0.0-beta.10) (2025-01-25)
201
+
202
+
203
+ ### :bug: Bug Fix
204
+
205
+ * @undecaf/zbar-wasm@0.11.0 ([722c68e](https://github.com/hatiolab/operato/commit/722c68e24275b28c84cf057d3038fb9c6a0e6e78))
206
+ * tweak tsconfig.json ([3c424b1](https://github.com/hatiolab/operato/commit/3c424b18d046f95d5619076d113d49a4b4dc9bbb))
207
+
208
+
209
+
210
+ ## [9.0.0-beta.7](https://github.com/hatiolab/operato/compare/v9.0.0-beta.6...v9.0.0-beta.7) (2025-01-20)
211
+
212
+ **Note:** Version bump only for package @operato/input
213
+
214
+
215
+
216
+
217
+
218
+ ## [9.0.0-beta.6](https://github.com/hatiolab/operato/compare/v9.0.0-beta.5...v9.0.0-beta.6) (2025-01-20)
219
+
220
+
221
+ ### :bug: Bug Fix
222
+
223
+ * esm module ([9642b97](https://github.com/hatiolab/operato/commit/9642b97650623d9ce71f6db0fd1995a2379205b5))
224
+
225
+
226
+
6
227
  ## [9.0.0-beta.5](https://github.com/hatiolab/operato/compare/v9.0.0-beta.4...v9.0.0-beta.5) (2025-01-20)
7
228
 
8
229
  **Note:** Version bump only for package @operato/input
@@ -14,13 +14,10 @@ export * from './ox-input-barcode.js';
14
14
  export * from './ox-input-code.js';
15
15
  export * from './ox-input-color.js';
16
16
  export * from './ox-input-multiple-colors.js';
17
- export * from './ox-input-color-stops.js';
18
- export * from './ox-input-color-gradient.js';
19
17
  export * from './ox-input-file.js';
20
18
  export * from './ox-input-image.js';
21
19
  export * from './ox-input-value-ranges.js';
22
20
  export * from './ox-input-value-map.js';
23
- export * from './ox-input-table.js';
24
21
  export * from './ox-input-scene-component-id.js';
25
22
  export * from './ox-input-crontab.js';
26
23
  export * from './ox-input-partition-keys.js';
package/dist/src/index.js CHANGED
@@ -14,13 +14,10 @@ export * from './ox-input-barcode.js';
14
14
  export * from './ox-input-code.js';
15
15
  export * from './ox-input-color.js';
16
16
  export * from './ox-input-multiple-colors.js';
17
- export * from './ox-input-color-stops.js';
18
- export * from './ox-input-color-gradient.js';
19
17
  export * from './ox-input-file.js';
20
18
  export * from './ox-input-image.js';
21
19
  export * from './ox-input-value-ranges.js';
22
20
  export * from './ox-input-value-map.js';
23
- export * from './ox-input-table.js';
24
21
  export * from './ox-input-scene-component-id.js';
25
22
  export * from './ox-input-crontab.js';
26
23
  export * from './ox-input-partition-keys.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kCAAkC,CAAA;AAChD,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mCAAmC,CAAA;AACjD,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nexport * from './ox-form-field.js'\nexport * from './ox-buttons-radio.js'\nexport * from './ox-checkbox.js'\nexport * from './ox-select.js'\nexport * from './ox-input-switch.js'\nexport * from './ox-input-angle.js'\nexport * from './ox-input-3dish.js'\nexport * from './ox-input-3axis.js'\nexport * from './ox-input-stack.js'\nexport * from './ox-input-barcode.js'\nexport * from './ox-input-code.js'\nexport * from './ox-input-color.js'\nexport * from './ox-input-multiple-colors.js'\nexport * from './ox-input-color-stops.js'\nexport * from './ox-input-color-gradient.js'\nexport * from './ox-input-file.js'\nexport * from './ox-input-image.js'\nexport * from './ox-input-value-ranges.js'\nexport * from './ox-input-value-map.js'\nexport * from './ox-input-table.js'\nexport * from './ox-input-scene-component-id.js'\nexport * from './ox-input-crontab.js'\nexport * from './ox-input-partition-keys.js'\nexport * from './ox-input-duration.js'\nexport * from './ox-input-quantifier.js'\nexport * from './ox-input-select-buttons.js'\nexport * from './ox-input-textarea.js'\nexport * from './ox-input-direction.js'\nexport * from './ox-input-table-column-config.js'\nexport * from './ox-input-search.js'\nexport * from './ox-input-signature.js'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,kCAAkC,CAAA;AAChD,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mCAAmC,CAAA;AACjD,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nexport * from './ox-form-field.js'\nexport * from './ox-buttons-radio.js'\nexport * from './ox-checkbox.js'\nexport * from './ox-select.js'\nexport * from './ox-input-switch.js'\nexport * from './ox-input-angle.js'\nexport * from './ox-input-3dish.js'\nexport * from './ox-input-3axis.js'\nexport * from './ox-input-stack.js'\nexport * from './ox-input-barcode.js'\nexport * from './ox-input-code.js'\nexport * from './ox-input-color.js'\nexport * from './ox-input-multiple-colors.js'\nexport * from './ox-input-file.js'\nexport * from './ox-input-image.js'\nexport * from './ox-input-value-ranges.js'\nexport * from './ox-input-value-map.js'\nexport * from './ox-input-scene-component-id.js'\nexport * from './ox-input-crontab.js'\nexport * from './ox-input-partition-keys.js'\nexport * from './ox-input-duration.js'\nexport * from './ox-input-quantifier.js'\nexport * from './ox-input-select-buttons.js'\nexport * from './ox-input-textarea.js'\nexport * from './ox-input-direction.js'\nexport * from './ox-input-table-column-config.js'\nexport * from './ox-input-search.js'\nexport * from './ox-input-signature.js'\n"]}
@@ -15,10 +15,8 @@ let OxInputAngle = class OxInputAngle extends OxFormField {
15
15
  input {
16
16
  width: 100%;
17
17
  height: 100%;
18
- min-height: var(--form-element-height-medium);
19
- padding: 0 var(--spacing-small);
20
18
  box-sizing: border-box;
21
- border: var(--input-border, 1px solid var(--md-sys-color-outline));
19
+ border: none;
22
20
  border-radius: var(--md-sys-shape-corner-small);
23
21
  background-color: var(--md-sys-color-on-primary);
24
22
  font-size: var(--md-sys-typescale-label-large-size, 0.875rem);
@@ -1 +1 @@
1
- {"version":3,"file":"ox-input-angle.js","sourceRoot":"","sources":["../../src/ox-input-angle.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,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,oBAAoB,CAAA;AAGzC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,WAAW;aACpC,WAAM,GAAG;QACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;KAsBF;KACF,AAxBY,CAwBZ;IAMD,MAAM;QACJ,OAAO,IAAI,CAAA;;;iBAGE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;uBAC5B,IAAI,CAAC,WAAW,IAAI,IAAI;kBAC7B,CAAC,CAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;oBAClC,IAAI,CAAC,QAAQ;;KAE5B,CAAA;IACH,CAAC;IAED,cAAc,CAAC,CAAQ;QACrB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QAE7C,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,QAAQ,EAAE;YACxB,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,IAAI,CAAC,KAAK;SACnB,CAAC,CACH,CAAA;IACH,CAAC;IAED,SAAS,CAAC,KAAkC;QAC1C,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAA;IAC3D,CAAC;IAED,SAAS,CAAC,MAAmC;QAC3C,OAAO,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,CAAA;IAC7E,CAAC;;AAlC2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDAAqB;AAEhC;IAAf,KAAK,CAAC,OAAO,CAAC;2CAAyB;AA7B7B,YAAY;IADxB,aAAa,CAAC,gBAAgB,CAAC;GACnB,YAAY,CA8DxB","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport { css, html } from 'lit'\nimport { customElement, property, query } from 'lit/decorators.js'\n\nimport { OxFormField } from './ox-form-field.js'\n\n@customElement('ox-input-angle')\nexport class OxInputAngle extends OxFormField {\n static styles = [\n css`\n :host {\n display: inline-block;\n }\n\n input {\n width: 100%;\n height: 100%;\n min-height: var(--form-element-height-medium);\n padding: 0 var(--spacing-small);\n box-sizing: border-box;\n border: var(--input-border, 1px solid var(--md-sys-color-outline));\n border-radius: var(--md-sys-shape-corner-small);\n background-color: var(--md-sys-color-on-primary);\n font-size: var(--md-sys-typescale-label-large-size, 0.875rem);\n color: var(--md-sys-color-on-primary-container);\n }\n\n input:focus {\n outline: var(--input-focus-outline, inherit);\n border-color: var(--md-sys-color-secondary-fixed-dim);\n }\n `\n ]\n\n @property({ type: String }) placeholder?: string\n\n @query('input') input!: HTMLInputElement\n\n render() {\n return html`\n <input\n type=\"number\"\n .value=${String(this._toDegree(this.value))}\n .placeholder=${this.placeholder || '0°'}\n @change=${(e: Event) => this._onChangeValue(e)}\n ?disabled=${this.disabled}\n />\n `\n }\n\n _onChangeValue(e: Event) {\n this.value = this._toRadian(this.input.value)\n\n this.dispatchEvent(\n new CustomEvent('change', {\n bubbles: true,\n composed: true,\n detail: this.value\n })\n )\n }\n\n _toDegree(value: string | number | undefined) {\n return Math.round(((Number(value) || 0) * 180) / Math.PI)\n }\n\n _toRadian(degree: string | number | undefined) {\n return isNaN(Number(degree)) ? undefined : Number(degree) * (Math.PI / 180)\n }\n}\n"]}
1
+ {"version":3,"file":"ox-input-angle.js","sourceRoot":"","sources":["../../src/ox-input-angle.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,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,oBAAoB,CAAA;AAGzC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,WAAW;aACpC,WAAM,GAAG;QACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;KAoBF;KACF,AAtBY,CAsBZ;IAMD,MAAM;QACJ,OAAO,IAAI,CAAA;;;iBAGE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;uBAC5B,IAAI,CAAC,WAAW,IAAI,IAAI;kBAC7B,CAAC,CAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;oBAClC,IAAI,CAAC,QAAQ;;KAE5B,CAAA;IACH,CAAC;IAED,cAAc,CAAC,CAAQ;QACrB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QAE7C,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,QAAQ,EAAE;YACxB,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,IAAI,CAAC,KAAK;SACnB,CAAC,CACH,CAAA;IACH,CAAC;IAED,SAAS,CAAC,KAAkC;QAC1C,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAA;IAC3D,CAAC;IAED,SAAS,CAAC,MAAmC;QAC3C,OAAO,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,CAAA;IAC7E,CAAC;;AAlC2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDAAqB;AAEhC;IAAf,KAAK,CAAC,OAAO,CAAC;2CAAyB;AA3B7B,YAAY;IADxB,aAAa,CAAC,gBAAgB,CAAC;GACnB,YAAY,CA4DxB","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport { css, html } from 'lit'\nimport { customElement, property, query } from 'lit/decorators.js'\n\nimport { OxFormField } from './ox-form-field.js'\n\n@customElement('ox-input-angle')\nexport class OxInputAngle extends OxFormField {\n static styles = [\n css`\n :host {\n display: inline-block;\n }\n\n input {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: none;\n border-radius: var(--md-sys-shape-corner-small);\n background-color: var(--md-sys-color-on-primary);\n font-size: var(--md-sys-typescale-label-large-size, 0.875rem);\n color: var(--md-sys-color-on-primary-container);\n }\n\n input:focus {\n outline: var(--input-focus-outline, inherit);\n border-color: var(--md-sys-color-secondary-fixed-dim);\n }\n `\n ]\n\n @property({ type: String }) placeholder?: string\n\n @query('input') input!: HTMLInputElement\n\n render() {\n return html`\n <input\n type=\"number\"\n .value=${String(this._toDegree(this.value))}\n .placeholder=${this.placeholder || '0°'}\n @change=${(e: Event) => this._onChangeValue(e)}\n ?disabled=${this.disabled}\n />\n `\n }\n\n _onChangeValue(e: Event) {\n this.value = this._toRadian(this.input.value)\n\n this.dispatchEvent(\n new CustomEvent('change', {\n bubbles: true,\n composed: true,\n detail: this.value\n })\n )\n }\n\n _toDegree(value: string | number | undefined) {\n return Math.round(((Number(value) || 0) * 180) / Math.PI)\n }\n\n _toRadian(degree: string | number | undefined) {\n return isNaN(Number(degree)) ? undefined : Number(degree) * (Math.PI / 180)\n }\n}\n"]}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @license Copyright © HatioLab Inc. All rights reserved.
3
+ */
4
+ import '@material/web/icon/icon.js';
5
+ import '@operato/i18n/ox-i18n.js';
6
+ import '@operato/attachment/ox-attachment-selector.js';
7
+ import './ox-input-color.js';
8
+ import { OxFormField } from './ox-form-field.js';
9
+ export type BackgroundPatternOption = {
10
+ image?: HTMLImageElement | string;
11
+ color?: string;
12
+ align?: 'left-top' | 'top' | 'right-top' | 'left' | 'center' | 'right' | 'left-bottom' | 'bottom' | 'right-bottom';
13
+ offsetX?: number;
14
+ offsetY?: number;
15
+ width?: number;
16
+ height?: number;
17
+ fitPattern?: boolean;
18
+ noRepeat?: boolean;
19
+ guideOnly?: boolean;
20
+ };
21
+ /**
22
+ * 컴포넌트의 fill pattern을 편집하는 element
23
+ *
24
+ * Example:
25
+ * <ox-input-background-pattern
26
+ * @change="${e => { this.pattern = e.target.value }}"
27
+ * .value=${this.pattern}"
28
+ * ></ox-input-background-pattern>
29
+ */
30
+ export declare class OxInputBackgroundPattern extends OxFormField {
31
+ static styles: import("lit").CSSResult[];
32
+ value?: BackgroundPatternOption;
33
+ render(): import("lit-html").TemplateResult<1>;
34
+ firstUpdated(): void;
35
+ _onChange(e: Event): void;
36
+ }
@@ -0,0 +1,114 @@
1
+ /**
2
+ * @license Copyright © HatioLab Inc. All rights reserved.
3
+ */
4
+ import { __decorate } from "tslib";
5
+ import '@material/web/icon/icon.js';
6
+ import '@operato/i18n/ox-i18n.js';
7
+ import '@operato/attachment/ox-attachment-selector.js';
8
+ import './ox-input-color.js';
9
+ import { css, html } from 'lit';
10
+ import { customElement, property } from 'lit/decorators.js';
11
+ import { PropertyGridStyles } from '@operato/styles/property-grid-styles.js';
12
+ import { OxFormField } from './ox-form-field.js';
13
+ /**
14
+ * 컴포넌트의 fill pattern을 편집하는 element
15
+ *
16
+ * Example:
17
+ * <ox-input-background-pattern
18
+ * @change="${e => { this.pattern = e.target.value }}"
19
+ * .value=${this.pattern}"
20
+ * ></ox-input-background-pattern>
21
+ */
22
+ let OxInputBackgroundPattern = class OxInputBackgroundPattern extends OxFormField {
23
+ constructor() {
24
+ super(...arguments);
25
+ this.value = undefined;
26
+ }
27
+ static { this.styles = [
28
+ PropertyGridStyles,
29
+ css `
30
+ :host {
31
+ display: flex;
32
+ }
33
+ `
34
+ ]; }
35
+ render() {
36
+ const value = this.value || {};
37
+ return html `
38
+ <div class="property-grid">
39
+ <label> <ox-i18n msgid="label.image">image</ox-i18n> </label>
40
+
41
+ <ox-attachment-selector
42
+ value-key="image"
43
+ .value=${value.image || ''}
44
+ .properties=${{
45
+ category: 'image'
46
+ }}
47
+ class="custom-editor"
48
+ ></ox-attachment-selector>
49
+
50
+ <label> <ox-i18n msgid="label.align">align</ox-i18n> </label>
51
+
52
+ <select value-key="align" .value=${value.align || 'left-top'}>
53
+ <option value="left-top">Left Top</option>
54
+ <option value="top">Center Top</option>
55
+ <option value="right-top">Right Top</option>
56
+ <option value="left">Left Center</option>
57
+ <option value="center">Center Center</option>
58
+ <option value="right">Right Center</option>
59
+ <option value="left-bottom">Left Bottom</option>
60
+ <option value="bottom">Center Bottom</option>
61
+ <option value="right-bottom">Right Bottom</option>
62
+ </select>
63
+
64
+ <label> <ox-i18n msgid="label.offset-x">offsetX</ox-i18n> </label>
65
+ <input type="number" value-key="offsetX" .value=${String(value.offsetX || 0)} />
66
+
67
+ <label> <ox-i18n msgid="label.offset-y">offsetY</ox-i18n> </label>
68
+ <input type="number" value-key="offsetY" .value=${String(value.offsetY || 0)} />
69
+
70
+ <label> <ox-i18n msgid="label.width">width</ox-i18n> </label>
71
+ <input type="number" value-key="width" .value=${String(value.width || 0)} />
72
+
73
+ <label> <ox-i18n msgid="label.height">height</ox-i18n> </label>
74
+ <input type="number" value-key="height" .value=${String(value.height || 0)} />
75
+
76
+ <label><md-icon>format_color_fill</md-icon></label>
77
+ <ox-input-color class="custom-editor" value-key="color" .value=${value.color}> </ox-input-color>
78
+
79
+ <input id="fitPattern" value-key="fitPattern" type="checkbox" ?checked=${value.fitPattern} required />
80
+ <label for="fitPattern"> <ox-i18n msgid="label.fit">fit</ox-i18n> </label>
81
+
82
+ <input id="noRepeat" value-key="noRepeat" type="checkbox" ?checked=${value.noRepeat} required />
83
+ <label for="noRepeat"> <ox-i18n msgid="label.no-repeat">no repeat</ox-i18n> </label>
84
+
85
+ <input id="guideOnly" value-key="guideOnly" type="checkbox" ?checked=${value.guideOnly} required />
86
+ <label for="guideOnly"> <ox-i18n msgid="label.guide-only">guide only</ox-i18n> </label>
87
+ </div>
88
+ `;
89
+ }
90
+ firstUpdated() {
91
+ this.renderRoot.addEventListener('change', this._onChange.bind(this));
92
+ }
93
+ _onChange(e) {
94
+ var element = e.target;
95
+ var key = element.getAttribute('value-key');
96
+ var value = element.value;
97
+ if (key === 'fitPattern' || key === 'noRepeat' || key === 'guideOnly') {
98
+ value = element.checked;
99
+ }
100
+ this.value = {
101
+ ...this.value,
102
+ [key]: value
103
+ };
104
+ this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }));
105
+ }
106
+ };
107
+ __decorate([
108
+ property({ type: Object })
109
+ ], OxInputBackgroundPattern.prototype, "value", void 0);
110
+ OxInputBackgroundPattern = __decorate([
111
+ customElement('ox-input-background-pattern')
112
+ ], OxInputBackgroundPattern);
113
+ export { OxInputBackgroundPattern };
114
+ //# sourceMappingURL=ox-input-background-pattern.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ox-input-background-pattern.js","sourceRoot":"","sources":["../../src/ox-input-background-pattern.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,OAAO,4BAA4B,CAAA;AACnC,OAAO,0BAA0B,CAAA;AACjC,OAAO,+CAA+C,CAAA;AACtD,OAAO,qBAAqB,CAAA;AAE5B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAehD;;;;;;;;GAQG;AAGI,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,WAAW;IAAlD;;QAUuB,UAAK,GAA6B,SAAS,CAAA;IA+EzE,CAAC;aAxFQ,WAAM,GAAG;QACd,kBAAkB;QAClB,GAAG,CAAA;;;;KAIF;KACF,AAPY,CAOZ;IAID,MAAM;QACJ,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAK,EAA8B,CAAA;QAE3D,OAAO,IAAI,CAAA;;;;;;mBAMI,KAAK,CAAC,KAAK,IAAI,EAAE;wBACZ;YACZ,QAAQ,EAAE,OAAO;SAClB;;;;;;2CAMgC,KAAK,CAAC,KAAK,IAAI,UAAU;;;;;;;;;;;;;0DAaV,MAAM,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;;;0DAG1B,MAAM,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;;;wDAG5B,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,CAAC;;;yDAGvB,MAAM,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC;;;yEAGT,KAAK,CAAC,KAAK;;iFAEH,KAAK,CAAC,UAAU;;;6EAGpB,KAAK,CAAC,QAAQ;;;+EAGZ,KAAK,CAAC,SAAS;;;KAGzF,CAAA;IACH,CAAC;IAED,YAAY;QACV,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IACvE,CAAC;IAED,SAAS,CAAC,CAAQ;QAChB,IAAI,OAAO,GAAG,CAAC,CAAC,MAA0B,CAAA;QAC1C,IAAI,GAAG,GAAG,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,CAAA;QAC3C,IAAI,KAAK,GAAQ,OAAO,CAAC,KAAK,CAAA;QAE9B,IAAI,GAAG,KAAK,YAAY,IAAI,GAAG,KAAK,UAAU,IAAI,GAAG,KAAK,WAAW,EAAE,CAAC;YACtE,KAAK,GAAG,OAAO,CAAC,OAAO,CAAA;QACzB,CAAC;QAED,IAAI,CAAC,KAAK,GAAG;YACX,GAAG,IAAI,CAAC,KAAK;YACb,CAAC,GAAI,CAAC,EAAE,KAAK;SACd,CAAA;QAED,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IAClF,CAAC;;AA9E2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uDAA4C;AAV5D,wBAAwB;IADpC,aAAa,CAAC,6BAA6B,CAAC;GAChC,wBAAwB,CAyFpC","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport '@material/web/icon/icon.js'\nimport '@operato/i18n/ox-i18n.js'\nimport '@operato/attachment/ox-attachment-selector.js'\nimport './ox-input-color.js'\n\nimport { css, html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\n\nimport { PropertyGridStyles } from '@operato/styles/property-grid-styles.js'\n\nimport { OxFormField } from './ox-form-field.js'\n\nexport type BackgroundPatternOption = {\n image?: HTMLImageElement | string\n color?: string\n align?: 'left-top' | 'top' | 'right-top' | 'left' | 'center' | 'right' | 'left-bottom' | 'bottom' | 'right-bottom'\n offsetX?: number\n offsetY?: number\n width?: number\n height?: number\n fitPattern?: boolean\n noRepeat?: boolean\n guideOnly?: boolean\n}\n\n/**\n * 컴포넌트의 fill pattern을 편집하는 element\n *\n * Example:\n * <ox-input-background-pattern\n * @change=\"${e => { this.pattern = e.target.value }}\"\n * .value=${this.pattern}\"\n * ></ox-input-background-pattern>\n */\n\n@customElement('ox-input-background-pattern')\nexport class OxInputBackgroundPattern extends OxFormField {\n static styles = [\n PropertyGridStyles,\n css`\n :host {\n display: flex;\n }\n `\n ]\n\n @property({ type: Object }) value?: BackgroundPatternOption = undefined\n\n render() {\n const value = this.value || ({} as BackgroundPatternOption)\n\n return html`\n <div class=\"property-grid\">\n <label> <ox-i18n msgid=\"label.image\">image</ox-i18n> </label>\n\n <ox-attachment-selector\n value-key=\"image\"\n .value=${value.image || ''}\n .properties=${{\n category: 'image'\n }}\n class=\"custom-editor\"\n ></ox-attachment-selector>\n\n <label> <ox-i18n msgid=\"label.align\">align</ox-i18n> </label>\n\n <select value-key=\"align\" .value=${value.align || 'left-top'}>\n <option value=\"left-top\">Left Top</option>\n <option value=\"top\">Center Top</option>\n <option value=\"right-top\">Right Top</option>\n <option value=\"left\">Left Center</option>\n <option value=\"center\">Center Center</option>\n <option value=\"right\">Right Center</option>\n <option value=\"left-bottom\">Left Bottom</option>\n <option value=\"bottom\">Center Bottom</option>\n <option value=\"right-bottom\">Right Bottom</option>\n </select>\n\n <label> <ox-i18n msgid=\"label.offset-x\">offsetX</ox-i18n> </label>\n <input type=\"number\" value-key=\"offsetX\" .value=${String(value.offsetX || 0)} />\n\n <label> <ox-i18n msgid=\"label.offset-y\">offsetY</ox-i18n> </label>\n <input type=\"number\" value-key=\"offsetY\" .value=${String(value.offsetY || 0)} />\n\n <label> <ox-i18n msgid=\"label.width\">width</ox-i18n> </label>\n <input type=\"number\" value-key=\"width\" .value=${String(value.width || 0)} />\n\n <label> <ox-i18n msgid=\"label.height\">height</ox-i18n> </label>\n <input type=\"number\" value-key=\"height\" .value=${String(value.height || 0)} />\n\n <label><md-icon>format_color_fill</md-icon></label>\n <ox-input-color class=\"custom-editor\" value-key=\"color\" .value=${value.color}> </ox-input-color>\n\n <input id=\"fitPattern\" value-key=\"fitPattern\" type=\"checkbox\" ?checked=${value.fitPattern} required />\n <label for=\"fitPattern\"> <ox-i18n msgid=\"label.fit\">fit</ox-i18n> </label>\n\n <input id=\"noRepeat\" value-key=\"noRepeat\" type=\"checkbox\" ?checked=${value.noRepeat} required />\n <label for=\"noRepeat\"> <ox-i18n msgid=\"label.no-repeat\">no repeat</ox-i18n> </label>\n\n <input id=\"guideOnly\" value-key=\"guideOnly\" type=\"checkbox\" ?checked=${value.guideOnly} required />\n <label for=\"guideOnly\"> <ox-i18n msgid=\"label.guide-only\">guide only</ox-i18n> </label>\n </div>\n `\n }\n\n firstUpdated() {\n this.renderRoot.addEventListener('change', this._onChange.bind(this))\n }\n\n _onChange(e: Event) {\n var element = e.target as HTMLInputElement\n var key = element.getAttribute('value-key')\n var value: any = element.value\n\n if (key === 'fitPattern' || key === 'noRepeat' || key === 'guideOnly') {\n value = element.checked\n }\n\n this.value = {\n ...this.value,\n [key!]: value\n }\n\n this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))\n }\n}\n"]}
@@ -1,26 +1,28 @@
1
1
  /**
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
+ import '@material/web/icon/icon.js';
4
5
  import '@operato/i18n/ox-i18n.js';
5
- import '@polymer/paper-dropdown-menu/paper-dropdown-menu';
6
- import '@polymer/paper-listbox/paper-listbox';
7
- import '@polymer/paper-item/paper-item';
8
- import '@operato/input/ox-input-angle.js';
9
- import '@operato/input/ox-input-color-stops.js';
10
- import { ColorStop } from './ox-input-color-stops.js';
6
+ import './ox-select.js';
7
+ import './ox-input-angle.js';
8
+ import './ox-input-color-stops.js';
11
9
  import { OxFormField } from './ox-form-field.js';
10
+ import { ColorStop } from './ox-input-color-stops.js';
11
+ type GradientDirection = 'left-to-right' | 'lefttop-to-rightbottom' | 'top-to-bottom' | 'righttop-to-leftbottom' | 'right-to-left' | 'rightbottom-to-lefttop' | 'bottom-to-top' | 'leftbottom-to-righttop' | 'left-to-right' | 'center-to-corner';
12
12
  export type GradientOption = {
13
13
  type: 'linear' | 'radial';
14
14
  rotation: number;
15
- direction?: 'left-to-right' | 'lefttop-to-rightbottom' | 'top-to-bottom' | 'righttop-to-leftbottom' | 'right-to-left' | 'rightbottom-to-lefttop' | 'bottom-to-top' | 'leftbottom-to-righttop' | 'left-to-right' | 'center-to-corner';
15
+ direction?: GradientDirection;
16
16
  center?: 'center' | 'left-top' | 'right-top' | 'right-bottom' | 'left-bottom';
17
17
  colorStops?: ColorStop[];
18
18
  };
19
19
  export declare class OxInputColorGradient extends OxFormField {
20
- static styles: import("lit").CSSResult;
20
+ static styles: import("lit").CSSResult[];
21
21
  value: GradientOption;
22
22
  firstUpdated(): void;
23
- _onChange(e: Event): void;
24
23
  render(): import("lit-html").TemplateResult<1>;
25
- _convertDirectionToRotation(direction: string): number;
24
+ private onChange;
25
+ private convertDirectionToRotation;
26
+ private convertRotationToDirection;
26
27
  }
28
+ export {};