@pitcher/canvas-ui 2025.12.17-73332 → 2025.12.18-104531-beta
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/canvas-ui.css +17 -17
- package/canvas-ui.js +17 -8
- package/canvas-ui.js.map +1 -1
- package/package.json +1 -1
package/canvas-ui.css
CHANGED
|
@@ -551,13 +551,13 @@ swiper-container::part(pagination) {
|
|
|
551
551
|
line-height: 20px;
|
|
552
552
|
letter-spacing: 0.25px;
|
|
553
553
|
color: var(--ad430d74);
|
|
554
|
-
}[data-v-
|
|
554
|
+
}[data-v-c0fccff6] .ais-SearchBox {
|
|
555
555
|
margin: 0;
|
|
556
556
|
}
|
|
557
|
-
[data-v-
|
|
557
|
+
[data-v-c0fccff6] .ais-SearchBox-submit,[data-v-c0fccff6] .ais-SearchBox-reset {
|
|
558
558
|
display: none;
|
|
559
559
|
}
|
|
560
|
-
.admin-search[data-v-
|
|
560
|
+
.admin-search[data-v-c0fccff6] .ais-SearchBox-reset {
|
|
561
561
|
display: block !important;
|
|
562
562
|
position: absolute !important;
|
|
563
563
|
right: 12px !important;
|
|
@@ -571,17 +571,17 @@ swiper-container::part(pagination) {
|
|
|
571
571
|
font-size: 16px !important;
|
|
572
572
|
z-index: 10 !important;
|
|
573
573
|
}
|
|
574
|
-
.admin-search[data-v-
|
|
574
|
+
.admin-search[data-v-c0fccff6] .ais-SearchBox-reset:hover {
|
|
575
575
|
color: var(--p-text2) !important;
|
|
576
576
|
}
|
|
577
|
-
.admin-search[data-v-
|
|
577
|
+
.admin-search[data-v-c0fccff6] .ais-SearchBox-reset:focus {
|
|
578
578
|
outline: none !important;
|
|
579
579
|
color: var(--p-primary) !important;
|
|
580
580
|
}
|
|
581
|
-
.admin-search[data-v-
|
|
581
|
+
.admin-search[data-v-c0fccff6] .ais-SearchBox-input {
|
|
582
582
|
padding-right: 40px !important;
|
|
583
583
|
}
|
|
584
|
-
[data-v-
|
|
584
|
+
[data-v-c0fccff6] .ais-SearchBox-input {
|
|
585
585
|
width: 100%;
|
|
586
586
|
padding: 12px 16px 12px 40px;
|
|
587
587
|
border: 1px solid var(--p-primary4);
|
|
@@ -590,39 +590,39 @@ swiper-container::part(pagination) {
|
|
|
590
590
|
background-color: var(--p-base);
|
|
591
591
|
transition: border-color 0.2s ease;
|
|
592
592
|
}
|
|
593
|
-
[data-v-
|
|
593
|
+
[data-v-c0fccff6] .ais-SearchBox-input:focus {
|
|
594
594
|
outline: none;
|
|
595
595
|
border-color: var(--p-primary);
|
|
596
596
|
box-shadow: 0 0 0 3px var(--p-primary5);
|
|
597
597
|
}
|
|
598
|
-
[data-v-
|
|
598
|
+
[data-v-c0fccff6] .ais-SearchBox-input::placeholder {
|
|
599
599
|
color: var(--p-text3);
|
|
600
600
|
font-size: 14px;
|
|
601
601
|
}
|
|
602
|
-
.overflow-y-auto[data-v-
|
|
602
|
+
.overflow-y-auto[data-v-c0fccff6] {
|
|
603
603
|
scrollbar-width: thin;
|
|
604
604
|
scrollbar-color: var(--p-border2) var(--p-surface2);
|
|
605
605
|
}
|
|
606
|
-
.overflow-y-auto[data-v-
|
|
606
|
+
.overflow-y-auto[data-v-c0fccff6]::-webkit-scrollbar {
|
|
607
607
|
width: 6px;
|
|
608
608
|
}
|
|
609
|
-
.overflow-y-auto[data-v-
|
|
609
|
+
.overflow-y-auto[data-v-c0fccff6]::-webkit-scrollbar-track {
|
|
610
610
|
background: var(--p-surface2);
|
|
611
611
|
}
|
|
612
|
-
.overflow-y-auto[data-v-
|
|
612
|
+
.overflow-y-auto[data-v-c0fccff6]::-webkit-scrollbar-thumb {
|
|
613
613
|
background-color: var(--p-border2);
|
|
614
614
|
border-radius: 3px;
|
|
615
615
|
}
|
|
616
|
-
.overflow-y-auto[data-v-
|
|
616
|
+
.overflow-y-auto[data-v-c0fccff6]::-webkit-scrollbar-thumb:hover {
|
|
617
617
|
background-color: var(--p-text3);
|
|
618
618
|
}
|
|
619
|
-
button[data-v-
|
|
619
|
+
button[data-v-c0fccff6]:hover {
|
|
620
620
|
transition: all 0.2s ease;
|
|
621
621
|
}
|
|
622
|
-
button[data-v-
|
|
622
|
+
button[data-v-c0fccff6]:focus {
|
|
623
623
|
outline: none;
|
|
624
624
|
}
|
|
625
|
-
[data-v-
|
|
625
|
+
[data-v-c0fccff6] mark,[data-v-c0fccff6] em {
|
|
626
626
|
font-weight: bold;
|
|
627
627
|
font-style: normal;
|
|
628
628
|
}
|
package/canvas-ui.js
CHANGED
|
@@ -79751,6 +79751,7 @@ const _sfc_main$6C = /* @__PURE__ */ defineComponent({
|
|
|
79751
79751
|
);
|
|
79752
79752
|
const editingField = ref(null);
|
|
79753
79753
|
const showTagsComponent = ref(!props.showKeepAsIsPlaceholder);
|
|
79754
|
+
const initialExpiresAtOption = ref(props.modelValue.expiresAtOption);
|
|
79754
79755
|
const labels = {
|
|
79755
79756
|
sharing: t("canvasUI.browserApp.uploadFilesModal.sharing.label"),
|
|
79756
79757
|
tags: t("canvasUI.browserApp.uploadFilesModal.tags.label"),
|
|
@@ -79772,6 +79773,9 @@ const _sfc_main$6C = /* @__PURE__ */ defineComponent({
|
|
|
79772
79773
|
{ value: "expired" /* Expired */, label: t("canvasUI.browserApp.uploadFilesModal.expiresAt.options.expired") }
|
|
79773
79774
|
];
|
|
79774
79775
|
if (isFileExpirationMandatory.value) {
|
|
79776
|
+
if (initialExpiresAtOption.value === "never" /* Never */ || initialExpiresAtOption.value === null || initialExpiresAtOption.value === void 0) {
|
|
79777
|
+
return allOptions;
|
|
79778
|
+
}
|
|
79775
79779
|
return allOptions.filter((option) => option.value !== "never" /* Never */);
|
|
79776
79780
|
}
|
|
79777
79781
|
return allOptions;
|
|
@@ -95114,10 +95118,21 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
|
|
|
95114
95118
|
canvas: canvasFilters,
|
|
95115
95119
|
content: contentFilters
|
|
95116
95120
|
});
|
|
95121
|
+
if (query.trim() !== searchQuery.value.trim()) {
|
|
95122
|
+
isSearching.value = false;
|
|
95123
|
+
return;
|
|
95124
|
+
}
|
|
95117
95125
|
contentResults.value = results.content?.hits || [];
|
|
95118
95126
|
canvasResults.value = results.canvas?.hits || [];
|
|
95119
95127
|
selectedResultIndex.value = -1;
|
|
95120
95128
|
searchError.value = null;
|
|
95129
|
+
if (query.trim().length >= 2) {
|
|
95130
|
+
if (skipNextSuggestionFetch.value) {
|
|
95131
|
+
skipNextSuggestionFetch.value = false;
|
|
95132
|
+
} else {
|
|
95133
|
+
fetchQuerySuggestions(query.trim());
|
|
95134
|
+
}
|
|
95135
|
+
}
|
|
95121
95136
|
const totalResults = contentResults.value.length + canvasResults.value.length;
|
|
95122
95137
|
trackAlgoliaSearchPerformed(query.trim(), totalResults);
|
|
95123
95138
|
if (totalResults === 0) {
|
|
@@ -95166,13 +95181,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
|
|
|
95166
95181
|
if (validatedQuery.trim()) {
|
|
95167
95182
|
showRecentView.value = false;
|
|
95168
95183
|
hasSearchCompleted.value = false;
|
|
95169
|
-
if (validatedQuery.trim().length
|
|
95170
|
-
if (skipNextSuggestionFetch.value) {
|
|
95171
|
-
skipNextSuggestionFetch.value = false;
|
|
95172
|
-
} else {
|
|
95173
|
-
fetchQuerySuggestions(validatedQuery);
|
|
95174
|
-
}
|
|
95175
|
-
} else {
|
|
95184
|
+
if (validatedQuery.trim().length < 2) {
|
|
95176
95185
|
querySuggestions.value = [];
|
|
95177
95186
|
selectedSuggestionIndex.value = -1;
|
|
95178
95187
|
}
|
|
@@ -96140,7 +96149,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
|
|
|
96140
96149
|
}
|
|
96141
96150
|
});
|
|
96142
96151
|
|
|
96143
|
-
const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-
|
|
96152
|
+
const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-c0fccff6"]]);
|
|
96144
96153
|
|
|
96145
96154
|
const BulletListExtended = BulletList.extend({
|
|
96146
96155
|
addOptions() {
|