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.
- package/bundles/tnx-shared.umd.js +35 -25
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/classes/form-schema.d.ts +1 -0
- package/classes/form-schema.d.ts.map +1 -1
- package/components/dropdown/dropdown.component.d.ts.map +1 -1
- package/components/tn-tinymce/tn-tinymce.component.d.ts.map +1 -1
- package/esm2015/classes/form-schema.js +2 -1
- package/esm2015/components/dropdown/dropdown.component.js +19 -15
- package/esm2015/components/tn-tinymce/tn-tinymce.component.js +12 -9
- package/esm2015/services/user.service.js +6 -4
- package/fesm2015/tnx-shared.js +35 -25
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/user.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
|
@@ -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
|
|
32940
|
-
|
|
32941
|
-
this.
|
|
32942
|
-
|
|
32943
|
-
|
|
32944
|
-
this.
|
|
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
|
-
|
|
32955
|
-
|
|
32956
|
-
|
|
32957
|
-
|
|
32958
|
-
|
|
32959
|
-
|
|
32960
|
-
|
|
32961
|
-
this.
|
|
32959
|
+
if (this._value !== undefined) {
|
|
32960
|
+
// Lưu ý if ở dưới không được đổi thành oldValue != this._value
|
|
32961
|
+
// Vì 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: ['
|
|
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
|
-
'
|
|
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 = ['
|
|
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 = ['
|
|
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 = ['
|
|
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
|
};
|