@ntlab/ntjs-assets 2.123.0 → 2.125.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/assets/js/DataTables/DataTables/js/dataTables.js +108 -44
  2. package/assets/js/DataTables/DataTables/js/dataTables.min.js +2 -2
  3. package/assets/js/DataTables/Extensions/FixedHeader/js/dataTables.fixedHeader.js +10 -4
  4. package/assets/js/DataTables/Extensions/FixedHeader/js/dataTables.fixedHeader.min.js +2 -2
  5. package/assets/js/DataTables/Extensions/KeyTable/css/keyTable.bootstrap5.css +2 -2
  6. package/assets/js/DataTables/Extensions/KeyTable/css/keyTable.bootstrap5.min.css +1 -1
  7. package/assets/js/DataTables/Extensions/KeyTable/css/keyTable.dataTables.css +1 -1
  8. package/assets/js/DataTables/Extensions/KeyTable/css/keyTable.dataTables.min.css +1 -1
  9. package/assets/js/DataTables/Extensions/KeyTable/js/dataTables.keyTable.js +7 -5
  10. package/assets/js/DataTables/Extensions/KeyTable/js/dataTables.keyTable.min.js +2 -2
  11. package/assets/js/DataTables/Extensions/KeyTable/js/keyTable.bootstrap5.min.js +1 -1
  12. package/assets/js/DataTables/Extensions/KeyTable/js/keyTable.dataTables.min.js +1 -1
  13. package/assets/js/cdn.json +5 -5
  14. package/assets/js/tinymce/CHANGELOG.md +5 -0
  15. package/assets/js/tinymce/models/dom/model.js +1 -1
  16. package/assets/js/tinymce/plugins/accordion/plugin.js +1 -1
  17. package/assets/js/tinymce/plugins/advlist/plugin.js +1 -1
  18. package/assets/js/tinymce/plugins/anchor/plugin.js +1 -1
  19. package/assets/js/tinymce/plugins/autolink/plugin.js +1 -1
  20. package/assets/js/tinymce/plugins/autoresize/plugin.js +1 -1
  21. package/assets/js/tinymce/plugins/autosave/plugin.js +1 -1
  22. package/assets/js/tinymce/plugins/charmap/plugin.js +1 -1
  23. package/assets/js/tinymce/plugins/code/plugin.js +1 -1
  24. package/assets/js/tinymce/plugins/codesample/plugin.js +1 -1
  25. package/assets/js/tinymce/plugins/directionality/plugin.js +1 -1
  26. package/assets/js/tinymce/plugins/emoticons/plugin.js +1 -1
  27. package/assets/js/tinymce/plugins/fullscreen/plugin.js +1 -1
  28. package/assets/js/tinymce/plugins/help/plugin.js +2 -2
  29. package/assets/js/tinymce/plugins/help/plugin.min.js +1 -1
  30. package/assets/js/tinymce/plugins/image/plugin.js +1 -1
  31. package/assets/js/tinymce/plugins/importcss/plugin.js +1 -1
  32. package/assets/js/tinymce/plugins/insertdatetime/plugin.js +1 -1
  33. package/assets/js/tinymce/plugins/langs8/ka-GE.js +10 -10
  34. package/assets/js/tinymce/plugins/langs8/ro.js +9 -9
  35. package/assets/js/tinymce/plugins/link/plugin.js +1 -1
  36. package/assets/js/tinymce/plugins/lists/plugin.js +1 -1
  37. package/assets/js/tinymce/plugins/media/plugin.js +1 -1
  38. package/assets/js/tinymce/plugins/nonbreaking/plugin.js +1 -1
  39. package/assets/js/tinymce/plugins/pagebreak/plugin.js +1 -1
  40. package/assets/js/tinymce/plugins/preview/plugin.js +1 -1
  41. package/assets/js/tinymce/plugins/quickbars/plugin.js +1 -1
  42. package/assets/js/tinymce/plugins/save/plugin.js +1 -1
  43. package/assets/js/tinymce/plugins/searchreplace/plugin.js +1 -1
  44. package/assets/js/tinymce/plugins/table/plugin.js +1 -1
  45. package/assets/js/tinymce/plugins/visualblocks/plugin.js +1 -1
  46. package/assets/js/tinymce/plugins/visualchars/plugin.js +1 -1
  47. package/assets/js/tinymce/plugins/wordcount/plugin.js +1 -1
  48. package/assets/js/tinymce/themes/silver/theme.js +1 -1
  49. package/assets/js/tinymce/tinymce.js +9 -5
  50. package/assets/js/tinymce/tinymce.min.js +2 -2
  51. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- /*! DataTables 2.3.4
1
+ /*! DataTables 2.3.5
2
2
  * © SpryMedia Ltd - datatables.net/license
3
3
  */
4
4
 
@@ -2937,12 +2937,12 @@
2937
2937
 
2938
2938
  // Max length string. Its a fairly cheep recalculation, so not worth
2939
2939
  // something more complicated
2940
- cols[ colIdx ].maxLenString = null;
2940
+ cols[ colIdx ].wideStrings = null;
2941
2941
  }
