@universe-platform/ui 0.1.0-beta.58 → 0.1.0-beta.59
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/dist/index.js +30 -27
- package/dist/index.mjs +57 -54
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1639,11 +1639,14 @@ function DrivePickerCell({
|
|
|
1639
1639
|
cellContextId,
|
|
1640
1640
|
orgId: activeOrgId
|
|
1641
1641
|
});
|
|
1642
|
-
if ((actionResult == null ? void 0 : actionResult.success) === false || (actionResult == null ? void 0 : actionResult.error)) {
|
|
1643
|
-
throw new Error(actionResult.error || `Upload failed for ${file.name}`);
|
|
1642
|
+
if (!actionResult || (actionResult == null ? void 0 : actionResult.success) === false || (actionResult == null ? void 0 : actionResult.error)) {
|
|
1643
|
+
throw new Error((actionResult == null ? void 0 : actionResult.error) || formError || `Upload failed for ${file.name}`);
|
|
1644
1644
|
}
|
|
1645
1645
|
const data = (actionResult == null ? void 0 : actionResult.data) || actionResult;
|
|
1646
|
-
const fileId = (data == null ? void 0 : data.fileId) || (data == null ? void 0 : data.id)
|
|
1646
|
+
const fileId = (data == null ? void 0 : data.fileId) || (data == null ? void 0 : data.id);
|
|
1647
|
+
if (!fileId) {
|
|
1648
|
+
throw new Error(formError || `Upload failed for ${file.name}`);
|
|
1649
|
+
}
|
|
1647
1650
|
const fileName = (data == null ? void 0 : data.fileName) || (data == null ? void 0 : data.name) || file.name;
|
|
1648
1651
|
const fileUrl = (data == null ? void 0 : data.fileUrl) || (data == null ? void 0 : data.url) || (data == null ? void 0 : data.link) || "";
|
|
1649
1652
|
const url = (data == null ? void 0 : data.url) || (data == null ? void 0 : data.fileUrl) || (data == null ? void 0 : data.link) || fileUrl;
|
|
@@ -8763,7 +8766,9 @@ function FormTrackingTableBlock(props) {
|
|
|
8763
8766
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1.5 py-0.5", children: config.steps.map((step) => {
|
|
8764
8767
|
const override = step.sentColumn ? sentOverrides[`${rowId}|${step.sentColumn}`] : void 0;
|
|
8765
8768
|
const state = getFormStepState(row == null ? void 0 : row.data, step, override);
|
|
8766
|
-
const
|
|
8769
|
+
const isUpdateStep = step.kind === "update" && !!step.sentColumn && !readOnly;
|
|
8770
|
+
const showCopyLink = isUpdateStep;
|
|
8771
|
+
const showSentToggle = isUpdateStep && state !== "returned";
|
|
8767
8772
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "inline-flex items-center gap-1.5", children: [
|
|
8768
8773
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
8769
8774
|
"span",
|
|
@@ -8776,28 +8781,26 @@ function FormTrackingTableBlock(props) {
|
|
|
8776
8781
|
]
|
|
8777
8782
|
}
|
|
8778
8783
|
),
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
|
|
8797
|
-
|
|
8798
|
-
|
|
8799
|
-
)
|
|
8800
|
-
] })
|
|
8784
|
+
showCopyLink && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
8785
|
+
"button",
|
|
8786
|
+
{
|
|
8787
|
+
type: "button",
|
|
8788
|
+
disabled: busyKey !== null,
|
|
8789
|
+
onClick: () => copyLink(rowId, step),
|
|
8790
|
+
className: "text-[11px] font-semibold text-brand hover:underline disabled:opacity-40 cursor-pointer whitespace-nowrap",
|
|
8791
|
+
children: "\u05D4\u05E2\u05EA\u05E7 \u05E7\u05D9\u05E9\u05D5\u05E8"
|
|
8792
|
+
}
|
|
8793
|
+
),
|
|
8794
|
+
showSentToggle && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
8795
|
+
"button",
|
|
8796
|
+
{
|
|
8797
|
+
type: "button",
|
|
8798
|
+
disabled: busyKey !== null,
|
|
8799
|
+
onClick: () => setSent(rowId, step, state !== "sent"),
|
|
8800
|
+
className: "text-[11px] font-semibold text-slate-500 hover:text-slate-800 hover:underline disabled:opacity-40 cursor-pointer whitespace-nowrap",
|
|
8801
|
+
children: state === "sent" ? "\u05D1\u05D8\u05DC \u05E1\u05D9\u05DE\u05D5\u05DF" : "\u05E1\u05DE\u05DF \u05DB\u05E0\u05E9\u05DC\u05D7"
|
|
8802
|
+
}
|
|
8803
|
+
)
|
|
8801
8804
|
] }, step.formId);
|
|
8802
8805
|
}) });
|
|
8803
8806
|
},
|
|
@@ -16356,7 +16359,7 @@ function StyledFormBlock({
|
|
|
16356
16359
|
value: shownValue,
|
|
16357
16360
|
onChange: (val) => handleFieldChange(col.name, val),
|
|
16358
16361
|
readOnly: previewMode || locked,
|
|
16359
|
-
context: { executeAction: previewMode ? void 0 : executeAction, tableId: targetTableId, relationDictionaryRef: relationDictRef }
|
|
16362
|
+
context: { executeAction: previewMode ? void 0 : executeAction, tableId: targetTableId, relationDictionaryRef: relationDictRef, orgId: schema == null ? void 0 : schema.orgId }
|
|
16360
16363
|
}
|
|
16361
16364
|
) }),
|
|
16362
16365
|
canReorder && dragName && drop && drop.name === col.name && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
package/dist/index.mjs
CHANGED
|
@@ -1488,11 +1488,14 @@ function DrivePickerCell({
|
|
|
1488
1488
|
cellContextId,
|
|
1489
1489
|
orgId: activeOrgId
|
|
1490
1490
|
});
|
|
1491
|
-
if ((actionResult == null ? void 0 : actionResult.success) === false || (actionResult == null ? void 0 : actionResult.error)) {
|
|
1492
|
-
throw new Error(actionResult.error || `Upload failed for ${file.name}`);
|
|
1491
|
+
if (!actionResult || (actionResult == null ? void 0 : actionResult.success) === false || (actionResult == null ? void 0 : actionResult.error)) {
|
|
1492
|
+
throw new Error((actionResult == null ? void 0 : actionResult.error) || formError || `Upload failed for ${file.name}`);
|
|
1493
1493
|
}
|
|
1494
1494
|
const data = (actionResult == null ? void 0 : actionResult.data) || actionResult;
|
|
1495
|
-
const fileId = (data == null ? void 0 : data.fileId) || (data == null ? void 0 : data.id)
|
|
1495
|
+
const fileId = (data == null ? void 0 : data.fileId) || (data == null ? void 0 : data.id);
|
|
1496
|
+
if (!fileId) {
|
|
1497
|
+
throw new Error(formError || `Upload failed for ${file.name}`);
|
|
1498
|
+
}
|
|
1496
1499
|
const fileName = (data == null ? void 0 : data.fileName) || (data == null ? void 0 : data.name) || file.name;
|
|
1497
1500
|
const fileUrl = (data == null ? void 0 : data.fileUrl) || (data == null ? void 0 : data.url) || (data == null ? void 0 : data.link) || "";
|
|
1498
1501
|
const url = (data == null ? void 0 : data.url) || (data == null ? void 0 : data.fileUrl) || (data == null ? void 0 : data.link) || fileUrl;
|
|
@@ -8540,7 +8543,7 @@ function getFormStepState(data, step, sentOverride) {
|
|
|
8540
8543
|
}
|
|
8541
8544
|
|
|
8542
8545
|
// src/components/TableBlock/formTracking/FormTrackingTableBlock.tsx
|
|
8543
|
-
import {
|
|
8546
|
+
import { jsx as jsx17, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
8544
8547
|
var PILL_STYLE = {
|
|
8545
8548
|
none: "bg-slate-100 text-slate-500 border-slate-200",
|
|
8546
8549
|
sent: "bg-amber-50 text-amber-700 border-amber-200",
|
|
@@ -8612,7 +8615,9 @@ function FormTrackingTableBlock(props) {
|
|
|
8612
8615
|
return /* @__PURE__ */ jsx17("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1.5 py-0.5", children: config.steps.map((step) => {
|
|
8613
8616
|
const override = step.sentColumn ? sentOverrides[`${rowId}|${step.sentColumn}`] : void 0;
|
|
8614
8617
|
const state = getFormStepState(row == null ? void 0 : row.data, step, override);
|
|
8615
|
-
const
|
|
8618
|
+
const isUpdateStep = step.kind === "update" && !!step.sentColumn && !readOnly;
|
|
8619
|
+
const showCopyLink = isUpdateStep;
|
|
8620
|
+
const showSentToggle = isUpdateStep && state !== "returned";
|
|
8616
8621
|
return /* @__PURE__ */ jsxs14("div", { className: "inline-flex items-center gap-1.5", children: [
|
|
8617
8622
|
/* @__PURE__ */ jsxs14(
|
|
8618
8623
|
"span",
|
|
@@ -8625,28 +8630,26 @@ function FormTrackingTableBlock(props) {
|
|
|
8625
8630
|
]
|
|
8626
8631
|
}
|
|
8627
8632
|
),
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
)
|
|
8649
|
-
] })
|
|
8633
|
+
showCopyLink && /* @__PURE__ */ jsx17(
|
|
8634
|
+
"button",
|
|
8635
|
+
{
|
|
8636
|
+
type: "button",
|
|
8637
|
+
disabled: busyKey !== null,
|
|
8638
|
+
onClick: () => copyLink(rowId, step),
|
|
8639
|
+
className: "text-[11px] font-semibold text-brand hover:underline disabled:opacity-40 cursor-pointer whitespace-nowrap",
|
|
8640
|
+
children: "\u05D4\u05E2\u05EA\u05E7 \u05E7\u05D9\u05E9\u05D5\u05E8"
|
|
8641
|
+
}
|
|
8642
|
+
),
|
|
8643
|
+
showSentToggle && /* @__PURE__ */ jsx17(
|
|
8644
|
+
"button",
|
|
8645
|
+
{
|
|
8646
|
+
type: "button",
|
|
8647
|
+
disabled: busyKey !== null,
|
|
8648
|
+
onClick: () => setSent(rowId, step, state !== "sent"),
|
|
8649
|
+
className: "text-[11px] font-semibold text-slate-500 hover:text-slate-800 hover:underline disabled:opacity-40 cursor-pointer whitespace-nowrap",
|
|
8650
|
+
children: state === "sent" ? "\u05D1\u05D8\u05DC \u05E1\u05D9\u05DE\u05D5\u05DF" : "\u05E1\u05DE\u05DF \u05DB\u05E0\u05E9\u05DC\u05D7"
|
|
8651
|
+
}
|
|
8652
|
+
)
|
|
8650
8653
|
] }, step.formId);
|
|
8651
8654
|
}) });
|
|
8652
8655
|
},
|
|
@@ -8770,7 +8773,7 @@ function readColumnValue(data, ref) {
|
|
|
8770
8773
|
}
|
|
8771
8774
|
|
|
8772
8775
|
// src/components/PlacementBlock/PlacementSettings.tsx
|
|
8773
|
-
import { Fragment as
|
|
8776
|
+
import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
8774
8777
|
var DEFAULT_PLACEMENT_STATUS_COLORS = [
|
|
8775
8778
|
{ id: "1", hex: "#10b981", label: "\u05DE\u05EA\u05D0\u05D9\u05DD / \u05D0\u05D5\u05E9\u05E8" },
|
|
8776
8779
|
{ id: "2", hex: "#f59e0b", label: "\u05DE\u05DE\u05EA\u05D9\u05DF \u05DC\u05E8\u05D0\u05D9\u05D5\u05DF" },
|
|
@@ -8996,7 +8999,7 @@ var PlacementSettings = ({ config, onChange, tables }) => {
|
|
|
8996
8999
|
}
|
|
8997
9000
|
)
|
|
8998
9001
|
] }),
|
|
8999
|
-
config.targetTableId && /* @__PURE__ */ jsxs15(
|
|
9002
|
+
config.targetTableId && /* @__PURE__ */ jsxs15(Fragment3, { children: [
|
|
9000
9003
|
/* @__PURE__ */ jsxs15("div", { className: "grid grid-cols-3 gap-4", children: [
|
|
9001
9004
|
/* @__PURE__ */ jsxs15("div", { children: [
|
|
9002
9005
|
/* @__PURE__ */ jsx19("label", { className: "block text-sm font-medium mb-1", children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05E1\u05D9\u05E0\u05D5\u05DF 1:" }),
|
|
@@ -10068,7 +10071,7 @@ function readFileAsBase64(file) {
|
|
|
10068
10071
|
}
|
|
10069
10072
|
|
|
10070
10073
|
// src/components/WhatsAppComponent/CreateTemplateModal.tsx
|
|
10071
|
-
import { Fragment as
|
|
10074
|
+
import { Fragment as Fragment4, jsx as jsx22, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
10072
10075
|
function CreateTemplateModal({
|
|
10073
10076
|
isOpen,
|
|
10074
10077
|
onClose,
|
|
@@ -11141,10 +11144,10 @@ function CreateTemplateModal({
|
|
|
11141
11144
|
disabled: !canSubmit,
|
|
11142
11145
|
className: `inline-flex items-center gap-2 px-5 py-2 text-xs font-semibold text-white rounded-xl shadow-xs transition-all cursor-pointer active:scale-[0.98] ${canSubmit ? "bg-emerald-600 hover:bg-emerald-700" : "bg-slate-300 text-slate-500 cursor-not-allowed opacity-60"}`,
|
|
11143
11146
|
title: !canSubmit ? fileError || validationResult.errors[0] || "\u05D9\u05E9 \u05DC\u05D4\u05E9\u05DC\u05D9\u05DD \u05D0\u05EA \u05DB\u05DC \u05E9\u05D3\u05D5\u05EA \u05D4\u05D7\u05D5\u05D1\u05D4 \u05D1\u05D0\u05D5\u05E4\u05DF \u05EA\u05E7\u05D9\u05DF" : "\u05E9\u05DC\u05D7 \u05EA\u05D1\u05E0\u05D9\u05EA \u05DC\u05D0\u05D9\u05E9\u05D5\u05E8 Meta",
|
|
11144
|
-
children: isSubmitting ? /* @__PURE__ */ jsxs18(
|
|
11147
|
+
children: isSubmitting ? /* @__PURE__ */ jsxs18(Fragment4, { children: [
|
|
11145
11148
|
/* @__PURE__ */ jsx22(Loader24, { className: "w-4 h-4 animate-spin" }),
|
|
11146
11149
|
/* @__PURE__ */ jsx22("span", { children: submittingStep || "\u05D9\u05D5\u05E6\u05E8 \u05EA\u05D1\u05E0\u05D9\u05EA..." })
|
|
11147
|
-
] }) : /* @__PURE__ */ jsxs18(
|
|
11150
|
+
] }) : /* @__PURE__ */ jsxs18(Fragment4, { children: [
|
|
11148
11151
|
/* @__PURE__ */ jsx22(CheckCircle22, { className: "w-4 h-4" }),
|
|
11149
11152
|
/* @__PURE__ */ jsx22("span", { children: "\u05E9\u05DC\u05D7 \u05DC\u05D1\u05D3\u05D9\u05E7\u05D4" })
|
|
11150
11153
|
] })
|
|
@@ -13854,7 +13857,7 @@ import {
|
|
|
13854
13857
|
CheckCircle2 as CheckCircle23,
|
|
13855
13858
|
AlertCircle as AlertCircle3
|
|
13856
13859
|
} from "lucide-react";
|
|
13857
|
-
import { Fragment as
|
|
13860
|
+
import { Fragment as Fragment5, jsx as jsx23, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
13858
13861
|
function TemplateSelectionBlock({
|
|
13859
13862
|
selectedTemplate,
|
|
13860
13863
|
selectedTemplateId,
|
|
@@ -13954,7 +13957,7 @@ function TemplateSelectionBlock({
|
|
|
13954
13957
|
]
|
|
13955
13958
|
}
|
|
13956
13959
|
),
|
|
13957
|
-
isDropdownOpen && /* @__PURE__ */ jsxs19(
|
|
13960
|
+
isDropdownOpen && /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
13958
13961
|
/* @__PURE__ */ jsx23(
|
|
13959
13962
|
"div",
|
|
13960
13963
|
{
|
|
@@ -14067,7 +14070,7 @@ function TemplateSelectionBlock({
|
|
|
14067
14070
|
const hasValidMedia = Boolean(headerMediaUrl && headerMediaUrl.trim() && headerMediaUrl.startsWith("http"));
|
|
14068
14071
|
const uploadButtonLabel = headerFormat === "DOCUMENT" ? "\u05D4\u05E2\u05DC\u05D4 \u05DE\u05E1\u05DE\u05DA" : headerFormat === "IMAGE" ? "\u05D4\u05E2\u05DC\u05D4 \u05EA\u05DE\u05D5\u05E0\u05D4" : "\u05D4\u05E2\u05DC\u05D4 \u05E7\u05D5\u05D1\u05E5";
|
|
14069
14072
|
return /* @__PURE__ */ jsxs19("div", { className: "p-2.5 bg-slate-50 border border-slate-200/90 rounded-xl flex items-center justify-between gap-3 shrink-0 shadow-2xs", children: [
|
|
14070
|
-
/* @__PURE__ */ jsx23("div", { className: "flex items-center gap-2.5 overflow-hidden", children: headerFormat === "IMAGE" ? /* @__PURE__ */ jsxs19(
|
|
14073
|
+
/* @__PURE__ */ jsx23("div", { className: "flex items-center gap-2.5 overflow-hidden", children: headerFormat === "IMAGE" ? /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
14071
14074
|
/* @__PURE__ */ jsx23("div", { className: "w-8 h-8 rounded-lg overflow-hidden border border-slate-200 shrink-0 bg-slate-100 flex items-center justify-center", children: hasValidMedia ? /* @__PURE__ */ jsx23(
|
|
14072
14075
|
"img",
|
|
14073
14076
|
{
|
|
@@ -14083,13 +14086,13 @@ function TemplateSelectionBlock({
|
|
|
14083
14086
|
/* @__PURE__ */ jsx23("span", { className: "text-xs font-bold text-slate-800 block truncate", children: "\u05EA\u05DE\u05D5\u05E0\u05EA \u05DB\u05D5\u05EA\u05E8\u05EA" }),
|
|
14084
14087
|
/* @__PURE__ */ jsx23("span", { className: "text-[10px] text-slate-400 block truncate", children: hasValidMedia ? "\u05E7\u05D5\u05D1\u05E5 \u05EA\u05DE\u05D5\u05E0\u05D4 \u05DE\u05E7\u05D5\u05E9\u05E8 \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA" : "\u05D8\u05E8\u05DD \u05D4\u05D5\u05E2\u05DC\u05D4 \u05E7\u05D5\u05D1\u05E5 \u05EA\u05DE\u05D5\u05E0\u05D4" })
|
|
14085
14088
|
] })
|
|
14086
|
-
] }) : headerFormat === "DOCUMENT" ? /* @__PURE__ */ jsxs19(
|
|
14089
|
+
] }) : headerFormat === "DOCUMENT" ? /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
14087
14090
|
/* @__PURE__ */ jsx23("div", { className: `w-8 h-8 rounded-lg flex items-center justify-center shrink-0 border ${hasValidMedia ? "bg-rose-50 text-rose-600 border-rose-100" : "bg-slate-100 text-slate-400 border-slate-200"}`, children: /* @__PURE__ */ jsx23(FileText3, { className: "w-4 h-4" }) }),
|
|
14088
14091
|
/* @__PURE__ */ jsxs19("div", { className: "overflow-hidden", children: [
|
|
14089
14092
|
/* @__PURE__ */ jsx23("span", { className: "text-xs font-bold text-slate-800 block truncate", children: "\u05DE\u05E1\u05DE\u05DA \u05DB\u05D5\u05EA\u05E8\u05EA (PDF)" }),
|
|
14090
14093
|
/* @__PURE__ */ jsx23("span", { className: "text-[10px] text-slate-500 font-mono block truncate", title: hasValidMedia ? docFilename : void 0, children: hasValidMedia ? docFilename : "\u05D8\u05E8\u05DD \u05D4\u05D5\u05E2\u05DC\u05D4 \u05E7\u05D5\u05D1\u05E5 \u05DE\u05E1\u05DE\u05DA" })
|
|
14091
14094
|
] })
|
|
14092
|
-
] }) : /* @__PURE__ */ jsxs19(
|
|
14095
|
+
] }) : /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
14093
14096
|
/* @__PURE__ */ jsx23("div", { className: `w-8 h-8 rounded-lg flex items-center justify-center shrink-0 border ${hasValidMedia ? "bg-indigo-50 text-indigo-600 border-indigo-100" : "bg-slate-100 text-slate-400 border-slate-200"}`, children: /* @__PURE__ */ jsx23(Video2, { className: "w-4 h-4" }) }),
|
|
14094
14097
|
/* @__PURE__ */ jsxs19("div", { className: "overflow-hidden", children: [
|
|
14095
14098
|
/* @__PURE__ */ jsx23("span", { className: "text-xs font-bold text-slate-800 block truncate", children: "\u05E1\u05E8\u05D8\u05D5\u05DF \u05DB\u05D5\u05EA\u05E8\u05EA" }),
|
|
@@ -14144,10 +14147,10 @@ function TemplateSelectionBlock({
|
|
|
14144
14147
|
},
|
|
14145
14148
|
className: `inline-flex items-center gap-1.5 px-2.5 py-1 text-[11px] font-medium rounded-lg transition-colors border shadow-2xs ${isUploadingMedia ? "bg-slate-100 text-slate-400 border-slate-200 cursor-not-allowed" : hasValidMedia ? "bg-white text-slate-700 hover:bg-slate-50 border-slate-200 hover:border-slate-300" : "bg-emerald-600 text-white hover:bg-emerald-700 border-emerald-600"}`,
|
|
14146
14149
|
title: hasValidMedia ? "\u05D4\u05D7\u05DC\u05E3 \u05E7\u05D5\u05D1\u05E5 \u05DE\u05D3\u05D9\u05D4 \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA \u05D6\u05D5" : `${uploadButtonLabel} \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA \u05D6\u05D5`,
|
|
14147
|
-
children: isUploadingMedia ? /* @__PURE__ */ jsxs19(
|
|
14150
|
+
children: isUploadingMedia ? /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
14148
14151
|
/* @__PURE__ */ jsx23(Loader25, { className: "w-3.5 h-3.5 animate-spin" }),
|
|
14149
14152
|
/* @__PURE__ */ jsx23("span", { children: "\u05DE\u05E2\u05DC\u05D4..." })
|
|
14150
|
-
] }) : /* @__PURE__ */ jsxs19(
|
|
14153
|
+
] }) : /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
14151
14154
|
/* @__PURE__ */ jsx23(Upload3, { className: "w-3.5 h-3.5" }),
|
|
14152
14155
|
/* @__PURE__ */ jsx23("span", { children: hasValidMedia ? "\u05D4\u05D7\u05DC\u05E3 \u05E7\u05D5\u05D1\u05E5" : uploadButtonLabel })
|
|
14153
14156
|
] })
|
|
@@ -14237,7 +14240,7 @@ import {
|
|
|
14237
14240
|
CheckSquare,
|
|
14238
14241
|
RefreshCw
|
|
14239
14242
|
} from "lucide-react";
|
|
14240
|
-
import { Fragment as
|
|
14243
|
+
import { Fragment as Fragment6, jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
14241
14244
|
function DynamicFiltersBlock({
|
|
14242
14245
|
filterableColumns,
|
|
14243
14246
|
filters,
|
|
@@ -14305,7 +14308,7 @@ function DynamicFiltersBlock({
|
|
|
14305
14308
|
className: `w-full h-8 px-2 pr-2.5 pl-6 text-[11px] rounded-lg border transition-all appearance-none bg-white cursor-pointer truncate ${isActive ? "border-emerald-500 bg-emerald-50/20 text-emerald-900 font-medium ring-1 ring-emerald-500/20" : "border-slate-200 text-slate-700 hover:border-slate-300 focus:border-emerald-500"}`,
|
|
14306
14309
|
children: [
|
|
14307
14310
|
/* @__PURE__ */ jsx24("option", { value: "", children: "\u05D4\u05DB\u05DC" }),
|
|
14308
|
-
isBoolean ? /* @__PURE__ */ jsxs20(
|
|
14311
|
+
isBoolean ? /* @__PURE__ */ jsxs20(Fragment6, { children: [
|
|
14309
14312
|
/* @__PURE__ */ jsx24("option", { value: "true", children: "\u05DB\u05DF" }),
|
|
14310
14313
|
/* @__PURE__ */ jsx24("option", { value: "false", children: "\u05DC\u05D0" })
|
|
14311
14314
|
] }) : options.map((opt) => /* @__PURE__ */ jsx24("option", { value: opt.id || opt._id, children: getRelationOptionLabel(opt, col, relationOptions) }, opt.id || opt._id))
|
|
@@ -14367,7 +14370,7 @@ import {
|
|
|
14367
14370
|
X as X11,
|
|
14368
14371
|
CheckSquare as CheckSquare2
|
|
14369
14372
|
} from "lucide-react";
|
|
14370
|
-
import { Fragment as
|
|
14373
|
+
import { Fragment as Fragment7, jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
14371
14374
|
function SettingsAndActionsBlock({
|
|
14372
14375
|
isScanningPhoneColumns,
|
|
14373
14376
|
targetPhoneOptions,
|
|
@@ -14583,7 +14586,7 @@ function SettingsAndActionsBlock({
|
|
|
14583
14586
|
className: `w-full h-7 px-2 pr-2 pl-5 text-[11px] rounded-lg border appearance-none cursor-pointer truncate transition-colors ${!subtableFilterValue ? "border-amber-400 bg-amber-50/30 text-slate-700 focus:border-amber-500 focus:ring-1 focus:ring-amber-500" : "border-slate-200 bg-white text-slate-700 focus:border-emerald-500"}`,
|
|
14584
14587
|
children: [
|
|
14585
14588
|
/* @__PURE__ */ jsx25("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA \u05DC\u05E1\u05D9\u05E0\u05D5\u05DF..." }),
|
|
14586
|
-
((_a = selectedSubtableFilterCol.type) == null ? void 0 : _a.toUpperCase()) === "BOOLEAN" ? /* @__PURE__ */ jsxs21(
|
|
14589
|
+
((_a = selectedSubtableFilterCol.type) == null ? void 0 : _a.toUpperCase()) === "BOOLEAN" ? /* @__PURE__ */ jsxs21(Fragment7, { children: [
|
|
14587
14590
|
/* @__PURE__ */ jsx25("option", { value: "true", children: "\u05DB\u05DF (true)" }),
|
|
14588
14591
|
/* @__PURE__ */ jsx25("option", { value: "false", children: "\u05DC\u05D0 (false)" })
|
|
14589
14592
|
] }) : getRelationOptionsForCol(
|
|
@@ -14641,7 +14644,7 @@ function SettingsAndActionsBlock({
|
|
|
14641
14644
|
),
|
|
14642
14645
|
/* @__PURE__ */ jsx25("span", { className: "text-[11px] font-semibold text-slate-800", children: "\u05E2\u05D3\u05DB\u05DF \u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05DC\u05D0\u05D7\u05E8 \u05E9\u05DC\u05D9\u05D7\u05D4 \u05DE\u05D5\u05E6\u05DC\u05D7\u05EA" })
|
|
14643
14646
|
] }),
|
|
14644
|
-
enablePostSendAction && /* @__PURE__ */ jsx25("div", { className: "p-2 bg-slate-100/70 border border-slate-200/80 rounded-xl space-y-2 animate-in fade-in duration-150", children: postSendActionTargetOptions.length === 0 ? /* @__PURE__ */ jsx25("div", { className: "text-[10px] text-slate-400 text-center py-1", children: "\u05DC\u05D0 \u05E0\u05DE\u05E6\u05D0\u05D5 \u05E2\u05DE\u05D5\u05D3\u05D5\u05EA \u05E7\u05E9\u05E8 \u05D0\u05D5 \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9 \u05DC\u05E2\u05D3\u05DB\u05D5\u05DF" }) : /* @__PURE__ */ jsxs21(
|
|
14647
|
+
enablePostSendAction && /* @__PURE__ */ jsx25("div", { className: "p-2 bg-slate-100/70 border border-slate-200/80 rounded-xl space-y-2 animate-in fade-in duration-150", children: postSendActionTargetOptions.length === 0 ? /* @__PURE__ */ jsx25("div", { className: "text-[10px] text-slate-400 text-center py-1", children: "\u05DC\u05D0 \u05E0\u05DE\u05E6\u05D0\u05D5 \u05E2\u05DE\u05D5\u05D3\u05D5\u05EA \u05E7\u05E9\u05E8 \u05D0\u05D5 \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9 \u05DC\u05E2\u05D3\u05DB\u05D5\u05DF" }) : /* @__PURE__ */ jsxs21(Fragment7, { children: [
|
|
14645
14648
|
/* @__PURE__ */ jsxs21("div", { className: "space-y-1", children: [
|
|
14646
14649
|
/* @__PURE__ */ jsxs21("div", { className: "flex items-center justify-between", children: [
|
|
14647
14650
|
/* @__PURE__ */ jsx25("label", { className: "text-[10px] font-semibold text-slate-600 block", children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D9\u05E2\u05D3 \u05DC\u05E2\u05D3\u05DB\u05D5\u05DF" }),
|
|
@@ -14689,7 +14692,7 @@ function SettingsAndActionsBlock({
|
|
|
14689
14692
|
className: `w-full h-7 px-2 pr-2 pl-5 text-[11px] rounded-lg border appearance-none cursor-pointer truncate transition-colors ${!postSendActionValue ? "border-amber-400 bg-amber-50/30 text-slate-700 focus:border-amber-500 focus:ring-1 focus:ring-amber-500" : "border-slate-200 bg-white text-slate-700 focus:border-emerald-500"}`,
|
|
14690
14693
|
children: [
|
|
14691
14694
|
/* @__PURE__ */ jsx25("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA..." }),
|
|
14692
|
-
selectedPostSendOption.type === "BOOLEAN" ? /* @__PURE__ */ jsxs21(
|
|
14695
|
+
selectedPostSendOption.type === "BOOLEAN" ? /* @__PURE__ */ jsxs21(Fragment7, { children: [
|
|
14693
14696
|
/* @__PURE__ */ jsx25("option", { value: "true", children: "\u05DB\u05DF (Yes)" }),
|
|
14694
14697
|
/* @__PURE__ */ jsx25("option", { value: "false", children: "\u05DC\u05D0 (No)" })
|
|
14695
14698
|
] }) : getRelationOptionsForCol(
|
|
@@ -14773,7 +14776,7 @@ function SettingsAndActionsBlock({
|
|
|
14773
14776
|
] })
|
|
14774
14777
|
]
|
|
14775
14778
|
}
|
|
14776
|
-
) : /* @__PURE__ */ jsxs21(
|
|
14779
|
+
) : /* @__PURE__ */ jsxs21(Fragment7, { children: [
|
|
14777
14780
|
/* @__PURE__ */ jsxs21(
|
|
14778
14781
|
"button",
|
|
14779
14782
|
{
|
|
@@ -15101,7 +15104,7 @@ function WhatsAppInbox({
|
|
|
15101
15104
|
}
|
|
15102
15105
|
|
|
15103
15106
|
// src/components/WhatsAppComponent/WhatsAppComponent.tsx
|
|
15104
|
-
import { Fragment as
|
|
15107
|
+
import { Fragment as Fragment8, jsx as jsx29, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
15105
15108
|
function WhatsAppComponent(props) {
|
|
15106
15109
|
var _a;
|
|
15107
15110
|
const { className = "", settings, orgId, componentId, executeAction } = props;
|
|
@@ -15173,7 +15176,7 @@ function WhatsAppComponent(props) {
|
|
|
15173
15176
|
}
|
|
15174
15177
|
}
|
|
15175
15178
|
}
|
|
15176
|
-
) }) : /* @__PURE__ */ jsxs25(
|
|
15179
|
+
) }) : /* @__PURE__ */ jsxs25(Fragment8, { children: [
|
|
15177
15180
|
state.feedback && /* @__PURE__ */ jsxs25(
|
|
15178
15181
|
"div",
|
|
15179
15182
|
{
|
|
@@ -15403,7 +15406,7 @@ function WhatsAppComponent(props) {
|
|
|
15403
15406
|
const headerFormat = (state.templateHeaderComp.format || "").toUpperCase();
|
|
15404
15407
|
const docFilename = resolveDocumentFilename(state.templateHeaderComp, state.headerMediaUrl);
|
|
15405
15408
|
return /* @__PURE__ */ jsxs25("div", { className: "p-2.5 bg-slate-50 border border-slate-200/80 rounded-xl flex items-center justify-between text-xs", children: [
|
|
15406
|
-
/* @__PURE__ */ jsx29("div", { className: "flex items-center gap-2 overflow-hidden", children: headerFormat === "IMAGE" ? /* @__PURE__ */ jsxs25(
|
|
15409
|
+
/* @__PURE__ */ jsx29("div", { className: "flex items-center gap-2 overflow-hidden", children: headerFormat === "IMAGE" ? /* @__PURE__ */ jsxs25(Fragment8, { children: [
|
|
15407
15410
|
/* @__PURE__ */ jsx29("div", { className: "w-7 h-7 rounded-md overflow-hidden border border-slate-200 shrink-0 bg-slate-100 flex items-center justify-center", children: state.headerMediaUrl && state.headerMediaUrl.startsWith("http") ? /* @__PURE__ */ jsx29(
|
|
15408
15411
|
"img",
|
|
15409
15412
|
{
|
|
@@ -15416,13 +15419,13 @@ function WhatsAppComponent(props) {
|
|
|
15416
15419
|
}
|
|
15417
15420
|
) : /* @__PURE__ */ jsx29(ImageIcon3, { className: "w-3.5 h-3.5 text-emerald-600" }) }),
|
|
15418
15421
|
/* @__PURE__ */ jsx29("span", { className: "font-semibold text-slate-800 truncate", children: "\u05EA\u05DE\u05D5\u05E0\u05EA \u05DB\u05D5\u05EA\u05E8\u05EA" })
|
|
15419
|
-
] }) : headerFormat === "DOCUMENT" ? /* @__PURE__ */ jsxs25(
|
|
15422
|
+
] }) : headerFormat === "DOCUMENT" ? /* @__PURE__ */ jsxs25(Fragment8, { children: [
|
|
15420
15423
|
/* @__PURE__ */ jsx29("div", { className: "w-7 h-7 rounded-md bg-rose-50 text-rose-600 border border-rose-100 flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx29(FileText4, { className: "w-3.5 h-3.5" }) }),
|
|
15421
15424
|
/* @__PURE__ */ jsxs25("div", { className: "overflow-hidden", children: [
|
|
15422
15425
|
/* @__PURE__ */ jsx29("span", { className: "font-semibold text-slate-800 block truncate", children: "\u05DE\u05E1\u05DE\u05DA \u05DB\u05D5\u05EA\u05E8\u05EA (PDF)" }),
|
|
15423
15426
|
/* @__PURE__ */ jsx29("span", { className: "text-[10px] text-slate-500 font-mono block truncate", title: docFilename, children: docFilename })
|
|
15424
15427
|
] })
|
|
15425
|
-
] }) : /* @__PURE__ */ jsxs25(
|
|
15428
|
+
] }) : /* @__PURE__ */ jsxs25(Fragment8, { children: [
|
|
15426
15429
|
/* @__PURE__ */ jsx29("div", { className: "w-7 h-7 rounded-md bg-indigo-50 text-indigo-600 border border-indigo-100 flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx29(Video3, { className: "w-3.5 h-3.5" }) }),
|
|
15427
15430
|
/* @__PURE__ */ jsx29("span", { className: "font-semibold text-slate-800 truncate", children: "\u05E1\u05E8\u05D8\u05D5\u05DF \u05DB\u05D5\u05EA\u05E8\u05EA" })
|
|
15428
15431
|
] }) }),
|
|
@@ -15489,10 +15492,10 @@ function WhatsAppComponent(props) {
|
|
|
15489
15492
|
onClick: state.handleSendTest,
|
|
15490
15493
|
title: state.testButtonTitle,
|
|
15491
15494
|
className: `px-4 py-2 text-xs font-bold rounded-xl transition-all flex items-center gap-1.5 ${!state.testPhoneNumber.trim() || state.isSendingTest || state.isTestDisabled ? "bg-emerald-600/40 text-white/70 cursor-not-allowed" : "bg-emerald-600 hover:bg-emerald-700 active:scale-[0.98] text-white shadow-xs cursor-pointer"}`,
|
|
15492
|
-
children: state.isSendingTest ? /* @__PURE__ */ jsxs25(
|
|
15495
|
+
children: state.isSendingTest ? /* @__PURE__ */ jsxs25(Fragment8, { children: [
|
|
15493
15496
|
/* @__PURE__ */ jsx29(Loader28, { className: "w-3.5 h-3.5 animate-spin" }),
|
|
15494
15497
|
/* @__PURE__ */ jsx29("span", { children: "\u05E9\u05D5\u05DC\u05D7..." })
|
|
15495
|
-
] }) : /* @__PURE__ */ jsxs25(
|
|
15498
|
+
] }) : /* @__PURE__ */ jsxs25(Fragment8, { children: [
|
|
15496
15499
|
/* @__PURE__ */ jsx29(Send3, { className: "w-3.5 h-3.5" }),
|
|
15497
15500
|
/* @__PURE__ */ jsx29("span", { children: "\u05E9\u05DC\u05D7 \u05E2\u05DB\u05E9\u05D9\u05D5" })
|
|
15498
15501
|
] })
|
|
@@ -16261,7 +16264,7 @@ function StyledFormBlock({
|
|
|
16261
16264
|
value: shownValue,
|
|
16262
16265
|
onChange: (val) => handleFieldChange(col.name, val),
|
|
16263
16266
|
readOnly: previewMode || locked,
|
|
16264
|
-
context: { executeAction: previewMode ? void 0 : executeAction, tableId: targetTableId, relationDictionaryRef: relationDictRef }
|
|
16267
|
+
context: { executeAction: previewMode ? void 0 : executeAction, tableId: targetTableId, relationDictionaryRef: relationDictRef, orgId: schema == null ? void 0 : schema.orgId }
|
|
16265
16268
|
}
|
|
16266
16269
|
) }),
|
|
16267
16270
|
canReorder && dragName && drop && drop.name === col.name && /* @__PURE__ */ jsx31(
|