@flourish/sdk 4.2.0 → 4.2.1

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.
@@ -1,243 +0,0 @@
1
- declare namespace _default {
2
- namespace de {
3
- namespace credits {
4
- const _default: string;
5
- export { _default as default };
6
- }
7
- }
8
- namespace en {
9
- const credits_1: {
10
- default: {
11
- text: string;
12
- url: string;
13
- };
14
- annotator: {
15
- text: string;
16
- url: string;
17
- };
18
- "bar-chart-race": {
19
- text: string;
20
- url: string;
21
- };
22
- "bubble-chart": {
23
- text: string;
24
- url: string;
25
- };
26
- cards: {
27
- text: string;
28
- url: string;
29
- };
30
- chart: {
31
- text: string;
32
- url: string;
33
- };
34
- chord: {
35
- text: string;
36
- url: string;
37
- };
38
- countdown: {
39
- text: string;
40
- url: string;
41
- };
42
- "data-explorer": {
43
- text: string;
44
- url: string;
45
- };
46
- draw: {
47
- text: string;
48
- url: string;
49
- };
50
- election: {
51
- text: string;
52
- url: string;
53
- };
54
- gantt: {
55
- text: string;
56
- url: string;
57
- };
58
- gauge: {
59
- text: string;
60
- url: string;
61
- };
62
- globe: {
63
- text: string;
64
- url: string;
65
- };
66
- heatmap: {
67
- text: string;
68
- url: string;
69
- };
70
- hierarchy: {
71
- text: string;
72
- url: string;
73
- };
74
- map: {
75
- text: string;
76
- url: string;
77
- };
78
- marimekko: {
79
- text: string;
80
- url: string;
81
- };
82
- model: {
83
- text: string;
84
- url: string;
85
- };
86
- network: {
87
- text: string;
88
- url: string;
89
- };
90
- "number-ticker": {
91
- text: string;
92
- url: string;
93
- };
94
- parliament: {
95
- text: string;
96
- url: string;
97
- };
98
- "photo-slider": {
99
- text: string;
100
- url: string;
101
- };
102
- pictogram: {
103
- text: string;
104
- url: string;
105
- };
106
- quiz: {
107
- text: string;
108
- url: string;
109
- };
110
- radar: {
111
- text: string;
112
- url: string;
113
- };
114
- ranking: {
115
- text: string;
116
- url: string;
117
- };
118
- sankey: {
119
- text: string;
120
- url: string;
121
- };
122
- scatter: {
123
- text: string;
124
- url: string;
125
- };
126
- slope: {
127
- text: string;
128
- url: string;
129
- };
130
- sports: {
131
- text: string;
132
- url: string;
133
- };
134
- survey: {
135
- text: string;
136
- url: string;
137
- };
138
- table: {
139
- text: string;
140
- url: string;
141
- };
142
- timeline: {
143
- text: string;
144
- url: string;
145
- };
146
- "text-annotator": {
147
- text: string;
148
- url: string;
149
- };
150
- tournament: {
151
- text: string;
152
- url: string;
153
- };
154
- "word-cloud": {
155
- text: string;
156
- url: string;
157
- };
158
- };
159
- export { credits_1 as credits };
160
- }
161
- namespace es {
162
- const credits_2: {
163
- default: string;
164
- bar_race: {
165
- text: string;
166
- url: string;
167
- };
168
- "bar-chart-race": {
169
- text: string;
170
- url: string;
171
- };
172
- };
173
- export { credits_2 as credits };
174
- }
175
- namespace fr {
176
- const credits_3: {
177
- default: string;
178
- bar_race: {
179
- text: string;
180
- url: string;
181
- };
182
- "bar-chart-race": {
183
- text: string;
184
- url: string;
185
- };
186
- };
187
- export { credits_3 as credits };
188
- }
189
- namespace it {
190
- const credits_4: {
191
- default: string;
192
- bar_race: {
193
- text: string;
194
- url: string;
195
- };
196
- "bar-chart-race": {
197
- text: string;
198
- url: string;
199
- };
200
- };
201
- export { credits_4 as credits };
202
- }
203
- namespace mi {
204
- const credits_5: {
205
- default: string;
206
- bar_race: {
207
- text: string;
208
- url: string;
209
- };
210
- "bar-chart-race": {
211
- text: string;
212
- url: string;
213
- };
214
- };
215
- export { credits_5 as credits };
216
- }
217
- namespace nl {
218
- const credits_6: {
219
- default: string;
220
- bar_race: {
221
- text: string;
222
- url: string;
223
- };
224
- "bar-chart-race": {
225
- text: string;
226
- url: string;
227
- };
228
- };
229
- export { credits_6 as credits };
230
- }
231
- const pt: {
232
- default: string;
233
- bar_race: {
234
- text: string;
235
- url: string;
236
- };
237
- "bar-chart-race": {
238
- text: string;
239
- url: string;
240
- };
241
- };
242
- }
243
- export default _default;
@@ -1,90 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- "de": {
5
- credits: {
6
- "default": "Erstellt mit Flourish",
7
- },
8
- },
9
- "en": {
10
- credits: {
11
- "default": { text: "A Flourish data visualization", url: "https://flourish.studio/" },
12
- "annotator": { text: "Interactive content by Flourish", url: "https://app.flourish.studio/@flourish/svg-annotator" },
13
- "bar-chart-race": { text: "A Flourish bar chart race", url: "https://flourish.studio/visualisations/bar-chart-race/" },
14
- "bubble-chart": { text: "A Flourish bubble chart", url: "https://flourish.studio/blog/introducing-bubble-chart-template/" },
15
- "cards": { text: "Interactive content by Flourish", url: "https://flourish.studio/blog/cards-template/" },
16
- "chart": { text: "A Flourish chart", url: "https://flourish.studio/visualisations/line-bar-pie-charts/" },
17
- "chord": { text: "A Flourish chord diagram", url: "https://flourish.studio/blog/how-to-make-a-chord-diagram/" },
18
- "countdown": { text: "Interactive content by Flourish", url: "https://flourish.studio/blog/number-ticker-countdown-templates/" },
19
- "data-explorer": { text: "A Flourish data explorer", url: "https://flourish.studio/blog/data-explorer-template/" },
20
- "draw": { text: "Interactive content by Flourish", url: "https://flourish.studio/blog/draw-the-line-chart/" },
21
- "election": { text: "A Flourish election chart", url: "https://app.flourish.studio/@flourish/election-results-chart" },
22
- "gantt": { text: "A Flourish gantt chart", url: "https://flourish.studio/blog/gantt-chart-template/" },
23
- "gauge": { text: "A Flourish gauge visualization", url: "https://flourish.studio/visualisations/gauge/" },
24
- "globe": { text: "A Flourish connections globe", url: "https://flourish.studio/visualisations/maps/" },
25
- "heatmap": { text: "A Flourish heatmap", url: "https://flourish.studio/visualisations/heatmaps/" },
26
- "hierarchy": { text: "A Flourish hierarchy chart", url: "https://flourish.studio/visualisations/treemaps/" },
27
- "map": { text: "A Flourish map", url: "https://flourish.studio/visualisations/maps/" },
28
- "marimekko": { text: "A Flourish marimekko chart", url: "https://flourish.studio/visualisations/marimekko-charts/" },
29
- "model": { text: "Interactive content by Flourish", url: "https://app.flourish.studio/@flourish/3d-viewer" },
30
- "network": { text: "A Flourish network chart", url: "https://flourish.studio/visualisations/network-charts/" },
31
- "number-ticker": { text: "Interactive content by Flourish", url: "https://flourish.studio/blog/number-ticker-countdown-templates/" },
32
- "parliament": { text: "A Flourish election chart", url: "https://flourish.studio/blog/how-to-make-parliament-chart/" },
33
- "photo-slider": { text: "Interactive content by Flourish", url: "https://app.flourish.studio/@flourish/photo-slider" },
34
- "pictogram": { text: "A Flourish pictogram", url: "https://flourish.studio/blog/pictogram-isotype/" },
35
- "quiz": { text: "A Flourish quiz", url: "https://app.flourish.studio/@flourish/quiz" },
36
- "radar": { text: "A Flourish radar chart", url: "https://flourish.studio/blog/create-online-radar-spider-charts/" },
37
- "ranking": { text: "A Flourish line chart race", url: "https://flourish.studio/blog/line-chart-race-updates/" },
38
- "sankey": { text: "A Flourish sankey chart", url: "https://flourish.studio/visualisations/sankey-charts/" },
39
- "scatter": { text: "A Flourish scatter chart", url: "https://flourish.studio/visualisations/scatter-charts/" },
40
- "slope": { text: "A Flourish slope chart", url: "https://flourish.studio/visualisations/slope-charts/" },
41
- "sports": { text: "A Flourish sports visualization", url: "https://app.flourish.studio/@flourish/sports-race" },
42
- "survey": { text: "A Flourish survey visualization", url: "https://flourish.studio/visualisations/survey-data/" },
43
- "table": { text: "A Flourish table", url: "https://flourish.studio/visualisations/create-a-table/" },
44
- "timeline": { text: "Interactive content by Flourish", url: "https://flourish.studio/blog/responsive-interactive-timeline/" },
45
- "text-annotator": { text: "Interactive content by Flourish", url: "https://flourish.studio/blog/text-annotator-template/" },
46
- "tournament": { text: "Interactive content by Flourish", url: "https://flourish.studio/visualisations/tournament-chart/" },
47
- "word-cloud": { text: "A Flourish data visualization", url: "https://flourish.studio/blog/online-wordcloud-custom-fonts/" },
48
- }
49
- },
50
- "es": {
51
- credits: {
52
- "default": "Creado con Flourish",
53
- "bar_race": { text: "Creado con Flourish", url: "https://flourish.studio/visualisations/bar-chart-race/" },
54
- "bar-chart-race": { text: "Creado con Flourish", url: "https://flourish.studio/visualisations/bar-chart-race/" },
55
- },
56
- },
57
- "fr": {
58
- credits: {
59
- "default": "Créé avec Flourish",
60
- "bar_race": { text: "Créé avec Flourish", url: "https://flourish.studio/visualisations/bar-chart-race/" },
61
- "bar-chart-race": { text: "Créé avec Flourish", url: "https://flourish.studio/visualisations/bar-chart-race/" },
62
- },
63
- },
64
- "it": {
65
- credits: {
66
- "default": "Creato con Flourish",
67
- "bar_race": { text: "Creato con Flourish", url: "https://flourish.studio/visualisations/bar-chart-race/" },
68
- "bar-chart-race": { text: "Creato con Flourish", url: "https://flourish.studio/visualisations/bar-chart-race/" },
69
- }
70
- },
71
- "mi": {
72
- credits: {
73
- "default": "Hangaia ki te Flourish",
74
- "bar_race": { text: "Hangaia ki te Flourish", url: "https://flourish.studio/visualisations/bar-chart-race/" },
75
- "bar-chart-race": { text: "Hangaia ki te Flourish", url: "https://flourish.studio/visualisations/bar-chart-race/" },
76
- },
77
- },
78
- "nl": {
79
- credits: {
80
- "default": "Gemaakt met Flourish",
81
- "bar_race": { text: "Gemaakt met Flourish", url: "https://flourish.studio/visualisations/bar-chart-race/" },
82
- "bar-chart-race": { text: "Gemaakt met Flourish", url: "https://flourish.studio/visualisations/bar-chart-race/" },
83
- },
84
- },
85
- "pt": {
86
- "default": "Feito com Flourish",
87
- "bar_race": { text: "Feito com Flourish", url: "https://flourish.studio/visualisations/bar-chart-race/" },
88
- "bar-chart-race": { text: "Feito com Flourish", url: "https://flourish.studio/visualisations/bar-chart-race/" }
89
- }
90
- };
@@ -1,2 +0,0 @@
1
- export default parseQueryParams;
2
- declare function parseQueryParams(): {};
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = parseQueryParams;
4
- function parseQueryParams() {
5
- // Query string parameters
6
- var location = window.location;
7
- // We use srcdoc to load the decrypted content for password-protected projects,
8
- // which creates a nested window.
9
- if (location.href == "about:srcdoc")
10
- location = window.parent.location;
11
- var params = {};
12
- (function (query, re, match) {
13
- while (match = re.exec(query)) {
14
- params[decodeURIComponent(match[1])] = decodeURIComponent(match[2]);
15
- }
16
- })(location.search.substring(1).replace(/\+/g, "%20"), /([^&=]+)=?([^&]*)/g);
17
- return params;
18
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "@flourish/common",
3
- "description": "Common shared utilities",
4
- "dependencies": {
5
- "@flourish/interpreter": "^8.4.0",
6
- "@adobe/css-tools": "^4.3.1"
7
- }
8
- }
@@ -1 +0,0 @@
1
- {"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../common/utils/state.js","../../common/utils/columns.js","../../common/utils/json.js","../../common/utils/polyfills.js","../../common/utils/data.js","../../common/embed/localizations.js","../../common/embed/credit.js","../../common/embed/customer_analytics.js","../../common/embed/parse_query_params.js","../../common/embed/embedding.js","../../common/package.json","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/minimist/index.d.ts","../../node_modules/@types/node/ts4.8/assert.d.ts","../../node_modules/@types/node/ts4.8/assert/strict.d.ts","../../node_modules/undici-types/header.d.ts","../../node_modules/undici-types/readable.d.ts","../../node_modules/undici-types/file.d.ts","../../node_modules/undici-types/fetch.d.ts","../../node_modules/undici-types/formdata.d.ts","../../node_modules/undici-types/connector.d.ts","../../node_modules/undici-types/client.d.ts","../../node_modules/undici-types/errors.d.ts","../../node_modules/undici-types/dispatcher.d.ts","../../node_modules/undici-types/global-dispatcher.d.ts","../../node_modules/undici-types/global-origin.d.ts","../../node_modules/undici-types/pool-stats.d.ts","../../node_modules/undici-types/pool.d.ts","../../node_modules/undici-types/handlers.d.ts","../../node_modules/undici-types/balanced-pool.d.ts","../../node_modules/undici-types/agent.d.ts","../../node_modules/undici-types/mock-interceptor.d.ts","../../node_modules/undici-types/mock-agent.d.ts","../../node_modules/undici-types/mock-client.d.ts","../../node_modules/undici-types/mock-pool.d.ts","../../node_modules/undici-types/mock-errors.d.ts","../../node_modules/undici-types/proxy-agent.d.ts","../../node_modules/undici-types/api.d.ts","../../node_modules/undici-types/cookies.d.ts","../../node_modules/undici-types/patch.d.ts","../../node_modules/undici-types/filereader.d.ts","../../node_modules/undici-types/diagnostics-channel.d.ts","../../node_modules/undici-types/websocket.d.ts","../../node_modules/undici-types/content-type.d.ts","../../node_modules/undici-types/cache.d.ts","../../node_modules/undici-types/interceptors.d.ts","../../node_modules/undici-types/index.d.ts","../../node_modules/@types/node/ts4.8/globals.d.ts","../../node_modules/@types/node/ts4.8/async_hooks.d.ts","../../node_modules/@types/node/ts4.8/buffer.d.ts","../../node_modules/@types/node/ts4.8/child_process.d.ts","../../node_modules/@types/node/ts4.8/cluster.d.ts","../../node_modules/@types/node/ts4.8/console.d.ts","../../node_modules/@types/node/ts4.8/constants.d.ts","../../node_modules/@types/node/ts4.8/crypto.d.ts","../../node_modules/@types/node/ts4.8/dgram.d.ts","../../node_modules/@types/node/ts4.8/diagnostics_channel.d.ts","../../node_modules/@types/node/ts4.8/dns.d.ts","../../node_modules/@types/node/ts4.8/dns/promises.d.ts","../../node_modules/@types/node/ts4.8/domain.d.ts","../../node_modules/@types/node/ts4.8/dom-events.d.ts","../../node_modules/@types/node/ts4.8/events.d.ts","../../node_modules/@types/node/ts4.8/fs.d.ts","../../node_modules/@types/node/ts4.8/fs/promises.d.ts","../../node_modules/@types/node/ts4.8/http.d.ts","../../node_modules/@types/node/ts4.8/http2.d.ts","../../node_modules/@types/node/ts4.8/https.d.ts","../../node_modules/@types/node/ts4.8/inspector.d.ts","../../node_modules/@types/node/ts4.8/module.d.ts","../../node_modules/@types/node/ts4.8/net.d.ts","../../node_modules/@types/node/ts4.8/os.d.ts","../../node_modules/@types/node/ts4.8/path.d.ts","../../node_modules/@types/node/ts4.8/perf_hooks.d.ts","../../node_modules/@types/node/ts4.8/process.d.ts","../../node_modules/@types/node/ts4.8/punycode.d.ts","../../node_modules/@types/node/ts4.8/querystring.d.ts","../../node_modules/@types/node/ts4.8/readline.d.ts","../../node_modules/@types/node/ts4.8/readline/promises.d.ts","../../node_modules/@types/node/ts4.8/repl.d.ts","../../node_modules/@types/node/ts4.8/stream.d.ts","../../node_modules/@types/node/ts4.8/stream/promises.d.ts","../../node_modules/@types/node/ts4.8/stream/consumers.d.ts","../../node_modules/@types/node/ts4.8/stream/web.d.ts","../../node_modules/@types/node/ts4.8/string_decoder.d.ts","../../node_modules/@types/node/ts4.8/test.d.ts","../../node_modules/@types/node/ts4.8/timers.d.ts","../../node_modules/@types/node/ts4.8/timers/promises.d.ts","../../node_modules/@types/node/ts4.8/tls.d.ts","../../node_modules/@types/node/ts4.8/trace_events.d.ts","../../node_modules/@types/node/ts4.8/tty.d.ts","../../node_modules/@types/node/ts4.8/url.d.ts","../../node_modules/@types/node/ts4.8/util.d.ts","../../node_modules/@types/node/ts4.8/v8.d.ts","../../node_modules/@types/node/ts4.8/vm.d.ts","../../node_modules/@types/node/ts4.8/wasi.d.ts","../../node_modules/@types/node/ts4.8/worker_threads.d.ts","../../node_modules/@types/node/ts4.8/zlib.d.ts","../../node_modules/@types/node/ts4.8/globals.global.d.ts","../../node_modules/@types/node/ts4.8/index.d.ts","../../node_modules/@types/normalize-package-data/index.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f",{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},{"version":"fda3b2d7f1e97e8eef74752073d2239113227eea4bfd8169f28609e5ed19de4c","signature":"12511f2109722b6ce10ffee10e0545d56be400e5ff50f01d968821cfc2969507"},{"version":"59699bfe2bc2c6cd0c2b39f077231497f87789e9402f86d25af5bd1553952ad3","signature":"01ac0acdb218da1dd9d1ed03d33cb55b57c2df478781473b857800eddb3460fd"},{"version":"7b7dbc10ed1adff00c4f4c0d7cfacefa1a2abdc065b1b33ae5d91a08403cad2a","signature":"cd40a81de979e7c9afcce7a3b142ac1c6099e9411153c301479485883340aa3d"},{"version":"35aea7fee5e75f4b111634f1f8eed9f3cec26da2589c0b043b40bd11e0e894a3","signature":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","affectsGlobalScope":true},{"version":"bab03fb5b53c06c863d4db22d31e772066d8dab8db75500ce7f469d1747ce919","signature":"b821c57657b32180f5b611bcc3823845ce6931315bc42eb988b52394b62dcd0d"},{"version":"01d25b10b92ffd08658fe655bb929d9c7bc5e2f22daf8816ec8a2505a22612cc","signature":"5039da289824258f4b4eb90c1c552de3081160fb440d6e67da5ee92ead87e6db"},{"version":"957570920b8ab5529e6be3bff21978036e9b99eddcf5eee1b14fc173a469f6c4","signature":"ab369d6522cc4480179febd57523e5ea502266c06dbcbeaa7cc4a2d74a3b92be"},{"version":"ecd53f20b9368642727fd699d841ca2f94a2e10010405949b9016bf0ace689d0","signature":"7d53f8799f685a263392f5b44289117d99e541ab09a9f6cf2608d2438c39a8fe"},{"version":"a934f462df8ecd7acb231d8d152b2d79f62fb4b9bd7ffad6ad677f29fed08fff","signature":"e2a8347f36e74ee72a5b91e1685372919b967cadc3d48fd5f5fc7435b05826bc"},{"version":"21c8d0f513b983aea480b05b72c567f26d6008724f953ceb52d1192cd0924740","signature":"5a5bd5fc544077640e55d1e0ca3e4e36dddb95f01d9e67d62d4a621d0d5bcece"},"d0abb6361ceba0a7127bca063cec8524006617fe798640fa9f52857219d22485","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","efc7d584a33fe3422847783d228f315c4cd1afe74bd7cf8e3f0e4c1125129fef","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"4d719cfab49ae4045d15cb6bed0f38ad3d7d6eb7f277d2603502a0f862ca3182","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"185282b122cbca820c297a02a57b89cf5967ab43e220e3e174d872d3f9a94d2c","affectsGlobalScope":true},"16d74fe4d8e183344d3beb15d48b123c5980ff32ff0cc8c3b96614ddcdf9b239","7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba",{"version":"41fb2a1c108fbf46609ce5a451b7ec78eb9b5ada95fd5b94643e4b26397de0b3","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","af30512288e59acdc5894428be044b5c3bf41921a761a05e494beb0c6c300510","285e512c7a0db217a0599e18c462d565fa35be4a5153dd7b80bee88c83e83ddf","b5b719a47968cd61a6f83f437236bb6fe22a39223b6620da81ef89f5d7a78fb7","8806ae97308ef26363bd7ec8071bca4d07fb575f905ee3d8a91aff226df6d618","af5bf1db6f1804fb0069039ae77a05d60133c77a2158d9635ea27b6bb2828a8f","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true},{"version":"7ae9dc7dbb58cd843065639707815df85c044babaa0947116f97bdb824d07204","affectsGlobalScope":true},"7aae1df2053572c2cfc2089a77847aadbb38eedbaa837a846c6a49fb37c6e5bd","313a0b063f5188037db113509de1b934a0e286f14e9479af24fada241435e707","1f758340b027b18ae8773ac3d33a60648a2af49eaae9e4fde18d0a0dd608642c","87ef1a23caa071b07157c72077fa42b86d30568f9dc9e31eed24d5d14fc30ba8","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","21773f5ac69ddf5a05636ba1f50b5239f4f2d27e4420db147fc2f76a5ae598ac",{"version":"dea4c00820d4fac5e530d4842aed2fb20d6744d75a674b95502cbd433f88bcb0","affectsGlobalScope":true},"a5fe4cc622c3bf8e09ababde5f4096ceac53163eefcd95e9cd53f062ff9bb67a","45b1053e691c5af9bfe85060a3e1542835f8d84a7e6e2e77ca305251eda0cb3c","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"5c5b70291ce21df19466e6b25108192089e69f6ec1b19e1f1be0b2a99d2dac74","affectsGlobalScope":true},{"version":"b7eadc0b0cba14ab854122810f330314132c5cfdb7800fceb82d521997a1f5b0","affectsGlobalScope":true},"8abd0566d2854c4bd1c5e48e05df5c74927187f1541e6770001d9637ac41542e","d742ed2db6d5425b3b6ac5fb1f2e4b1ed2ae74fbeee8d0030d852121a4b05d2f","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","458b216959c231df388a5de9dcbcafd4b4ca563bc3784d706d0455467d7d4942","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","f8c87b19eae111f8720b0345ab301af8d81add39621b63614dfc2d15fd6f140a","831c22d257717bf2cbb03afe9c4bcffc5ccb8a2074344d4238bf16d3a857bb12",{"version":"2225100373ca3d63bcc7f206e1177152d2e2161285a0bd83c8374db1503a0d1f","affectsGlobalScope":true},{"version":"7052b7b0c3829df3b4985bab2fd74531074b4835d5a7b263b75c82f0916ad62f","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","eefcdf86cefff36e5d87de36a3638ab5f7d16c2b68932be4a72c14bb924e43c1","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"4d0405568cf6e0ff36a4861c4a77e641366feaefa751600b0a4d12a5e8f730a8","affectsGlobalScope":true},{"version":"527e6e7c1e60184879fe97517f0d51dbfab72c4625cef50179f27f46d7fd69a1","affectsGlobalScope":true},"e393915d3dc385e69c0e2390739c87b2d296a610662eb0b1cb85224e55992250","79bad8541d5779c85e82a9fb119c1fe06af77a71cc40f869d62ad379473d4b75","4a34b074b11c3597fb2ff890bc8f1484375b3b80793ab01f974534808d5777c7",{"version":"629d20681ca284d9e38c0a019f647108f5fe02f9c59ac164d56f5694fc3faf4d","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"652ee9c5103e89102d87bc20d167a02a0e3e5e53665674466c8cfea8a9e418c7","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a"],"options":{"composite":true,"declaration":true,"declarationMap":false,"esModuleInterop":true,"module":1,"noImplicitAny":false,"outDir":"./","rootDir":"../../common","skipLibCheck":true,"strict":true,"target":8},"fileIdsList":[[51,137],[137],[53,54,137],[59,137],[94,137],[95,100,128,137],[96,107,108,115,125,136,137],[96,97,107,115,137],[98,137],[99,100,108,116,137],[100,125,133,137],[101,103,107,115,137],[102,137],[103,104,137],[107,137],[105,107,137],[94,107,137],[107,108,109,125,136,137],[107,108,109,122,125,128,137],[92,137,141],[103,107,110,115,125,136,137],[107,108,110,111,115,125,133,136,137],[110,112,125,133,136,137],[59,60,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143],[107,113,137],[114,136,137,141],[103,107,115,125,137],[116,137],[117,137],[94,118,137],[119,135,137,141],[120,137],[121,137],[107,122,123,137],[122,124,137,139],[95,107,125,126,127,128,137],[95,125,127,137],[125,126,137],[128,137],[129,137],[94,125,137],[107,131,132,137],[131,132,137],[100,115,125,133,137],[134,137],[115,135,137],[95,110,121,136,137],[100,137],[125,137,138],[114,137,139],[137,140],[95,100,107,109,118,125,136,137,139,141],[125,137,142],[69,73,136,137],[69,125,136,137],[64,137],[66,69,133,136,137],[115,133,137],[137,144],[64,137,144],[66,69,115,136,137],[61,62,65,68,95,107,125,136,137],[61,67,137],[65,69,95,128,136,137,144],[95,137,144],[85,95,137,144],[63,64,137,144],[69,137],[63,64,65,66,67,68,69,70,71,73,74,75,76,77,78,79,80,81,82,83,84,86,87,88,89,90,91,137],[69,76,77,137],[67,69,77,78,137],[68,137],[61,64,69,137],[69,73,77,78,137],[73,137],[67,69,72,136,137],[61,66,67,69,73,76,137],[95,125,137],[64,69,85,95,137,141,144]],"referencedMap":[[52,1],[53,2],[55,3],[51,2],[54,2],[56,2],[47,2],[50,2],[48,2],[49,2],[46,2],[57,2],[58,2],[59,4],[60,4],[94,5],[95,6],[96,7],[97,8],[98,9],[99,10],[100,11],[101,12],[102,13],[103,14],[104,14],[106,15],[105,16],[107,17],[108,18],[109,19],[93,20],[143,2],[110,21],[111,22],[112,23],[144,24],[113,25],[114,26],[115,27],[116,28],[117,29],[118,30],[119,31],[120,32],[121,33],[122,34],[123,34],[124,35],[125,36],[127,37],[126,38],[128,39],[129,40],[130,41],[131,42],[132,43],[133,44],[134,45],[135,46],[136,47],[137,48],[138,49],[139,50],[140,51],[141,52],[142,53],[145,2],[10,2],[9,2],[2,2],[11,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[3,2],[4,2],[22,2],[19,2],[20,2],[21,2],[23,2],[24,2],[25,2],[5,2],[26,2],[27,2],[28,2],[29,2],[6,2],[30,2],[31,2],[32,2],[33,2],[7,2],[34,2],[39,2],[40,2],[35,2],[36,2],[37,2],[38,2],[8,2],[44,2],[41,2],[42,2],[43,2],[1,2],[45,2],[76,54],[83,55],[75,54],[90,56],[67,57],[66,58],[89,59],[84,60],[87,61],[69,62],[68,63],[64,64],[63,65],[86,66],[65,67],[70,68],[71,2],[74,68],[61,2],[92,69],[91,68],[78,70],[79,71],[81,72],[77,73],[80,74],[85,59],[72,75],[73,76],[82,77],[62,78],[88,79]],"exportedModulesMap":[[56,2],[57,2],[58,2],[59,4],[60,4],[94,5],[95,6],[96,7],[97,8],[98,9],[99,10],[100,11],[101,12],[102,13],[103,14],[104,14],[106,15],[105,16],[107,17],[108,18],[109,19],[93,20],[143,2],[110,21],[111,22],[112,23],[144,24],[113,25],[114,26],[115,27],[116,28],[117,29],[118,30],[119,31],[120,32],[121,33],[122,34],[123,34],[124,35],[125,36],[127,37],[126,38],[128,39],[129,40],[130,41],[131,42],[132,43],[133,44],[134,45],[135,46],[136,47],[137,48],[138,49],[139,50],[140,51],[141,52],[142,53],[145,2],[10,2],[9,2],[2,2],[11,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[3,2],[4,2],[22,2],[19,2],[20,2],[21,2],[23,2],[24,2],[25,2],[5,2],[26,2],[27,2],[28,2],[29,2],[6,2],[30,2],[31,2],[32,2],[33,2],[7,2],[34,2],[39,2],[40,2],[35,2],[36,2],[37,2],[38,2],[8,2],[44,2],[41,2],[42,2],[43,2],[1,2],[45,2],[76,54],[83,55],[75,54],[90,56],[67,57],[66,58],[89,59],[84,60],[87,61],[69,62],[68,63],[64,64],[63,65],[86,66],[65,67],[70,68],[71,2],[74,68],[61,2],[92,69],[91,68],[78,70],[79,71],[81,72],[77,73],[80,74],[85,59],[72,75],[73,76],[82,77],[62,78],[88,79]],"semanticDiagnosticsPerFile":[52,53,55,51,54,56,47,50,48,49,46,57,58,59,60,94,95,96,97,98,99,100,101,102,103,104,106,105,107,108,109,93,143,110,111,112,144,113,114,115,116,117,118,119,120,121,122,123,124,125,127,126,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,145,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,30,31,32,33,7,34,39,40,35,36,37,38,8,44,41,42,43,1,45,76,83,75,90,67,66,89,84,87,69,68,64,63,86,65,70,71,74,61,92,91,78,79,81,77,80,85,72,73,82,62,88],"latestChangedDtsFile":"./embed/embedding.d.ts"},"version":"4.8.4"}
@@ -1,11 +0,0 @@
1
- export function parseColumn(col_spec: any, is_optional: any): number;
2
- export function printColumn(col_ix: any): string;
3
- export function parseRange(col_range: any): number[];
4
- export function parseColumns(cols_spec: any): number[];
5
- export function printColumns(indexes: any): string;
6
- export function parseDataBinding(d: any, data_table_ids: any): {
7
- data_table_id: any;
8
- column: number;
9
- columns: number[];
10
- };
11
- export function printDataBinding(r: any, data_table_names: any, print_data_table_name: any, optional: any): string;
@@ -1,175 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.printDataBinding = exports.parseDataBinding = exports.printColumns = exports.parseColumns = exports.parseRange = exports.printColumn = exports.parseColumn = void 0;
4
- const MAX_INTEGER = Math.pow(2, 31) - 1;
5
- const MAX_RANGE_LENGTH = Math.pow(2, 15);
6
- // Attempt to parse col_spec as a columns spec;
7
- // return true if we succeed, and false if not.
8
- function looksLikeMultipleColumns(col_spec) {
9
- try {
10
- parseColumns(col_spec);
11
- }
12
- catch (e) {
13
- return false;
14
- }
15
- return true;
16
- }
17
- function parseColumn(col_spec, is_optional) {
18
- col_spec = col_spec.toUpperCase();
19
- if (!/^[A-Z]+$/.test(col_spec)) {
20
- if (!col_spec) {
21
- if (is_optional)
22
- return -1; // Use -1 for unassigned optional binding
23
- else
24
- throw new Error("Non-optional data binding must specify column");
25
- }
26
- if (looksLikeMultipleColumns(col_spec)) {
27
- throw new Error("You can only select one column");
28
- }
29
- else
30
- throw new Error("Invalid column specification: " + col_spec);
31
- }
32
- var col_ix = 0;
33
- for (var i = 0; i < col_spec.length; i++) {
34
- col_ix = col_ix * 26 + (col_spec.charCodeAt(i) - 64);
35
- }
36
- if (col_ix - 1 > MAX_INTEGER)
37
- console.warn("Column index out of range");
38
- return Math.min(col_ix - 1, MAX_INTEGER);
39
- }
40
- exports.parseColumn = parseColumn;
41
- function printColumn(col_ix) {
42
- col_ix += 1;
43
- var col_spec = "";
44
- while (col_ix > 0) {
45
- var q = Math.floor(col_ix / 26), r = col_ix % 26;
46
- if (r == 0) {
47
- q -= 1;
48
- r += 26;
49
- }
50
- col_spec = String.fromCharCode(64 + r) + col_spec;
51
- col_ix = q;
52
- }
53
- return col_spec;
54
- }
55
- exports.printColumn = printColumn;
56
- function parseRange(col_range) {
57
- var dash_mo = col_range.match(/\s*(?:[-–—:]|\.\.)\s*/);
58
- if (!dash_mo)
59
- throw new Error("Failed to parse column range: " + col_range);
60
- var first = col_range.substr(0, dash_mo.index), last = col_range.substr(dash_mo.index + dash_mo[0].length);
61
- var first_ix = parseColumn(first), last_ix = parseColumn(last);
62
- var r = [];
63
- var incrementer = last_ix >= first_ix ? 1 : -1;
64
- var n = Math.abs(last_ix - first_ix) + 1;
65
- if (n > MAX_RANGE_LENGTH) {
66
- console.warn("Truncating excessively long range");
67
- n = MAX_RANGE_LENGTH;
68
- }
69
- for (var i = 0; i < n; i++) {
70
- r.push(first_ix + i * incrementer);
71
- }
72
- return r;
73
- }
74
- exports.parseRange = parseRange;
75
- function printRange(start, end) {
76
- return printColumn(start) + "-" + printColumn(end);
77
- }
78
- function parseColumns(cols_spec) {
79
- var indexes = [];
80
- cols_spec = cols_spec.replace(/^\s+|\s+$/g, "");
81
- var split_cols = cols_spec.split(/\s*,\s*/);
82
- if (split_cols.length == 1 && split_cols[0] === "")
83
- split_cols = [];
84
- for (var i = 0; i < split_cols.length; i++) {
85
- var col_or_range = split_cols[i];
86
- if (/^[A-Za-z]+$/.test(col_or_range)) {
87
- indexes.push(parseColumn(col_or_range));
88
- }
89
- else {
90
- Array.prototype.push.apply(indexes, parseRange(col_or_range));
91
- }
92
- }
93
- return indexes;
94
- }
95
- exports.parseColumns = parseColumns;
96
- function splitIntoRanges(indexes) {
97
- if (!indexes.length) {
98
- return [];
99
- }
100
- var ranges = [];
101
- var start = indexes[0], end = indexes[0];
102
- var direction = null;
103
- for (var i = 0; i < indexes.length - 1; i++) {
104
- var diff = indexes[i + 1] - indexes[i];
105
- if (direction === null && Math.abs(diff) === 1) {
106
- // It's a range with either ascending columns (direction=1), or descending
107
- // columns (direction=-1)
108
- end = indexes[i + 1];
109
- direction = diff;
110
- continue;
111
- }
112
- if (diff === direction) {
113
- // The range is continuing in the same direction as before
114
- end = indexes[i + 1];
115
- continue;
116
- }
117
- // There's nothing more in the range, so add it, and start a new range from the
118
- // next column
119
- ranges.push([start, end]);
120
- start = end = indexes[i + 1];
121
- direction = null;
122
- }
123
- // There will always be a range which hasn't been added at the end
124
- ranges.push([start, end]);
125
- return ranges;
126
- }
127
- function printColumns(indexes) {
128
- var ranges = splitIntoRanges(indexes);
129
- var r = [];
130
- for (var i = 0; i < ranges.length; i++) {
131
- var range = ranges[i];
132
- if (range[0] == range[1])
133
- r.push(printColumn(range[0]));
134
- else
135
- r.push(printRange(range[0], range[1]));
136
- }
137
- return r.join(",");
138
- }
139
- exports.printColumns = printColumns;
140
- function parseDataBinding(d, data_table_ids) {
141
- var r = {};
142
- if (!(d.type in d)) {
143
- if (d.optional)
144
- return r;
145
- throw new Error("Data binding must specify '" + d.type + "': " + JSON.stringify(d));
146
- }
147
- var double_colon_ix = d[d.type].indexOf("::");
148
- if (double_colon_ix == -1)
149
- throw new Error("Invalid data binding: " + d[d.type]);
150
- var data_table_name = d[d.type].substr(0, double_colon_ix);
151
- r.data_table_id = data_table_ids[data_table_name];
152
- var col_spec = d[d.type].substr(double_colon_ix + 2);
153
- if (d.type == "column")
154
- r.column = parseColumn(col_spec, d.optional);
155
- else if (d.type == "columns")
156
- r.columns = parseColumns(col_spec);
157
- else
158
- throw new Error("Unknown data binding type: " + d.type);
159
- return r;
160
- }
161
- exports.parseDataBinding = parseDataBinding;
162
- function printDataBinding(r, data_table_names, print_data_table_name, optional) {
163
- var data_table_name = print_data_table_name ? data_table_names[r.data_table_id] + "::" : "";
164
- if ("column" in r) {
165
- return data_table_name + printColumn(r.column);
166
- }
167
- else if ("columns" in r) {
168
- return data_table_name + printColumns(r.columns);
169
- }
170
- else if (optional) {
171
- return "";
172
- }
173
- throw new Error("Data binding must have .column or .columns");
174
- }
175
- exports.printDataBinding = printDataBinding;
@@ -1,30 +0,0 @@
1
- export function extractData(data_binding: any, data_by_id: any, column_types_by_id: any, template_data_binding: any): {}[];
2
- export function getColumnTypesForData(data: any): {
3
- type_id: any;
4
- index: number;
5
- output_format_id: any;
6
- }[];
7
- export function getRandomSeededSample(column: any, sample_size: any): any;
8
- export function mulberry32(seed: any): () => number;
9
- export function trimTrailingEmptyRows(data: any): any;
10
- export function dropReturnCharacters(data: any): any;
11
- /**
12
- * Takes an array of arrays (typically tabular data) and rewrites
13
- * it so that:
14
- * - Any trailing empty rows are removed
15
- * - Any cell that was not a string is stringified
16
- * - Any leading or trailing whitespace of a cell is removed
17
- *
18
- * (The potentially modified table is returned to match the convention
19
- * used by functions this is replacing, although (TODO) I think it
20
- * would be more obvious that this function has side-effects if it
21
- * did not return the table and the calling code was changed.)
22
- *
23
- * @param {any[][]} data
24
- * @returns {string[][]}
25
- */
26
- export function tidyTable(data: any[][]): string[][];
27
- export function stripCommonFixes(str: any): any;
28
- export function transposeNestedArray(nested_array: any): any[][];
29
- export function getSlicedData(arr: any): any;
30
- export function interpretColumn(arr: any): any;