@pie-lib/text-select 1.14.0-beta.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +1 -632
- package/CHANGELOG.md +114 -30
- package/lib/index.js +1 -9
- package/lib/index.js.map +1 -0
- package/lib/legend.js +65 -38
- package/lib/legend.js.map +1 -0
- package/lib/shared/index.js +136 -0
- package/lib/text-select.js +1 -1
- package/lib/text-select.js.map +1 -0
- package/lib/token-select/index.js +1 -1
- package/lib/token-select/index.js.map +1 -0
- package/lib/token-select/token.js +113 -67
- package/lib/token-select/token.js.map +1 -0
- package/lib/tokenizer/builder.js +1 -1
- package/lib/tokenizer/builder.js.map +1 -0
- package/lib/tokenizer/controls.js +4 -4
- package/lib/tokenizer/controls.js.map +1 -0
- package/lib/tokenizer/index.js +1 -1
- package/lib/tokenizer/index.js.map +1 -0
- package/lib/tokenizer/selection-utils.js +1 -1
- package/lib/tokenizer/selection-utils.js.map +1 -0
- package/lib/tokenizer/token-text.js +1 -1
- package/lib/tokenizer/token-text.js.map +1 -0
- package/lib/utils.js +1 -1
- package/lib/utils.js.map +1 -0
- package/package.json +6 -6
- package/src/index.js +1 -2
- package/src/legend.js +55 -37
- package/src/token-select/__tests__/__snapshots__/token.test.jsx.snap +2 -6
- package/src/token-select/token.jsx +96 -61
- package/src/tokenizer/controls.jsx +7 -7
- package/lib/__tests__/text-select.test.js +0 -56
- package/lib/__tests__/utils.test.js +0 -23
- package/lib/token-select/__tests__/index.test.js +0 -268
- package/lib/token-select/__tests__/token.test.js +0 -35
- package/lib/tokenizer/__tests__/builder.test.js +0 -399
- package/lib/tokenizer/__tests__/controls.test.js +0 -34
- package/lib/tokenizer/__tests__/index.test.js +0 -210
- package/lib/tokenizer/__tests__/selection-utils.test.js +0 -27
- package/lib/tokenizer/__tests__/token-text.test.js +0 -154
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.
|
|
6
|
+
# [1.15.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.15.0) (2025-07-31)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @pie-lib/text-select
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
# [1.
|
|
14
|
+
# [1.14.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.14.0) (2025-07-31)
|
|
15
15
|
|
|
16
16
|
**Note:** Version bump only for package @pie-lib/text-select
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
# [1.13.0-beta.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.8) (2025-07-25)
|
|
23
23
|
|
|
24
24
|
**Note:** Version bump only for package @pie-lib/text-select
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
# [1.13.0-beta.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.7) (2025-07-25)
|
|
31
31
|
|
|
32
32
|
**Note:** Version bump only for package @pie-lib/text-select
|
|
33
33
|
|
|
@@ -35,7 +35,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
# [1.13.0-beta.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.7) (2025-07-25)
|
|
39
39
|
|
|
40
40
|
**Note:** Version bump only for package @pie-lib/text-select
|
|
41
41
|
|
|
@@ -43,7 +43,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
# [1.13.0-beta.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.6) (2025-07-25)
|
|
47
47
|
|
|
48
48
|
**Note:** Version bump only for package @pie-lib/text-select
|
|
49
49
|
|
|
@@ -51,7 +51,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
# [1.13.0-beta.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.6) (2025-07-25)
|
|
55
55
|
|
|
56
56
|
**Note:** Version bump only for package @pie-lib/text-select
|
|
57
57
|
|
|
@@ -59,7 +59,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
# [1.13.0-beta.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.5) (2025-07-25)
|
|
63
63
|
|
|
64
64
|
**Note:** Version bump only for package @pie-lib/text-select
|
|
65
65
|
|
|
@@ -67,7 +67,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
# [1.13.0-beta.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.5) (2025-07-25)
|
|
71
71
|
|
|
72
72
|
**Note:** Version bump only for package @pie-lib/text-select
|
|
73
73
|
|
|
@@ -75,18 +75,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
# [1.
|
|
78
|
+
# [1.13.0-beta.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.4) (2025-07-25)
|
|
79
79
|
|
|
80
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
80
81
|
|
|
81
|
-
### Features
|
|
82
82
|
|
|
83
|
-
* **translator, text-select:** add translations for new text-select legend PD-3162 ([20ee2c1](https://github.com/pie-framework/pie-lib/commit/20ee2c17873985fa06b4b58cf781742a5923b532))
|
|
84
83
|
|
|
85
84
|
|
|
86
85
|
|
|
86
|
+
# [1.13.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.3) (2025-07-25)
|
|
87
87
|
|
|
88
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
88
89
|
|
|
89
|
-
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
# [1.13.0-beta.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.4) (2025-07-23)
|
|
90
95
|
|
|
91
96
|
**Note:** Version bump only for package @pie-lib/text-select
|
|
92
97
|
|
|
@@ -94,19 +99,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
94
99
|
|
|
95
100
|
|
|
96
101
|
|
|
97
|
-
|
|
102
|
+
# [1.13.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.3) (2025-07-23)
|
|
98
103
|
|
|
104
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
99
105
|
|
|
100
|
-
### Bug Fixes
|
|
101
106
|
|
|
102
|
-
* **text-select:** PD-3117 - avoids tokens overlapping in eval mode ([728c242](https://github.com/pie-framework/pie-lib/commit/728c24274c726907de568600b074305a145320ca))
|
|
103
|
-
* **text-select:** PD-3134 replace typography with span to prevent materialui from overwriting styling ([a9c4860](https://github.com/pie-framework/pie-lib/commit/a9c4860701355e3e6b33145414658da06ba5a5a3))
|
|
104
107
|
|
|
105
108
|
|
|
106
109
|
|
|
110
|
+
# [1.13.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.3) (2025-07-20)
|
|
107
111
|
|
|
112
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
108
113
|
|
|
109
|
-
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
# [1.13.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.2) (2025-07-20)
|
|
110
119
|
|
|
111
120
|
**Note:** Version bump only for package @pie-lib/text-select
|
|
112
121
|
|
|
@@ -114,32 +123,31 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
114
123
|
|
|
115
124
|
|
|
116
125
|
|
|
117
|
-
# [1.
|
|
126
|
+
# [1.13.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.1) (2025-07-20)
|
|
118
127
|
|
|
128
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
119
129
|
|
|
120
|
-
### Features
|
|
121
130
|
|
|
122
|
-
* **text-select:** PD-1163 - add legend for icons used in eval mode ([7b2bac2](https://github.com/pie-framework/pie-lib/commit/7b2bac262d29986db2ce57ff6cee6c04af08472a))
|
|
123
131
|
|
|
124
132
|
|
|
125
133
|
|
|
134
|
+
# [1.13.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.2) (2025-07-20)
|
|
135
|
+
|
|
136
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
126
137
|
|
|
127
138
|
|
|
128
|
-
# [1.10.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.9.29...@pie-lib/text-select@1.10.0) (2023-08-15)
|
|
129
139
|
|
|
130
140
|
|
|
131
|
-
### Features
|
|
132
141
|
|
|
133
|
-
|
|
134
|
-
* **text-select:** PD-1163 create wrapper component ([b41db39](https://github.com/pie-framework/pie-lib/commit/b41db39ade332d19dca70a06d54acf51b5888c69))
|
|
135
|
-
* **text-select:** PD-1163 update snapshots ([6b8edf8](https://github.com/pie-framework/pie-lib/commit/6b8edf83b763abdd93eee2655be3600cef90586b))
|
|
136
|
-
* **text-select:** PD-1163 updates to tokens in text select ([2535c91](https://github.com/pie-framework/pie-lib/commit/2535c911f378f4cf41c8471bfa1898b996ffacee))
|
|
142
|
+
# [1.13.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.1) (2025-07-20)
|
|
137
143
|
|
|
144
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
138
145
|
|
|
139
146
|
|
|
140
147
|
|
|
141
148
|
|
|
142
|
-
|
|
149
|
+
|
|
150
|
+
# [1.13.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.1) (2025-07-20)
|
|
143
151
|
|
|
144
152
|
**Note:** Version bump only for package @pie-lib/text-select
|
|
145
153
|
|
|
@@ -147,7 +155,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
147
155
|
|
|
148
156
|
|
|
149
157
|
|
|
150
|
-
|
|
158
|
+
# [1.13.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.0) (2025-07-20)
|
|
151
159
|
|
|
152
160
|
**Note:** Version bump only for package @pie-lib/text-select
|
|
153
161
|
|
|
@@ -155,13 +163,89 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
155
163
|
|
|
156
164
|
|
|
157
165
|
|
|
158
|
-
|
|
166
|
+
# [1.14.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.14.0-beta.0) (2025-07-15)
|
|
167
|
+
|
|
168
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
169
|
+
|
|
170
|
+
# [1.13.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.7...@pie-lib/text-select@1.13.0-beta.0) (2025-07-15)
|
|
171
|
+
|
|
172
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
173
|
+
|
|
174
|
+
## [1.12.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.6...@pie-lib/text-select@1.12.7) (2023-10-03)
|
|
175
|
+
|
|
176
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
177
|
+
|
|
178
|
+
## [1.12.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.5...@pie-lib/text-select@1.12.6) (2023-10-01)
|
|
179
|
+
|
|
180
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
181
|
+
|
|
182
|
+
## [1.12.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.4...@pie-lib/text-select@1.12.5) (2023-09-27)
|
|
183
|
+
|
|
184
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
185
|
+
|
|
186
|
+
## [1.12.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.3...@pie-lib/text-select@1.12.4) (2023-09-27)
|
|
187
|
+
|
|
188
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
189
|
+
|
|
190
|
+
## [1.12.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.2...@pie-lib/text-select@1.12.3) (2023-09-25)
|
|
191
|
+
|
|
192
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
193
|
+
|
|
194
|
+
## [1.12.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.1...@pie-lib/text-select@1.12.2) (2023-09-20)
|
|
195
|
+
|
|
196
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
197
|
+
|
|
198
|
+
## [1.12.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.12.0...@pie-lib/text-select@1.12.1) (2023-09-20)
|
|
199
|
+
|
|
200
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
201
|
+
|
|
202
|
+
# [1.12.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.11.3...@pie-lib/text-select@1.12.0) (2023-09-18)
|
|
203
|
+
|
|
204
|
+
### Features
|
|
205
|
+
|
|
206
|
+
- **translator, text-select:** add translations for new text-select legend PD-3162 ([20ee2c1](https://github.com/pie-framework/pie-lib/commit/20ee2c17873985fa06b4b58cf781742a5923b532))
|
|
207
|
+
|
|
208
|
+
## [1.11.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.11.2...@pie-lib/text-select@1.11.3) (2023-09-14)
|
|
159
209
|
|
|
160
210
|
**Note:** Version bump only for package @pie-lib/text-select
|
|
161
211
|
|
|
212
|
+
## [1.11.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.11.1...@pie-lib/text-select@1.11.2) (2023-08-29)
|
|
213
|
+
|
|
214
|
+
### Bug Fixes
|
|
215
|
+
|
|
216
|
+
- **text-select:** PD-3117 - avoids tokens overlapping in eval mode ([728c242](https://github.com/pie-framework/pie-lib/commit/728c24274c726907de568600b074305a145320ca))
|
|
217
|
+
- **text-select:** PD-3134 replace typography with span to prevent materialui from overwriting styling ([a9c4860](https://github.com/pie-framework/pie-lib/commit/a9c4860701355e3e6b33145414658da06ba5a5a3))
|
|
218
|
+
|
|
219
|
+
## [1.11.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.11.0...@pie-lib/text-select@1.11.1) (2023-08-21)
|
|
220
|
+
|
|
221
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
222
|
+
|
|
223
|
+
# [1.11.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.10.0...@pie-lib/text-select@1.11.0) (2023-08-16)
|
|
162
224
|
|
|
225
|
+
### Features
|
|
163
226
|
|
|
227
|
+
- **text-select:** PD-1163 - add legend for icons used in eval mode ([7b2bac2](https://github.com/pie-framework/pie-lib/commit/7b2bac262d29986db2ce57ff6cee6c04af08472a))
|
|
164
228
|
|
|
229
|
+
# [1.10.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.9.29...@pie-lib/text-select@1.10.0) (2023-08-15)
|
|
230
|
+
|
|
231
|
+
### Features
|
|
232
|
+
|
|
233
|
+
- **text-select:** adjust colors and alignment of the color ([a51ba55](https://github.com/pie-framework/pie-lib/commit/a51ba5547f6e1559915d6ea967d406923831b561))
|
|
234
|
+
- **text-select:** PD-1163 create wrapper component ([b41db39](https://github.com/pie-framework/pie-lib/commit/b41db39ade332d19dca70a06d54acf51b5888c69))
|
|
235
|
+
- **text-select:** PD-1163 update snapshots ([6b8edf8](https://github.com/pie-framework/pie-lib/commit/6b8edf83b763abdd93eee2655be3600cef90586b))
|
|
236
|
+
- **text-select:** PD-1163 updates to tokens in text select ([2535c91](https://github.com/pie-framework/pie-lib/commit/2535c911f378f4cf41c8471bfa1898b996ffacee))
|
|
237
|
+
|
|
238
|
+
## [1.9.29](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.9.28...@pie-lib/text-select@1.9.29) (2023-07-24)
|
|
239
|
+
|
|
240
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
241
|
+
|
|
242
|
+
## [1.9.28](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.9.27...@pie-lib/text-select@1.9.28) (2023-06-24)
|
|
243
|
+
|
|
244
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
245
|
+
|
|
246
|
+
## [1.9.27](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.9.26...@pie-lib/text-select@1.9.27) (2023-06-13)
|
|
247
|
+
|
|
248
|
+
**Note:** Version bump only for package @pie-lib/text-select
|
|
165
249
|
|
|
166
250
|
## [1.9.26](https://github.com/pie-framework/pie-lib/compare/@pie-lib/text-select@1.9.25...@pie-lib/text-select@1.9.26) (2023-06-12)
|
|
167
251
|
|
package/lib/index.js
CHANGED
|
@@ -7,12 +7,6 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
Object.defineProperty(exports, "Controls", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function get() {
|
|
13
|
-
return _controls["default"];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
10
|
Object.defineProperty(exports, "Legend", {
|
|
17
11
|
enumerable: true,
|
|
18
12
|
get: function get() {
|
|
@@ -56,8 +50,6 @@ Object.defineProperty(exports, "prepareText", {
|
|
|
56
50
|
}
|
|
57
51
|
});
|
|
58
52
|
|
|
59
|
-
var _controls = _interopRequireDefault(require("./tokenizer/controls"));
|
|
60
|
-
|
|
61
53
|
var _tokenizer = _interopRequireDefault(require("./tokenizer"));
|
|
62
54
|
|
|
63
55
|
var _tokenSelect = _interopRequireWildcard(require("./token-select"));
|
|
@@ -73,4 +65,4 @@ var _utils = require("./utils");
|
|
|
73
65
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
74
66
|
|
|
75
67
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
76
|
-
//# sourceMappingURL=
|
|
68
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA","sourcesContent":["import Tokenizer from './tokenizer';\nimport TokenSelect, { TokenTypes } from './token-select';\nimport TextSelect from './text-select';\nimport { Legend } from './legend';\nimport Token from './token-select/token';\nimport { prepareText } from './utils';\n\nexport { TextSelect, TokenTypes, Tokenizer, TokenSelect, Token, prepareText, Legend };\n"],"file":"index.js"}
|
package/lib/legend.js
CHANGED
|
@@ -15,18 +15,19 @@ var _Check = _interopRequireDefault(require("@material-ui/icons/Check"));
|
|
|
15
15
|
|
|
16
16
|
var _Close = _interopRequireDefault(require("@material-ui/icons/Close"));
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
var _renderUi = require("@pie-lib/render-ui");
|
|
18
|
+
var _index = require("./shared/index");
|
|
21
19
|
|
|
22
20
|
var _translator = _interopRequireDefault(require("@pie-lib/translator"));
|
|
23
21
|
|
|
22
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
23
|
+
|
|
24
24
|
var translator = _translator["default"].translator;
|
|
25
25
|
var Legend = (0, _styles.withStyles)(function (theme) {
|
|
26
26
|
return {
|
|
27
27
|
flexContainer: {
|
|
28
28
|
display: 'flex',
|
|
29
29
|
flexDirection: 'row',
|
|
30
|
+
alignItems: 'center',
|
|
30
31
|
gap: "".concat(2 * theme.spacing.unit, "px"),
|
|
31
32
|
borderBottom: '1px solid lightgrey',
|
|
32
33
|
borderTop: '1px solid lightgrey',
|
|
@@ -34,66 +35,92 @@ var Legend = (0, _styles.withStyles)(function (theme) {
|
|
|
34
35
|
paddingTop: theme.spacing.unit,
|
|
35
36
|
marginBottom: theme.spacing.unit
|
|
36
37
|
},
|
|
38
|
+
key: {
|
|
39
|
+
fontSize: '14px',
|
|
40
|
+
fontWeight: 'bold',
|
|
41
|
+
color: _index.color.black(),
|
|
42
|
+
marginLeft: theme.spacing.unit
|
|
43
|
+
},
|
|
37
44
|
container: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
position: 'relative',
|
|
46
|
+
padding: '4px',
|
|
47
|
+
fontSize: '14px',
|
|
48
|
+
borderRadius: '4px'
|
|
42
49
|
},
|
|
43
50
|
correct: {
|
|
44
|
-
|
|
45
|
-
color: _renderUi.color.correct(),
|
|
46
|
-
backgroundColor: _renderUi.color.correctSecondary(),
|
|
47
|
-
border: "2px solid ".concat(_renderUi.color.correct())
|
|
51
|
+
border: "".concat(_index.color.correctTertiary(), " solid 2px")
|
|
48
52
|
},
|
|
49
53
|
incorrect: {
|
|
50
|
-
|
|
51
|
-
color: _renderUi.color.missing(),
|
|
52
|
-
backgroundColor: _renderUi.color.incorrectSecondary(),
|
|
53
|
-
border: "2px solid ".concat(_renderUi.color.missing())
|
|
54
|
+
border: "".concat(_index.color.incorrectWithIcon(), " solid 2px")
|
|
54
55
|
},
|
|
55
56
|
missing: {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
border: "".concat(_index.color.incorrectWithIcon(), " dashed 2px")
|
|
58
|
+
},
|
|
59
|
+
incorrectIcon: {
|
|
60
|
+
backgroundColor: _index.color.incorrectWithIcon()
|
|
61
|
+
},
|
|
62
|
+
correctIcon: {
|
|
63
|
+
backgroundColor: _index.color.correctTertiary()
|
|
64
|
+
},
|
|
65
|
+
icon: {
|
|
66
|
+
color: _index.color.white(),
|
|
67
|
+
position: 'absolute',
|
|
68
|
+
top: '-8px',
|
|
69
|
+
left: '-8px',
|
|
70
|
+
borderRadius: '50%',
|
|
71
|
+
fontSize: '12px',
|
|
72
|
+
padding: '2px'
|
|
60
73
|
}
|
|
61
74
|
};
|
|
62
75
|
})(function (_ref) {
|
|
63
76
|
var classes = _ref.classes,
|
|
64
|
-
language = _ref.language
|
|
65
|
-
|
|
66
|
-
|
|
77
|
+
language = _ref.language,
|
|
78
|
+
showOnlyCorrect = _ref.showOnlyCorrect;
|
|
79
|
+
var legendItems = [{
|
|
80
|
+
Icon: _Check["default"],
|
|
67
81
|
label: translator.t('selectText.correctAnswerSelected', {
|
|
68
82
|
lng: language
|
|
69
83
|
}),
|
|
70
|
-
|
|
84
|
+
containerClass: (0, _classnames["default"])(classes.correct, classes.container),
|
|
85
|
+
iconClass: (0, _classnames["default"])(classes.correctIcon, classes.icon)
|
|
71
86
|
}, {
|
|
72
|
-
|
|
73
|
-
label: translator.t('selectText.
|
|
87
|
+
Icon: _Close["default"],
|
|
88
|
+
label: translator.t('selectText.incorrectSelection', {
|
|
74
89
|
lng: language
|
|
75
90
|
}),
|
|
76
|
-
|
|
91
|
+
containerClass: (0, _classnames["default"])(classes.incorrect, classes.container),
|
|
92
|
+
iconClass: (0, _classnames["default"])(classes.incorrectIcon, classes.icon)
|
|
77
93
|
}, {
|
|
78
|
-
|
|
79
|
-
label: translator.t('selectText.
|
|
94
|
+
Icon: _Close["default"],
|
|
95
|
+
label: translator.t('selectText.correctAnswerNotSelected', {
|
|
80
96
|
lng: language
|
|
81
97
|
}),
|
|
82
|
-
|
|
98
|
+
containerClass: (0, _classnames["default"])(classes.missing, classes.container),
|
|
99
|
+
iconClass: (0, _classnames["default"])(classes.incorrectIcon, classes.icon)
|
|
83
100
|
}];
|
|
101
|
+
|
|
102
|
+
if (showOnlyCorrect) {
|
|
103
|
+
legendItems.splice(1, 2);
|
|
104
|
+
}
|
|
105
|
+
|
|
84
106
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
107
|
className: classes.flexContainer
|
|
86
|
-
},
|
|
87
|
-
|
|
108
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
109
|
+
className: classes.key
|
|
110
|
+
}, translator.t('selectText.key', {
|
|
111
|
+
lng: language
|
|
112
|
+
})), legendItems.map(function (_ref2, idx) {
|
|
113
|
+
var Icon = _ref2.Icon,
|
|
114
|
+
label = _ref2.label,
|
|
115
|
+
containerClass = _ref2.containerClass,
|
|
116
|
+
iconClass = _ref2.iconClass;
|
|
88
117
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
|
-
key:
|
|
90
|
-
className:
|
|
118
|
+
key: idx,
|
|
119
|
+
className: containerClass
|
|
91
120
|
}, /*#__PURE__*/_react["default"].createElement(Icon, {
|
|
92
|
-
className:
|
|
93
|
-
|
|
94
|
-
height: '19px'
|
|
95
|
-
}), /*#__PURE__*/_react["default"].createElement("span", null, icon.label));
|
|
121
|
+
className: iconClass
|
|
122
|
+
}), /*#__PURE__*/_react["default"].createElement("span", null, label));
|
|
96
123
|
}));
|
|
97
124
|
});
|
|
98
125
|
exports.Legend = Legend;
|
|
99
|
-
//# sourceMappingURL=
|
|
126
|
+
//# sourceMappingURL=legend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/legend.js"],"names":["translator","Translator","Legend","theme","flexContainer","display","flexDirection","alignItems","gap","spacing","unit","borderBottom","borderTop","paddingBottom","paddingTop","marginBottom","key","fontSize","fontWeight","color","black","marginLeft","container","position","padding","borderRadius","correct","border","correctTertiary","incorrect","incorrectWithIcon","missing","incorrectIcon","backgroundColor","correctIcon","icon","white","top","left","classes","language","showOnlyCorrect","legendItems","Icon","Check","label","t","lng","containerClass","iconClass","Close","splice","map","idx"],"mappings":"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","sourcesContent":["import React from 'react';\nimport { withStyles } from '@material-ui/core/styles';\nimport Check from '@material-ui/icons/Check';\nimport Close from '@material-ui/icons/Close';\nimport { color } from '../../render-ui/src/index';\nimport Translator from '@pie-lib/translator';\nimport classNames from 'classnames';\n\nconst { translator } = Translator;\n\nexport const Legend = withStyles((theme) => ({\n flexContainer: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: `${2 * theme.spacing.unit}px`,\n borderBottom: '1px solid lightgrey',\n borderTop: '1px solid lightgrey',\n paddingBottom: theme.spacing.unit,\n paddingTop: theme.spacing.unit,\n marginBottom: theme.spacing.unit,\n },\n key: {\n fontSize: '14px',\n fontWeight: 'bold',\n color: color.black(),\n marginLeft: theme.spacing.unit,\n },\n container: {\n position: 'relative',\n padding: '4px',\n fontSize: '14px',\n borderRadius: '4px',\n },\n correct: {\n border: `${color.correctTertiary()} solid 2px`,\n },\n incorrect: {\n border: `${color.incorrectWithIcon()} solid 2px`,\n },\n missing: {\n border: `${color.incorrectWithIcon()} dashed 2px`,\n },\n incorrectIcon: {\n backgroundColor: color.incorrectWithIcon(),\n },\n correctIcon: {\n backgroundColor: color.correctTertiary(),\n },\n icon: {\n color: color.white(),\n position: 'absolute',\n top: '-8px',\n left: '-8px',\n borderRadius: '50%',\n fontSize: '12px',\n padding: '2px',\n },\n}))(({ classes, language, showOnlyCorrect }) => {\n const legendItems = [\n {\n Icon: Check,\n label: translator.t('selectText.correctAnswerSelected', { lng: language }),\n containerClass: classNames(classes.correct, classes.container),\n iconClass: classNames(classes.correctIcon, classes.icon),\n },\n {\n Icon: Close,\n label: translator.t('selectText.incorrectSelection', { lng: language }),\n containerClass: classNames(classes.incorrect, classes.container),\n iconClass: classNames(classes.incorrectIcon, classes.icon),\n },\n {\n Icon: Close,\n label: translator.t('selectText.correctAnswerNotSelected', { lng: language }),\n containerClass: classNames(classes.missing, classes.container),\n iconClass: classNames(classes.incorrectIcon, classes.icon),\n },\n ];\n\n if (showOnlyCorrect) {\n legendItems.splice(1, 2);\n }\n\n return (\n <div className={classes.flexContainer}>\n <span className={classes.key}>{translator.t('selectText.key', { lng: language })}</span>\n {legendItems.map(({ Icon, label, containerClass, iconClass }, idx) => (\n <div key={idx} className={containerClass}>\n <Icon className={iconClass} />\n <span>{label}</span>\n </div>\n ))}\n </div>\n );\n});\n"],"file":"legend.js"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
Object.defineProperty(exports, "AppendCSSRules", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _appendCssRules["default"];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "Collapsible", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function get() {
|
|
19
|
+
return _collapsible["default"];
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "EnableAudioAutoplayImage", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function get() {
|
|
25
|
+
return _enableAudioAutoplayImage["default"];
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "Feedback", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function get() {
|
|
31
|
+
return _feedback["default"];
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "HtmlAndMath", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function get() {
|
|
37
|
+
return _htmlAndMath["default"];
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "InputContainer", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function get() {
|
|
43
|
+
return _inputContainer["default"];
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "PreviewLayout", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function get() {
|
|
49
|
+
return _previewLayout["default"];
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "PreviewPrompt", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function get() {
|
|
55
|
+
return _previewPrompt["default"];
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "Purpose", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function get() {
|
|
61
|
+
return _purpose["default"];
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "Readable", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function get() {
|
|
67
|
+
return _readable["default"];
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "UiLayout", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function get() {
|
|
73
|
+
return _uiLayout["default"];
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
exports.color = void 0;
|
|
77
|
+
Object.defineProperty(exports, "hasMedia", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function get() {
|
|
80
|
+
return _hasMedia.hasMedia;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(exports, "hasText", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function get() {
|
|
86
|
+
return _hasText.hasText;
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
exports.indicators = void 0;
|
|
90
|
+
Object.defineProperty(exports, "withUndoReset", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function get() {
|
|
93
|
+
return _withUndoReset["default"];
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
var indicators = _interopRequireWildcard(require("./response-indicators"));
|
|
98
|
+
|
|
99
|
+
exports.indicators = indicators;
|
|
100
|
+
|
|
101
|
+
var _feedback = _interopRequireDefault(require("./feedback"));
|
|
102
|
+
|
|
103
|
+
var _collapsible = _interopRequireDefault(require("./collapsible"));
|
|
104
|
+
|
|
105
|
+
var _withUndoReset = _interopRequireDefault(require("./withUndoReset"));
|
|
106
|
+
|
|
107
|
+
var _previewLayout = _interopRequireDefault(require("./preview-layout"));
|
|
108
|
+
|
|
109
|
+
var _uiLayout = _interopRequireDefault(require("./ui-layout"));
|
|
110
|
+
|
|
111
|
+
var _htmlAndMath = _interopRequireDefault(require("./html-and-math"));
|
|
112
|
+
|
|
113
|
+
var _inputContainer = _interopRequireDefault(require("./input-container"));
|
|
114
|
+
|
|
115
|
+
var _previewPrompt = _interopRequireDefault(require("./preview-prompt"));
|
|
116
|
+
|
|
117
|
+
var _readable = _interopRequireDefault(require("./readable"));
|
|
118
|
+
|
|
119
|
+
var _purpose = _interopRequireDefault(require("./purpose"));
|
|
120
|
+
|
|
121
|
+
var color = _interopRequireWildcard(require("./color"));
|
|
122
|
+
|
|
123
|
+
exports.color = color;
|
|
124
|
+
|
|
125
|
+
var _hasText = require("./has-text");
|
|
126
|
+
|
|
127
|
+
var _hasMedia = require("./has-media");
|
|
128
|
+
|
|
129
|
+
var _enableAudioAutoplayImage = _interopRequireDefault(require("./assets/enableAudioAutoplayImage"));
|
|
130
|
+
|
|
131
|
+
var _appendCssRules = _interopRequireDefault(require("./append-css-rules"));
|
|
132
|
+
|
|
133
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
134
|
+
|
|
135
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
136
|
+
//# sourceMappingURL=index.js.map
|