@progress/kendo-data-query 1.5.5-dev.202010231217 → 1.5.6
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/LICENSE.md +1 -1
- package/NOTICE.txt +261 -34
- package/README.md +11 -3
- package/dist/cdn/main.js +1 -1
- package/dist/es/array.operators.js +3 -3
- package/dist/es/filtering/filter-expression.factory.js +4 -4
- package/dist/es/filtering/filter.operators.js +1 -1
- package/dist/es/grouping/aggregate.operators.js +3 -3
- package/dist/es/grouping/group.operators.js +1 -1
- package/dist/es/mvc/operators.js +4 -4
- package/dist/es/odata.operators.js +1 -1
- package/dist/es/sorting/sort-array.operator.js +2 -2
- package/dist/es2015/array.operators.js +3 -3
- package/dist/es2015/filtering/filter-expression.factory.js +4 -4
- package/dist/es2015/filtering/filter.operators.js +1 -1
- package/dist/es2015/grouping/aggregate.operators.js +3 -3
- package/dist/es2015/grouping/group.operators.js +1 -1
- package/dist/es2015/mvc/operators.js +4 -4
- package/dist/es2015/odata.operators.js +1 -1
- package/dist/es2015/sorting/sort-array.operator.js +2 -2
- package/dist/npm/array.operators.d.ts +3 -3
- package/dist/npm/array.operators.js +3 -3
- package/dist/npm/common.interfaces.d.ts +1 -1
- package/dist/npm/data-result.interface.d.ts +1 -1
- package/dist/npm/filtering/filter-descriptor.interface.d.ts +4 -4
- package/dist/npm/filtering/filter-expression.factory.d.ts +4 -4
- package/dist/npm/filtering/filter-expression.factory.js +4 -4
- package/dist/npm/filtering/filter.operators.d.ts +1 -1
- package/dist/npm/filtering/filter.operators.js +1 -1
- package/dist/npm/grouping/aggregate.operators.d.ts +4 -4
- package/dist/npm/grouping/aggregate.operators.js +3 -3
- package/dist/npm/grouping/group-descriptor.interface.d.ts +1 -1
- package/dist/npm/grouping/group.operators.d.ts +1 -1
- package/dist/npm/grouping/group.operators.js +1 -1
- package/dist/npm/mvc/deserialization.d.ts +1 -1
- package/dist/npm/mvc/operators.d.ts +6 -6
- package/dist/npm/mvc/operators.js +4 -4
- package/dist/npm/odata.operators.d.ts +1 -1
- package/dist/npm/odata.operators.js +1 -1
- package/dist/npm/sorting/sort-array.operator.d.ts +4 -4
- package/dist/npm/sorting/sort-array.operator.js +2 -2
- package/dist/npm/transducers.d.ts +1 -1
- package/dist/systemjs/kendo-data-query.js +1 -1
- package/package.json +3 -3
package/LICENSE.md
CHANGED
|
@@ -8,4 +8,4 @@ This is commercial software. To use it, you need to agree to the [**Telerik End
|
|
|
8
8
|
|
|
9
9
|
All available Kendo UI commercial licenses may be obtained at http://www.telerik.com/purchase/kendo-ui.
|
|
10
10
|
|
|
11
|
-
*Copyright ©
|
|
11
|
+
*Copyright © 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
|
package/NOTICE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Progress Kendo UI
|
|
1
|
+
Progress Kendo UI for Angular 2021
|
|
2
2
|
|
|
3
|
-
Copyright © 2016-
|
|
3
|
+
Copyright © 2016-2021 Progress Software Corporation and/or one of its
|
|
4
4
|
subsidiaries or affiliates. All rights reserved.
|
|
5
5
|
|
|
6
6
|
Portions of the Product include certain open source and commercial third-party
|
|
@@ -23,7 +23,7 @@ the Product:
|
|
|
23
23
|
|
|
24
24
|
(1) The Apache Software License, Version 2.0:
|
|
25
25
|
|
|
26
|
-
Progress Kendo UI for Angular
|
|
26
|
+
Progress Kendo UI for Angular 2021 incorporates tslib v1.9.3. Such technology
|
|
27
27
|
is subject to the following terms and conditions: Apache Software License Version 2.0.
|
|
28
28
|
|
|
29
29
|
Apache License
|
|
@@ -246,9 +246,71 @@ is subject to the following terms and conditions: Apache Software License Versio
|
|
|
246
246
|
and limitations under the License.
|
|
247
247
|
-------------------------------------------------------------------------
|
|
248
248
|
|
|
249
|
-
(2)
|
|
249
|
+
(2) BSD-Style Licenses:
|
|
250
250
|
|
|
251
|
-
(a) Progress Kendo UI for Angular
|
|
251
|
+
(a) Progress Kendo UI for Angular 2021 incorporates xlf-translate v2.0.4. Such
|
|
252
|
+
technology is subject to the following terms and conditions:
|
|
253
|
+
|
|
254
|
+
BSD 3-Clause License
|
|
255
|
+
|
|
256
|
+
Copyright (c) 2017, Tsvetomir Tsonev
|
|
257
|
+
All rights reserved.
|
|
258
|
+
|
|
259
|
+
Redistribution and use in source and binary forms, with or without
|
|
260
|
+
modification, are permitted provided that the following conditions are met:
|
|
261
|
+
|
|
262
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
263
|
+
list of conditions and the following disclaimer.
|
|
264
|
+
|
|
265
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
266
|
+
this list of conditions and the following disclaimer in the documentation
|
|
267
|
+
and/or other materials provided with the distribution.
|
|
268
|
+
|
|
269
|
+
* Neither the name of the copyright holder nor the names of its
|
|
270
|
+
contributors may be used to endorse or promote products derived from
|
|
271
|
+
this software without specific prior written permission.
|
|
272
|
+
|
|
273
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
274
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
275
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
276
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
277
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
278
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
279
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
280
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
281
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
282
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
283
|
+
|
|
284
|
+
(3) The ISC License:
|
|
285
|
+
|
|
286
|
+
(a) Progress Kendo UI for Angular 2021 incorporates glob v7.1.3. Such technology
|
|
287
|
+
is subject to the following terms and conditions:
|
|
288
|
+
|
|
289
|
+
The ISC License
|
|
290
|
+
|
|
291
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
292
|
+
|
|
293
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
294
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
295
|
+
copyright notice and this permission notice appear in all copies.
|
|
296
|
+
|
|
297
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
298
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
299
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
300
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
301
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
302
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
303
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
304
|
+
|
|
305
|
+
## Glob Logo
|
|
306
|
+
|
|
307
|
+
Glob's logo created by Tanya Brassie <http://tanyabrassie.com/>, licensed
|
|
308
|
+
under a Creative Commons Attribution-ShareAlike 4.0 International License
|
|
309
|
+
https://creativecommons.org/licenses/by-sa/4.0/
|
|
310
|
+
|
|
311
|
+
(4) MIT-Style Licenses:
|
|
312
|
+
|
|
313
|
+
(a) Progress Kendo UI for Angular 2021 incorporates HammerJS v2.0.8. Such
|
|
252
314
|
technology is subject to the following terms and conditions:
|
|
253
315
|
|
|
254
316
|
The MIT License (MIT)
|
|
@@ -273,13 +335,12 @@ technology is subject to the following terms and conditions:
|
|
|
273
335
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
274
336
|
SOFTWARE.
|
|
275
337
|
|
|
276
|
-
(b) Progress Kendo UI for Angular
|
|
277
|
-
prosemirror-
|
|
278
|
-
|
|
279
|
-
prosemirror-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
conditions:
|
|
338
|
+
(b) Progress Kendo UI for Angular 2021 incorporates prosemirror-commands v1*,
|
|
339
|
+
prosemirror-cursor v1*, prosemirror-gapcursor v1*, prosemirror-history v1*,
|
|
340
|
+
prosemirror-inputrules v1*, prosemirror-keymap v1*, prosemirror-model v1*,
|
|
341
|
+
prosemirror-schema-list v1*, prosemirror-state v1*, prosemirror-tables v0.7*,
|
|
342
|
+
prosemirror-transform v1*, and prosemirror-view v1*. Such technologies are
|
|
343
|
+
subject to the following terms and conditions:
|
|
283
344
|
|
|
284
345
|
Copyright (C) 2015-2017 by Marijn Haverbeke <marijnh@gmail.com> and others
|
|
285
346
|
|
|
@@ -301,32 +362,194 @@ conditions:
|
|
|
301
362
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
302
363
|
THE SOFTWARE.
|
|
303
364
|
|
|
304
|
-
(c) Progress Kendo UI for Angular
|
|
365
|
+
(c) Progress Kendo UI for Angular 2021 incorporates cheerio v0.2.2. Such
|
|
305
366
|
technology is subject to the following terms and conditions:
|
|
306
367
|
|
|
307
|
-
|
|
368
|
+
MIT License
|
|
369
|
+
|
|
370
|
+
Copyright (c) 2016 Matt Mueller
|
|
371
|
+
|
|
372
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
373
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
374
|
+
in the Software without restriction, including without limitation the rights
|
|
375
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
376
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
377
|
+
furnished to do so, subject to the following conditions:
|
|
378
|
+
|
|
379
|
+
The above copyright notice and this permission notice shall be included in all
|
|
380
|
+
copies or substantial portions of the Software.
|
|
381
|
+
|
|
382
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
383
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
384
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
385
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
386
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
387
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
388
|
+
SOFTWARE.
|
|
389
|
+
|
|
390
|
+
(d) Progress Kendo UI for Angular 2021 incorporates @types/prosemirror-commands v1*,
|
|
391
|
+
@types/prosemirror-dropcursor v1*, @types/prosemirror-gapcursor v1*,
|
|
392
|
+
@types/prosemirror-history v1*, @types/prosemirror-inputrules v1*,
|
|
393
|
+
@types/prosemirror-keymap v1*, @types/prosemirror-model v1*,
|
|
394
|
+
@types/prosemirror-schema-list v1*, @types/prosemirror-state v1*,
|
|
395
|
+
@types/prosemirror-tables v0.9*, @types/prosemirror-transform v1*, and
|
|
396
|
+
@types/prosemirror-view v1*. Such technologies are subject to the following terms
|
|
397
|
+
and conditions:
|
|
398
|
+
|
|
399
|
+
This project is licensed under the MIT license.
|
|
400
|
+
Copyrights are respective of each contributor listed at the beginning of each
|
|
401
|
+
definition file.
|
|
402
|
+
|
|
403
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
404
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
405
|
+
in the Software without restriction, including without limitation the rights
|
|
406
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
407
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
408
|
+
furnished to do so, subject to the following conditions:
|
|
409
|
+
|
|
410
|
+
The above copyright notice and this permission notice shall be included in all
|
|
411
|
+
copies or substantial portions of the Software.
|
|
412
|
+
|
|
413
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
414
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
415
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
416
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
417
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
418
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
419
|
+
SOFTWARE.
|
|
420
|
+
|
|
421
|
+
(e) Progress Kendo UI for Angular 2021 incorporates pako-esm v1.0.0. Such
|
|
422
|
+
technology is subject to the following terms and conditions:
|
|
308
423
|
|
|
309
|
-
|
|
424
|
+
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries
|
|
425
|
+
or affiliates. All rights reserved. (as modified)
|
|
310
426
|
|
|
311
|
-
|
|
312
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
313
|
-
in the Software without restriction, including without limitation the rights
|
|
314
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
315
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
316
|
-
furnished to do so, subject to the following conditions:
|
|
427
|
+
Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
|
|
317
428
|
|
|
318
|
-
|
|
319
|
-
|
|
429
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
430
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
431
|
+
in the Software without restriction, including without limitation the rights
|
|
432
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
433
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
434
|
+
furnished to do so, subject to the following conditions:
|
|
320
435
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
436
|
+
The above copyright notice and this permission notice shall be included in
|
|
437
|
+
all copies or substantial portions of the Software.
|
|
438
|
+
|
|
439
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
440
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
441
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
442
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
443
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
444
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
445
|
+
THE SOFTWARE.
|
|
446
|
+
|
|
447
|
+
(f) Progress Kendo UI for Angular 2021 incorporates jszip-esm v1.0.0. Such
|
|
448
|
+
technology is subject to the following terms and conditions:
|
|
449
|
+
|
|
450
|
+
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries
|
|
451
|
+
or affiliates. All rights reserved. (as modified)
|
|
452
|
+
|
|
453
|
+
Copyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger,
|
|
454
|
+
António Afonso
|
|
455
|
+
|
|
456
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
457
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
458
|
+
in the Software without restriction, including without limitation the rights
|
|
459
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
460
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
461
|
+
furnished to do so, subject to the following conditions:
|
|
462
|
+
|
|
463
|
+
The above copyright notice and this permission notice shall be included in
|
|
464
|
+
all copies or substantial portions of the Software.
|
|
465
|
+
|
|
466
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
467
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
468
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
469
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
470
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
471
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
472
|
+
THE SOFTWARE.
|
|
473
|
+
|
|
474
|
+
(g) Progress Kendo UI for Angular 2021 incorporates data.task v3.1.2. Such
|
|
475
|
+
technology is subject to the following terms and conditions:
|
|
476
|
+
|
|
477
|
+
The MIT License
|
|
478
|
+
|
|
479
|
+
Copyright (c) 2013-2015 Quildreen Motta
|
|
480
|
+
|
|
481
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
482
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
483
|
+
in the Software without restriction, including without limitation the rights
|
|
484
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
485
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
486
|
+
furnished to do so, subject to the following conditions:
|
|
487
|
+
|
|
488
|
+
The above copyright notice and this permission notice shall be included in
|
|
489
|
+
all copies or substantial portions of the Software.
|
|
490
|
+
|
|
491
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
492
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
493
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
494
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
495
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
496
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
497
|
+
THE SOFTWARE.
|
|
328
498
|
|
|
329
|
-
(
|
|
499
|
+
(h) Progress Kendo UI for Angular 2021 incorporates ramda v0.23. Such technology
|
|
500
|
+
is subject to the following terms and conditions:
|
|
501
|
+
|
|
502
|
+
The MIT License (MIT)
|
|
503
|
+
|
|
504
|
+
Copyright (c) 2013-2020 Scott Sauyet and Michael Hurley
|
|
505
|
+
|
|
506
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
507
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
508
|
+
in the Software without restriction, including without limitation the rights
|
|
509
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
510
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
511
|
+
furnished to do so, subject to the following conditions:
|
|
512
|
+
|
|
513
|
+
The above copyright notice and this permission notice shall be included in
|
|
514
|
+
all copies or substantial portions of the Software.
|
|
515
|
+
|
|
516
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
517
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
518
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
519
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
520
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
521
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
522
|
+
THE SOFTWARE.
|
|
523
|
+
|
|
524
|
+
(i) Progress Kendo UI for Angular 2021 incorporates js-yaml v3.14.0. Such
|
|
525
|
+
technology is subject to the following terms and conditions:
|
|
526
|
+
|
|
527
|
+
(The MIT License)
|
|
528
|
+
|
|
529
|
+
Copyright (C) 2011-2015 by Vitaly Puzrin
|
|
530
|
+
|
|
531
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
532
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
533
|
+
in the Software without restriction, including without limitation the rights
|
|
534
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
535
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
536
|
+
furnished to do so, subject to the following conditions:
|
|
537
|
+
|
|
538
|
+
The above copyright notice and this permission notice shall be included in
|
|
539
|
+
all copies or substantial portions of the Software.
|
|
540
|
+
|
|
541
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
542
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
543
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
544
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
545
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
546
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
547
|
+
THE SOFTWARE.
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
(5) UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE:
|
|
551
|
+
|
|
552
|
+
Progress Kendo UI for Angular 2021 incorporates Unicode CLDR Database v37.
|
|
330
553
|
Such technology is subject to the following terms and conditions:
|
|
331
554
|
|
|
332
555
|
UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE
|
|
@@ -344,7 +567,7 @@ Such technology is subject to the following terms and conditions:
|
|
|
344
567
|
|
|
345
568
|
COPYRIGHT AND PERMISSION NOTICE
|
|
346
569
|
|
|
347
|
-
Copyright © 1991-
|
|
570
|
+
Copyright © 1991-2021 Unicode, Inc. All rights reserved.
|
|
348
571
|
Distributed under the Terms of Use in https://www.unicode.org/copyright.html.
|
|
349
572
|
|
|
350
573
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
@@ -377,11 +600,15 @@ Such technology is subject to the following terms and conditions:
|
|
|
377
600
|
written authorization of the copyright holder.
|
|
378
601
|
|
|
379
602
|
2. Special Notices Regarding Commercially Licensed Third-Party Components
|
|
380
|
-
incorporated in the Product:
|
|
603
|
+
incorporated in the Product:
|
|
604
|
+
|
|
605
|
+
(a) Progress Kendo UI for Angular 2021 incorporates Kendo UI Licensing CLI v1.1
|
|
606
|
+
from Progress Software Corporation. For third-party component information, see
|
|
607
|
+
the product’s NOTICE.txt file.
|
|
381
608
|
|
|
382
609
|
NOTICE FROM PROGRESS SOFTWARE CORPORATION: Additional notices may be included in
|
|
383
610
|
the release notes or other documentation that accompanies updates received in
|
|
384
611
|
connection with support of the Product.
|
|
385
612
|
|
|
386
613
|
|
|
387
|
-
Updated 2/
|
|
614
|
+
Updated 3/2/2021
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
## Professional Grade UI Components
|
|
2
2
|
|
|
3
|
-
This package is part of the [Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui/)
|
|
3
|
+
This package is part of the [Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui/), [KendoReact](https://www.telerik.com/kendo-react-ui/components/#react-components) and [Kendo UI for Vue](https://www.telerik.com/kendo-vue-ui/) suites.
|
|
4
4
|
|
|
5
5
|
## License
|
|
6
6
|
|
|
7
|
-
This is commercial software. To use it, you need to agree to the [**Telerik End User License Agreement for Kendo UI** (for Kendo UI for Angular)](http://www.telerik.com/purchase/license-agreement/kendo-ui) or to the [**End User License Agreement for Progress KendoReact** (for KendoReact)](https://www.telerik.com/purchase/license-agreement/progress-kendoreact). If you do not own a commercial license, this file shall be governed by the trial license terms.
|
|
7
|
+
This is commercial software. To use it, you need to agree to the [**Telerik End User License Agreement for Kendo UI** (for Kendo UI for Angular and Kendo UI for Vue)](http://www.telerik.com/purchase/license-agreement/kendo-ui) or to the [**End User License Agreement for Progress KendoReact** (for KendoReact)](https://www.telerik.com/purchase/license-agreement/progress-kendoreact). If you do not own a commercial license, this file shall be governed by the trial license terms.
|
|
8
8
|
|
|
9
9
|
All available Kendo UI commercial licenses may be obtained at http://www.telerik.com/purchase/kendo-ui.
|
|
10
10
|
|
|
@@ -27,6 +27,14 @@ All available Kendo UI commercial licenses may be obtained at http://www.telerik
|
|
|
27
27
|
- [Feedback Portal](http://kendoui-feedback.telerik.com/forums/908425-kendo-ui-for-react-feedback)
|
|
28
28
|
- [StackOverflow](https://stackoverflow.com/questions/tagged/kendo-react-ui)
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
## Kendo UI for Vue Resources and Feedback
|
|
31
|
+
|
|
32
|
+
- [Get Started](https://www.telerik.com/kendo-vue-ui/getting-started)
|
|
33
|
+
- [Component References](https://www.telerik.com/kendo-vue-ui/components/)
|
|
34
|
+
- [Blogs](http://www.telerik.com/blogs/kendo-ui)
|
|
35
|
+
- [GitHub Issues](https://github.com/telerik/kendo-vue/issues)
|
|
36
|
+
- [Feedback Portal](https://feedback.telerik.com/kendo-vue-ui)
|
|
37
|
+
|
|
38
|
+
*Copyright © 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
|
|
31
39
|
|
|
32
40
|
*Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.*
|
package/dist/cdn/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib")):"function"==typeof define&&define.amd?define(["tslib"],t):"object"==typeof exports?exports.KendoDataQuery=t(require("tslib")):e.KendoDataQuery=t(e.tslib)}(window,(function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=12)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPresent=function(e){return null!=e},t.isBlank=function(e){return null==e},t.isArray=function(e){return Array.isArray(e)},t.isFunction=function(e){return"function"==typeof e},t.isString=function(e){return"string"==typeof e},t.isTruthy=function(e){return!!e},t.isNullOrEmptyString=function(e){return t.isBlank(e)||0===e.trim().length},t.isNotNullOrEmptyString=function(e){return!t.isNullOrEmptyString(e)},t.isNumeric=function(e){return!isNaN(e-parseFloat(e))},t.isDate=function(e){return e&&e.getTime}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.isCompositeFilterDescriptor=function(e){return n.isPresent(e.filters)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i={},o=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;i[void 0]=function(e){return e},t.getter=function(e,t){var r=e+t;if(i[r])return i[r];var u=[];return e.replace(o,(function(e,t,r,i){u.push(n.isPresent(t)?t:r||i)})),i[r]=function(e){for(var r=e,i=0;i<u.length;i++)if(r=r[u[i]],!n.isPresent(r)&&t)return r;return r},i[r]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ifElse=function(e,t,r){return function(n){return e(n)?t(n):r(n)}},t.compose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}},t.constant=function(e){return function(){return e}},t.identity=function(e){return e}},function(t,r){t.exports=e},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(1),o=function(e){e.filters&&(e.filters=e.filters.map((function(e){var t,r=Object.assign({},e);return!i.isCompositeFilterDescriptor(e)&&n.isString(e.operator)&&(r.operator={"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"}[(t=e.operator).toLowerCase()]||t),i.isCompositeFilterDescriptor(e)&&o(r),r})))};t.normalizeFilters=function(e){return n.isPresent(e)&&(e=function(e){return i.isCompositeFilterDescriptor(e)?Object.assign({},e):{filters:n.isArray(e)?e:[e],logic:"and"}}(e),o(e)),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7),i=r(0),o=r(11),u=r(8);t.normalizeGroups=function(e){return(e=i.isArray(e)?e:[e]).map((function(e){return Object.assign({dir:"asc"},e)}))};var s=n.map((function(e){return e}));t.groupBy=function(e,r,a,c){if(void 0===r&&(r=[]),void 0===a&&(a=s),void 0===c&&(c=e),!(r=t.normalizeGroups(r)).length)return e;var f=r[0],l=n.exec(a(n.groupCombinator(f.field)),{},e),g=[];return Object.keys(l).forEach((function(e){Object.keys(l[e]).forEach((function(n){var a=l[e][n],p={},d=c;i.isPresent(f.aggregates)&&(d=u.filterBy(c,{field:f.field,ignoreCase:!1,operator:"eq",value:a.value}),p=o.aggregateBy(d,f.aggregates)),g[a.__position]={aggregates:p,field:e,items:r.length>1?t.groupBy(a.items,r.slice(1),s,d):a.items,value:a.value}}))})),g}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(2);t.groupCombinator=function(e){var t=i.getter(e,!0),r=0;return function(i,o){i[e]=i[e]||{};var u=t(o),s=function(e){return(e=n.isPresent(e)&&e.getTime?e.getTime():e)+""}(u),a=i[e][s]||{__position:r++,aggregates:{},items:[],value:u};return a.items.push(o),i[e][s]=a,i}},t.expandAggregates=function(e){return void 0===e&&(e={}),Object.keys(e).forEach((function(t){var r=e[t];Object.keys(r).forEach((function(e){r[e]=r[e].result()}))})),e};t.aggregatesCombinator=function(e){var t=e.map((function(e){var t=i.getter(e.field,!0),r=(e.aggregate||"").toLowerCase(),o=i.getter(r,!0);return function(i,u){var s=i[e.field]||{},a=o(s)||{average:function(){var e=0,t=0;return{calc:function(r){n.isNumeric(r)?(e+=r,t++):e=r},result:function(){return n.isNumeric(e)?e/t:e}}},count:function(){var e=0;return{calc:function(){return e++},result:function(){return e}}},max:function(){var e=Number.NEGATIVE_INFINITY;return{calc:function(t){(e=n.isNumeric(e)||n.isDate(e)?e:t)<t&&(n.isNumeric(t)||n.isDate(t))&&(e=t)},result:function(){return e}}},min:function(){var e=Number.POSITIVE_INFINITY;return{calc:function(t){(e=n.isNumeric(e)||n.isDate(e)?e:t)>t&&(n.isNumeric(t)||n.isDate(t))&&(e=t)},result:function(){return e}}},sum:function(){var e=0;return{calc:function(t){t=n.isPresent(t)?t:0,e+=t},result:function(){return e}}}}[r]();return a.calc(t(u)),s[e.aggregate]=a,i[e.field]=s,i}}));return function(e,r){return t.reduce((function(e,t){return t(e,r)}),e)}},t.concat=function(e,t){return e.push(t),e},t.map=function(e){return function(t){return function(r,n,i){return t(r,e(n,i))}}},t.filter=function(e){return function(t){return function(r,n){return e(n)?t(r,n):r}}},t.isTransformerResult=function(e){return n.isPresent(e.__value)};var o=function(e){return t.isTransformerResult(e)?e:{__value:e,reduced:!0}};t.take=function(e){return function(t){return function(r,n){return e-- >0?t(r,n):o(r)}}},t.takeWhile=function(e){return function(t){return function(r,n){return e(n)?t(r,n):o(r)}}},t.skip=function(e){return function(t){return function(r,n){return e--<=0?t(r,n):r}}},t.exec=function(e,r,n){for(var i=r,o=0,u=n.length;o<u;o++)if(i=e(i,n[o],o),t.isTransformerResult(i)){i=i.__value;break}return i}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(1),o=r(5),u=r(18);t.compileFilter=function(e){return e&&0!==e.filters.length?u.transformCompositeFilter(e):function(){return!0}},t.filterBy=function(e,r){return!n.isPresent(r)||i.isCompositeFilterDescriptor(r)&&0===r.filters.length?e:e.filter(t.compileFilter(o.normalizeFilters(r)))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=r(4),u=r(0);t.wrapIf=function(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return e()?""+t[0]+r[0]+t[1]:r[0]}},t.toUTC=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},t.quote=function(e){var t=e.field,r=e.value,n=e.ignoreCase,i=e.operator;return{value:"'"+r.replace(/'/g,"''")+"'",field:t,ignoreCase:n,operator:i}},t.encodeValue=function(e){var t=e.field,r=e.value,n=e.ignoreCase,i=e.operator;return{value:""+encodeURIComponent(r),field:t,ignoreCase:n,operator:i}},t.toLower=function(e){var r=e.field,i=e.value,u=e.ignoreCase,s=e.operator;return{field:t.wrapIf((function(){return u}))(n||(n=o.__makeTemplateObject(["tolower(",")"],["tolower(",")"])),r),value:i,ignoreCase:u,operator:s}},t.normalizeField=function(e){var t=e.field,r=e.value,n=e.ignoreCase,i=e.operator;return{value:r,field:t.replace(/\./g,"/"),ignoreCase:n,operator:i}},t.isStringValue=function(e){return u.isString(e.value)},t.isDateValue=function(e){return u.isDate(e.value)},t.serializeFilters=function(e,r){return function(n){return t.wrapIf((function(){return n.filters.length>1}))(i||(i=o.__makeTemplateObject(["(",")"],["(",")"])),n.filters.map(e).join(r(n)))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(2),o=function(e,t){return n.isBlank(e)?e===t?0:-1:n.isBlank(t)?1:e.localeCompare?e.localeCompare(t):e>t?1:e<t?-1:0},u=function(e,t){return o(t,e)},s=function(e){var t=i.getter(e.field,!0);return function(r,n){return("asc"===e.dir?o:u)(t(r),t(n))}},a=function(e,t){return 0};t.composeSortDescriptors=function(e){return e.filter((function(e){return n.isPresent(e.dir)})).map((function(e){return s(e)})).reduce((function(e,t){return function(r,n){return e(r,n)||t(r,n)}}),a)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7),i=n.map((function(e){return e}));t.aggregateBy=function(e,t,r){void 0===t&&(t=[]),void 0===r&&(r=i);var o={};if(!t.length)return o;var u=n.exec(r(n.aggregatesCombinator(t)),o,e);return n.expandAggregates(u)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.isCompositeFilterDescriptor=n.isCompositeFilterDescriptor;var i=r(13);t.toODataString=i.toODataString;var o=r(15);t.toDataSourceRequestString=o.toDataSourceRequestString,t.toDataSourceRequest=o.toDataSourceRequest;var u=r(16);t.translateDataSourceResultGroups=u.translateDataSourceResultGroups,t.translateAggregateResults=u.translateAggregateResults;var s=r(17);t.orderBy=s.orderBy,t.process=s.process,t.distinct=s.distinct;var a=r(2);t.getter=a.getter;var c=r(8);t.filterBy=c.filterBy,t.compileFilter=c.compileFilter;var f=r(6);t.groupBy=f.groupBy;var l=r(10);t.composeSortDescriptors=l.composeSortDescriptors;var g=r(5);t.normalizeFilters=g.normalizeFilters;var p=r(6);t.normalizeGroups=p.normalizeGroups;var d=r(11);t.aggregateBy=d.aggregateBy},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=r(4),u=r(0),s=r(14),a=r(3),c=a.constant(""),f=function(e,t){return a.ifElse(u.isPresent,(r=e[0],function(e){return r+e}),c)(t);var r};t.toODataString=function(e,t){return void 0===t&&(t={}),Object.keys(e).map(function(e,t){return function(r){return{filter:s.serializeFilter(t.filter||{},e),skip:f(n||(n=o.__makeTemplateObject(["$skip=",""],["$skip=",""])),t.skip),sort:(a=t.sort||[],c=a.filter((function(e){return u.isPresent(e.dir)})).map((function(e){var t=e.field.replace(/\./g,"/");return"desc"===e.dir?t+" desc":t})).join(","),c?"$orderby="+c:c),take:f(i||(i=o.__makeTemplateObject(["$top=",""],["$top=",""])),t.take)}[r];var a,c}}(t,e)).filter(u.isNotNullOrEmptyString).join("&")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=r(1),o=r(3),u=r(9),s=r(5),a=function(e){var t=e.operator;return function(e){var r=e.field,n=e.value;return r+" "+t+" "+n}},c=function(e){return o.compose(e,u.encodeValue,u.quote,u.toLower,u.normalizeField)},f=function(e){return c((t=e.operator,function(e){var r=e.field,n=e.value;return t+"("+r+","+n+")"}));var t},l=function(e){return o.compose(a(e),u.normalizeField,(t=e.utcDates,function(e){var r=e.field,n=e.value,i=e.ignoreCase,o=e.operator;return{value:JSON.stringify(t?n:u.toUTC(n)).replace(/"/g,""),field:r,ignoreCase:i,operator:o}}));var t},g=function(e){return o.ifElse(u.isDateValue,l(e),function(e){return o.compose(a(e),u.normalizeField)}(e))},p=function(e){return o.ifElse(u.isStringValue,function(e){return c(a(e))}(e),g(e))},d=function(e){return e+" eq -1"},v=function(e){return o.compose(e,u.normalizeField)},m=function(e){return" "+e.logic+" "},y=function(e){return function(t){return function(e,t){return{contains:f(n.__assign({},t,{operator:"contains"})),doesnotcontain:o.compose(d,f(n.__assign({},t,{operator:"indexof"}))),endswith:f(n.__assign({},t,{operator:"endswith"})),eq:p(n.__assign({},t,{operator:"eq"})),gt:p(n.__assign({},t,{operator:"gt"})),gte:p(n.__assign({},t,{operator:"ge"})),isempty:v((function(e){return e.field+" eq ''"})),isnotempty:v((function(e){return e.field+" ne ''"})),isnotnull:v((function(e){return e.field+" ne null"})),isnull:v((function(e){return e.field+" eq null"})),lt:p(n.__assign({},t,{operator:"lt"})),lte:p(n.__assign({},t,{operator:"le"})),neq:p(n.__assign({},t,{operator:"ne"})),startswith:f(n.__assign({},t,{operator:"startswith"}))}[e]}(t.operator,e)(t)}},_=function(e){return u.serializeFilters((function(t){return o.ifElse(i.isCompositeFilterDescriptor,_(e),y(e))(t)}),m)};t.serializeFilter=function(e,t){return void 0===t&&(t={}),e.filters&&e.filters.length?"$filter="+_(t)(s.normalizeFilters(e)):""}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=r(4),u=r(1),s=r(0),a=r(2),c=r(3),f=r(9),l=function(e){return function(t){return[e,t]}},g=function(){return null},p=function(e){return function(t){return s.isPresent(e(t))}},d=function(e){return function(t){return function(e){return s.isPresent(e)&&s.isArray(e)&&e.length>0}(e(t))}},v=function(e,t){return c.ifElse(e,t,g)},m=function(e,t){return function(r){return e(r).map(t).join("~")}},y=(n=[['"',""],[":","-"]],c.compose.apply(void 0,n.map((function(e){var t=e[0],r=e[1];return function(e){return e.replace(new RegExp(t,"g"),r)}})))),_=(i=".",function(e){return e.slice(0,e.indexOf(i))}),b=function(e){var t=e.field,r=e.dir;return t+"-"+(void 0===r?"asc":r)},h=a.getter("take"),O=a.getter("aggregates"),P=a.getter("skip"),j=a.getter("group"),S=a.getter("sort",!0),D=m(S,b),C=m(j,b),q=m(O,(function(e){return e.field+"-"+e.aggregate})),F=c.compose((function(e){return"datetime'"+e+"'"}),_,y,JSON.stringify,f.toUTC),k=c.compose(l("page"),(function(e){var t=e.skip,r=e.take;return Math.floor((t||0)/r)+1})),w=c.compose(l("pageSize"),h),M=c.compose(l("group"),C),N=c.compose(l("sort"),D),x=c.compose(l("aggregate"),q),T=v(p(P),k),B=v(p(h),w),E=v(d(j),M),z=v(p(O),x),R=c.compose(v(d(S),N),(function(e){return Object.assign({},e,{sort:(S(e)||[]).filter((function(e){var t=e.dir;return s.isNotNullOrEmptyString(t)}))})})),I=function(e){var t=e.field;return s.isNotNullOrEmptyString(t)},A=function(e){return e.field+"~"+e.operator+"~"+e.value},V=c.ifElse(f.isDateValue,c.compose(A,(function(e){var t=e.field,r=e.value,n=e.ignoreCase,i=e.operator;return{value:F(r),field:t,ignoreCase:n,operator:i}})),A),G=function(e){return"~"+e.logic+"~"},L=function(e){return f.serializeFilters((function(t){return c.ifElse(u.isCompositeFilterDescriptor,L(e),function(e){return v(I,c.ifElse(f.isStringValue,c.compose(A,f.quote,e?f.encodeValue:c.identity),V))}(e))(t)}),G)},$=function(e,t){var r=e.filter;if(r&&r.filters){var n=L(t)(r);if(n.length)return["filter",n]}return null},U=function(e,t){return void 0===t&&(t=!0),function(r){return{aggregates:z(e),filter:$(e,t),group:E(e),skip:T(e),sort:R(e),take:B(e)}[r]}};t.toDataSourceRequestString=function(e){return(t=Object.keys(e).map(U(e)).filter(s.isPresent),t.reduce((function(e,t){var r=t[0],n=t[1];return e.concat([r+"="+n])}),[])).join("&");var t},t.toDataSourceRequest=function(e){return Object.keys(e).map(U(e,!1)).filter(s.isPresent).reduce((function(e,t){var r,n=t[0],i=t[1];return o.__assign({},e,((r={})[n]=i,r))}),{})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(3),o=function(e,t,r){return t[e]=r,t},u=function(e){return function(t){var r,i=t[e];return n.isPresent(i)?i:t[(r=e,r.replace(/(^[A-Z])/g,(function(e,t){return t.toLowerCase()})))]}},s=u("Member"),a=u("AggregateMethodName"),c=u("Value"),f=function(e){return function(t){return Object.keys(t).reduce(e.bind(null,t),{})}},l=f((function(e,t,r){return o(r.toLowerCase(),t,e[r])})),g=f((function(e,t,r){return o(r,t,l(e[r]))})),p=function(e,t){return n.isPresent(e)?e:t},d=i.compose((function(e){var t=e.field,r=e.hasSubgroups,n=e.value,i=e.aggregates,o=e.items;return{aggregates:g(i),field:t,items:r?o.map(d):o,value:n}}),(function(e){return{aggregates:e.Aggregates||e.aggregates,field:e.Member||e.member||e.field,hasSubgroups:e.HasSubgroups||e.hasSubgroups||!1,items:e.Items||e.items,value:p(e.Key,p(e.key,e.value))}}));t.translateDataSourceResultGroups=function(e){return e.map(d)},t.translateAggregateResults=function(e){return(e||[]).reduce((function(e,t){return o(s(t),e,o(a(t).toLowerCase(),e[s(t)]||{},c(t)))}),{})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(10),o=r(6),u=r(5),s=r(8),a=r(7),c=r(2),f=r(3),l=r(19);t.orderBy=function(e,t){if(t.some((function(e){return n.isPresent(e.dir)}))){e=e.slice(0);var r=i.composeSortDescriptors(t);l.sort(e,0,e.length,r)}return e};var g=function(e,t){return e===t};t.distinct=function(e,t){return void 0===t&&(t=g),function(e,t){return e.filter((function(e,r,n){return n.findIndex(t.bind(null,e))===r}))}(e,function(e){if(n.isString(e)){var t=c.getter(e);e=function(e,r){return t(e)===t(r)}}return e}(t))},t.count=function(e,t){for(var r=0,n=0,i=e.length;n<i;n++)t(e[n])&&r++;return r},t.limit=function(e,t){return t?e.filter(t):e},t.process=function(e,r){var i=r.skip,c=r.take,l=r.filter,g=r.sort,p=r.group,d=o.normalizeGroups(p||[]).concat(g||[]);d.length&&(e=t.orderBy(e,d));var v,m=n.isPresent(l)&&a.filter.length,y=n.isPresent(p)&&p.length;if(!m&&!y)return{data:c?e.slice(i,i+c):e,total:e.length};var _,b=[];if(m?(_=s.compileFilter(u.normalizeFilters(l)),v=t.count(e,_),b.push(a.filter(_))):v=e.length,n.isPresent(i)&&n.isPresent(c)&&(b.push(a.skip(i)),b.push(a.take(c))),b.length){var h=f.compose.apply(void 0,b);return{data:y?o.groupBy(e,p,h,t.limit(e,_)):a.exec(h(a.concat),[],e),total:v}}return{data:y?o.groupBy(e,p):e,total:v}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=r(2),o=r(0),u={or:{concat:function(e,t){return function(r){return e(r)||t(r)}},identity:function(){return!1}},and:{concat:function(e,t){return function(r){return e(r)&&t(r)}},identity:function(){return!0}}},s={contains:function(e,t){return(e||"").indexOf(t)>=0},doesnotcontain:function(e,t){return-1===(e||"").indexOf(t)},doesnotendwith:function(e,t){return(e||"").indexOf(t,(e||"").length-(t||"").length)<0},doesnotstartwith:function(e,t){return-1===(e||"").lastIndexOf(t,0)},endswith:function(e,t){return(e||"").indexOf(t,(e||"").length-(t||"").length)>=0},eq:function(e,t){return e===t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t},isempty:function(e){return""===e},isnotempty:function(e){return""!==e},isnotnull:function(e){return o.isPresent(e)},isnull:function(e){return o.isBlank(e)},lt:function(e,t){return e<t},lte:function(e,t){return e<=t},neq:function(e,t){return e!=t},startswith:function(e,t){return 0===(e||"").lastIndexOf(t,0)}},a=/^\/Date\((.*?)\)\/$/,c=function(e){var t=e.field,r=e.ignoreCase,n=e.value,u=e.operator;t=o.isPresent(t)?t:function(e){return e},r=!o.isPresent(r)||r;var c=function(e,t,r){if(!o.isPresent(t))return e;var n=e;if(o.isString(t)){var i=a.exec(t);i?t=new Date(+i[1]):n=function(t){var n=e(t);return"string"==typeof n&&r?n.toLowerCase():o.isNumeric(n)?n+"":n}}return o.isDate(t)?function(e){var t=n(e);return o.isDate(t)?t.getTime():t}:n}(o.isFunction(t)?t:i.getter(t,!0),n,r);n=function(e,t){if(null!=e&&o.isString(e)){var r=a.exec(e);if(r)return new Date(+r[1]).getTime();if(t)return e.toLowerCase()}else if(null!=e&&o.isDate(e))return e.getTime();return e}(n,r);var f=o.isFunction(u)?u:s[u];return function(e){return f(c(e),n,r)}};t.transformCompositeFilter=function(e){var r=u[e.logic];return e.filters.filter(o.isPresent).map((function(e){return n.isCompositeFilterDescriptor(e)?t.transformCompositeFilter(e):c(e)})).reduce(r.concat,r.identity)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.sort=function(e,r,n,i){if(!(n-r<2)){var o=r+n>>>1;t.sort(e,r,o,i),t.sort(e,o,n,i),function(e,t,r,n,i){for(var o=r-t,u=n-r,s=[],a=0;a<o;a++)s.push(e[t+a]);var c=0,f=r,l=t;do{i(e[f],s[c])<0?(e[l++]=e[f++],u--):(e[l++]=s[c++],o--)}while(u>0&&o>0);for(;o;)e[l++]=s[c++],o--;for(;u;)e[l++]=e[f++],u--}(e,r,o,n,i)}}}])}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib")):"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.KendoDataQuery=t(require("tslib")):e.KendoDataQuery=t(e.self)}(window,(function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=12)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPresent=function(e){return null!=e},t.isBlank=function(e){return null==e},t.isArray=function(e){return Array.isArray(e)},t.isFunction=function(e){return"function"==typeof e},t.isString=function(e){return"string"==typeof e},t.isTruthy=function(e){return!!e},t.isNullOrEmptyString=function(e){return t.isBlank(e)||0===e.trim().length},t.isNotNullOrEmptyString=function(e){return!t.isNullOrEmptyString(e)},t.isNumeric=function(e){return!isNaN(e-parseFloat(e))},t.isDate=function(e){return e&&e.getTime}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.isCompositeFilterDescriptor=function(e){return n.isPresent(e.filters)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i={},o=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;i[void 0]=function(e){return e},t.getter=function(e,t){var r=e+t;if(i[r])return i[r];var u=[];return e.replace(o,(function(e,t,r,i){u.push(n.isPresent(t)?t:r||i)})),i[r]=function(e){for(var r=e,i=0;i<u.length;i++)if(r=r[u[i]],!n.isPresent(r)&&t)return r;return r},i[r]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ifElse=function(e,t,r){return function(n){return e(n)?t(n):r(n)}},t.compose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}},t.constant=function(e){return function(){return e}},t.identity=function(e){return e}},function(t,r){t.exports=e},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(1),o=function(e){e.filters&&(e.filters=e.filters.map((function(e){var t,r=Object.assign({},e);return!i.isCompositeFilterDescriptor(e)&&n.isString(e.operator)&&(r.operator={"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"}[(t=e.operator).toLowerCase()]||t),i.isCompositeFilterDescriptor(e)&&o(r),r})))};t.normalizeFilters=function(e){return n.isPresent(e)&&(e=function(e){return i.isCompositeFilterDescriptor(e)?Object.assign({},e):{filters:n.isArray(e)?e:[e],logic:"and"}}(e),o(e)),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7),i=r(0),o=r(11),u=r(8);t.normalizeGroups=function(e){return(e=i.isArray(e)?e:[e]).map((function(e){return Object.assign({dir:"asc"},e)}))};var s=n.map((function(e){return e}));t.groupBy=function(e,r,a,c){if(void 0===r&&(r=[]),void 0===a&&(a=s),void 0===c&&(c=e),!(r=t.normalizeGroups(r)).length)return e;var f=r[0],l=n.exec(a(n.groupCombinator(f.field)),{},e),g=[];return Object.keys(l).forEach((function(e){Object.keys(l[e]).forEach((function(n){var a=l[e][n],p={},d=c;i.isPresent(f.aggregates)&&(d=u.filterBy(c,{field:f.field,ignoreCase:!1,operator:"eq",value:a.value}),p=o.aggregateBy(d,f.aggregates)),g[a.__position]={aggregates:p,field:e,items:r.length>1?t.groupBy(a.items,r.slice(1),s,d):a.items,value:a.value}}))})),g}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(2);t.groupCombinator=function(e){var t=i.getter(e,!0),r=0;return function(i,o){i[e]=i[e]||{};var u=t(o),s=function(e){return(e=n.isPresent(e)&&e.getTime?e.getTime():e)+""}(u),a=i[e][s]||{__position:r++,aggregates:{},items:[],value:u};return a.items.push(o),i[e][s]=a,i}},t.expandAggregates=function(e){return void 0===e&&(e={}),Object.keys(e).forEach((function(t){var r=e[t];Object.keys(r).forEach((function(e){r[e]=r[e].result()}))})),e};t.aggregatesCombinator=function(e){var t=e.map((function(e){var t=i.getter(e.field,!0),r=(e.aggregate||"").toLowerCase(),o=i.getter(r,!0);return function(i,u){var s=i[e.field]||{},a=o(s)||{average:function(){var e=0,t=0;return{calc:function(r){n.isNumeric(r)?(e+=r,t++):e=r},result:function(){return n.isNumeric(e)?e/t:e}}},count:function(){var e=0;return{calc:function(){return e++},result:function(){return e}}},max:function(){var e=Number.NEGATIVE_INFINITY;return{calc:function(t){(e=n.isNumeric(e)||n.isDate(e)?e:t)<t&&(n.isNumeric(t)||n.isDate(t))&&(e=t)},result:function(){return e}}},min:function(){var e=Number.POSITIVE_INFINITY;return{calc:function(t){(e=n.isNumeric(e)||n.isDate(e)?e:t)>t&&(n.isNumeric(t)||n.isDate(t))&&(e=t)},result:function(){return e}}},sum:function(){var e=0;return{calc:function(t){t=n.isPresent(t)?t:0,e+=t},result:function(){return e}}}}[r]();return a.calc(t(u)),s[e.aggregate]=a,i[e.field]=s,i}}));return function(e,r){return t.reduce((function(e,t){return t(e,r)}),e)}},t.concat=function(e,t){return e.push(t),e},t.map=function(e){return function(t){return function(r,n,i){return t(r,e(n,i))}}},t.filter=function(e){return function(t){return function(r,n){return e(n)?t(r,n):r}}},t.isTransformerResult=function(e){return n.isPresent(e.__value)};var o=function(e){return t.isTransformerResult(e)?e:{__value:e,reduced:!0}};t.take=function(e){return function(t){return function(r,n){return e-- >0?t(r,n):o(r)}}},t.takeWhile=function(e){return function(t){return function(r,n){return e(n)?t(r,n):o(r)}}},t.skip=function(e){return function(t){return function(r,n){return e--<=0?t(r,n):r}}},t.exec=function(e,r,n){for(var i=r,o=0,u=n.length;o<u;o++)if(i=e(i,n[o],o),t.isTransformerResult(i)){i=i.__value;break}return i}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(1),o=r(5),u=r(18);t.compileFilter=function(e){return e&&0!==e.filters.length?u.transformCompositeFilter(e):function(){return!0}},t.filterBy=function(e,r){return!n.isPresent(r)||i.isCompositeFilterDescriptor(r)&&0===r.filters.length?e:e.filter(t.compileFilter(o.normalizeFilters(r)))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=r(4),u=r(0);t.wrapIf=function(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return e()?""+t[0]+r[0]+t[1]:r[0]}},t.toUTC=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},t.quote=function(e){var t=e.field,r=e.value,n=e.ignoreCase,i=e.operator;return{value:"'"+r.replace(/'/g,"''")+"'",field:t,ignoreCase:n,operator:i}},t.encodeValue=function(e){var t=e.field,r=e.value,n=e.ignoreCase,i=e.operator;return{value:""+encodeURIComponent(r),field:t,ignoreCase:n,operator:i}},t.toLower=function(e){var r=e.field,i=e.value,u=e.ignoreCase,s=e.operator;return{field:t.wrapIf((function(){return u}))(n||(n=o.__makeTemplateObject(["tolower(",")"],["tolower(",")"])),r),value:i,ignoreCase:u,operator:s}},t.normalizeField=function(e){var t=e.field,r=e.value,n=e.ignoreCase,i=e.operator;return{value:r,field:t.replace(/\./g,"/"),ignoreCase:n,operator:i}},t.isStringValue=function(e){return u.isString(e.value)},t.isDateValue=function(e){return u.isDate(e.value)},t.serializeFilters=function(e,r){return function(n){return t.wrapIf((function(){return n.filters.length>1}))(i||(i=o.__makeTemplateObject(["(",")"],["(",")"])),n.filters.map(e).join(r(n)))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(2),o=function(e,t){return n.isBlank(e)?e===t?0:-1:n.isBlank(t)?1:e.localeCompare?e.localeCompare(t):e>t?1:e<t?-1:0},u=function(e,t){return o(t,e)},s=function(e){var t=i.getter(e.field,!0);return function(r,n){return("asc"===e.dir?o:u)(t(r),t(n))}},a=function(e,t){return 0};t.composeSortDescriptors=function(e){return e.filter((function(e){return n.isPresent(e.dir)})).map((function(e){return s(e)})).reduce((function(e,t){return function(r,n){return e(r,n)||t(r,n)}}),a)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7),i=n.map((function(e){return e}));t.aggregateBy=function(e,t,r){void 0===t&&(t=[]),void 0===r&&(r=i);var o={};if(!t.length)return o;var u=n.exec(r(n.aggregatesCombinator(t)),o,e);return n.expandAggregates(u)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.isCompositeFilterDescriptor=n.isCompositeFilterDescriptor;var i=r(13);t.toODataString=i.toODataString;var o=r(15);t.toDataSourceRequestString=o.toDataSourceRequestString,t.toDataSourceRequest=o.toDataSourceRequest;var u=r(16);t.translateDataSourceResultGroups=u.translateDataSourceResultGroups,t.translateAggregateResults=u.translateAggregateResults;var s=r(17);t.orderBy=s.orderBy,t.process=s.process,t.distinct=s.distinct;var a=r(2);t.getter=a.getter;var c=r(8);t.filterBy=c.filterBy,t.compileFilter=c.compileFilter;var f=r(6);t.groupBy=f.groupBy;var l=r(10);t.composeSortDescriptors=l.composeSortDescriptors;var g=r(5);t.normalizeFilters=g.normalizeFilters;var p=r(6);t.normalizeGroups=p.normalizeGroups;var d=r(11);t.aggregateBy=d.aggregateBy},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=r(4),u=r(0),s=r(14),a=r(3),c=a.constant(""),f=function(e,t){return a.ifElse(u.isPresent,(r=e[0],function(e){return r+e}),c)(t);var r};t.toODataString=function(e,t){return void 0===t&&(t={}),Object.keys(e).map(function(e,t){return function(r){return{filter:s.serializeFilter(t.filter||{},e),skip:f(n||(n=o.__makeTemplateObject(["$skip=",""],["$skip=",""])),t.skip),sort:(a=t.sort||[],c=a.filter((function(e){return u.isPresent(e.dir)})).map((function(e){var t=e.field.replace(/\./g,"/");return"desc"===e.dir?t+" desc":t})).join(","),c?"$orderby="+c:c),take:f(i||(i=o.__makeTemplateObject(["$top=",""],["$top=",""])),t.take)}[r];var a,c}}(t,e)).filter(u.isNotNullOrEmptyString).join("&")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=r(1),o=r(3),u=r(9),s=r(5),a=function(e){var t=e.operator;return function(e){var r=e.field,n=e.value;return r+" "+t+" "+n}},c=function(e){return o.compose(e,u.encodeValue,u.quote,u.toLower,u.normalizeField)},f=function(e){return c((t=e.operator,function(e){var r=e.field,n=e.value;return t+"("+r+","+n+")"}));var t},l=function(e){return o.compose(a(e),u.normalizeField,(t=e.utcDates,function(e){var r=e.field,n=e.value,i=e.ignoreCase,o=e.operator;return{value:JSON.stringify(t?n:u.toUTC(n)).replace(/"/g,""),field:r,ignoreCase:i,operator:o}}));var t},g=function(e){return o.ifElse(u.isDateValue,l(e),function(e){return o.compose(a(e),u.normalizeField)}(e))},p=function(e){return o.ifElse(u.isStringValue,function(e){return c(a(e))}(e),g(e))},d=function(e){return e+" eq -1"},v=function(e){return o.compose(e,u.normalizeField)},m=function(e){return" "+e.logic+" "},y=function(e){return function(t){return function(e,t){return{contains:f(n.__assign({},t,{operator:"contains"})),doesnotcontain:o.compose(d,f(n.__assign({},t,{operator:"indexof"}))),endswith:f(n.__assign({},t,{operator:"endswith"})),eq:p(n.__assign({},t,{operator:"eq"})),gt:p(n.__assign({},t,{operator:"gt"})),gte:p(n.__assign({},t,{operator:"ge"})),isempty:v((function(e){return e.field+" eq ''"})),isnotempty:v((function(e){return e.field+" ne ''"})),isnotnull:v((function(e){return e.field+" ne null"})),isnull:v((function(e){return e.field+" eq null"})),lt:p(n.__assign({},t,{operator:"lt"})),lte:p(n.__assign({},t,{operator:"le"})),neq:p(n.__assign({},t,{operator:"ne"})),startswith:f(n.__assign({},t,{operator:"startswith"}))}[e]}(t.operator,e)(t)}},_=function(e){return u.serializeFilters((function(t){return o.ifElse(i.isCompositeFilterDescriptor,_(e),y(e))(t)}),m)};t.serializeFilter=function(e,t){return void 0===t&&(t={}),e.filters&&e.filters.length?"$filter="+_(t)(s.normalizeFilters(e)):""}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=r(4),u=r(1),s=r(0),a=r(2),c=r(3),f=r(9),l=function(e){return function(t){return[e,t]}},g=function(){return null},p=function(e){return function(t){return s.isPresent(e(t))}},d=function(e){return function(t){return function(e){return s.isPresent(e)&&s.isArray(e)&&e.length>0}(e(t))}},v=function(e,t){return c.ifElse(e,t,g)},m=function(e,t){return function(r){return e(r).map(t).join("~")}},y=(n=[['"',""],[":","-"]],c.compose.apply(void 0,n.map((function(e){var t=e[0],r=e[1];return function(e){return e.replace(new RegExp(t,"g"),r)}})))),_=(i=".",function(e){return e.slice(0,e.indexOf(i))}),b=function(e){var t=e.field,r=e.dir;return t+"-"+(void 0===r?"asc":r)},h=a.getter("take"),O=a.getter("aggregates"),P=a.getter("skip"),j=a.getter("group"),S=a.getter("sort",!0),D=m(S,b),C=m(j,b),q=m(O,(function(e){return e.field+"-"+e.aggregate})),F=c.compose((function(e){return"datetime'"+e+"'"}),_,y,JSON.stringify,f.toUTC),k=c.compose(l("page"),(function(e){var t=e.skip,r=e.take;return Math.floor((t||0)/r)+1})),w=c.compose(l("pageSize"),h),M=c.compose(l("group"),C),N=c.compose(l("sort"),D),x=c.compose(l("aggregate"),q),T=v(p(P),k),B=v(p(h),w),E=v(d(j),M),z=v(p(O),x),R=c.compose(v(d(S),N),(function(e){return Object.assign({},e,{sort:(S(e)||[]).filter((function(e){var t=e.dir;return s.isNotNullOrEmptyString(t)}))})})),I=function(e){var t=e.field;return s.isNotNullOrEmptyString(t)},A=function(e){return e.field+"~"+e.operator+"~"+e.value},V=c.ifElse(f.isDateValue,c.compose(A,(function(e){var t=e.field,r=e.value,n=e.ignoreCase,i=e.operator;return{value:F(r),field:t,ignoreCase:n,operator:i}})),A),G=function(e){return"~"+e.logic+"~"},L=function(e){return f.serializeFilters((function(t){return c.ifElse(u.isCompositeFilterDescriptor,L(e),function(e){return v(I,c.ifElse(f.isStringValue,c.compose(A,f.quote,e?f.encodeValue:c.identity),V))}(e))(t)}),G)},$=function(e,t){var r=e.filter;if(r&&r.filters){var n=L(t)(r);if(n.length)return["filter",n]}return null},U=function(e,t){return void 0===t&&(t=!0),function(r){return{aggregates:z(e),filter:$(e,t),group:E(e),skip:T(e),sort:R(e),take:B(e)}[r]}};t.toDataSourceRequestString=function(e){return(t=Object.keys(e).map(U(e)).filter(s.isPresent),t.reduce((function(e,t){var r=t[0],n=t[1];return e.concat([r+"="+n])}),[])).join("&");var t},t.toDataSourceRequest=function(e){return Object.keys(e).map(U(e,!1)).filter(s.isPresent).reduce((function(e,t){var r,n=t[0],i=t[1];return o.__assign({},e,((r={})[n]=i,r))}),{})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(3),o=function(e,t,r){return t[e]=r,t},u=function(e){return function(t){var r,i=t[e];return n.isPresent(i)?i:t[(r=e,r.replace(/(^[A-Z])/g,(function(e,t){return t.toLowerCase()})))]}},s=u("Member"),a=u("AggregateMethodName"),c=u("Value"),f=function(e){return function(t){return Object.keys(t).reduce(e.bind(null,t),{})}},l=f((function(e,t,r){return o(r.toLowerCase(),t,e[r])})),g=f((function(e,t,r){return o(r,t,l(e[r]))})),p=function(e,t){return n.isPresent(e)?e:t},d=i.compose((function(e){var t=e.field,r=e.hasSubgroups,n=e.value,i=e.aggregates,o=e.items;return{aggregates:g(i),field:t,items:r?o.map(d):o,value:n}}),(function(e){return{aggregates:e.Aggregates||e.aggregates,field:e.Member||e.member||e.field,hasSubgroups:e.HasSubgroups||e.hasSubgroups||!1,items:e.Items||e.items,value:p(e.Key,p(e.key,e.value))}}));t.translateDataSourceResultGroups=function(e){return e.map(d)},t.translateAggregateResults=function(e){return(e||[]).reduce((function(e,t){return o(s(t),e,o(a(t).toLowerCase(),e[s(t)]||{},c(t)))}),{})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(10),o=r(6),u=r(5),s=r(8),a=r(7),c=r(2),f=r(3),l=r(19);t.orderBy=function(e,t){if(t.some((function(e){return n.isPresent(e.dir)}))){e=e.slice(0);var r=i.composeSortDescriptors(t);l.sort(e,0,e.length,r)}return e};var g=function(e,t){return e===t};t.distinct=function(e,t){return void 0===t&&(t=g),function(e,t){return e.filter((function(e,r,n){return n.findIndex(t.bind(null,e))===r}))}(e,function(e){if(n.isString(e)){var t=c.getter(e);e=function(e,r){return t(e)===t(r)}}return e}(t))},t.count=function(e,t){for(var r=0,n=0,i=e.length;n<i;n++)t(e[n])&&r++;return r},t.limit=function(e,t){return t?e.filter(t):e},t.process=function(e,r){var i=r.skip,c=r.take,l=r.filter,g=r.sort,p=r.group,d=o.normalizeGroups(p||[]).concat(g||[]);d.length&&(e=t.orderBy(e,d));var v,m=n.isPresent(l)&&a.filter.length,y=n.isPresent(p)&&p.length;if(!m&&!y)return{data:c?e.slice(i,i+c):e,total:e.length};var _,b=[];if(m?(_=s.compileFilter(u.normalizeFilters(l)),v=t.count(e,_),b.push(a.filter(_))):v=e.length,n.isPresent(i)&&n.isPresent(c)&&(b.push(a.skip(i)),b.push(a.take(c))),b.length){var h=f.compose.apply(void 0,b);return{data:y?o.groupBy(e,p,h,t.limit(e,_)):a.exec(h(a.concat),[],e),total:v}}return{data:y?o.groupBy(e,p):e,total:v}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=r(2),o=r(0),u={or:{concat:function(e,t){return function(r){return e(r)||t(r)}},identity:function(){return!1}},and:{concat:function(e,t){return function(r){return e(r)&&t(r)}},identity:function(){return!0}}},s={contains:function(e,t){return(e||"").indexOf(t)>=0},doesnotcontain:function(e,t){return-1===(e||"").indexOf(t)},doesnotendwith:function(e,t){return(e||"").indexOf(t,(e||"").length-(t||"").length)<0},doesnotstartwith:function(e,t){return-1===(e||"").lastIndexOf(t,0)},endswith:function(e,t){return(e||"").indexOf(t,(e||"").length-(t||"").length)>=0},eq:function(e,t){return e===t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t},isempty:function(e){return""===e},isnotempty:function(e){return""!==e},isnotnull:function(e){return o.isPresent(e)},isnull:function(e){return o.isBlank(e)},lt:function(e,t){return e<t},lte:function(e,t){return e<=t},neq:function(e,t){return e!=t},startswith:function(e,t){return 0===(e||"").lastIndexOf(t,0)}},a=/^\/Date\((.*?)\)\/$/,c=function(e){var t=e.field,r=e.ignoreCase,n=e.value,u=e.operator;t=o.isPresent(t)?t:function(e){return e},r=!o.isPresent(r)||r;var c=function(e,t,r){if(!o.isPresent(t))return e;var n=e;if(o.isString(t)){var i=a.exec(t);i?t=new Date(+i[1]):n=function(t){var n=e(t);return"string"==typeof n&&r?n.toLowerCase():o.isNumeric(n)?n+"":n}}return o.isDate(t)?function(e){var t=n(e);return o.isDate(t)?t.getTime():t}:n}(o.isFunction(t)?t:i.getter(t,!0),n,r);n=function(e,t){if(null!=e&&o.isString(e)){var r=a.exec(e);if(r)return new Date(+r[1]).getTime();if(t)return e.toLowerCase()}else if(null!=e&&o.isDate(e))return e.getTime();return e}(n,r);var f=o.isFunction(u)?u:s[u];return function(e){return f(c(e),n,r)}};t.transformCompositeFilter=function(e){var r=u[e.logic];return e.filters.filter(o.isPresent).map((function(e){return n.isCompositeFilterDescriptor(e)?t.transformCompositeFilter(e):c(e)})).reduce(r.concat,r.identity)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.sort=function(e,r,n,i){if(!(n-r<2)){var o=r+n>>>1;t.sort(e,r,o,i),t.sort(e,o,n,i),function(e,t,r,n,i){for(var o=r-t,u=n-r,s=[],a=0;a<o;a++)s.push(e[t+a]);var c=0,f=r,l=t;do{i(e[f],s[c])<0?(e[l++]=e[f++],u--):(e[l++]=s[c++],o--)}while(u>0&&o>0);for(;o;)e[l++]=s[c++],o--;for(;u;)e[l++]=e[f++],u--}(e,r,o,n,i)}}}])}));
|
|
@@ -15,7 +15,7 @@ import { sort } from './sorting/sort';
|
|
|
15
15
|
* @returns {T[]} - The sorted data.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
|
-
* ```ts
|
|
18
|
+
* ```ts
|
|
19
19
|
* import { orderBy } from '@progress/kendo-data-query';
|
|
20
20
|
*
|
|
21
21
|
* const data = [
|
|
@@ -54,7 +54,7 @@ var _distinct = function (data, comparer) {
|
|
|
54
54
|
* @returns {T[]} - The reduced data.
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
|
-
* ```ts
|
|
57
|
+
* ```ts
|
|
58
58
|
* import { distinct } from '@progress/kendo-data-query';
|
|
59
59
|
*
|
|
60
60
|
* const data = [
|
|
@@ -105,7 +105,7 @@ export var limit = function (data, predicate) {
|
|
|
105
105
|
* @returns {DataResult} - The processed data.
|
|
106
106
|
*
|
|
107
107
|
* @example
|
|
108
|
-
* ```ts
|
|
108
|
+
* ```ts
|
|
109
109
|
*
|
|
110
110
|
* const result = process(data, {
|
|
111
111
|
* skip: 10,
|
|
@@ -4,13 +4,13 @@ import { normalizeFilters } from './filter.operators';
|
|
|
4
4
|
import { transformCompositeFilter } from "./filter-no-eval";
|
|
5
5
|
// tslint:disable:max-line-length
|
|
6
6
|
/**
|
|
7
|
-
* Creates a [
|
|
7
|
+
* Creates a [Predicate]({% slug api_kendo-data-query_predicate %}) function for the specified [CompositeFilterDescriptor]({% slug api_kendo-data-query_compositefilterdescriptor %}).
|
|
8
8
|
*
|
|
9
9
|
* @param {CompositeFilterDescriptor} descriptor - The descriptor for which the predicate is created.
|
|
10
10
|
* @returns {Predicate} - The created function instance.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
|
-
* ```ts
|
|
13
|
+
* ```ts
|
|
14
14
|
* import { compileFilter } from '@progress/kendo-data-query';
|
|
15
15
|
*
|
|
16
16
|
* const data = [{ name: "Pork" }, { name: "Pepper" }, { name: "Beef" } ];
|
|
@@ -28,14 +28,14 @@ export var compileFilter = function (descriptor) {
|
|
|
28
28
|
};
|
|
29
29
|
// tslint:disable:max-line-length
|
|
30
30
|
/**
|
|
31
|
-
* Filters the provided array according to the specified [
|
|
31
|
+
* Filters the provided array according to the specified [CompositeFilterDescriptor]({% slug api_kendo-data-query_compositefilterdescriptor %}).
|
|
32
32
|
*
|
|
33
33
|
* @param {T[]} data - The data that will be filtered.
|
|
34
34
|
* @param {(CompositeFilterDescriptor | FilterDescriptor)} descriptor - The filter criteria that will be applied.
|
|
35
35
|
* @returns {T[]} - The filtered data.
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
|
-
* ```ts
|
|
38
|
+
* ```ts
|
|
39
39
|
* import { filterBy } from '@progress/kendo-data-query';
|
|
40
40
|
*
|
|
41
41
|
* const data = [
|
|
@@ -58,7 +58,7 @@ var normalizeDescriptor = function (descriptor) {
|
|
|
58
58
|
};
|
|
59
59
|
// tslint:disable:max-line-length
|
|
60
60
|
/**
|
|
61
|
-
* Converts a [
|
|
61
|
+
* Converts a [FilterDescriptor]({% slug api_kendo-data-query_filterdescriptor %}) into a [CompositeFilterDescriptor]({% slug api_kendo-data-query_compositefilterdescriptor %}). If a `CompositeFilterDescriptor` is passed, no modifications will be made.
|
|
62
62
|
*
|
|
63
63
|
* @param {CompositeFilterDescriptor | FilterDescriptor} descriptor - The descriptor that will be normalized.
|
|
64
64
|
* @returns {CompositeFilterDescriptor} - The normalized descriptor.
|
|
@@ -2,10 +2,10 @@ import { exec, map, aggregatesCombinator, expandAggregates } from '../transducer
|
|
|
2
2
|
var identity = map(function (x) { return x; });
|
|
3
3
|
// tslint:disable:max-line-length
|
|
4
4
|
/**
|
|
5
|
-
* Applies the specified [
|
|
5
|
+
* Applies the specified [AggregateDescriptors]({% slug api_kendo-data-query_aggregatedescriptor %}) to the data. Returns an [AggregateResult]({% slug api_kendo-data-query_aggregateresult %}) instance.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
|
-
* ```ts
|
|
8
|
+
* ```ts
|
|
9
9
|
* const data = [
|
|
10
10
|
* { unitPrice: 23, unitsInStock: 21 },
|
|
11
11
|
* { unitPrice: 10, unitsInStock: 12 },
|
|
@@ -27,7 +27,7 @@ var identity = map(function (x) { return x; });
|
|
|
27
27
|
* @param {AggregateDescriptor[]} descriptors - The aggregate operations that will be executed.
|
|
28
28
|
* @param {any} transformers - For internal use.
|
|
29
29
|
* @returns {AggregateResult} - The aggregated result.
|
|
30
|
-
* For more information, refer to the [
|
|
30
|
+
* For more information, refer to the [aggregateresult]({% slug api_kendo-data-query_aggregateresult %}) configuration.
|
|
31
31
|
*/
|
|
32
32
|
// tslint:enable:max-line-length
|
|
33
33
|
export var aggregateBy = function (data, descriptors, transformers) {
|
package/dist/es/mvc/operators.js
CHANGED
|
@@ -113,7 +113,7 @@ var rules = function (state, encode) {
|
|
|
113
113
|
}[key]); };
|
|
114
114
|
};
|
|
115
115
|
/**
|
|
116
|
-
* Converts a [
|
|
116
|
+
* Converts a [DataSourceRequestState]({% slug api_kendo-data-query_datasourcerequeststate %}) into a string
|
|
117
117
|
* that is comparable with the `DataSourceRequest` format in UI for ASP.NET MVC.
|
|
118
118
|
*
|
|
119
119
|
* @param {DataRequestState} state - The state that will be serialized.
|
|
@@ -121,7 +121,7 @@ var rules = function (state, encode) {
|
|
|
121
121
|
*
|
|
122
122
|
* @example
|
|
123
123
|
* {% platform_content angular %}
|
|
124
|
-
* ```ts
|
|
124
|
+
* ```ts
|
|
125
125
|
* import {
|
|
126
126
|
* toDataSourceRequestString,
|
|
127
127
|
* translateDataSourceResultGroups,
|
|
@@ -157,7 +157,7 @@ var rules = function (state, encode) {
|
|
|
157
157
|
* {% endplatform_content %}
|
|
158
158
|
*
|
|
159
159
|
* {% platform_content react %}
|
|
160
|
-
* ```jsx
|
|
160
|
+
* ```jsx
|
|
161
161
|
* import React from 'react';
|
|
162
162
|
* import { toDataSourceRequestString, translateDataSourceResultGroups } from '@progress/kendo-data-query';
|
|
163
163
|
*
|
|
@@ -221,7 +221,7 @@ export var toDataSourceRequestString = function (state) { return (toQueryString(
|
|
|
221
221
|
.map(rules(state))
|
|
222
222
|
.filter(isPresent)).join('&')); };
|
|
223
223
|
/**
|
|
224
|
-
* Converts a [
|
|
224
|
+
* Converts a [DataSourceRequestState]({% slug api_kendo-data-query_datasourcerequeststate %}) into an object
|
|
225
225
|
* that is compatible with the `DataSourceRequest` format in UI for ASP.NET MVC.
|
|
226
226
|
*
|
|
227
227
|
* @param {DataRequestState} state - The state that will be serialized.
|