2942
2942
  else {
2943
2943
  for ( i=0, iLen=cols.length ; i<iLen ; i++ ) {
2944
2944
  cols[i].sType = null;
2945
- cols[i].maxLenString = null;
2945
+ cols[i].wideStrings = null;
2946
2946
  }
2947
2947
 
2948
2948
  // Update DataTables special `DT_*` attributes for the row
@@ -3483,6 +3483,14 @@
3483
3483
  {
3484
3484
  var iDataIndex = aiDisplay[j];
3485
3485
  var aoData = oSettings.aoData[ iDataIndex ];
3486
+
3487
+ // Row has been deleted - can't be displayed
3488
+ if (aoData === null)
3489
+ {
3490
+ continue;
3491
+ }
3492
+
3493
+ // Row node hasn't been created yet
3486
3494
  if ( aoData.nTr === null )
3487
3495
  {
3488
3496
  _fnCreateTr( oSettings, iDataIndex );
@@ -5408,7 +5416,7 @@
5408
5416
  visibleColumns = _fnGetColumns( settings, 'bVisible' ),
5409
5417
  tableWidthAttr = table.getAttribute('width'), // from DOM element
5410
5418
  tableContainer = table.parentNode,
5411
- i, column, columnIdx;
5419
+ i, j, column, columnIdx;
5412
5420
 
5413
5421
  var styleWidth = table.style.width;
5414
5422
  var containerWidth = _fnWrapperWidth(settings);
@@ -5442,17 +5450,16 @@
5442
5450
  false
5443
5451
  );
5444
5452
 
5445
- // Construct a single row, worst case, table with the widest
5446
- // node in the data, assign any user defined widths, then insert it into
5447
- // the DOM and allow the browser to do all the hard work of calculating
5448
- // table widths
5453
+ // Construct a worst case table with the widest, assign any user defined
5454
+ // widths, then insert it into the DOM and allow the browser to do all
5455
+ // the hard work of calculating table widths
5449
5456
  var tmpTable = $(table.cloneNode())
5450
5457
  .css( 'visibility', 'hidden' )
5458
+ .css( 'margin', 0 )
5451
5459
  .removeAttr( 'id' );
5452
5460
 
5453
5461
  // Clean up the table body
5454
5462
  tmpTable.append('<tbody/>')
5455
- var tr = $('<tr/>').appendTo( tmpTable.find('tbody') );
5456
5463
 
5457
5464
  // Clone the table header and footer - we can't use the header / footer
5458
5465
  // from the cloned table, since if scrolling is active, the table's
@@ -5492,23 +5499,37 @@
5492
5499
  }
5493
5500
  } );
5494
5501
 
5495
- // Find the widest piece of data for each column and put it into the table
5502
+ // Get the widest strings for each of the visible columns and add them to
5503
+ // our table to create a "worst case"
5504
+ var longestData = [];
5505
+
5496
5506
  for ( i=0 ; i<visibleColumns.length ; i++ ) {
5497
- columnIdx = visibleColumns[i];
5498
- column = columns[ columnIdx ];
5499
-
5500
- var longest = _fnGetMaxLenString(settings, columnIdx);
5501
- var autoClass = _ext.type.className[column.sType];
5502
- var text = longest + column.sContentPadding;
5503
- var insert = longest.indexOf('<') === -1
5504
- ? document.createTextNode(text)
5505
- : text
5506
-
5507
- $('<td/>')
5508
- .addClass(autoClass)
5509
- .addClass(column.sClass)
5510
- .append(insert)
5511
- .appendTo(tr);
5507
+ longestData.push(_fnGetWideStrings(settings, visibleColumns[i]));
5508
+ }
5509
+
5510
+ if (longestData.length) {
5511
+ for ( i=0 ; i<longestData[0].length ; i++ ) {
5512
+ var tr = $('<tr/>').appendTo( tmpTable.find('tbody') );
5513
+
5514
+ for ( j=0 ; j<visibleColumns.length ; j++ ) {
5515
+ columnIdx = visibleColumns[j];
5516
+ column = columns[ columnIdx ];
5517
+
5518
+ var longest = longestData[j][i] || '';
5519
+ var autoClass = _ext.type.className[column.sType];
5520
+ var padding = column.sContentPadding || (scrollX ? '-' : '');
5521
+ var text = longest + padding;
5522
+ var insert = longest.indexOf('<') === -1
5523
+ ? document.createTextNode(text)
5524
+ : text
5525
+
5526
+ $('<td/>')
5527
+ .addClass(autoClass)
5528
+ .addClass(column.sClass)
5529
+ .append(insert)
5530
+ .appendTo(tr);
5531
+ }
5532
+ }
5512
5533
  }
5513
5534
 
5514
5535
  // Tidy the temporary table - remove name attributes so there aren't
@@ -5647,19 +5668,31 @@
5647
5668
  }
5648
5669
 
