ps-toolkit-ui 1.12.15 → 1.12.17

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.
@@ -832,6 +832,7 @@
832
832
  TableCollType[TableCollType["Options"] = 14] = "Options";
833
833
  TableCollType[TableCollType["Color"] = 15] = "Color";
834
834
  TableCollType[TableCollType["Number"] = 16] = "Number";
835
+ TableCollType[TableCollType["Files"] = 17] = "Files";
835
836
  })(exports.TableCollType || (exports.TableCollType = {}));
836
837
  (function (UserType) {
837
838
  UserType[UserType["All"] = 0] = "All";
@@ -3159,6 +3160,7 @@
3159
3160
  // .concat(this.table.permissions.hasAccess('Delete') ? [this.optDelete] : []);
3160
3161
  };
3161
3162
  TableRowComponent.prototype.getCell = function (col) {
3163
+ var e_4, _b;
3162
3164
  console.log('getCell');
3163
3165
  var cv = _.get(this.row.Data, col.name);
3164
3166
  if (cv === null) {
@@ -3203,6 +3205,24 @@
3203
3205
  else if (col.type === exports.TableCollType.Number) {
3204
3206
  return cv.toLocaleString();
3205
3207
  }
3208
+ else if (col.type === exports.TableCollType.Files) {
3209
+ var files = '';
3210
+ try {
3211
+ for (var cv_1 = __values(cv), cv_1_1 = cv_1.next(); !cv_1_1.done; cv_1_1 = cv_1.next()) {
3212
+ var f = cv_1_1.value;
3213
+ var k = f.split('.').at(-1);
3214
+ files += '<a target="_blank" href="' + this.table.environment.url + f + '" class="f-s-22 m-h-5 ' + exports.FileIcons[k] + '"></a>';
3215
+ }
3216
+ }
3217
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
3218
+ finally {
3219
+ try {
3220
+ if (cv_1_1 && !cv_1_1.done && (_b = cv_1.return)) _b.call(cv_1);
3221
+ }
3222
+ finally { if (e_4) throw e_4.error; }
3223
+ }
3224
+ return cv.toLocaleString();
3225
+ }
3206
3226
  else if (col.type === exports.TableCollType.Plaque) {
3207
3227
  var parts = cv.split('_');
3208
3228
  if (parts.length === 4) {
@@ -5868,10 +5888,6 @@
5868
5888
  };
5869
5889
  FormSelectComponent.prototype.getPlaceHolder = function () {
5870
5890
  var _this = this;
5871
- if (this.inp.name === 'Users') {
5872
- console.log(this.inp.name, this.inp.multiple);
5873
- console.log(this.inp.getSelectedOptions());
5874
- }
5875
5891
  if (this.inp.multiple) {
5876
5892
  var s = this.inp.getSelectedOptions();
5877
5893
  if (s.length > 0) {