Merge branch 'master' into v4

pull/5677/head
tugcekucukoglu 2024-04-16 12:35:35 +03:00
commit 7055387be4
29 changed files with 116 additions and 146 deletions

View File

@ -73,16 +73,16 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
activeIndex(newValue) {
this.d_activeIndex = newValue;
}
},
mounted() {
this.id = this.id || UniqueComponentId();
},
methods: {
isAccordionTab(child) {
return child.type.name === 'AccordionTab';

View File

@ -216,11 +216,8 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
suggestions() {
if (this.searching) {
@ -233,6 +230,7 @@ export default {
}
},
mounted() {
this.id = this.id || UniqueComponentId();
this.autoUpdateModel();
},
updated() {

View File

@ -577,11 +577,8 @@ export default {
};
},
watch: {
id: {
immediate: true,
handler: function (newValue) {
id: function (newValue) {
this.d_id = newValue || UniqueComponentId();
}
},
modelValue(newValue) {
this.updateCurrentMetaData();
@ -631,6 +628,7 @@ export default {
this.updateCurrentMetaData();
},
mounted() {
this.d_id = this.d_id || UniqueComponentId();
this.createResponsiveStyle();
this.bindMatchMediaListener();

View File

@ -110,17 +110,15 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
options() {
this.autoUpdateModel();
}
},
mounted() {
this.id = this.id || UniqueComponentId();
this.autoUpdateModel();
},
beforeUnmount() {

View File

@ -77,12 +77,12 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
}
},
mounted() {
this.id = this.id || UniqueComponentId();
},
methods: {
onWrapperClick() {

View File

@ -64,11 +64,8 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
activeItemPath(newPath) {
if (ObjectUtils.isNotEmpty(newPath)) {
@ -81,6 +78,8 @@ export default {
}
},
mounted() {
this.id = this.id || UniqueComponentId();
if (this.global) {
this.bindDocumentContextMenuListener();
}

View File

@ -294,12 +294,9 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
}
},
overlay: null,
selfClick: false,
@ -316,6 +313,8 @@ export default {
}
},
mounted() {
this.id = this.id || UniqueComponentId();
if (this.filters && this.filters[this.field]) {
let fieldFilters = this.filters[this.field];

View File

@ -93,12 +93,9 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
}
},
documentKeydownListener: null,
container: null,
@ -132,6 +129,8 @@ export default {
this.mask = null;
},
mounted() {
this.id = this.id || UniqueComponentId();
if (this.breakpoints) {
this.createStyle();
}

View File

@ -106,12 +106,12 @@ export default {
};
},
watch: {
menuId: {
immediate: true,
handler(newValue) {
menuId(newValue) {
this.id = newValue || UniqueComponentId();
}
}
},
mounted() {
this.id = this.id || UniqueComponentId();
},
methods: {
getItemId(index) {

View File

@ -218,11 +218,8 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
modelValue() {
this.isModelValueChanged = true;
@ -232,6 +229,7 @@ export default {
}
},
mounted() {
this.id = this.id || UniqueComponentId();
this.autoUpdateModel();
this.bindLabelClickListener();
},

View File

@ -54,16 +54,16 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
collapsed(newValue) {
this.d_collapsed = newValue;
}
},
mounted() {
this.id = this.id || UniqueComponentId();
},
methods: {
toggle(event) {
this.d_collapsed = !this.d_collapsed;

View File

@ -76,18 +76,15 @@ export default {
emits: ['activeitem-change', 'mask-hide'],
data() {
return {
id: this.$attrs.id,
id: this.$attrs.id || UniqueComponentId(),
activeIndex: this.$attrs.activeIndex,
numVisible: this.$attrs.numVisible,
slideShowActive: false
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
'$attrs.value': function (newVal) {
if (newVal && newVal.length < this.numVisible) {
@ -104,6 +101,9 @@ export default {
newVal ? this.startSlideShow() : this.stopSlideShow();
}
},
mounted() {
this.id = this.id || UniqueComponentId();
},
updated() {
this.$emit('activeitem-change', this.activeIndex);
},

View File

@ -155,17 +155,15 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
options() {
this.autoUpdateModel();
}
},
mounted() {
this.id = this.id || UniqueComponentId();
this.autoUpdateModel();
},
methods: {

View File

@ -86,11 +86,8 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
activeItem(newItem) {
if (ObjectUtils.isNotEmpty(newItem)) {
@ -103,6 +100,7 @@ export default {
}
},
mounted() {
this.id = this.id || UniqueComponentId();
this.bindMatchMediaListener();
},
beforeUnmount() {

View File

@ -72,12 +72,9 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
}
},
target: null,
outsideClickListener: null,
@ -86,6 +83,8 @@ export default {
container: null,
list: null,
mounted() {
this.id = this.id || UniqueComponentId();
if (!this.popup) {
this.bindResizeListener();
this.bindOutsideClickListener();

View File

@ -79,11 +79,8 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
activeItemPath(newPath) {
if (ObjectUtils.isNotEmpty(newPath)) {
@ -99,6 +96,7 @@ export default {
container: null,
menubar: null,
mounted() {
this.id = this.id || UniqueComponentId();
this.bindMatchMediaListener();
},
beforeUnmount() {

View File

@ -237,17 +237,15 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
options() {
this.autoUpdateModel();
}
},
mounted() {
this.id = this.id || UniqueComponentId();
this.autoUpdateModel();
},
beforeUnmount() {

View File

@ -92,12 +92,9 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
}
},
beforeUnmount() {
this.destroyStyle();
@ -109,6 +106,8 @@ export default {
}
},
mounted() {
this.id = this.id || UniqueComponentId();
if (this.responsive) {
this.createStyle();
}

View File

@ -60,16 +60,16 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
collapsed(newValue) {
this.d_collapsed = newValue;
}
},
mounted() {
this.id = this.id || UniqueComponentId();
},
methods: {
toggle(event) {
this.d_collapsed = !this.d_collapsed;

View File

@ -73,12 +73,12 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
}
},
mounted() {
this.id = this.id || UniqueComponentId();
},
methods: {
getItemProp(item, name) {

View File

@ -77,12 +77,9 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
}
},
mediumCheckRegExp: null,
strongCheckRegExp: null,
@ -90,6 +87,7 @@ export default {
scrollHandler: null,
overlay: null,
mounted() {
this.id = this.id || UniqueComponentId();
this.infoText = this.promptText;
this.mediumCheckRegExp = new RegExp(this.mediumRegex);
this.strongCheckRegExp = new RegExp(this.strongRegex);

View File

@ -196,11 +196,8 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
selection(newValue) {
this.d_selection = newValue;
@ -222,6 +219,8 @@ export default {
this.destroyMedia();
},
mounted() {
this.id = this.id || UniqueComponentId();
if (this.responsive) {
this.createStyle();
this.initMedia();

View File

@ -48,12 +48,12 @@ export default {
};
},
watch: {
'$attrs.name': {
immediate: true,
handler: function (newValue) {
'$attrs.name': function (newValue) {
this.name = newValue || UniqueComponentId();
}
}
},
mounted() {
this.name = this.name || UniqueComponentId();
},
methods: {
getPTOptions(key, value) {

View File

@ -69,14 +69,13 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
}
},
mounted() {
this.id = this.id || UniqueComponentId();
if (this.$el.offsetParent) {
this.initialize();
}

View File

@ -78,14 +78,13 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
}
},
mounted() {
this.id = this.id || UniqueComponentId();
this.$watch('$refs.menu.visible', (newValue) => {
this.isExpanded = newValue;
});

View File

@ -154,16 +154,16 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
activeStep(newValue) {
this.d_activeStep = newValue;
}
},
mounted() {
this.id = this.id || UniqueComponentId();
},
methods: {
isStep(child) {
return child.type.name === 'StepperPanel';

View File

@ -113,11 +113,8 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
activeIndex(newValue) {
this.d_activeIndex = newValue;
@ -126,6 +123,7 @@ export default {
}
},
mounted() {
this.id = this.id || UniqueComponentId();
this.updateInkBar();
this.scrollable && this.updateButtonState();
},

View File

@ -71,11 +71,8 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
activeItemPath(newPath) {
if (!this.popup) {
@ -89,6 +86,9 @@ export default {
}
}
},
mounted() {
this.id = this.id || UniqueComponentId();
},
beforeUnmount() {
this.unbindOutsideClickListener();
this.unbindResizeListener();

View File

@ -129,11 +129,8 @@ export default {
};
},
watch: {
'$attrs.id': {
immediate: true,
handler: function (newValue) {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
modelValue: {
handler: function () {
@ -170,6 +167,7 @@ export default {
}
},
mounted() {
this.id = this.id || UniqueComponentId();
this.updateTreeState();
},
methods: {