@pitcher/canvas-ui 2026.1.13-143718-beta → 2026.1.14-092938-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 +71 -71
- package/canvas-ui.js +80 -71
- package/canvas-ui.js.map +1 -1
- package/lib/apps/browser/stores/api.d.ts +0 -18
- package/lib/apps/canvas-builder/composables/useCrmShape.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCrmShapeWithSectionContext.d.ts +1 -2
- package/package.json +1 -1
package/canvas-ui.css
CHANGED
|
@@ -925,25 +925,25 @@ button[data-v-da2357d4]:focus {
|
|
|
925
925
|
}.c-users-groups-access-manage__select[data-v-fe2300a1] {
|
|
926
926
|
width: 180px;
|
|
927
927
|
}
|
|
928
|
-
.panel-title[data-v-
|
|
929
|
-
color: var(--
|
|
928
|
+
.panel-title[data-v-05db071e] {
|
|
929
|
+
color: var(--7e857d3a);
|
|
930
930
|
letter-spacing: 0.15px;
|
|
931
931
|
}
|
|
932
|
-
.base[data-v-
|
|
933
|
-
background-color: var(--
|
|
932
|
+
.base[data-v-05db071e] {
|
|
933
|
+
background-color: var(--7e7d3ede);
|
|
934
934
|
}
|
|
935
|
-
.selection-panel-list-item[data-v-
|
|
936
|
-
background: var(--
|
|
935
|
+
.selection-panel-list-item[data-v-05db071e] {
|
|
936
|
+
background: var(--e1e1c7fe);
|
|
937
937
|
}
|
|
938
|
-
.selection-panel-list-handle[data-v-
|
|
939
|
-
color: var(--
|
|
938
|
+
.selection-panel-list-handle[data-v-05db071e] {
|
|
939
|
+
color: var(--e1e1c804);
|
|
940
940
|
}
|
|
941
|
-
.title[data-v-
|
|
942
|
-
color: var(--
|
|
941
|
+
.title[data-v-05db071e] {
|
|
942
|
+
color: var(--7e857d3a);
|
|
943
943
|
letter-spacing: 0.4px;
|
|
944
944
|
}
|
|
945
|
-
.description[data-v-
|
|
946
|
-
color: var(--
|
|
945
|
+
.description[data-v-05db071e] {
|
|
946
|
+
color: var(--e1e1c804);
|
|
947
947
|
}
|
|
948
948
|
.content-selector__section-title[data-v-2e7377ec] {
|
|
949
949
|
font-size: 18px;
|
|
@@ -958,7 +958,7 @@ button[data-v-da2357d4]:focus {
|
|
|
958
958
|
background-color: var(--49a7913e);
|
|
959
959
|
}
|
|
960
960
|
|
|
961
|
-
[data-v-
|
|
961
|
+
[data-v-ba7b39ff] .dynamic-value-tree-select__trigger {
|
|
962
962
|
margin-right: -16px;
|
|
963
963
|
}
|
|
964
964
|
.ai-preview-container[data-v-2a9cccf6] {
|
|
@@ -1604,65 +1604,65 @@ to {
|
|
|
1604
1604
|
object-fit: var(--1d3ef4cb);
|
|
1605
1605
|
height: 100%;
|
|
1606
1606
|
}
|
|
1607
|
-
.canvas-text[data-v-
|
|
1607
|
+
.canvas-text[data-v-73a884c3] p {
|
|
1608
1608
|
margin-bottom: 20px;
|
|
1609
1609
|
}
|
|
1610
|
-
[data-v-
|
|
1610
|
+
[data-v-73a884c3] .ProseMirror:focus {
|
|
1611
1611
|
outline: none;
|
|
1612
1612
|
}
|
|
1613
|
-
.cb-text-component[data-v-
|
|
1614
|
-
.c-text__rich-text-editor[data-v-
|
|
1615
|
-
.cb-text-component[data-v-
|
|
1616
|
-
.c-text__rich-text-editor[data-v-
|
|
1617
|
-
.cb-text-component[data-v-
|
|
1618
|
-
.c-text__rich-text-editor[data-v-
|
|
1613
|
+
.cb-text-component[data-v-73a884c3] p,
|
|
1614
|
+
.c-text__rich-text-editor[data-v-73a884c3] p,
|
|
1615
|
+
.cb-text-component[data-v-73a884c3] ol,
|
|
1616
|
+
.c-text__rich-text-editor[data-v-73a884c3] ol,
|
|
1617
|
+
.cb-text-component[data-v-73a884c3] ul,
|
|
1618
|
+
.c-text__rich-text-editor[data-v-73a884c3] ul {
|
|
1619
1619
|
margin: 0 0 1em 0;
|
|
1620
1620
|
min-height: 1.6em;
|
|
1621
1621
|
}
|
|
1622
|
-
.cb-text-component[data-v-
|
|
1623
|
-
.c-text__rich-text-editor[data-v-
|
|
1624
|
-
.cb-text-component[data-v-
|
|
1625
|
-
.c-text__rich-text-editor[data-v-
|
|
1622
|
+
.cb-text-component[data-v-73a884c3] ol,
|
|
1623
|
+
.c-text__rich-text-editor[data-v-73a884c3] ol,
|
|
1624
|
+
.cb-text-component[data-v-73a884c3] ul,
|
|
1625
|
+
.c-text__rich-text-editor[data-v-73a884c3] ul {
|
|
1626
1626
|
padding: 0 0 0 1em;
|
|
1627
1627
|
}
|
|
1628
|
-
.cb-text-component[data-v-
|
|
1629
|
-
.c-text__rich-text-editor[data-v-
|
|
1630
|
-
.cb-text-component[data-v-
|
|
1631
|
-
.c-text__rich-text-editor[data-v-
|
|
1632
|
-
.cb-text-component[data-v-
|
|
1633
|
-
.c-text__rich-text-editor[data-v-
|
|
1628
|
+
.cb-text-component[data-v-73a884c3] p:last-of-type,
|
|
1629
|
+
.c-text__rich-text-editor[data-v-73a884c3] p:last-of-type,
|
|
1630
|
+
.cb-text-component[data-v-73a884c3] ol:last-of-type,
|
|
1631
|
+
.c-text__rich-text-editor[data-v-73a884c3] ol:last-of-type,
|
|
1632
|
+
.cb-text-component[data-v-73a884c3] ul:last-of-type,
|
|
1633
|
+
.c-text__rich-text-editor[data-v-73a884c3] ul:last-of-type {
|
|
1634
1634
|
margin-bottom: 0em;
|
|
1635
1635
|
}
|
|
1636
|
-
.cb-text-component[data-v-
|
|
1637
|
-
.c-text__rich-text-editor[data-v-
|
|
1638
|
-
.cb-text-component[data-v-
|
|
1639
|
-
.c-text__rich-text-editor[data-v-
|
|
1640
|
-
.cb-text-component[data-v-
|
|
1641
|
-
.c-text__rich-text-editor[data-v-
|
|
1642
|
-
.cb-text-component[data-v-
|
|
1643
|
-
.c-text__rich-text-editor[data-v-
|
|
1644
|
-
.cb-text-component[data-v-
|
|
1645
|
-
.c-text__rich-text-editor[data-v-
|
|
1646
|
-
.cb-text-component[data-v-
|
|
1647
|
-
.c-text__rich-text-editor[data-v-
|
|
1636
|
+
.cb-text-component[data-v-73a884c3] p:last-of-type + ol,
|
|
1637
|
+
.c-text__rich-text-editor[data-v-73a884c3] p:last-of-type + ol,
|
|
1638
|
+
.cb-text-component[data-v-73a884c3] p:last-of-type + ul,
|
|
1639
|
+
.c-text__rich-text-editor[data-v-73a884c3] p:last-of-type + ul,
|
|
1640
|
+
.cb-text-component[data-v-73a884c3] ol:last-of-type + p,
|
|
1641
|
+
.c-text__rich-text-editor[data-v-73a884c3] ol:last-of-type + p,
|
|
1642
|
+
.cb-text-component[data-v-73a884c3] ol:last-of-type + ul,
|
|
1643
|
+
.c-text__rich-text-editor[data-v-73a884c3] ol:last-of-type + ul,
|
|
1644
|
+
.cb-text-component[data-v-73a884c3] ul:last-of-type + p,
|
|
1645
|
+
.c-text__rich-text-editor[data-v-73a884c3] ul:last-of-type + p,
|
|
1646
|
+
.cb-text-component[data-v-73a884c3] ul:last-of-type + ol,
|
|
1647
|
+
.c-text__rich-text-editor[data-v-73a884c3] ul:last-of-type + ol {
|
|
1648
1648
|
margin-top: 1em;
|
|
1649
1649
|
}
|
|
1650
|
-
.cb-text-component[data-v-
|
|
1651
|
-
.c-text__rich-text-editor[data-v-
|
|
1652
|
-
.cb-text-component[data-v-
|
|
1653
|
-
.c-text__rich-text-editor[data-v-
|
|
1654
|
-
.cb-text-component[data-v-
|
|
1655
|
-
.c-text__rich-text-editor[data-v-
|
|
1656
|
-
.cb-text-component[data-v-
|
|
1657
|
-
.c-text__rich-text-editor[data-v-
|
|
1650
|
+
.cb-text-component[data-v-73a884c3] ol > li ol,
|
|
1651
|
+
.c-text__rich-text-editor[data-v-73a884c3] ol > li ol,
|
|
1652
|
+
.cb-text-component[data-v-73a884c3] ol > li ul,
|
|
1653
|
+
.c-text__rich-text-editor[data-v-73a884c3] ol > li ul,
|
|
1654
|
+
.cb-text-component[data-v-73a884c3] ul > li ol,
|
|
1655
|
+
.c-text__rich-text-editor[data-v-73a884c3] ul > li ol,
|
|
1656
|
+
.cb-text-component[data-v-73a884c3] ul > li ul,
|
|
1657
|
+
.c-text__rich-text-editor[data-v-73a884c3] ul > li ul {
|
|
1658
1658
|
margin-top: 0 !important;
|
|
1659
1659
|
}
|
|
1660
1660
|
|
|
1661
1661
|
/* Sortable table styles */
|
|
1662
|
-
.canvas-text[data-v-
|
|
1662
|
+
.canvas-text[data-v-73a884c3] .sortable-header {
|
|
1663
1663
|
position: relative;
|
|
1664
1664
|
}
|
|
1665
|
-
.canvas-text[data-v-
|
|
1665
|
+
.canvas-text[data-v-73a884c3] .sortable-header::after {
|
|
1666
1666
|
content: "";
|
|
1667
1667
|
position: absolute;
|
|
1668
1668
|
right: 8px;
|
|
@@ -1670,22 +1670,22 @@ to {
|
|
|
1670
1670
|
transform: translateY(-50%);
|
|
1671
1671
|
opacity: 0.5;
|
|
1672
1672
|
}
|
|
1673
|
-
.canvas-text[data-v-
|
|
1673
|
+
.canvas-text[data-v-73a884c3] .sortable-header:hover::after {
|
|
1674
1674
|
content: "↕";
|
|
1675
1675
|
opacity: 0.7;
|
|
1676
1676
|
}
|
|
1677
|
-
.canvas-text[data-v-
|
|
1677
|
+
.canvas-text[data-v-73a884c3] .sortable-header.sorted-asc::after {
|
|
1678
1678
|
content: "↑";
|
|
1679
1679
|
opacity: 1;
|
|
1680
1680
|
}
|
|
1681
|
-
.canvas-text[data-v-
|
|
1681
|
+
.canvas-text[data-v-73a884c3] .sortable-header.sorted-desc::after {
|
|
1682
1682
|
content: "↓";
|
|
1683
1683
|
opacity: 1;
|
|
1684
1684
|
}
|
|
1685
|
-
.canvas-text[data-v-
|
|
1685
|
+
.canvas-text[data-v-73a884c3] .sortable-header.sorted-original::after {
|
|
1686
1686
|
content: "";
|
|
1687
1687
|
}
|
|
1688
|
-
.canvas-text[data-v-
|
|
1688
|
+
.canvas-text[data-v-73a884c3] .sortable-header.sorted-original:hover::after {
|
|
1689
1689
|
content: "↕";
|
|
1690
1690
|
opacity: 0.5;
|
|
1691
1691
|
}.cb-linkable-settings[data-v-4f5606e1] {
|
|
@@ -3074,36 +3074,36 @@ to {
|
|
|
3074
3074
|
}
|
|
3075
3075
|
.browser-list-item[data-v-8781de25] {
|
|
3076
3076
|
border-bottom: 1px solid var(--10ccf2df);
|
|
3077
|
-
}.breadcrumb-area[data-v-
|
|
3078
|
-
border: 1px solid var(--
|
|
3077
|
+
}.breadcrumb-area[data-v-fecebf5a] .n-button {
|
|
3078
|
+
border: 1px solid var(--c6ccac5c) !important;
|
|
3079
3079
|
}
|
|
3080
|
-
.content__breadcrumb__item.n-breadcrumb-item.n-breadcrumb-item[data-v-
|
|
3080
|
+
.content__breadcrumb__item.n-breadcrumb-item.n-breadcrumb-item[data-v-fecebf5a] .n-breadcrumb-item__link {
|
|
3081
3081
|
font-size: 18px;
|
|
3082
3082
|
line-height: 28px;
|
|
3083
3083
|
letter-spacing: 0.25px;
|
|
3084
3084
|
}
|
|
3085
|
-
.content__section-title[data-v-
|
|
3085
|
+
.content__section-title[data-v-fecebf5a] {
|
|
3086
3086
|
font-size: 18px;
|
|
3087
3087
|
line-height: 28px;
|
|
3088
3088
|
letter-spacing: 0.25px;
|
|
3089
|
-
color: var(--
|
|
3089
|
+
color: var(--3edbaaa2);
|
|
3090
3090
|
}
|
|
3091
|
-
.actions-toolbar[data-v-
|
|
3092
|
-
background-color: var(--
|
|
3091
|
+
.actions-toolbar[data-v-fecebf5a] {
|
|
3092
|
+
background-color: var(--c6ccac58);
|
|
3093
3093
|
}
|
|
3094
|
-
.actions-toolbar__nav[data-v-
|
|
3095
|
-
background: var(--
|
|
3094
|
+
.actions-toolbar__nav[data-v-fecebf5a] {
|
|
3095
|
+
background: var(--0f45ae31);
|
|
3096
3096
|
}
|
|
3097
|
-
.actions-toolbar_filters-divider[data-v-
|
|
3097
|
+
.actions-toolbar_filters-divider[data-v-fecebf5a] {
|
|
3098
3098
|
margin-left: 0;
|
|
3099
3099
|
margin-right: 8px;
|
|
3100
3100
|
height: 36px;
|
|
3101
3101
|
}
|
|
3102
|
-
.actions-toolbar_filters-clear[data-v-
|
|
3102
|
+
.actions-toolbar_filters-clear[data-v-fecebf5a] {
|
|
3103
3103
|
text-transform: none;
|
|
3104
3104
|
}
|
|
3105
|
-
.actions-toolbar__controls[data-v-
|
|
3106
|
-
background: var(--
|
|
3105
|
+
.actions-toolbar__controls[data-v-fecebf5a] {
|
|
3106
|
+
background: var(--0f45ae31);
|
|
3107
3107
|
}.is-even[data-v-8ac6d2e9] {
|
|
3108
3108
|
background: var(--d77d151a);
|
|
3109
3109
|
}
|
package/canvas-ui.js
CHANGED
|
@@ -88219,14 +88219,15 @@ async function crmQueryAdaptive(payload) {
|
|
|
88219
88219
|
} catch {
|
|
88220
88220
|
useSmartStore = false;
|
|
88221
88221
|
}
|
|
88222
|
-
console.log(`crmQueryAdaptive
|
|
88222
|
+
console.log(`[crmQueryAdaptive] Called query: `, query2);
|
|
88223
88223
|
if (useSmartStore) {
|
|
88224
88224
|
const fields = extractFieldsFromSoql(query2);
|
|
88225
88225
|
const objectName = extractObjectFromSoql(query2);
|
|
88226
88226
|
const smartQuery = convertSoqlToSmartQuery(query2);
|
|
88227
|
-
console.log(`
|
|
88227
|
+
console.log(`[crmSmartQuery] Called query: `, smartQuery);
|
|
88228
88228
|
const smartStoreResults = await crmSmartQuery({ query: smartQuery });
|
|
88229
88229
|
const records = transformSmartStoreResults(smartStoreResults, fields, objectName);
|
|
88230
|
+
console.log(`[SmartStore] Results: `, records);
|
|
88230
88231
|
return {
|
|
88231
88232
|
records,
|
|
88232
88233
|
totalSize: records.length
|
|
@@ -99252,6 +99253,25 @@ const INITIAL_CALL_STATE = {
|
|
|
99252
99253
|
};
|
|
99253
99254
|
|
|
99254
99255
|
const realTimeExtraCrmShape = ref({});
|
|
99256
|
+
function buildSchemaFromData(data) {
|
|
99257
|
+
if (data === null || data === void 0) {
|
|
99258
|
+
return null;
|
|
99259
|
+
}
|
|
99260
|
+
if (Array.isArray(data)) {
|
|
99261
|
+
if (data.length === 0) {
|
|
99262
|
+
return [];
|
|
99263
|
+
}
|
|
99264
|
+
return [buildSchemaFromData(data[0])];
|
|
99265
|
+
}
|
|
99266
|
+
if (typeof data === "object") {
|
|
99267
|
+
const schema = {};
|
|
99268
|
+
for (const [key, value] of Object.entries(data)) {
|
|
99269
|
+
schema[key] = buildSchemaFromData(value);
|
|
99270
|
+
}
|
|
99271
|
+
return schema;
|
|
99272
|
+
}
|
|
99273
|
+
return null;
|
|
99274
|
+
}
|
|
99255
99275
|
function isEmptyValue(value) {
|
|
99256
99276
|
return !value || typeof value === "string" && value.trim() === "";
|
|
99257
99277
|
}
|
|
@@ -99271,6 +99291,7 @@ function removeEmptyValues(obj) {
|
|
|
99271
99291
|
return result;
|
|
99272
99292
|
}
|
|
99273
99293
|
function useCrmShape() {
|
|
99294
|
+
const { activeCanvas } = useCanvas$1();
|
|
99274
99295
|
const call = useLocalStorage(CALL_STORAGE_KEY, INITIAL_CALL_STATE, {
|
|
99275
99296
|
deep: true,
|
|
99276
99297
|
listenToStorageChanges: true
|
|
@@ -99287,6 +99308,13 @@ function useCrmShape() {
|
|
|
99287
99308
|
"myUser",
|
|
99288
99309
|
computed(() => null)
|
|
99289
99310
|
);
|
|
99311
|
+
const pitcherDataSchema = computed(() => {
|
|
99312
|
+
const pitcherData = activeCanvas.value?.context?.pitcher_data;
|
|
99313
|
+
if (!pitcherData || typeof pitcherData !== "object") {
|
|
99314
|
+
return {};
|
|
99315
|
+
}
|
|
99316
|
+
return { pitcher_data: buildSchemaFromData(pitcherData) };
|
|
99317
|
+
});
|
|
99290
99318
|
function getDefaultCrmShape({
|
|
99291
99319
|
accountName = "",
|
|
99292
99320
|
myUser: myUser2 = null,
|
|
@@ -99325,7 +99353,9 @@ function useCrmShape() {
|
|
|
99325
99353
|
showDefault: !!launchDarkly.value.enable_default_crm_shape
|
|
99326
99354
|
}),
|
|
99327
99355
|
isEmpty(realTimeExtraCrmShape.value) ? {} : realTimeExtraCrmShape.value,
|
|
99328
|
-
isEmpty(extraCrmShape.value) ? {} : extraCrmShape.value
|
|
99356
|
+
isEmpty(extraCrmShape.value) ? {} : extraCrmShape.value,
|
|
99357
|
+
// Derive schema from actual pitcher_data in canvas context
|
|
99358
|
+
isEmpty(pitcherDataSchema.value) ? {} : pitcherDataSchema.value
|
|
99329
99359
|
);
|
|
99330
99360
|
});
|
|
99331
99361
|
return {
|
|
@@ -109586,11 +109616,9 @@ const _sfc_main$4U = /* @__PURE__ */ defineComponent({
|
|
|
109586
109616
|
function filterByItemVisibility(items) {
|
|
109587
109617
|
const isAdmin = state$3.appName.value === "admin";
|
|
109588
109618
|
return items.reduce((acc, item) => {
|
|
109589
|
-
const hasCountData = "files_count" in item || "folders_count" in item || "available_files_count" in item || "available_folders_count" in item;
|
|
109590
109619
|
const filesCount = item.available_files_count ?? item.files_count ?? 0;
|
|
109591
109620
|
const foldersCount = item.available_folders_count ?? item.folders_count ?? 0;
|
|
109592
|
-
const
|
|
109593
|
-
const shouldHideItem = item.name?.startsWith(".") || isFolderEmpty || item.folder?.file_thumbnail_urls?.length === 0;
|
|
109621
|
+
const shouldHideItem = item.name?.startsWith(".") || item.type == "folder" && filesCount === 0 && foldersCount === 0 || item.folder?.file_thumbnail_urls?.length === 0;
|
|
109594
109622
|
if (!shouldHideItem && !isAdmin || isAdmin) {
|
|
109595
109623
|
acc.push({
|
|
109596
109624
|
...item,
|
|
@@ -109967,8 +109995,7 @@ const getInitialState$1 = () => ({
|
|
|
109967
109995
|
// instance metadata template fields dictionary
|
|
109968
109996
|
searchQuery: "",
|
|
109969
109997
|
searchMetadataFilters: {},
|
|
109970
|
-
filteredItems: []
|
|
109971
|
-
folderCache: {}
|
|
109998
|
+
filteredItems: []
|
|
109972
109999
|
});
|
|
109973
110000
|
const state$2 = reactive(getInitialState$1());
|
|
109974
110001
|
const fileOrderedStatuses = [FileStatusEnum.PENDING, FileStatusEnum.VIEWABLE];
|
|
@@ -110053,15 +110080,6 @@ function updateFolderState(folder) {
|
|
|
110053
110080
|
state$2.folders = folder.folders;
|
|
110054
110081
|
state$2.files = folder.files;
|
|
110055
110082
|
state$2.currentFolderPath = folder.path;
|
|
110056
|
-
folder.folders.forEach((subfolder) => {
|
|
110057
|
-
state$2.folderCache[subfolder.id] = {
|
|
110058
|
-
files_count: subfolder.files_count ?? 0,
|
|
110059
|
-
folders_count: subfolder.folders_count ?? 0,
|
|
110060
|
-
available_files_count: subfolder.available_files_count,
|
|
110061
|
-
available_folders_count: subfolder.available_folders_count,
|
|
110062
|
-
timestamp: Date.now()
|
|
110063
|
-
};
|
|
110064
|
-
});
|
|
110065
110083
|
if (useAppStore$4().showFilteredResults.value) {
|
|
110066
110084
|
const filesById = new Map(state$2.files.map((file) => [file.id, file]));
|
|
110067
110085
|
state$2.filteredItems = state$2.filteredItems.map((filteredItem) => {
|
|
@@ -110326,24 +110344,7 @@ function init({
|
|
|
110326
110344
|
}
|
|
110327
110345
|
let filteredFolders = [];
|
|
110328
110346
|
if (!hasMetadataFilters && foldersResponse.status === "fulfilled" && foldersResponse.value) {
|
|
110329
|
-
|
|
110330
|
-
filteredFolders = foldersFromSearch.map((folder) => {
|
|
110331
|
-
const cached = state$2.folderCache[folder.id];
|
|
110332
|
-
if (cached) {
|
|
110333
|
-
const result = {
|
|
110334
|
-
...folder,
|
|
110335
|
-
type: "folder"
|
|
110336
|
-
};
|
|
110337
|
-
if (cached.files_count !== void 0) result.files_count = cached.files_count;
|
|
110338
|
-
if (cached.folders_count !== void 0) result.folders_count = cached.folders_count;
|
|
110339
|
-
if (cached.available_files_count !== void 0) result.available_files_count = cached.available_files_count;
|
|
110340
|
-
if (cached.available_folders_count !== void 0) {
|
|
110341
|
-
result.available_folders_count = cached.available_folders_count;
|
|
110342
|
-
}
|
|
110343
|
-
return result;
|
|
110344
|
-
}
|
|
110345
|
-
return { ...folder, type: "folder" };
|
|
110346
|
-
});
|
|
110347
|
+
filteredFolders = foldersResponse.value.results?.map((f) => ({ ...f, type: "folder" })) ?? [];
|
|
110347
110348
|
} else if (!hasMetadataFilters && !useAppStore$4().isLocalSearch.value) {
|
|
110348
110349
|
console.error(
|
|
110349
110350
|
"Failed to fetch folders:",
|
|
@@ -120824,7 +120825,7 @@ const _sfc_main$4k = /* @__PURE__ */ defineComponent({
|
|
|
120824
120825
|
|
|
120825
120826
|
function useCanvasContext() {
|
|
120826
120827
|
const { activeCanvas, isPrintDisplayMode, builderCache } = useCanvas$1();
|
|
120827
|
-
const { getDefaultCrmShape } = useCrmShape();
|
|
120828
|
+
const { crmShape, getDefaultCrmShape } = useCrmShape();
|
|
120828
120829
|
const myUser = inject(
|
|
120829
120830
|
"myUser",
|
|
120830
120831
|
computed(() => null)
|
|
@@ -120856,14 +120857,21 @@ function useCanvasContext() {
|
|
|
120856
120857
|
builderCache.value[sectionOverrideKey] = mergedCtx;
|
|
120857
120858
|
return mergedCtx;
|
|
120858
120859
|
};
|
|
120859
|
-
const
|
|
120860
|
-
const crmShapeWithSectionCtx = computed(() => {
|
|
120860
|
+
const fullContext = computed(() => {
|
|
120861
120861
|
const mergedCtx = getSectionCtx();
|
|
120862
|
-
|
|
120862
|
+
const defaultShape = getDefaultCrmShape({
|
|
120863
|
+
myUser: myUser.value,
|
|
120864
|
+
showDefault: true
|
|
120865
|
+
});
|
|
120866
|
+
return mergeWith({}, defaultShape, crmShape.value ?? {}, mergedCtx, (_objValue, srcValue) => {
|
|
120867
|
+
if (Array.isArray(srcValue)) {
|
|
120868
|
+
return srcValue;
|
|
120869
|
+
}
|
|
120870
|
+
return void 0;
|
|
120871
|
+
});
|
|
120863
120872
|
});
|
|
120864
120873
|
return {
|
|
120865
|
-
|
|
120866
|
-
crmShapeWithSectionCtx
|
|
120874
|
+
fullContext
|
|
120867
120875
|
};
|
|
120868
120876
|
}
|
|
120869
120877
|
|
|
@@ -120909,10 +120917,10 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
|
|
|
120909
120917
|
__name: "SelectionPanel",
|
|
120910
120918
|
setup(__props) {
|
|
120911
120919
|
useCssVars((_ctx) => ({
|
|
120912
|
-
"
|
|
120913
|
-
"
|
|
120914
|
-
"
|
|
120915
|
-
"
|
|
120920
|
+
"7e857d3a": unref(themeVars).text,
|
|
120921
|
+
"7e7d3ede": unref(themeVars).base,
|
|
120922
|
+
"e1e1c7fe": unref(themeVars).primary6,
|
|
120923
|
+
"e1e1c804": unref(themeVars).primary3
|
|
120916
120924
|
}));
|
|
120917
120925
|
const { t } = useI18n();
|
|
120918
120926
|
const { renderContentType, isFileExpired, isFileExpiring } = useFileDisplayHelpers();
|
|
@@ -120934,7 +120942,7 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
|
|
|
120934
120942
|
"launchDarkly",
|
|
120935
120943
|
computed(() => ({}))
|
|
120936
120944
|
);
|
|
120937
|
-
const {
|
|
120945
|
+
const { fullContext } = useCanvasContext();
|
|
120938
120946
|
const isCrmShapeEnabled = computed(() => launchDarkly.value?.enable_crm_shape_for_external_links ?? false);
|
|
120939
120947
|
const draggableItems = computed({
|
|
120940
120948
|
get: () => isDragNDropEnabled.value ? addedItems.value : selectedItems.value,
|
|
@@ -120949,7 +120957,7 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
|
|
|
120949
120957
|
function getParsedUrl(url) {
|
|
120950
120958
|
if (!url || !isCrmShapeEnabled.value) return url;
|
|
120951
120959
|
try {
|
|
120952
|
-
return renderTemplate(url,
|
|
120960
|
+
return renderTemplate(url, fullContext.value);
|
|
120953
120961
|
} catch (error) {
|
|
120954
120962
|
console.warn("Failed to parse template in external URL, using original URL:", error);
|
|
120955
120963
|
return url;
|
|
@@ -121253,7 +121261,7 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
|
|
|
121253
121261
|
}
|
|
121254
121262
|
});
|
|
121255
121263
|
|
|
121256
|
-
const SelectionPanel = /* @__PURE__ */ _export_sfc(_sfc_main$4j, [["__scopeId", "data-v-
|
|
121264
|
+
const SelectionPanel = /* @__PURE__ */ _export_sfc(_sfc_main$4j, [["__scopeId", "data-v-05db071e"]]);
|
|
121257
121265
|
|
|
121258
121266
|
const _hoisted_1$3q = { class: "flex justify-between gap-2 items-center truncate py-1" };
|
|
121259
121267
|
const _hoisted_2$2z = {
|
|
@@ -123785,13 +123793,13 @@ const _sfc_main$45 = /* @__PURE__ */ defineComponent({
|
|
|
123785
123793
|
computed(() => ({}))
|
|
123786
123794
|
);
|
|
123787
123795
|
const { crmShape } = useCrmShape();
|
|
123788
|
-
const {
|
|
123796
|
+
const { fullContext } = useCanvasContext();
|
|
123789
123797
|
const isCrmShapeEnabled = computed(() => launchDarkly.value?.enable_crm_shape_for_external_links ?? false);
|
|
123790
123798
|
const parsedUrl = computed(() => {
|
|
123791
123799
|
if (!url.value.trim()) return url.value;
|
|
123792
123800
|
if (!isCrmShapeEnabled.value) return url.value;
|
|
123793
123801
|
try {
|
|
123794
|
-
return renderTemplate(url.value,
|
|
123802
|
+
return renderTemplate(url.value, fullContext.value);
|
|
123795
123803
|
} catch (error) {
|
|
123796
123804
|
console.error("Error parsing URL template:", error);
|
|
123797
123805
|
return url.value;
|
|
@@ -123897,7 +123905,7 @@ const _sfc_main$45 = /* @__PURE__ */ defineComponent({
|
|
|
123897
123905
|
}
|
|
123898
123906
|
});
|
|
123899
123907
|
|
|
123900
|
-
const ExternalLinks = /* @__PURE__ */ _export_sfc(_sfc_main$45, [["__scopeId", "data-v-
|
|
123908
|
+
const ExternalLinks = /* @__PURE__ */ _export_sfc(_sfc_main$45, [["__scopeId", "data-v-ba7b39ff"]]);
|
|
123901
123909
|
|
|
123902
123910
|
const _hoisted_1$3d = { class: "mr-3 h-full" };
|
|
123903
123911
|
const _hoisted_2$2m = { class: "flex flex-col gap-3 mb-3" };
|
|
@@ -147983,7 +147991,7 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
|
|
|
147983
147991
|
} = useCanvas$1();
|
|
147984
147992
|
const { discardOverridesConfirmationOptions, getComponentOverrides } = useCanvasSectionOverrides();
|
|
147985
147993
|
const { getDerivedStyleFromFeatureFlags } = useComponentStyle(componentNode);
|
|
147986
|
-
const {
|
|
147994
|
+
const { fullContext } = useCanvasContext();
|
|
147987
147995
|
const { setContentSelectorMode } = useContentSelector();
|
|
147988
147996
|
const confirmation = useConfirmation();
|
|
147989
147997
|
const themeVars = useThemeVars();
|
|
@@ -148136,7 +148144,7 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
|
|
|
148136
148144
|
try {
|
|
148137
148145
|
return {
|
|
148138
148146
|
...value,
|
|
148139
|
-
external_url: renderTemplate(value.external_url,
|
|
148147
|
+
external_url: renderTemplate(value.external_url, fullContext.value)
|
|
148140
148148
|
};
|
|
148141
148149
|
} catch (error) {
|
|
148142
148150
|
console.warn("Failed to parse template in external URL, using original URL:", error);
|
|
@@ -148654,7 +148662,7 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
|
|
|
148654
148662
|
setCanvasMetadata,
|
|
148655
148663
|
isImpact
|
|
148656
148664
|
} = useCanvas$1();
|
|
148657
|
-
const {
|
|
148665
|
+
const { fullContext } = useCanvasContext();
|
|
148658
148666
|
const { coreRestApiAxios } = useCoreApi();
|
|
148659
148667
|
const { applyPrintModeToElement } = usePrintMode();
|
|
148660
148668
|
const { discardOverridesConfirmationOptions, getComponentOverrides } = useCanvasSectionOverrides();
|
|
@@ -148711,7 +148719,7 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
|
|
|
148711
148719
|
const memoizedModelValue = computed(() => getModelValue(computedTextProps.value.data?.content));
|
|
148712
148720
|
function getModelValue(value = "") {
|
|
148713
148721
|
if (!shouldInterpolate.value || !value.trim()) return value;
|
|
148714
|
-
return renderTemplate(value,
|
|
148722
|
+
return renderTemplate(value, fullContext.value);
|
|
148715
148723
|
}
|
|
148716
148724
|
const debouncedUpdateNodeData = debounce((data2, nodeId, sectionId) => {
|
|
148717
148725
|
return updateNodeData(data2, nodeId, sectionId);
|
|
@@ -148819,7 +148827,7 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
|
|
|
148819
148827
|
);
|
|
148820
148828
|
applyPrintModeToElement(contentElement.value, () => {
|
|
148821
148829
|
const content = computedTextProps.value.data?.content || "";
|
|
148822
|
-
return shouldInterpolate.value ? renderTemplate(content,
|
|
148830
|
+
return shouldInterpolate.value ? renderTemplate(content, fullContext.value) : content;
|
|
148823
148831
|
});
|
|
148824
148832
|
if (enableScaleContent && spanStyles) {
|
|
148825
148833
|
setTimeout(() => {
|
|
@@ -148931,7 +148939,7 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
|
|
|
148931
148939
|
}
|
|
148932
148940
|
});
|
|
148933
148941
|
|
|
148934
|
-
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$2h, [["__scopeId", "data-v-
|
|
148942
|
+
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$2h, [["__scopeId", "data-v-73a884c3"]]);
|
|
148935
148943
|
|
|
148936
148944
|
const _hoisted_1$1Q = { class: "absolute top-2 right-2 flex items-center gap-1 z-10" };
|
|
148937
148945
|
const _hoisted_2$1m = { class: "text-xs" };
|
|
@@ -176282,10 +176290,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
176282
176290
|
__name: "ActionsToolbar",
|
|
176283
176291
|
setup(__props) {
|
|
176284
176292
|
useCssVars((_ctx) => ({
|
|
176285
|
-
"
|
|
176286
|
-
"
|
|
176287
|
-
"
|
|
176288
|
-
"
|
|
176293
|
+
"c6ccac5c": unref(themeVars).primary4,
|
|
176294
|
+
"3edbaaa2": unref(themeVars).primary,
|
|
176295
|
+
"c6ccac58": unref(themeVars).primary6,
|
|
176296
|
+
"0f45ae31": unref(themeVars).base
|
|
176289
176297
|
}));
|
|
176290
176298
|
const {
|
|
176291
176299
|
toggleContentPanel,
|
|
@@ -176513,7 +176521,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
176513
176521
|
return (nameMatch || createdByMatch || tagMatch) && metadataMatch;
|
|
176514
176522
|
});
|
|
176515
176523
|
const folderResults = folders.map((folder) => {
|
|
176516
|
-
|
|
176524
|
+
return {
|
|
176517
176525
|
id: folder.id,
|
|
176518
176526
|
name: folder.name,
|
|
176519
176527
|
folder_id: apiState.currentFolderId,
|
|
@@ -176525,11 +176533,6 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
176525
176533
|
file_thumbnail_urls: folder.file_thumbnail_urls,
|
|
176526
176534
|
thumbnail_url: folder.thumbnail_url
|
|
176527
176535
|
};
|
|
176528
|
-
if (folder.files_count !== void 0) result.files_count = folder.files_count;
|
|
176529
|
-
if (folder.folders_count !== void 0) result.folders_count = folder.folders_count;
|
|
176530
|
-
if (folder.available_files_count !== void 0) result.available_files_count = folder.available_files_count;
|
|
176531
|
-
if (folder.available_folders_count !== void 0) result.available_folders_count = folder.available_folders_count;
|
|
176532
|
-
return result;
|
|
176533
176536
|
});
|
|
176534
176537
|
const fileResults = files.map((file) => {
|
|
176535
176538
|
return {
|
|
@@ -176758,7 +176761,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
176758
176761
|
}
|
|
176759
176762
|
});
|
|
176760
176763
|
|
|
176761
|
-
const ActionsToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
176764
|
+
const ActionsToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-fecebf5a"]]);
|
|
176762
176765
|
|
|
176763
176766
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
176764
176767
|
__name: "FavoritesTable",
|
|
@@ -183624,7 +183627,7 @@ function evaluateIsExecutedCondition(condition, event) {
|
|
|
183624
183627
|
});
|
|
183625
183628
|
jsCondition = jsCondition.replace(
|
|
183626
183629
|
/(["'])((?:[^"\\]|\\.)*)\1\s*(===|!==)\s*(["'])((?:[^"\\]|\\.)*)\4/g,
|
|
183627
|
-
(
|
|
183630
|
+
(_match, _leftQuote, leftValue, operator, _rightQuote, rightValue) => {
|
|
183628
183631
|
return `"${leftValue}".toLowerCase() ${operator} "${rightValue}".toLowerCase()`;
|
|
183629
183632
|
}
|
|
183630
183633
|
);
|
|
@@ -183659,7 +183662,7 @@ function evaluateIsExecutedForPascalCaseEvent(condition, event) {
|
|
|
183659
183662
|
});
|
|
183660
183663
|
jsCondition = jsCondition.replace(
|
|
183661
183664
|
/(["'])((?:[^"\\]|\\.)*)\1\s*(===|!==)\s*(["'])((?:[^"\\]|\\.)*)\4/g,
|
|
183662
|
-
(
|
|
183665
|
+
(_match, _leftQuote, leftValue, operator, _rightQuote, rightValue) => {
|
|
183663
183666
|
return `"${leftValue}".toLowerCase() ${operator} "${rightValue}".toLowerCase()`;
|
|
183664
183667
|
}
|
|
183665
183668
|
);
|
|
@@ -183680,8 +183683,14 @@ function getEventColor(sfEvent) {
|
|
|
183680
183683
|
} else {
|
|
183681
183684
|
isSubmitted = false;
|
|
183682
183685
|
}
|
|
183686
|
+
const now = /* @__PURE__ */ new Date();
|
|
183683
183687
|
if (isSubmitted) return SfEventColors.SUBMITTED;
|
|
183684
|
-
else if (
|
|
183688
|
+
else if (sfEvent.IsAllDayEvent) {
|
|
183689
|
+
const endDate = new Date(sfEvent.EndDateTime);
|
|
183690
|
+
const todayStart = startOfDay(now);
|
|
183691
|
+
const endDayStart = startOfDay(endDate);
|
|
183692
|
+
return isAfter$1(todayStart, endDayStart) ? SfEventColors.PAST : SfEventColors.PLANNED;
|
|
183693
|
+
} else if (isAfter$1(now, new Date(sfEvent.EndDateTime))) return SfEventColors.PAST;
|
|
183685
183694
|
else return SfEventColors.PLANNED;
|
|
183686
183695
|
}
|
|
183687
183696
|
const minFutureDate = (date = /* @__PURE__ */ new Date()) => add(date, { minutes: MIN_DIFFERENCE_IN_MINUTES });
|