5649
5670
  /**
5650
- * Get the maximum strlen for each data column
5671
+ * Get the widest strings for each column.
5672
+ *
5673
+ * It is very difficult to determine what the widest string actually is due to variable character
5674
+ * width and kerning. Doing an exact calculation with the DOM or even Canvas would kill performance
5675
+ * and this is a critical point, so we use two techniques to determine a collection of the longest
5676
+ * strings from the column, which will likely contain the widest strings:
5677
+ *
5678
+ * 1) Get the top three longest strings from the column
5679
+ * 2) Get the top three widest words (i.e. an unbreakable phrase)
5680
+ *
5651
5681
  * @param {object} settings dataTables settings object
5652
5682
  * @param {int} colIdx column of interest
5653
- * @returns {string} string of the max length
5683
+ * @returns {string[]} Array of the longest strings
5654
5684
  * @memberof DataTable#oApi
5655
5685
  */
5656
- function _fnGetMaxLenString( settings, colIdx )
5686
+ function _fnGetWideStrings( settings, colIdx )
5657
5687
  {
5658
5688
  var column = settings.aoColumns[colIdx];
5659
5689
 
5660
- if (! column.maxLenString) {
5661
- var s, max='', maxLen = -1;
5662
-
5690
+ // Do we need to recalculate (i.e. was invalidated), or just use the cached data?
5691
+ if (! column.wideStrings) {
5692
+ var allStrings = [];
5693
+ var collection = [];
5694
+
5695
+ // Create an array with the string information for the column
5663
5696
  for ( var i=0, iLen=settings.aiDisplayMaster.length ; i<iLen ; i++ ) {
5664
5697
  var rowIdx = settings.aiDisplayMaster[i];
5665
5698
  var data = _fnGetRowDisplay(settings, rowIdx)[colIdx];
@@ -5674,21 +5707,49 @@
5674
5707
  .replace(/id=".*?"/g, '')
5675
5708
  .replace(/name=".*?"/g, '');
5676
5709
 
5677
- s = _stripHtml(cellString)
5710
+ var s = _stripHtml(cellString)
5678
5711
  .replace( /&nbsp;/g, ' ' );
5679
5712
 
5680
- if ( s.length > maxLen ) {
5681
- // We want the HTML in the string, but the length that
5682
- // is important is the stripped string
5683
- max = cellString;
5684
- maxLen = s.length;
5685
- }
5713
+ collection.push({
5714
+ str: s,
5715
+ len: s.length
5716
+ });
5717
+
5718
+ allStrings.push(s);
5686
5719
  }
5687
5720
 
5688
- column.maxLenString = max;
5721
+ // Order and then cut down to the size we need
5722
+ collection
5723
+ .sort(function (a, b) {
5724
+ return b.len - a.len;
5725
+ })
5726
+ .splice(3);
5727
+
5728
+ column.wideStrings = collection.map(function (item) {
5729
+ return item.str;
5730
+ });
5731
+
5732
+ // Longest unbroken string
5733
+ let parts = allStrings.join(' ').split(' ');
5734
+
5735
+ parts.sort(function (a, b) {
5736
+ return b.length - a.length;
5737
+ });
5738
+
5739
+ if (parts.length) {
5740
+ column.wideStrings.push(parts[0]);
5741
+ }
5742
+
5743
+ if (parts.length > 1) {
5744
+ column.wideStrings.push(parts[1]);
5745
+ }
5746
+
5747
+ if (parts.length > 2) {
5748
+ column.wideStrings.push(parts[3]);
5749
+ }
5689
5750
  }
5690
5751
 
5691
- return column.maxLenString;
5752
+ return column.wideStrings;
5692
5753
  }
5693
5754
 
5694
5755
 
@@ -9029,13 +9090,16 @@
9029
9090
 
9030
9091
  _api_registerPlural( 'columns().types()', 'column().type()', function () {
9031
9092
  return this.iterator( 'column', function ( settings, column ) {
9032
- var type = settings.aoColumns[column].sType;
9093
+ var colObj = settings.aoColumns[column]
9094
+ var type = colObj.sType;
9033
9095
 
9034
9096
  // If the type was invalidated, then resolve it. This actually does
9035
9097
  // all columns at the moment. Would only happen once if getting all
9036
9098
  // column's data types.
9037
9099
  if (! type) {
9038
9100
  _fnColumnTypes(settings);
9101
+
9102
+ type = colObj.sType;
9039
9103
  }
9040
9104
 
9041
9105
  return type;
@@ -10206,7 +10270,7 @@
10206
10270
  * @type string
10207
10271
  * @default Version number
10208
10272
  */
10209
- DataTable.version = "2.3.4";
10273
+ DataTable.version = "2.3.5";
10210
10274
 
10211
10275
  /**
10212
10276
  * Private data store, containing all of the settings objects that are
@@ -10508,8 +10572,8 @@
10508
10572
  */
10509
10573
  "sWidthOrig": null,
10510
10574
 
10511
- /** Cached string which is the longest in the column */
10512
- maxLenString: null,
10575
+ /** Cached longest strings from a column */
10576
+ wideStrings: null,
10513
10577
 
10514
10578
  /**
10515
10579
  * Store for named searches