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: { watch: {
'$attrs.id': { '$attrs.id': function (newValue) {
immediate: true, this.id = newValue || UniqueComponentId();
handler: function (newValue) {
this.id = newValue || UniqueComponentId();
}
}, },
activeIndex(newValue) { activeIndex(newValue) {
this.d_activeIndex = newValue; this.d_activeIndex = newValue;
} }
}, },
mounted() {
this.id = this.id || UniqueComponentId();
},
methods: { methods: {
isAccordionTab(child) { isAccordionTab(child) {
return child.type.name === 'AccordionTab'; return child.type.name === 'AccordionTab';

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -73,13 +73,13 @@ export default {
}; };
}, },
watch: { watch: {
'$attrs.id': { '$attrs.id': function (newValue) {
immediate: true, this.id = newValue || UniqueComponentId();
handler: function (newValue) {
this.id = newValue || UniqueComponentId();
}
} }
}, },
mounted() {
this.id = this.id || UniqueComponentId();
},
methods: { methods: {
getItemProp(item, name) { getItemProp(item, name) {
return item ? ObjectUtils.getItemValue(item[name]) : undefined; return item ? ObjectUtils.getItemValue(item[name]) : undefined;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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