@designcrowd/fe-shared-lib 1.2.1-rr-7 → 1.2.1
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/package.json +1 -1
- package/src/atoms/components/FormControl/FormControl.mixin.js +1 -10
- package/src/atoms/components/TextInput/TextInput.vue +1 -5
- package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +6 -1
- package/src/experiences/components/SellDomainNameList/SellDomainNameList.vue +1 -0
- package/src/experiences/components/SellDomainNameSearchResult/SellDomainNameListSearchResult.vue +4 -0
- package/src/experiences/components/SellDomainNameSearchWithResults/SellDomainNameSearchWithResults.vue +4 -0
package/package.json
CHANGED
|
@@ -97,20 +97,11 @@ export default {
|
|
|
97
97
|
required: false,
|
|
98
98
|
default: false,
|
|
99
99
|
},
|
|
100
|
-
requiredMessage: {
|
|
101
|
-
type: String,
|
|
102
|
-
required: false,
|
|
103
|
-
default: 'Please fill in this field.',
|
|
104
|
-
},
|
|
105
100
|
},
|
|
106
101
|
methods: {
|
|
107
|
-
input(modelValue
|
|
102
|
+
input(modelValue) {
|
|
108
103
|
this.$emit('update:modelValue', modelValue);
|
|
109
104
|
this.$emit('input', modelValue);
|
|
110
|
-
|
|
111
|
-
if (event?.target) {
|
|
112
|
-
event.target.setCustomValidity('');
|
|
113
|
-
}
|
|
114
105
|
},
|
|
115
106
|
keyup(modelValue) {
|
|
116
107
|
this.$emit('keyup', modelValue);
|
|
@@ -73,8 +73,7 @@
|
|
|
73
73
|
},
|
|
74
74
|
]"
|
|
75
75
|
class="tw-text-grayscale-600 tw-box-border tw-w-full tw-text-base tw-px-4 tw-border tw-border-solid focus:tw-outline-none tw-transition-colors tw-duration-300 tw-ease-out tw-shadow-inner"
|
|
76
|
-
@
|
|
77
|
-
@input.stop="input($event.target.value, $event)"
|
|
76
|
+
@input.stop="input($event.target.value)"
|
|
78
77
|
@keyup.stop="keyup($event.target.value)"
|
|
79
78
|
@keydown.stop="keydown($event.target.value, $event)"
|
|
80
79
|
@focus="focus($event.target.value)"
|
|
@@ -152,9 +151,6 @@ export default {
|
|
|
152
151
|
this.$emit('on-clear-confirmation');
|
|
153
152
|
}
|
|
154
153
|
},
|
|
155
|
-
setValidationMessage(event) {
|
|
156
|
-
event.target.setCustomValidity(this.requiredMessage);
|
|
157
|
-
},
|
|
158
154
|
},
|
|
159
155
|
};
|
|
160
156
|
</script>
|
|
@@ -196,6 +196,7 @@
|
|
|
196
196
|
:display-result-limit="4"
|
|
197
197
|
:domain-search-location="sitePublishedModal"
|
|
198
198
|
@on-change-search="onSearchTextChanged"
|
|
199
|
+
@on-buy-now-click="onBuyNowClick"
|
|
199
200
|
/>
|
|
200
201
|
</div>
|
|
201
202
|
<Button
|
|
@@ -489,7 +490,7 @@ export default {
|
|
|
489
490
|
this.$emit('on-hide-domain-modal');
|
|
490
491
|
},
|
|
491
492
|
onCopyUrlClick() {
|
|
492
|
-
this.$emit('copy-url-
|
|
493
|
+
this.$emit('copy-url-clicked');
|
|
493
494
|
},
|
|
494
495
|
onSlugChanged(e) {
|
|
495
496
|
this.searchText = e;
|
|
@@ -509,6 +510,7 @@ export default {
|
|
|
509
510
|
},
|
|
510
511
|
onSearchTextChanged(val) {
|
|
511
512
|
this.searchText = val;
|
|
513
|
+
this.$emit('on-change-search', val);
|
|
512
514
|
},
|
|
513
515
|
onSelectPurchasedDomain(newVal) {
|
|
514
516
|
this.selectedCustomDomain = newVal;
|
|
@@ -524,6 +526,9 @@ export default {
|
|
|
524
526
|
onSellDomainNameListCloseModal() {
|
|
525
527
|
this.$emit('on-hide-domain-modal');
|
|
526
528
|
},
|
|
529
|
+
onBuyNowClick() {
|
|
530
|
+
this.$emit('on-buy-now-clicked');
|
|
531
|
+
},
|
|
527
532
|
async searchDomainName(isUserTriggered) {
|
|
528
533
|
this.isLoading = true;
|
|
529
534
|
let searchSlug = '';
|
|
@@ -114,6 +114,7 @@ export default {
|
|
|
114
114
|
if (typeof this.domainSearchLocation !== 'undefined') {
|
|
115
115
|
request.domainSearchLocation = this.domainSearchLocation;
|
|
116
116
|
}
|
|
117
|
+
this.$emit('on-buy-now-click');
|
|
117
118
|
window.dispatchEvent(
|
|
118
119
|
new CustomEvent(Events.DomainSelectedEvent, {
|
|
119
120
|
detail: request,
|
package/src/experiences/components/SellDomainNameSearchResult/SellDomainNameListSearchResult.vue
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
:load-more-domains-button-text="loadMoreDomainsButtonText"
|
|
26
26
|
:domain-search-location="domainSearchLocation"
|
|
27
27
|
@load-more-domains="onLoadMoreDomains"
|
|
28
|
+
@on-buy-now-click="onBuyNowClick"
|
|
28
29
|
/>
|
|
29
30
|
<div v-else-if="shouldShowDomainNameNotFound" class="tw-flex tw-justify-center tw-text-center">
|
|
30
31
|
Sorry, we couldn't find any domain for "{{ previousSearchText }}".
|
|
@@ -145,6 +146,9 @@ export default {
|
|
|
145
146
|
window.dispatchEvent(new CustomEvent(Events.DomainLoadMoreEvent));
|
|
146
147
|
this.domainNameItemsInView += this.domainNameItemsPerPage;
|
|
147
148
|
},
|
|
149
|
+
onBuyNowClick() {
|
|
150
|
+
this.$emit('on-buy-now-click');
|
|
151
|
+
},
|
|
148
152
|
resetDomainNameItemsInView() {
|
|
149
153
|
this.domainNameItemsInView = this.domainNameItemsPerPage;
|
|
150
154
|
},
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
:domain-name-items-per-page="domainNameItemsPerPage"
|
|
21
21
|
:load-more-domains-button-text="loadMoreDomainsButtonText"
|
|
22
22
|
:domain-search-location="domainSearchLocation"
|
|
23
|
+
@on-buy-now-click="onBuyNowClick"
|
|
23
24
|
/>
|
|
24
25
|
</div>
|
|
25
26
|
</template>
|
|
@@ -170,6 +171,9 @@ export default {
|
|
|
170
171
|
this.isBusy = false;
|
|
171
172
|
}
|
|
172
173
|
},
|
|
174
|
+
onBuyNowClick() {
|
|
175
|
+
this.$emit('on-buy-now-click');
|
|
176
|
+
},
|
|
173
177
|
cleanText(inputText) {
|
|
174
178
|
// In this function, we use the Unicode property escapes \p{L} and \p{N} to match any Unicode letters (characters from various scripts) and Unicode numbers, respectively.
|
|
175
179
|
const cleanedText = inputText.replace(/[^\p{L}\p{N}\-.]+/gu, '');
|