tnx-shared 5.3.255 → 5.3.257

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.
@@ -2007,6 +2007,7 @@
2007
2007
  _this.placeholder = '';
2008
2008
  _this.hiddenToolbar = false;
2009
2009
  _this.hiddenMenubar = false;
2010
+ _this.isFullPage = false;
2010
2011
  for (var key in init) {
2011
2012
  _this[key] = init[key];
2012
2013
  }
@@ -12115,19 +12116,21 @@
12115
12116
  new ColumnSchemaBase({
12116
12117
  field: 'code',
12117
12118
  width: '150px',
12118
- includeSelect: isInUserList
12119
+ includeSelect: isInUserList,
12120
+ isPinned: true
12119
12121
  }),
12120
12122
  new ColumnSchemaBase({
12121
12123
  field: 'fullNameNew',
12122
12124
  width: '200px',
12123
12125
  includeSelect: isInUserList,
12124
- visible: isInUserList
12126
+ visible: isInUserList,
12127
+ isPinned: true
12125
12128
  }),
12126
12129
  new ColumnSchemaBase({
12127
12130
  field: 'dob',
12128
12131
  dataType: 'date',
12129
12132
  width: '110px',
12130
- includeSelect: isInUserList
12133
+ includeSelect: isInUserList,
12131
12134
  }),
12132
12135
  new ColumnSchemaBase({
12133
12136
  field: 'email',
@@ -32936,12 +32939,14 @@
32936
32939
  && this.control.autoDisplayFirst) {
32937
32940
  newValue = [this.dataSourceInternal[0].value];
32938
32941
  }
32939
- this._value = newValue;
32940
- if (oldValue.length != this._value.length) {
32941
- this.fireChangedEvent();
32942
- }
32943
- else if (this._value != oldValue) {
32944
- this.adjustValue2WayBinding();
32942
+ if (this._value !== undefined) {
32943
+ this._value = newValue;
32944
+ if (oldValue.length != this._value.length) {
32945
+ this.fireChangedEvent();
32946
+ }
32947
+ else if (!this._commonService.isSameArray(oldValue, this._value)) {
32948
+ this.adjustValue2WayBinding();
32949
+ }
32945
32950
  }
32946
32951
  }
32947
32952
  else {
@@ -32951,14 +32956,16 @@
32951
32956
  && this.control.autoDisplayFirst) {
32952
32957
  this._value = this.dataSourceInternal[0].value;
32953
32958
  }
32954
- // Lưu ý if dưới không được đổi thành oldValue != this._value
32955
- // giá trị của this._value sẽ được correcting trên (id => object) nên so sánh sẽ khác nhau
32956
- if ((oldValue != null && this._value == null)
32957
- || (oldValue == null && this._value != null)) {
32958
- this.fireChangedEvent();
32959
- }
32960
- else if (this._value != oldValue) {
32961
- this.adjustValue2WayBinding();
32959
+ if (this._value !== undefined) {
32960
+ // Lưu ý if dưới không được đổi thành oldValue != this._value
32961
+ // giá trị của this._value sẽ được correcting ở trên (id => object) nên so sánh sẽ khác nhau
32962
+ if ((oldValue != null && this._value == null)
32963
+ || (oldValue == null && this._value != null)) {
32964
+ this.fireChangedEvent();
32965
+ }
32966
+ else if (this._value != oldValue) {
32967
+ this.adjustValue2WayBinding();
32968
+ }
32962
32969
  }
32963
32970
  }
32964
32971
  this.checkReady();
@@ -53120,34 +53127,37 @@
53120
53127
  },
53121
53128
  mobile: {
53122
53129
  theme: 'silver',
53123
- plugins: ['fullpage advlist autolink lists link image charmap print preview anchor textcolor searchreplace visualblocks code fullscreen insertdatetime media table media code lists colorpicker imagetools tabfocus textcolor'],
53130
+ plugins: ['advlist autolink lists link image charmap print preview anchor textcolor searchreplace visualblocks code fullscreen insertdatetime media table media code lists colorpicker imagetools tabfocus textcolor'],
53124
53131
  }
53125
53132
  };
53126
53133
  if (mode == 'full') {
53127
53134
  config.plugins = [
53128
- 'fullpage advlist autolink lists link image charmap print preview anchor textcolor searchreplace visualblocks code fullscreen insertdatetime media table media code lists colorpicker imagetools tabfocus editFileNew addNews'
53135
+ 'advlist autolink lists link image charmap print preview anchor textcolor searchreplace visualblocks code fullscreen insertdatetime media table media code lists colorpicker imagetools tabfocus editFileNew addNews'
53129
53136
  ];
53130
53137
  config.toolbar = 'formatselect | bold italic Strikethrough forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table link editFileNew addNews | print removeformat undo redo | fullscreen ';
53131
53138
  config.mobile.toolbar = 'bold italic Strikethrough forecolor backcolor | bullist numlist | fullscreen';
53132
- return config;
53139
+ // return config;
53133
53140
  }
53134
53141
  else if (mode == 'medium') {
53135
- config.plugins = ['fullpage advlist autolink lists link image charmap print preview anchor textcolor searchreplace visualblocks code fullscreen insertdatetime media table media code lists colorpicker imagetools tabfocus textcolor'];
53142
+ config.plugins = ['advlist autolink lists link image charmap print preview anchor textcolor searchreplace visualblocks code fullscreen insertdatetime media table media code lists colorpicker imagetools tabfocus textcolor'];
53136
53143
  config.toolbar = 'formatselect | bold italic Strikethrough forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table link | print removeformat undo redo | fullscreen';
53137
53144
  config.mobile.toolbar = 'bold italic Strikethrough forecolor backcolor | bullist numlist | fullscreen';
53138
- return config;
53145
+ // return config;
53139
53146
  }
53140
53147
  else if (mode == 'simple') {
53141
- config.plugins = ['fullpage advlist autolink lists link image charmap print preview anchor textcolor searchreplace visualblocks code fullscreen insertdatetime media table media code lists colorpicker imagetools tabfocus textcolor'];
53148
+ config.plugins = ['advlist autolink lists link image charmap print preview anchor textcolor searchreplace visualblocks code fullscreen insertdatetime media table media code lists colorpicker imagetools tabfocus textcolor'];
53142
53149
  config.toolbar = 'bold italic Strikethrough forecolor backcolor | bullist numlist | fullscreen';
53143
53150
  config.mobile.toolbar = 'fullscreen | bold italic Strikethrough forecolor backcolor | bullist numlist';
53144
- return config;
53151
+ // return config;
53145
53152
  }
53146
53153
  else {
53147
- config.plugins = ['fullpage advlist autolink lists link image charmap print preview anchor textcolor searchreplace visualblocks code fullscreen insertdatetime media table media code lists colorpicker imagetools tabfocus textcolor'];
53154
+ config.plugins = ['advlist autolink lists link image charmap print preview anchor textcolor searchreplace visualblocks code fullscreen insertdatetime media table media code lists colorpicker imagetools tabfocus textcolor'];
53148
53155
  // config.toolbar = 'formatselect | bold italic Strikethrough forecolor backcolor| alignleft aligncenter alignright alignjustify | bullist numlist';
53149
53156
  config.toolbar = 'bold italic Strikethrough forecolor backcolor | bullist numlist | fullscreen';
53150
53157
  }
53158
+ if ($this.control.isFullPage && !config.some(function (x) { return x == 'fullpage'; })) {
53159
+ config.plugins.push(' fullpage');
53160
+ }
53151
53161
  config.paste_data_images = true;
53152
53162
  return config;
53153
53163
  };