@operato/grist-editor 2.0.0-alpha.5 → 2.0.0-alpha.52
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.
- package/CHANGELOG.md +272 -0
- package/dist/src/index.js +4 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/ox-grist-editor-crontab.d.ts +1 -1
- package/dist/src/ox-grist-editor-duration.d.ts +1 -1
- package/dist/src/ox-grist-editor-hashtags.d.ts +1 -1
- package/dist/src/ox-grist-editor-i18n-label.d.ts +13 -0
- package/dist/src/ox-grist-editor-i18n-label.js +85 -0
- package/dist/src/ox-grist-editor-i18n-label.js.map +1 -0
- package/dist/src/ox-grist-editor-parameters.d.ts +1 -1
- package/dist/src/ox-grist-editor-partition-keys.d.ts +1 -1
- package/dist/src/ox-grist-editor-quantifier.d.ts +1 -1
- package/dist/src/ox-grist-editor-value-map.d.ts +1 -1
- package/dist/src/ox-grist-editor-value-ranges.d.ts +1 -1
- package/dist/src/ox-grist-renderer-i18n-label.d.ts +2 -0
- package/dist/src/ox-grist-renderer-i18n-label.js +9 -0
- package/dist/src/ox-grist-renderer-i18n-label.js.map +1 -0
- package/dist/src/ox-popup-crontab-input.d.ts +1 -1
- package/dist/src/ox-popup-duration-input.d.ts +1 -1
- package/dist/src/ox-popup-hashtags-input.d.ts +1 -1
- package/dist/src/ox-popup-i18n-label-input.d.ts +15 -0
- package/dist/src/ox-popup-i18n-label-input.js +101 -0
- package/dist/src/ox-popup-i18n-label-input.js.map +1 -0
- package/dist/src/ox-popup-parameters-builder.d.ts +1 -1
- package/dist/src/ox-popup-partition-keys-input.d.ts +1 -1
- package/dist/src/ox-popup-value-map-input.d.ts +1 -1
- package/dist/src/ox-popup-value-ranges-input.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +43 -31
- package/src/index.ts +4 -0
- package/src/ox-grist-editor-i18n-label.ts +101 -0
- package/src/ox-grist-renderer-i18n-label.ts +12 -0
- package/src/ox-popup-i18n-label-input.ts +98 -0
- package/themes/grist-theme.css +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,278 @@
|
|
|
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.52](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.51...v2.0.0-alpha.52) (2024-03-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.0.0-alpha.51](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.50...v2.0.0-alpha.51) (2024-03-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### :bug: Bug Fix
|
|
18
|
+
|
|
19
|
+
* upgrade lit ([e661c33](https://github.com/hatiolab/operato/commit/e661c333d2bb97f784b5ac2c0e365714ee5e80ff))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## [2.0.0-alpha.49](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.48...v2.0.0-alpha.49) (2024-03-28)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### :bug: Bug Fix
|
|
27
|
+
|
|
28
|
+
* i18n label ([fd48ef2](https://github.com/hatiolab/operato/commit/fd48ef2bd9bde7846a032fed5d34283fbb27a065))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## [2.0.0-alpha.48](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.47...v2.0.0-alpha.48) (2024-03-28)
|
|
33
|
+
|
|
34
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
## [2.0.0-alpha.47](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.46...v2.0.0-alpha.47) (2024-03-27)
|
|
41
|
+
|
|
42
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
## [2.0.0-alpha.46](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.45...v2.0.0-alpha.46) (2024-03-26)
|
|
49
|
+
|
|
50
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## [2.0.0-alpha.44](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.43...v2.0.0-alpha.44) (2024-03-24)
|
|
57
|
+
|
|
58
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
## [2.0.0-alpha.43](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.42...v2.0.0-alpha.43) (2024-03-24)
|
|
65
|
+
|
|
66
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
## [2.0.0-alpha.37](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.36...v2.0.0-alpha.37) (2024-03-18)
|
|
73
|
+
|
|
74
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## [2.0.0-alpha.36](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.35...v2.0.0-alpha.36) (2024-03-14)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
### :bug: Bug Fix
|
|
84
|
+
|
|
85
|
+
* multilingual common-code ([89ee53b](https://github.com/hatiolab/operato/commit/89ee53b448560a148483d11a3d0182410b952609))
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
## [2.0.0-alpha.35](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.34...v2.0.0-alpha.35) (2024-03-13)
|
|
90
|
+
|
|
91
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## [2.0.0-alpha.34](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.33...v2.0.0-alpha.34) (2024-03-12)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### :bug: Bug Fix
|
|
101
|
+
|
|
102
|
+
* multilingual common-code ([80ca17f](https://github.com/hatiolab/operato/commit/80ca17f32f87808d78ac23ff2737584d6ac8098e))
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## [2.0.0-alpha.33](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.32...v2.0.0-alpha.33) (2024-03-12)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### :bug: Bug Fix
|
|
110
|
+
|
|
111
|
+
* multilingual common-code ([b1305f1](https://github.com/hatiolab/operato/commit/b1305f11baa70cd437734d46d9dcdfc3c68e1924))
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
## [2.0.0-alpha.32](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.31...v2.0.0-alpha.32) (2024-03-12)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### :bug: Bug Fix
|
|
119
|
+
|
|
120
|
+
* multilingual common-code ([184bcd9](https://github.com/hatiolab/operato/commit/184bcd9ce23ead50e46d9b6cc7bf6788e63b6e21))
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
## [2.0.0-alpha.31](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.30...v2.0.0-alpha.31) (2024-03-03)
|
|
125
|
+
|
|
126
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
## [2.0.0-alpha.30](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.29...v2.0.0-alpha.30) (2024-03-03)
|
|
133
|
+
|
|
134
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
## [2.0.0-alpha.28](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.27...v2.0.0-alpha.28) (2024-02-20)
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### :bug: Bug Fix
|
|
144
|
+
|
|
145
|
+
* upgrade devDependencies for webcomponents ([1489b8b](https://github.com/hatiolab/operato/commit/1489b8b790d9bcee779a070a630697f25c01728f))
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
## [2.0.0-alpha.27](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.26...v2.0.0-alpha.27) (2024-02-17)
|
|
150
|
+
|
|
151
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
## [2.0.0-alpha.23](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.22...v2.0.0-alpha.23) (2024-02-10)
|
|
158
|
+
|
|
159
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
## [2.0.0-alpha.22](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.21...v2.0.0-alpha.22) (2024-02-10)
|
|
166
|
+
|
|
167
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
## [2.0.0-alpha.21](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.20...v2.0.0-alpha.21) (2024-02-09)
|
|
174
|
+
|
|
175
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
## [2.0.0-alpha.20](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.19...v2.0.0-alpha.20) (2024-02-05)
|
|
182
|
+
|
|
183
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
## [2.0.0-alpha.19](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.18...v2.0.0-alpha.19) (2024-02-05)
|
|
190
|
+
|
|
191
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
## [2.0.0-alpha.17](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.16...v2.0.0-alpha.17) (2024-02-04)
|
|
198
|
+
|
|
199
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
## [2.0.0-alpha.16](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.15...v2.0.0-alpha.16) (2024-02-03)
|
|
206
|
+
|
|
207
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
## [2.0.0-alpha.13](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.12...v2.0.0-alpha.13) (2024-01-28)
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
### :bug: Bug Fix
|
|
217
|
+
|
|
218
|
+
* css-variable --grid-record-padding ([b057312](https://github.com/hatiolab/operato/commit/b0573120fcb46c71b6b283065f08ae926e9f826f))
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
## [2.0.0-alpha.12](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.11...v2.0.0-alpha.12) (2024-01-24)
|
|
223
|
+
|
|
224
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
## [2.0.0-alpha.11](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.10...v2.0.0-alpha.11) (2024-01-24)
|
|
231
|
+
|
|
232
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
## [2.0.0-alpha.10](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.9...v2.0.0-alpha.10) (2024-01-22)
|
|
239
|
+
|
|
240
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
## [2.0.0-alpha.9](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.8...v2.0.0-alpha.9) (2024-01-20)
|
|
247
|
+
|
|
248
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
## [2.0.0-alpha.8](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.7...v2.0.0-alpha.8) (2024-01-20)
|
|
255
|
+
|
|
256
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
## [2.0.0-alpha.7](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.6...v2.0.0-alpha.7) (2024-01-15)
|
|
263
|
+
|
|
264
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
## [2.0.0-alpha.6](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.5...v2.0.0-alpha.6) (2024-01-15)
|
|
271
|
+
|
|
272
|
+
**Note:** Version bump only for package @operato/grist-editor
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
6
278
|
## [2.0.0-alpha.5](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.4...v2.0.0-alpha.5) (2024-01-15)
|
|
7
279
|
|
|
8
280
|
**Note:** Version bump only for package @operato/grist-editor
|
package/dist/src/index.js
CHANGED
|
@@ -11,6 +11,8 @@ import { OxGristRendererQuantifier } from './ox-grist-renderer-quantifier';
|
|
|
11
11
|
import { OxGristRendererHashtags } from './ox-grist-renderer-hashtags';
|
|
12
12
|
import { OxGristRendererPartitionKeys } from './ox-grist-renderer-partition-keys.js';
|
|
13
13
|
import { OxGristEditorValueRanges } from './ox-grist-editor-value-ranges.js';
|
|
14
|
+
import { OxGristEditorI18nLabel } from './ox-grist-editor-i18n-label.js';
|
|
15
|
+
import { OxGristRendererI18nLabel } from './ox-grist-renderer-i18n-label.js';
|
|
14
16
|
/* register grist renderer/editor for id */
|
|
15
17
|
registerEditor('parameters', OxGristEditorParameters);
|
|
16
18
|
registerEditor('value-map', OxGristEditorValueMap);
|
|
@@ -20,6 +22,7 @@ registerEditor('crontab', OxGristEditorCrontab);
|
|
|
20
22
|
registerEditor('duration', OxGristEditorDuration);
|
|
21
23
|
registerEditor('quantifier', OxGristEditorQuantifier);
|
|
22
24
|
registerEditor('hashtags', OxGristEditorHashtags);
|
|
25
|
+
registerEditor('i18n-label', OxGristEditorI18nLabel);
|
|
23
26
|
registerRenderer('parameters', OxGristRendererJson5);
|
|
24
27
|
registerRenderer('value-map', OxGristRendererJson5);
|
|
25
28
|
registerRenderer('value-ranges', OxGristRendererJson5);
|
|
@@ -27,4 +30,5 @@ registerRenderer('partition-keys', OxGristRendererPartitionKeys);
|
|
|
27
30
|
registerRenderer('duration', OxGristRendererDuration);
|
|
28
31
|
registerRenderer('quantifier', OxGristRendererQuantifier);
|
|
29
32
|
registerRenderer('hashtags', OxGristRendererHashtags);
|
|
33
|
+
registerRenderer('i18n-label', OxGristRendererI18nLabel);
|
|
30
34
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAE5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAA;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAA;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AACtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAA;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAA;AAE5E,2CAA2C;AAC3C,cAAc,CAAC,YAAY,EAAE,uBAAuB,CAAC,CAAA;AACrD,cAAc,CAAC,WAAW,EAAE,qBAAqB,CAAC,CAAA;AAClD,cAAc,CAAC,cAAc,EAAE,wBAAwB,CAAC,CAAA;AACxD,cAAc,CAAC,gBAAgB,EAAE,0BAA0B,CAAC,CAAA;AAC5D,cAAc,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAA;AAC/C,cAAc,CAAC,UAAU,EAA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C,CAAA;AAC5D,cAAc,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAA;AAC/C,cAAc,CAAC,UAAU,EAAE,qBAAqB,CAAC,CAAA;AACjD,cAAc,CAAC,YAAY,EAAE,uBAAuB,CAAC,CAAA;AACrD,cAAc,CAAC,UAAU,EAAE,qBAAqB,CAAC,CAAA;AACjD,cAAc,CAAC,YAAY,EAAE,sBAAsB,CAAC,CAAA;AAEpD,gBAAgB,CAAC,YAAY,EAAE,oBAAoB,CAAC,CAAA;AACpD,gBAAgB,CAAC,WAAW,EAAE,oBAAoB,CAAC,CAAA;AACnD,gBAAgB,CAAC,cAAc,EAAE,oBAAoB,CAAC,CAAA;AACtD,gBAAgB,CAAC,gBAAgB,EAAE,4BAA4B,CAAC,CAAA;AAChE,gBAAgB,CAAC,UAAU,EAAE,uBAAuB,CAAC,CAAA;AACrD,gBAAgB,CAAC,YAAY,EAAE,yBAAyB,CAAC,CAAA;AACzD,gBAAgB,CAAC,UAAU,EAAE,uBAAuB,CAAC,CAAA;AACrD,gBAAgB,CAAC,YAAY,EAAE,wBAAwB,CAAC,CAAA","sourcesContent":["import { OxGristRendererJson5, registerEditor, registerRenderer } from '@operato/data-grist'\n\nimport { OxGristEditorCrontab } from './ox-grist-editor-crontab.js'\nimport { OxGristEditorDuration } from './ox-grist-editor-duration.js'\nimport { OxGristEditorHashtags } from './ox-grist-editor-hashtags.js'\nimport { OxGristEditorParameters } from './ox-grist-editor-parameters.js'\nimport { OxGristEditorPartitionKeys } from './ox-grist-editor-partition-keys.js'\nimport { OxGristEditorQuantifier } from './ox-grist-editor-quantifier.js'\nimport { OxGristEditorValueMap } from './ox-grist-editor-value-map.js'\nimport { OxGristRendererDuration } from './ox-grist-renderer-duration.js'\nimport { OxGristRendererQuantifier } from './ox-grist-renderer-quantifier'\nimport { OxGristRendererHashtags } from './ox-grist-renderer-hashtags'\nimport { OxGristRendererPartitionKeys } from './ox-grist-renderer-partition-keys.js'\nimport { OxGristEditorValueRanges } from './ox-grist-editor-value-ranges.js'\nimport { OxGristEditorI18nLabel } from './ox-grist-editor-i18n-label.js'\nimport { OxGristRendererI18nLabel } from './ox-grist-renderer-i18n-label.js'\n\n/* register grist renderer/editor for id */\nregisterEditor('parameters', OxGristEditorParameters)\nregisterEditor('value-map', OxGristEditorValueMap)\nregisterEditor('value-ranges', OxGristEditorValueRanges)\nregisterEditor('partition-keys', OxGristEditorPartitionKeys)\nregisterEditor('crontab', OxGristEditorCrontab)\nregisterEditor('duration', OxGristEditorDuration)\nregisterEditor('quantifier', OxGristEditorQuantifier)\nregisterEditor('hashtags', OxGristEditorHashtags)\nregisterEditor('i18n-label', OxGristEditorI18nLabel)\n\nregisterRenderer('parameters', OxGristRendererJson5)\nregisterRenderer('value-map', OxGristRendererJson5)\nregisterRenderer('value-ranges', OxGristRendererJson5)\nregisterRenderer('partition-keys', OxGristRendererPartitionKeys)\nregisterRenderer('duration', OxGristRendererDuration)\nregisterRenderer('quantifier', OxGristRendererQuantifier)\nregisterRenderer('hashtags', OxGristRendererHashtags)\nregisterRenderer('i18n-label', OxGristRendererI18nLabel)\n"]}
|
|
@@ -2,7 +2,7 @@ import './ox-popup-crontab-input.js';
|
|
|
2
2
|
import { OxGristEditor } from '@operato/data-grist';
|
|
3
3
|
export declare class OxGristEditorCrontab extends OxGristEditor {
|
|
4
4
|
private popup?;
|
|
5
|
-
get editorTemplate(): import("lit").TemplateResult<1>;
|
|
5
|
+
get editorTemplate(): import("lit-html").TemplateResult<1>;
|
|
6
6
|
_onclick(e: Event): void;
|
|
7
7
|
_onkeydown(e: KeyboardEvent): void;
|
|
8
8
|
showEditorPopup(): void;
|
|
@@ -2,7 +2,7 @@ import './ox-popup-duration-input.js';
|
|
|
2
2
|
import { OxGristEditor } from '@operato/data-grist';
|
|
3
3
|
export declare class OxGristEditorDuration extends OxGristEditor {
|
|
4
4
|
private popup?;
|
|
5
|
-
get editorTemplate(): import("lit").TemplateResult<1>;
|
|
5
|
+
get editorTemplate(): import("lit-html").TemplateResult<1>;
|
|
6
6
|
_onclick(e: Event): void;
|
|
7
7
|
_onkeydown(e: KeyboardEvent): void;
|
|
8
8
|
showEditorPopup(): void;
|
|
@@ -2,7 +2,7 @@ import './ox-popup-hashtags-input.js';
|
|
|
2
2
|
import { OxGristEditor } from '@operato/data-grist';
|
|
3
3
|
export declare class OxGristEditorHashtags extends OxGristEditor {
|
|
4
4
|
private popup?;
|
|
5
|
-
get editorTemplate(): import("lit").TemplateResult<1>;
|
|
5
|
+
get editorTemplate(): import("lit-html").TemplateResult<1>;
|
|
6
6
|
_onclick(e: Event): void;
|
|
7
7
|
_onkeydown(e: KeyboardEvent): void;
|
|
8
8
|
showEditorPopup(): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import './ox-popup-i18n-label-input.js';
|
|
5
|
+
import { OxGristEditor } from '@operato/data-grist';
|
|
6
|
+
export declare class OxGristEditorI18nLabel extends OxGristEditor {
|
|
7
|
+
private popup?;
|
|
8
|
+
get options(): any;
|
|
9
|
+
get editorTemplate(): import("lit-html").TemplateResult<1>;
|
|
10
|
+
_onclick(e: Event): void;
|
|
11
|
+
_onkeydown(e: KeyboardEvent): void;
|
|
12
|
+
openSelector(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { __decorate } from "tslib";
|
|
5
|
+
import './ox-popup-i18n-label-input.js';
|
|
6
|
+
import { html } from 'lit';
|
|
7
|
+
import { customElement } from 'lit/decorators.js';
|
|
8
|
+
import { cloneDeep } from 'lodash-es';
|
|
9
|
+
import { OxGristEditor } from '@operato/data-grist';
|
|
10
|
+
import { i18next } from '@operato/i18n';
|
|
11
|
+
import { openPopup } from '@operato/popup';
|
|
12
|
+
let OxGristEditorI18nLabel = class OxGristEditorI18nLabel extends OxGristEditor {
|
|
13
|
+
get options() {
|
|
14
|
+
var _a;
|
|
15
|
+
return ((_a = this.column.record) === null || _a === void 0 ? void 0 : _a.options) || {};
|
|
16
|
+
}
|
|
17
|
+
get editorTemplate() {
|
|
18
|
+
const { displayColumn } = this.column.record.options || {};
|
|
19
|
+
const value = this.value && typeof this.value === 'object'
|
|
20
|
+
? this.value[i18next.language || 'en-US']
|
|
21
|
+
: displayColumn
|
|
22
|
+
? this.record[displayColumn]
|
|
23
|
+
: '';
|
|
24
|
+
return html `<div tabindex="0">${value || ''}</div>`;
|
|
25
|
+
}
|
|
26
|
+
_onclick(e) {
|
|
27
|
+
e.stopPropagation();
|
|
28
|
+
this.openSelector();
|
|
29
|
+
}
|
|
30
|
+
_onkeydown(e) {
|
|
31
|
+
const key = e.key;
|
|
32
|
+
if (key == 'Enter') {
|
|
33
|
+
e.stopPropagation();
|
|
34
|
+
this.openSelector();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
async openSelector() {
|
|
38
|
+
if (this.popup) {
|
|
39
|
+
delete this.popup;
|
|
40
|
+
}
|
|
41
|
+
const { name, help, languages, objectified = false } = this.options || {};
|
|
42
|
+
const confirmCallback = (newval) => {
|
|
43
|
+
this.dispatchEvent(new CustomEvent('field-change', {
|
|
44
|
+
bubbles: true,
|
|
45
|
+
composed: true,
|
|
46
|
+
detail: {
|
|
47
|
+
before: this.value,
|
|
48
|
+
after: !objectified ? JSON.stringify(newval) : newval,
|
|
49
|
+
record: this.record,
|
|
50
|
+
column: this.column,
|
|
51
|
+
row: this.row
|
|
52
|
+
}
|
|
53
|
+
}));
|
|
54
|
+
};
|
|
55
|
+
try {
|
|
56
|
+
var value = !objectified && typeof this.value === 'string' ? JSON.parse(this.value) : cloneDeep(this.value || {});
|
|
57
|
+
}
|
|
58
|
+
catch (e) {
|
|
59
|
+
var value = {};
|
|
60
|
+
}
|
|
61
|
+
/*
|
|
62
|
+
주의 : 이 팝업 템플릿은 layout 모듈에 의해서 render 되므로,
|
|
63
|
+
layout의 구성에 변화가 발생하면, 다시 render된다.
|
|
64
|
+
이 팝업이 떠 있는 상태에서, 또 다른 팝업이 뜨는 경우도 layout 구성의 변화를 야기한다. (overlay의 갯수의 증가)
|
|
65
|
+
이 경우 value, options, confirmCallback 등 클로져를 사용한 것들이 초기 바인딩된 값으로 다시 바인딩되게 되는데,
|
|
66
|
+
만약, 템플릿 내부에서 이들 속성의 레퍼런스가 변화했다면, 원래 상태로 되돌아가는 현상이 발생하게 된다.
|
|
67
|
+
따라서, 가급적 이들 속성의 레퍼런스를 변화시키지 않는 것이 좋다.
|
|
68
|
+
*/
|
|
69
|
+
var template = html `
|
|
70
|
+
<ox-popup-i18n-label-input .value=${value} .languages=${languages} .confirmCallback=${confirmCallback}>
|
|
71
|
+
</ox-popup-i18n-label-input>
|
|
72
|
+
`;
|
|
73
|
+
this.popup = openPopup(template, {
|
|
74
|
+
backdrop: true,
|
|
75
|
+
size: 'large',
|
|
76
|
+
title: `${(name === null || name === void 0 ? void 0 : name.toUpperCase()) || i18next.t('title.i18n-label')} `,
|
|
77
|
+
help
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
OxGristEditorI18nLabel = __decorate([
|
|
82
|
+
customElement('ox-grist-editor-i18n-label')
|
|
83
|
+
], OxGristEditorI18nLabel);
|
|
84
|
+
export { OxGristEditorI18nLabel };
|
|
85
|
+
//# sourceMappingURL=ox-grist-editor-i18n-label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ox-grist-editor-i18n-label.js","sourceRoot":"","sources":["../../src/ox-grist-editor-i18n-label.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,OAAO,gCAAgC,CAAA;AAEvC,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAGjD,OAAO,EAAE,SAAS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,OAAO,CAAC,CAAC,CAAC,kBAAkB,CAAC,GAAG;YACjE,IAAI;SACL,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAnFY,sBAAsB;IADlC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,sBAAsB,CAmFlC","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport './ox-popup-i18n-label-input.js'\n\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\nimport json5 from 'json5'\n\nimport { cloneDeep } from 'lodash-es'\n\nimport { OxGristEditor } from '@operato/data-grist'\nimport { i18next } from '@operato/i18n'\nimport { openPopup, PopupHandle } from '@operato/popup'\n\n@customElement('ox-grist-editor-i18n-label')\nexport class OxGristEditorI18nLabel extends OxGristEditor {\n private popup?: PopupHandle\n\n get options() {\n return this.column.record?.options || {}\n }\n\n get editorTemplate() {\n const { displayColumn } = this.column.record.options || {}\n\n const value =\n this.value && typeof this.value === 'object'\n ? this.value[i18next.language || 'en-US']\n : displayColumn\n ? this.record[displayColumn]\n : ''\n\n return html`<div tabindex=\"0\">${value || ''}</div>`\n }\n\n _onclick(e: Event): void {\n e.stopPropagation()\n this.openSelector()\n }\n\n _onkeydown(e: KeyboardEvent): void {\n const key = e.key\n if (key == 'Enter') {\n e.stopPropagation()\n this.openSelector()\n }\n }\n\n async openSelector() {\n if (this.popup) {\n delete this.popup\n }\n\n const { name, help, languages, objectified = false } = this.options || {}\n\n const confirmCallback = (newval: any) => {\n this.dispatchEvent(\n new CustomEvent('field-change', {\n bubbles: true,\n composed: true,\n detail: {\n before: this.value,\n after: !objectified ? JSON.stringify(newval) : newval,\n record: this.record,\n column: this.column,\n row: this.row\n }\n })\n )\n }\n\n try {\n var value: any =\n !objectified && typeof this.value === 'string' ? JSON.parse(this.value) : cloneDeep(this.value || {})\n } catch (e) {\n var value: any = {}\n }\n\n /* \n 주의 : 이 팝업 템플릿은 layout 모듈에 의해서 render 되므로, \n layout의 구성에 변화가 발생하면, 다시 render된다.\n 이 팝업이 떠 있는 상태에서, 또 다른 팝업이 뜨는 경우도 layout 구성의 변화를 야기한다. (overlay의 갯수의 증가)\n 이 경우 value, options, confirmCallback 등 클로져를 사용한 것들이 초기 바인딩된 값으로 다시 바인딩되게 되는데,\n 만약, 템플릿 내부에서 이들 속성의 레퍼런스가 변화했다면, 원래 상태로 되돌아가는 현상이 발생하게 된다.\n 따라서, 가급적 이들 속성의 레퍼런스를 변화시키지 않는 것이 좋다.\n */\n var template = html`\n <ox-popup-i18n-label-input .value=${value} .languages=${languages} .confirmCallback=${confirmCallback}>\n </ox-popup-i18n-label-input>\n `\n\n this.popup = openPopup(template, {\n backdrop: true,\n size: 'large',\n title: `${name?.toUpperCase() || i18next.t('title.i18n-label')} `,\n help\n })\n }\n}\n"]}
|
|
@@ -6,7 +6,7 @@ import './ox-popup-parameters-builder.js';
|
|
|
6
6
|
import { OxGristEditor } from '@operato/data-grist';
|
|
7
7
|
export declare class OxGristEditorParameters extends OxGristEditor {
|
|
8
8
|
private popup?;
|
|
9
|
-
get editorTemplate(): import("lit").TemplateResult<1>;
|
|
9
|
+
get editorTemplate(): import("lit-html").TemplateResult<1>;
|
|
10
10
|
_onclick(e: Event): void;
|
|
11
11
|
_onkeydown(e: KeyboardEvent): void;
|
|
12
12
|
openSelector(): Promise<void>;
|
|
@@ -5,7 +5,7 @@ import './ox-popup-partition-keys-input.js';
|
|
|
5
5
|
import { OxGristEditor } from '@operato/data-grist';
|
|
6
6
|
export declare class OxGristEditorPartitionKeys extends OxGristEditor {
|
|
7
7
|
private popup?;
|
|
8
|
-
get editorTemplate(): import("lit").TemplateResult<1>;
|
|
8
|
+
get editorTemplate(): import("lit-html").TemplateResult<1>;
|
|
9
9
|
_onclick(e: Event): void;
|
|
10
10
|
_onkeydown(e: KeyboardEvent): void;
|
|
11
11
|
openSelector(): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@operato/input/ox-input-quantifier.js';
|
|
2
2
|
import { OxGristEditor } from '@operato/data-grist';
|
|
3
3
|
export declare class OxGristEditorQuantifier extends OxGristEditor {
|
|
4
|
-
get editorTemplate(): import("lit").TemplateResult<1>;
|
|
4
|
+
get editorTemplate(): import("lit-html").TemplateResult<1>;
|
|
5
5
|
}
|
|
@@ -6,7 +6,7 @@ import { OxGristEditor } from '@operato/data-grist';
|
|
|
6
6
|
export declare class OxGristEditorValueMap extends OxGristEditor {
|
|
7
7
|
private popup?;
|
|
8
8
|
get options(): any;
|
|
9
|
-
get editorTemplate(): import("lit").TemplateResult<1>;
|
|
9
|
+
get editorTemplate(): import("lit-html").TemplateResult<1>;
|
|
10
10
|
_onclick(e: Event): void;
|
|
11
11
|
_onkeydown(e: KeyboardEvent): void;
|
|
12
12
|
openSelector(): Promise<void>;
|
|
@@ -6,7 +6,7 @@ import { OxGristEditor } from '@operato/data-grist';
|
|
|
6
6
|
export declare class OxGristEditorValueRanges extends OxGristEditor {
|
|
7
7
|
private popup?;
|
|
8
8
|
get options(): any;
|
|
9
|
-
get editorTemplate(): import("lit").TemplateResult<1>;
|
|
9
|
+
get editorTemplate(): import("lit-html").TemplateResult<1>;
|
|
10
10
|
_onclick(e: Event): void;
|
|
11
11
|
_onkeydown(e: KeyboardEvent): void;
|
|
12
12
|
openSelector(): Promise<void>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import i18next from 'i18next';
|
|
3
|
+
export const OxGristRendererI18nLabel = (value, column, record, rowIndex, field) => {
|
|
4
|
+
const language = i18next.language || 'en-US';
|
|
5
|
+
const labels = value || {};
|
|
6
|
+
const label = labels[language] || labels[language.substring(0, 2)] || labels['en'] || '';
|
|
7
|
+
return html `<span>${label}</span>`;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=ox-grist-renderer-i18n-label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ox-grist-renderer-i18n-label.js","sourceRoot":"","sources":["../../src/ox-grist-renderer-i18n-label.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAG1B,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,MAAM,CAAC,MAAM,wBAAwB,GAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;IAChG,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAA;IAC5C,MAAM,MAAM,GAAG,KAAK,IAAI,EAAE,CAAA;IAC1B,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAA;IAExF,OAAO,IAAI,CAAA,SAAS,KAAK,SAAS,CAAA;AACpC,CAAC,CAAA","sourcesContent":["import { html } from 'lit'\n\nimport { FieldRenderer } from '@operato/data-grist'\nimport i18next from 'i18next'\n\nexport const OxGristRendererI18nLabel: FieldRenderer = (value, column, record, rowIndex, field) => {\n const language = i18next.language || 'en-US'\n const labels = value || {}\n const label = labels[language] || labels[language.substring(0, 2)] || labels['en'] || ''\n\n return html`<span>${label}</span>`\n}\n"]}
|
|
@@ -4,7 +4,7 @@ export declare class OxPopupCrontabInput extends LitElement {
|
|
|
4
4
|
static styles: import("lit").CSSResult[];
|
|
5
5
|
value: any;
|
|
6
6
|
confirmCallback: (newval: any) => void;
|
|
7
|
-
render(): import("lit").TemplateResult<1>;
|
|
7
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
8
8
|
private onChange;
|
|
9
9
|
private onCancel;
|
|
10
10
|
private onConfirm;
|
|
@@ -4,7 +4,7 @@ export declare class OxPopupDurationInput extends LitElement {
|
|
|
4
4
|
static styles: import("lit").CSSResult[];
|
|
5
5
|
value: any;
|
|
6
6
|
confirmCallback: (newval: any) => void;
|
|
7
|
-
render(): import("lit").TemplateResult<1>;
|
|
7
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
8
8
|
private onChange;
|
|
9
9
|
private onCancel;
|
|
10
10
|
private onConfirm;
|
|
@@ -4,7 +4,7 @@ export declare class OxPopupHashtagsInput extends LitElement {
|
|
|
4
4
|
static styles: import("lit").CSSResult[];
|
|
5
5
|
value: string[];
|
|
6
6
|
confirmCallback: (newval: any) => void;
|
|
7
|
-
render(): import("lit").TemplateResult<1>;
|
|
7
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
8
8
|
private onChange;
|
|
9
9
|
private onCancel;
|
|
10
10
|
private onConfirm;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import '@operato/input/ox-input-i18n-label.js';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
export declare class OxPopupValueMapInput extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
value: any;
|
|
6
|
+
languages: {
|
|
7
|
+
code: string;
|
|
8
|
+
display: string;
|
|
9
|
+
}[];
|
|
10
|
+
confirmCallback: (newval: any) => void;
|
|
11
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
12
|
+
private onChange;
|
|
13
|
+
private onCancel;
|
|
14
|
+
private onConfirm;
|
|
15
|
+
}
|