@pitcher/canvas-ui 2026.1.13-143130-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 -67
- 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,21 +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
|
-
return {
|
|
110334
|
-
...folder,
|
|
110335
|
-
type: "folder",
|
|
110336
|
-
files_count: cached.files_count,
|
|
110337
|
-
folders_count: cached.folders_count,
|
|
110338
|
-
available_files_count: cached.available_files_count,
|
|
110339
|
-
available_folders_count: cached.available_folders_count
|
|
110340
|
-
};
|
|
110341
|
-
}
|
|
110342
|
-
return { ...folder, type: "folder" };
|
|
110343
|
-
});
|
|
110347
|
+
filteredFolders = foldersResponse.value.results?.map((f) => ({ ...f, type: "folder" })) ?? [];
|
|
110344
110348
|
} else if (!hasMetadataFilters && !useAppStore$4().isLocalSearch.value) {
|
|
110345
110349
|
console.error(
|
|
110346
110350
|
"Failed to fetch folders:",
|
|
@@ -120821,7 +120825,7 @@ const _sfc_main$4k = /* @__PURE__ */ defineComponent({
|
|
|
120821
120825
|
|
|
120822
120826
|
function useCanvasContext() {
|
|
120823
120827
|
const { activeCanvas, isPrintDisplayMode, builderCache } = useCanvas$1();
|
|
120824
|
-
const { getDefaultCrmShape } = useCrmShape();
|
|
120828
|
+
const { crmShape, getDefaultCrmShape } = useCrmShape();
|
|
120825
120829
|
const myUser = inject(
|
|
120826
120830
|
"myUser",
|
|
120827
120831
|
computed(() => null)
|
|
@@ -120853,14 +120857,21 @@ function useCanvasContext() {
|
|
|
120853
120857
|
builderCache.value[sectionOverrideKey] = mergedCtx;
|
|
120854
120858
|
return mergedCtx;
|
|
120855
120859
|
};
|
|
120856
|
-
const
|
|
120857
|
-
const crmShapeWithSectionCtx = computed(() => {
|
|
120860
|
+
const fullContext = computed(() => {
|
|
120858
120861
|
const mergedCtx = getSectionCtx();
|
|
120859
|
-
|
|
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
|
+
});
|
|
120860
120872
|
});
|
|
120861
120873
|
return {
|
|
120862
|
-
|
|
120863
|
-
crmShapeWithSectionCtx
|
|
120874
|
+
fullContext
|
|
120864
120875
|
};
|
|
120865
120876
|
}
|
|
120866
120877
|
|
|
@@ -120906,10 +120917,10 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
|
|
|
120906
120917
|
__name: "SelectionPanel",
|
|
120907
120918
|
setup(__props) {
|
|
120908
120919
|
useCssVars((_ctx) => ({
|
|
120909
|
-
"
|
|
120910
|
-
"
|
|
120911
|
-
"
|
|
120912
|
-
"
|
|
120920
|
+
"7e857d3a": unref(themeVars).text,
|
|
120921
|
+
"7e7d3ede": unref(themeVars).base,
|
|
120922
|
+
"e1e1c7fe": unref(themeVars).primary6,
|
|
120923
|
+
"e1e1c804": unref(themeVars).primary3
|
|
120913
120924
|
}));
|
|
120914
120925
|
const { t } = useI18n();
|
|
120915
120926
|
const { renderContentType, isFileExpired, isFileExpiring } = useFileDisplayHelpers();
|
|
@@ -120931,7 +120942,7 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
|
|
|
120931
120942
|
"launchDarkly",
|
|
120932
120943
|
computed(() => ({}))
|
|
120933
120944
|
);
|
|
120934
|
-
const {
|
|
120945
|
+
const { fullContext } = useCanvasContext();
|
|
120935
120946
|
const isCrmShapeEnabled = computed(() => launchDarkly.value?.enable_crm_shape_for_external_links ?? false);
|
|
120936
120947
|
const draggableItems = computed({
|
|
120937
120948
|
get: () => isDragNDropEnabled.value ? addedItems.value : selectedItems.value,
|
|
@@ -120946,7 +120957,7 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
|
|
|
120946
120957
|
function getParsedUrl(url) {
|
|
120947
120958
|
if (!url || !isCrmShapeEnabled.value) return url;
|
|
120948
120959
|
try {
|
|
120949
|
-
return renderTemplate(url,
|
|
120960
|
+
return renderTemplate(url, fullContext.value);
|
|
120950
120961
|
} catch (error) {
|
|
120951
120962
|
console.warn("Failed to parse template in external URL, using original URL:", error);
|
|
120952
120963
|
return url;
|
|
@@ -121250,7 +121261,7 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
|
|
|
121250
121261
|
}
|
|
121251
121262
|
});
|
|
121252
121263
|
|
|
121253
|
-
const SelectionPanel = /* @__PURE__ */ _export_sfc(_sfc_main$4j, [["__scopeId", "data-v-
|
|
121264
|
+
const SelectionPanel = /* @__PURE__ */ _export_sfc(_sfc_main$4j, [["__scopeId", "data-v-05db071e"]]);
|
|
121254
121265
|
|
|
121255
121266
|
const _hoisted_1$3q = { class: "flex justify-between gap-2 items-center truncate py-1" };
|
|
121256
121267
|
const _hoisted_2$2z = {
|
|
@@ -123782,13 +123793,13 @@ const _sfc_main$45 = /* @__PURE__ */ defineComponent({
|
|
|
123782
123793
|
computed(() => ({}))
|
|
123783
123794
|
);
|
|
123784
123795
|
const { crmShape } = useCrmShape();
|
|
123785
|
-
const {
|
|
123796
|
+
const { fullContext } = useCanvasContext();
|
|
123786
123797
|
const isCrmShapeEnabled = computed(() => launchDarkly.value?.enable_crm_shape_for_external_links ?? false);
|
|
123787
123798
|
const parsedUrl = computed(() => {
|
|
123788
123799
|
if (!url.value.trim()) return url.value;
|
|
123789
123800
|
if (!isCrmShapeEnabled.value) return url.value;
|
|
123790
123801
|
try {
|
|
123791
|
-
return renderTemplate(url.value,
|
|
123802
|
+
return renderTemplate(url.value, fullContext.value);
|
|
123792
123803
|
} catch (error) {
|
|
123793
123804
|
console.error("Error parsing URL template:", error);
|
|
123794
123805
|
return url.value;
|
|
@@ -123894,7 +123905,7 @@ const _sfc_main$45 = /* @__PURE__ */ defineComponent({
|
|
|
123894
123905
|
}
|
|
123895
123906
|
});
|
|
123896
123907
|
|
|
123897
|
-
const ExternalLinks = /* @__PURE__ */ _export_sfc(_sfc_main$45, [["__scopeId", "data-v-
|
|
123908
|
+
const ExternalLinks = /* @__PURE__ */ _export_sfc(_sfc_main$45, [["__scopeId", "data-v-ba7b39ff"]]);
|
|
123898
123909
|
|
|
123899
123910
|
const _hoisted_1$3d = { class: "mr-3 h-full" };
|
|
123900
123911
|
const _hoisted_2$2m = { class: "flex flex-col gap-3 mb-3" };
|
|
@@ -147980,7 +147991,7 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
|
|
|
147980
147991
|
} = useCanvas$1();
|
|
147981
147992
|
const { discardOverridesConfirmationOptions, getComponentOverrides } = useCanvasSectionOverrides();
|
|
147982
147993
|
const { getDerivedStyleFromFeatureFlags } = useComponentStyle(componentNode);
|
|
147983
|
-
const {
|
|
147994
|
+
const { fullContext } = useCanvasContext();
|
|
147984
147995
|
const { setContentSelectorMode } = useContentSelector();
|
|
147985
147996
|
const confirmation = useConfirmation();
|
|
147986
147997
|
const themeVars = useThemeVars();
|
|
@@ -148133,7 +148144,7 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
|
|
|
148133
148144
|
try {
|
|
148134
148145
|
return {
|
|
148135
148146
|
...value,
|
|
148136
|
-
external_url: renderTemplate(value.external_url,
|
|
148147
|
+
external_url: renderTemplate(value.external_url, fullContext.value)
|
|
148137
148148
|
};
|
|
148138
148149
|
} catch (error) {
|
|
148139
148150
|
console.warn("Failed to parse template in external URL, using original URL:", error);
|
|
@@ -148651,7 +148662,7 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
|
|
|
148651
148662
|
setCanvasMetadata,
|
|
148652
148663
|
isImpact
|
|
148653
148664
|
} = useCanvas$1();
|
|
148654
|
-
const {
|
|
148665
|
+
const { fullContext } = useCanvasContext();
|
|
148655
148666
|
const { coreRestApiAxios } = useCoreApi();
|
|
148656
148667
|
const { applyPrintModeToElement } = usePrintMode();
|
|
148657
148668
|
const { discardOverridesConfirmationOptions, getComponentOverrides } = useCanvasSectionOverrides();
|
|
@@ -148708,7 +148719,7 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
|
|
|
148708
148719
|
const memoizedModelValue = computed(() => getModelValue(computedTextProps.value.data?.content));
|
|
148709
148720
|
function getModelValue(value = "") {
|
|
148710
148721
|
if (!shouldInterpolate.value || !value.trim()) return value;
|
|
148711
|
-
return renderTemplate(value,
|
|
148722
|
+
return renderTemplate(value, fullContext.value);
|
|
148712
148723
|
}
|
|
148713
148724
|
const debouncedUpdateNodeData = debounce((data2, nodeId, sectionId) => {
|
|
148714
148725
|
return updateNodeData(data2, nodeId, sectionId);
|
|
@@ -148816,7 +148827,7 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
|
|
|
148816
148827
|
);
|
|
148817
148828
|
applyPrintModeToElement(contentElement.value, () => {
|
|
148818
148829
|
const content = computedTextProps.value.data?.content || "";
|
|
148819
|
-
return shouldInterpolate.value ? renderTemplate(content,
|
|
148830
|
+
return shouldInterpolate.value ? renderTemplate(content, fullContext.value) : content;
|
|
148820
148831
|
});
|
|
148821
148832
|
if (enableScaleContent && spanStyles) {
|
|
148822
148833
|
setTimeout(() => {
|
|
@@ -148928,7 +148939,7 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
|
|
|
148928
148939
|
}
|
|
148929
148940
|
});
|
|
148930
148941
|
|
|
148931
|
-
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$2h, [["__scopeId", "data-v-
|
|
148942
|
+
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$2h, [["__scopeId", "data-v-73a884c3"]]);
|
|
148932
148943
|
|
|
148933
148944
|
const _hoisted_1$1Q = { class: "absolute top-2 right-2 flex items-center gap-1 z-10" };
|
|
148934
148945
|
const _hoisted_2$1m = { class: "text-xs" };
|
|
@@ -176279,10 +176290,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
176279
176290
|
__name: "ActionsToolbar",
|
|
176280
176291
|
setup(__props) {
|
|
176281
176292
|
useCssVars((_ctx) => ({
|
|
176282
|
-
"
|
|
176283
|
-
"
|
|
176284
|
-
"
|
|
176285
|
-
"
|
|
176293
|
+
"c6ccac5c": unref(themeVars).primary4,
|
|
176294
|
+
"3edbaaa2": unref(themeVars).primary,
|
|
176295
|
+
"c6ccac58": unref(themeVars).primary6,
|
|
176296
|
+
"0f45ae31": unref(themeVars).base
|
|
176286
176297
|
}));
|
|
176287
176298
|
const {
|
|
176288
176299
|
toggleContentPanel,
|
|
@@ -176520,11 +176531,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
176520
176531
|
},
|
|
176521
176532
|
type: "folder",
|
|
176522
176533
|
file_thumbnail_urls: folder.file_thumbnail_urls,
|
|
176523
|
-
thumbnail_url: folder.thumbnail_url
|
|
176524
|
-
files_count: folder.files_count,
|
|
176525
|
-
folders_count: folder.folders_count,
|
|
176526
|
-
available_files_count: folder.available_files_count,
|
|
176527
|
-
available_folders_count: folder.available_folders_count
|
|
176534
|
+
thumbnail_url: folder.thumbnail_url
|
|
176528
176535
|
};
|
|
176529
176536
|
});
|
|
176530
176537
|
const fileResults = files.map((file) => {
|
|
@@ -176754,7 +176761,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
176754
176761
|
}
|
|
176755
176762
|
});
|
|
176756
176763
|
|
|
176757
|
-
const ActionsToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
176764
|
+
const ActionsToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-fecebf5a"]]);
|
|
176758
176765
|
|
|
176759
176766
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
176760
176767
|
__name: "FavoritesTable",
|
|
@@ -183620,7 +183627,7 @@ function evaluateIsExecutedCondition(condition, event) {
|
|
|
183620
183627
|
});
|
|
183621
183628
|
jsCondition = jsCondition.replace(
|
|
183622
183629
|
/(["'])((?:[^"\\]|\\.)*)\1\s*(===|!==)\s*(["'])((?:[^"\\]|\\.)*)\4/g,
|
|
183623
|
-
(
|
|
183630
|
+
(_match, _leftQuote, leftValue, operator, _rightQuote, rightValue) => {
|
|
183624
183631
|
return `"${leftValue}".toLowerCase() ${operator} "${rightValue}".toLowerCase()`;
|
|
183625
183632
|
}
|
|
183626
183633
|
);
|
|
@@ -183655,7 +183662,7 @@ function evaluateIsExecutedForPascalCaseEvent(condition, event) {
|
|
|
183655
183662
|
});
|
|
183656
183663
|
jsCondition = jsCondition.replace(
|
|
183657
183664
|
/(["'])((?:[^"\\]|\\.)*)\1\s*(===|!==)\s*(["'])((?:[^"\\]|\\.)*)\4/g,
|
|
183658
|
-
(
|
|
183665
|
+
(_match, _leftQuote, leftValue, operator, _rightQuote, rightValue) => {
|
|
183659
183666
|
return `"${leftValue}".toLowerCase() ${operator} "${rightValue}".toLowerCase()`;
|
|
183660
183667
|
}
|
|
183661
183668
|
);
|
|
@@ -183676,8 +183683,14 @@ function getEventColor(sfEvent) {
|
|
|
183676
183683
|
} else {
|
|
183677
183684
|
isSubmitted = false;
|
|
183678
183685
|
}
|
|
183686
|
+
const now = /* @__PURE__ */ new Date();
|
|
183679
183687
|
if (isSubmitted) return SfEventColors.SUBMITTED;
|
|
183680
|
-
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;
|
|
183681
183694
|
else return SfEventColors.PLANNED;
|
|
183682
183695
|
}
|
|
183683
183696
|
const minFutureDate = (date = /* @__PURE__ */ new Date()) => add(date, { minutes: MIN_DIFFERENCE_IN_MINUTES });
|