@nice2dev/ui 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +107 -0
- package/dist/NiceApiExplorer.doc-CFJndg5h.js +25 -0
- package/dist/NiceApiExplorer.doc-TEx67kV5.cjs +1 -0
- package/dist/NiceBPMNDesigner.doc-6lK1pXRq.js +32 -0
- package/dist/NiceBPMNDesigner.doc-BY8t7qOi.cjs +8 -0
- package/dist/NiceBackupDiffViewer.doc-CYvOeX19.js +25 -0
- package/dist/NiceBackupDiffViewer.doc-ChQaZCg1.cjs +1 -0
- package/dist/NiceBackupList.doc-BdQCw0_D.cjs +1 -0
- package/dist/NiceBackupList.doc-BwjIAoqz.js +25 -0
- package/dist/NiceBackupRestoreDialog.doc-B2iiqTps.cjs +1 -0
- package/dist/NiceBackupRestoreDialog.doc-DuXSGJiD.js +25 -0
- package/dist/NiceBackupScheduler.doc-BpY45181.js +31 -0
- package/dist/NiceBackupScheduler.doc-ByeL3iH1.cjs +7 -0
- package/dist/NiceBackupStatusBadge.doc-BA3dYgiW.cjs +1 -0
- package/dist/NiceBackupStatusBadge.doc-CxwkVarP.js +25 -0
- package/dist/NiceBackupTagEditor.doc-Bej1KHco.cjs +7 -0
- package/dist/NiceBackupTagEditor.doc-CNy4uNws.js +31 -0
- package/dist/NiceBottomSheet.doc-keq-Fzlz.cjs +8 -0
- package/dist/NiceBottomSheet.doc-v-UPUKQk.js +32 -0
- package/dist/NiceBranchManager.doc-BTyRjX7X.cjs +6 -0
- package/dist/NiceBranchManager.doc-Cz4SyEqE.js +30 -0
- package/dist/NiceButton-3AcJJ15c.cjs +1 -0
- package/dist/NiceButton-vkI07DP0.js +88 -0
- package/dist/NiceCodeEditor-VGIDWSkS.js +1181 -0
- package/dist/NiceCodeEditor-qX39PSnQ.cjs +260 -0
- package/dist/NiceColorPicker-CQhhjZ8w.cjs +1 -0
- package/dist/NiceColorPicker-Cbop7VMu.js +491 -0
- package/dist/NiceConnectorConfigForm.doc-BKrDuhXw.cjs +7 -0
- package/dist/NiceConnectorConfigForm.doc-BsHeXz3M.js +31 -0
- package/dist/NiceDataBranchGraph.doc-Axidz41W.js +29 -0
- package/dist/NiceDataBranchGraph.doc-sjLmrrtE.cjs +5 -0
- package/dist/NiceDataBranchManager.doc-B1-Rp2X4.cjs +6 -0
- package/dist/NiceDataBranchManager.doc-GUqfTFvW.js +30 -0
- package/dist/NiceDataConflictResolver.doc-CjQryrTu.cjs +5 -0
- package/dist/NiceDataConflictResolver.doc-L-TcnQMX.js +29 -0
- package/dist/NiceDataDiffViewer.doc-BzGrf0U-.cjs +6 -0
- package/dist/NiceDataDiffViewer.doc-goxhSldH.js +30 -0
- package/dist/NiceDataGrid-BDEIbuBS.js +2218 -0
- package/dist/NiceDataGrid-CS5aB-EN.cjs +10 -0
- package/dist/NiceDataMapper.doc-QmnmnvVq.js +30 -0
- package/dist/NiceDataMapper.doc-ytGVtYVr.cjs +6 -0
- package/dist/NiceDataMergeBuilder.doc-BcmzKxh2.cjs +6 -0
- package/dist/NiceDataMergeBuilder.doc-BvYa4aUJ.js +30 -0
- package/dist/NiceDataSnapshot.doc-C73K1biG.cjs +6 -0
- package/dist/NiceDataSnapshot.doc-hU7wnOzM.js +30 -0
- package/dist/NiceDesktopViews.doc-DJjYlyP2.cjs +1 -0
- package/dist/NiceDesktopViews.doc-ly-VUAJj.js +25 -0
- package/dist/NiceDeviceControlCard.doc-BZIo92-w.cjs +1 -0
- package/dist/NiceDeviceControlCard.doc-DIzZcW9L.js +25 -0
- package/dist/NiceDocumentViewer-B9VIVKyw.js +726 -0
- package/dist/NiceDocumentViewer-CDXAmPp7.cjs +180 -0
- package/dist/NiceDocumentationViewer.doc-BSNGa7a_.js +25 -0
- package/dist/NiceDocumentationViewer.doc-CrwlvPFg.cjs +1 -0
- package/dist/NiceEnergyChart.doc-DW-jllDV.cjs +1 -0
- package/dist/NiceEnergyChart.doc-DnEehTff.js +25 -0
- package/dist/NiceFeatureGate.doc-DN17uS_B.cjs +3 -0
- package/dist/NiceFeatureGate.doc-DNfFSRrh.js +27 -0
- package/dist/NiceForm-BcN4p2kG.cjs +1 -0
- package/dist/NiceForm-tIXS-M6b.js +4770 -0
- package/dist/NiceFormItem.doc-BJwEnDz2.js +36 -0
- package/dist/NiceFormItem.doc-Ck3PgaPD.cjs +12 -0
- package/dist/NiceGantt-CTbqCuwv.cjs +1 -0
- package/dist/NiceGantt-Dao7pN9z.js +328 -0
- package/dist/NiceGantt.doc-B6YZcJvG.cjs +11 -0
- package/dist/NiceGantt.doc-DsI1QXly.js +48 -0
- package/dist/NiceGitBlame.doc-BQ2KvGkD.js +30 -0
- package/dist/NiceGitBlame.doc-DuTSjZVN.cjs +6 -0
- package/dist/NiceGitDiffViewer.doc-D24AGos_.js +30 -0
- package/dist/NiceGitDiffViewer.doc-D9FVquBC.cjs +6 -0
- package/dist/NiceGitGraph.doc-C-8VGMIz.js +29 -0
- package/dist/NiceGitGraph.doc-eRvTmefl.cjs +5 -0
- package/dist/NiceGitHooks.doc-DCTVw7HX.cjs +5 -0
- package/dist/NiceGitHooks.doc-OCFj5w6v.js +29 -0
- package/dist/NiceHtmlEditor-DUwcqj5N.cjs +10 -0
- package/dist/NiceHtmlEditor-DiAphF1k.js +889 -0
- package/dist/NiceInstanceMonitor.doc-BSDZp5xa.js +31 -0
- package/dist/NiceInstanceMonitor.doc-HVbLufnh.cjs +7 -0
- package/dist/NiceLocaleManager.doc-CbVHDEWu.js +25 -0
- package/dist/NiceLocaleManager.doc-XH6hMW0Z.cjs +1 -0
- package/dist/NiceLockButton.doc-BMhSj3TB.cjs +1 -0
- package/dist/NiceLockButton.doc-DvHGhcfm.js +25 -0
- package/dist/NiceLoginForm-DQe77Isv.js +747 -0
- package/dist/NiceLoginForm-NBCo-DUZ.cjs +1 -0
- package/dist/NiceLoginForm.css +1 -1
- package/dist/NiceMAM.doc-CsQ57saR.cjs +8 -0
- package/dist/NiceMAM.doc-hjW7buTH.js +32 -0
- package/dist/NiceMention--3P3vO-W.cjs +430 -0
- package/dist/NiceMention-Co2cqkVM.js +11316 -0
- package/dist/NiceMention.css +1 -1
- package/dist/NiceModuleLifecyclePanel-DV3F_QdI.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-gaZkIEtK.js +6825 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -1
- package/dist/NiceNetworkDiscoveryPanel.doc-B0RtGaS3.js +25 -0
- package/dist/NiceNetworkDiscoveryPanel.doc-BFgFZI5G.cjs +1 -0
- package/dist/NicePagination-B3nZDZem.js +165 -0
- package/dist/NicePagination-B8rg1Y67.cjs +1 -0
- package/dist/NicePipelineEditor.doc-CjqDKe2x.js +29 -0
- package/dist/NicePipelineEditor.doc-DZ0pTVTp.cjs +5 -0
- package/dist/NicePipelineMonitor.doc-C88-TagI.cjs +5 -0
- package/dist/NicePipelineMonitor.doc-CFtH4XJx.js +29 -0
- package/dist/NicePivotGrid-BaZa2YZW.js +1157 -0
- package/dist/NicePivotGrid-DyOPhPO8.cjs +152 -0
- package/dist/NiceRoomGrid.doc-DJPVUQVg.cjs +8 -0
- package/dist/NiceRoomGrid.doc-DLHJS_Wb.js +32 -0
- package/dist/NiceSavedQueryPanel-BC84uRfh.cjs +586 -0
- package/dist/NiceSavedQueryPanel-CMfcODIO.js +5120 -0
- package/dist/NiceSavedQueryPanel.css +1 -1
- package/dist/NiceSceneBar.doc-09sc3yuF.cjs +1 -0
- package/dist/NiceSceneBar.doc-DLePMuVU.js +25 -0
- package/dist/NiceSceneSelector.doc-CPzCAy-d.cjs +7 -0
- package/dist/NiceSceneSelector.doc-FCLZvPc0.js +31 -0
- package/dist/NiceScheduler-BAJRzFQN.js +1690 -0
- package/dist/NiceScheduler-dJ7gHDv7.cjs +5 -0
- package/dist/NiceSchedulerViews.doc-C9opZpgg.cjs +1 -0
- package/dist/NiceSchedulerViews.doc-Dy7ZH1iL.js +25 -0
- package/dist/NiceSelect-CZR8Zu_k.js +420 -0
- package/dist/NiceSelect-DIKGbaJo.cjs +1 -0
- package/dist/NiceSensorGaugePanel.doc-BHirbWLn.cjs +8 -0
- package/dist/NiceSensorGaugePanel.doc-DjKmooI6.js +32 -0
- package/dist/NiceSpotlight.doc-BVZFfDVI.cjs +10 -0
- package/dist/NiceSpotlight.doc-JqwkzrEm.js +34 -0
- package/dist/NiceStateDesigner.doc-CfnwiwfU.js +29 -0
- package/dist/NiceStateDesigner.doc-DV4zEC50.cjs +5 -0
- package/dist/NiceStepper.doc-5VjaLM6r.js +31 -0
- package/dist/NiceStepper.doc-f8lYpr33.cjs +7 -0
- package/dist/NiceTaskInbox.doc-CHrxthqp.js +32 -0
- package/dist/NiceTaskInbox.doc-CdCTfgBq.cjs +8 -0
- package/dist/NiceTestBuilder.doc-BoBzLfa0.js +30 -0
- package/dist/NiceTestBuilder.doc-Cj1fNTvk.cjs +6 -0
- package/dist/NiceTranscoder.doc-Dnirl3wg.cjs +7 -0
- package/dist/NiceTranscoder.doc-cInCYZh7.js +31 -0
- package/dist/NiceVideoAnnotator.doc-C1iEi7OM.cjs +7 -0
- package/dist/NiceVideoAnnotator.doc-C8zyfKH_.js +31 -0
- package/dist/NiceVideoEditor.doc-C6mhEb-q.cjs +7 -0
- package/dist/NiceVideoEditor.doc-lrwmKjqj.js +31 -0
- package/dist/NiceWindow-CWN8OCHF.js +2109 -0
- package/dist/NiceWindow-Dd8qjkIW.cjs +1 -0
- package/dist/NiceWindow.css +1 -1
- package/dist/charts-Bo2WAI5T.cjs +768 -0
- package/dist/charts-ByrdMeQP.js +4767 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.css +1 -1
- package/dist/charts.d.ts +28 -18
- package/dist/charts.mjs +1 -1
- package/dist/core-B8eBUE4m.js +438 -0
- package/dist/core-lBFqvT0V.cjs +1 -0
- package/dist/core-lazy-Bh2yg4Et.js +351 -0
- package/dist/core-lazy-CkWKjfc6.cjs +1 -0
- package/dist/data-branching-Dak1_ZKR.cjs +1 -0
- package/dist/data-branching-DiLAO4Qt.js +6386 -0
- package/dist/data-branching.cjs +1 -1
- package/dist/data-branching.mjs +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.d.ts +22 -18
- package/dist/data.mjs +3 -3
- package/dist/devops-DkVluHBp.cjs +17 -0
- package/dist/devops-zsMUueTd.js +8648 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.d.ts +3 -3
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +100 -38
- package/dist/editors.mjs +8 -8
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.d.ts +71 -2
- package/dist/feedback.mjs +10 -9
- package/dist/index.cjs +193 -193
- package/dist/index.css +1 -1
- package/dist/index.d.ts +637 -225
- package/dist/index.mjs +26403 -26405
- package/dist/injectStyleOnce-BzC_BCs_.js +9 -0
- package/dist/injectStyleOnce-DeWaxcdf.cjs +1 -0
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.d.ts +9 -7
- package/dist/lazy.mjs +51 -51
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.css +1 -0
- package/dist/navigation.d.ts +99 -43
- package/dist/navigation.mjs +504 -547
- package/dist/no-code-DiTEnuRv.js +8288 -0
- package/dist/no-code-wG9c0z_T.cjs +331 -0
- package/dist/no-code.cjs +1 -1
- package/dist/no-code.css +1 -1
- package/dist/no-code.mjs +1 -1
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.d.ts +12 -6
- package/dist/overlays.mjs +1 -1
- package/dist/pickerCommons-BCRiHDE_.cjs +1 -0
- package/dist/pickerCommons-DkumQ3KE.js +548 -0
- package/dist/style.css +12 -9
- package/package.json +3 -3
|
@@ -0,0 +1,491 @@
|
|
|
1
|
+
import { jsxs as M, jsx as i, Fragment as ue } from "react/jsx-runtime";
|
|
2
|
+
import { useNiceAccessMode as de, useNiceTranslation as me, useControlId as fe, useComponentDisplayClass as he, NiceKeyboardHint as ge } from "@nice2dev/ui-core";
|
|
3
|
+
import { forwardRef as ve, useCallback as _e, useState as A, useRef as V, useLayoutEffect as be, useEffect as ke, useMemo as Ne } from "react";
|
|
4
|
+
import xe from "react-dom";
|
|
5
|
+
import { s as ye } from "./NiceSelect-CZR8Zu_k.js";
|
|
6
|
+
const Me = [
|
|
7
|
+
"#ef4444",
|
|
8
|
+
"#f97316",
|
|
9
|
+
"#f59e0b",
|
|
10
|
+
"#84cc16",
|
|
11
|
+
"#10b981",
|
|
12
|
+
"#06b6d4",
|
|
13
|
+
"#3b82f6",
|
|
14
|
+
"#6366f1",
|
|
15
|
+
"#8b5cf6",
|
|
16
|
+
"#ec4899",
|
|
17
|
+
"#64748b",
|
|
18
|
+
"#1e293b"
|
|
19
|
+
];
|
|
20
|
+
function $e() {
|
|
21
|
+
return "#" + Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0");
|
|
22
|
+
}
|
|
23
|
+
function Fe(c) {
|
|
24
|
+
const l = /^#?([0-9a-f]{6})$/i.exec(c.trim());
|
|
25
|
+
if (!l)
|
|
26
|
+
return { r: 0, g: 0, b: 0 };
|
|
27
|
+
const m = parseInt(l[1], 16);
|
|
28
|
+
return { r: m >> 16 & 255, g: m >> 8 & 255, b: m & 255 };
|
|
29
|
+
}
|
|
30
|
+
function Oe(c, l, m) {
|
|
31
|
+
const p = (n) => Math.max(0, Math.min(255, Math.round(n))).toString(16).padStart(2, "0");
|
|
32
|
+
return `#${p(c)}${p(l)}${p(m)}`;
|
|
33
|
+
}
|
|
34
|
+
function we(c, l, m) {
|
|
35
|
+
const p = c / 255, n = l / 255, r = m / 255, e = Math.max(p, n, r), h = Math.min(p, n, r), u = (e + h) / 2;
|
|
36
|
+
let o = 0, s = 0;
|
|
37
|
+
if (e !== h) {
|
|
38
|
+
const _ = e - h;
|
|
39
|
+
switch (s = u > 0.5 ? _ / (2 - e - h) : _ / (e + h), e) {
|
|
40
|
+
case p:
|
|
41
|
+
o = (n - r) / _ + (n < r ? 6 : 0);
|
|
42
|
+
break;
|
|
43
|
+
case n:
|
|
44
|
+
o = (r - p) / _ + 2;
|
|
45
|
+
break;
|
|
46
|
+
case r:
|
|
47
|
+
o = (p - n) / _ + 4;
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
o *= 60;
|
|
51
|
+
}
|
|
52
|
+
return { h: Math.round(o), s: Math.round(s * 100), l: Math.round(u * 100) };
|
|
53
|
+
}
|
|
54
|
+
function Pe(c, l, m) {
|
|
55
|
+
const p = l / 100, n = m / 100, r = (1 - Math.abs(2 * n - 1)) * p, e = r * (1 - Math.abs(c / 60 % 2 - 1)), h = n - r / 2;
|
|
56
|
+
let u = 0, o = 0, s = 0;
|
|
57
|
+
return c < 60 ? [u, o, s] = [r, e, 0] : c < 120 ? [u, o, s] = [e, r, 0] : c < 180 ? [u, o, s] = [0, r, e] : c < 240 ? [u, o, s] = [0, e, r] : c < 300 ? [u, o, s] = [e, 0, r] : [u, o, s] = [r, 0, e], {
|
|
58
|
+
r: Math.round((u + h) * 255),
|
|
59
|
+
g: Math.round((o + h) * 255),
|
|
60
|
+
b: Math.round((s + h) * 255)
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function Ce(c, l, m) {
|
|
64
|
+
const p = c / 255, n = l / 255, r = m / 255, e = Math.max(p, n, r), h = Math.min(p, n, r), u = e - h;
|
|
65
|
+
let o = 0;
|
|
66
|
+
u !== 0 && (e === p ? o = (n - r) / u % 6 : e === n ? o = (r - p) / u + 2 : o = (p - n) / u + 4, o *= 60, o < 0 && (o += 360));
|
|
67
|
+
const s = e === 0 ? 0 : u / e;
|
|
68
|
+
return { h: Math.round(o), s: Math.round(s * 100), v: Math.round(e * 100) };
|
|
69
|
+
}
|
|
70
|
+
function Ee(c, l, m) {
|
|
71
|
+
const p = l / 100, n = m / 100, r = n * p, e = r * (1 - Math.abs(c / 60 % 2 - 1)), h = n - r;
|
|
72
|
+
let u = 0, o = 0, s = 0;
|
|
73
|
+
return c < 60 ? [u, o, s] = [r, e, 0] : c < 120 ? [u, o, s] = [e, r, 0] : c < 180 ? [u, o, s] = [0, r, e] : c < 240 ? [u, o, s] = [0, e, r] : c < 300 ? [u, o, s] = [e, 0, r] : [u, o, s] = [r, 0, e], {
|
|
74
|
+
r: Math.round((u + h) * 255),
|
|
75
|
+
g: Math.round((o + h) * 255),
|
|
76
|
+
b: Math.round((s + h) * 255)
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function Le(c) {
|
|
80
|
+
let l = c.trim();
|
|
81
|
+
const m = /var\([^,]+,\s*(#[0-9a-fA-F]{3,8})\s*\)/.exec(l);
|
|
82
|
+
m && (l = m[1]);
|
|
83
|
+
const p = /^#?([0-9a-f]{3})$/i.exec(l);
|
|
84
|
+
p && (l = `#${p[1].split("").map((e) => e + e).join("")}`);
|
|
85
|
+
const n = /^#?([0-9a-f]{6})$/i.exec(l), r = /^#?([0-9a-f]{8})$/i.exec(l);
|
|
86
|
+
if (r) {
|
|
87
|
+
const e = r[1];
|
|
88
|
+
return {
|
|
89
|
+
r: parseInt(e.slice(0, 2), 16),
|
|
90
|
+
g: parseInt(e.slice(2, 4), 16),
|
|
91
|
+
b: parseInt(e.slice(4, 6), 16),
|
|
92
|
+
a: parseInt(e.slice(6, 8), 16) / 255
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
if (n) {
|
|
96
|
+
const e = parseInt(n[1], 16);
|
|
97
|
+
return { r: e >> 16 & 255, g: e >> 8 & 255, b: e & 255, a: 1 };
|
|
98
|
+
}
|
|
99
|
+
return { r: 0, g: 0, b: 0, a: 1 };
|
|
100
|
+
}
|
|
101
|
+
function Re(c, l, m, p, n) {
|
|
102
|
+
const r = (h) => Math.max(0, Math.min(255, Math.round(h))).toString(16).padStart(2, "0"), e = `#${r(c)}${r(l)}${r(m)}`;
|
|
103
|
+
return n ? `${e}${r(p * 255)}` : e;
|
|
104
|
+
}
|
|
105
|
+
const je = /* @__PURE__ */ Object.assign(
|
|
106
|
+
/* @__PURE__ */ ve(
|
|
107
|
+
({
|
|
108
|
+
label: c,
|
|
109
|
+
helperText: l,
|
|
110
|
+
error: m,
|
|
111
|
+
required: p,
|
|
112
|
+
disabled: n,
|
|
113
|
+
id: r,
|
|
114
|
+
className: e,
|
|
115
|
+
style: h,
|
|
116
|
+
accessMode: u,
|
|
117
|
+
displayStyle: o,
|
|
118
|
+
value: s = "#3b82f6",
|
|
119
|
+
onChange: _,
|
|
120
|
+
presets: K = Me,
|
|
121
|
+
showInput: X = !1,
|
|
122
|
+
showRandom: Y = !1,
|
|
123
|
+
withAlpha: L = !1,
|
|
124
|
+
compact: D = !1,
|
|
125
|
+
showKeyboardHints: G,
|
|
126
|
+
size: J = "md",
|
|
127
|
+
labelPlacement: Q,
|
|
128
|
+
errorPlacement: S,
|
|
129
|
+
labelWidth: H,
|
|
130
|
+
controlWidth: T,
|
|
131
|
+
loading: F
|
|
132
|
+
}, I) => {
|
|
133
|
+
const O = de(u, r), Z = O === "hidden";
|
|
134
|
+
(O === "disabled" || O === "readOnly") && (n = !0);
|
|
135
|
+
const { t: b } = me(), w = fe(r);
|
|
136
|
+
he("input", o);
|
|
137
|
+
const W = _e(() => {
|
|
138
|
+
n || _?.($e());
|
|
139
|
+
}, [n, _]), [P, C] = A(!1), [j, ee] = A(null), [z, ne] = A(""), U = V(null), R = V(null);
|
|
140
|
+
be(() => {
|
|
141
|
+
if (!P || !R.current)
|
|
142
|
+
return;
|
|
143
|
+
ne(ye(R.current));
|
|
144
|
+
const d = () => {
|
|
145
|
+
const a = R.current?.getBoundingClientRect();
|
|
146
|
+
if (!a)
|
|
147
|
+
return;
|
|
148
|
+
const N = 280, x = 360;
|
|
149
|
+
let k = a.left, $ = a.bottom + 6;
|
|
150
|
+
k + N > window.innerWidth - 8 && (k = Math.max(8, window.innerWidth - N - 8)), $ + x > window.innerHeight - 8 && ($ = Math.max(8, a.top - x - 6)), ee({ left: k, top: $ });
|
|
151
|
+
};
|
|
152
|
+
return d(), window.addEventListener("scroll", d, !0), window.addEventListener("resize", d), () => {
|
|
153
|
+
window.removeEventListener("scroll", d, !0), window.removeEventListener("resize", d);
|
|
154
|
+
};
|
|
155
|
+
}, [P]), ke(() => {
|
|
156
|
+
if (!P)
|
|
157
|
+
return;
|
|
158
|
+
const d = (N) => {
|
|
159
|
+
const x = N.target;
|
|
160
|
+
U.current?.contains(x) || R.current?.contains(x) || C(!1);
|
|
161
|
+
}, a = (N) => {
|
|
162
|
+
N.key === "Escape" && C(!1);
|
|
163
|
+
};
|
|
164
|
+
return document.addEventListener("mousedown", d), document.addEventListener("keydown", a), () => {
|
|
165
|
+
document.removeEventListener("mousedown", d), document.removeEventListener("keydown", a);
|
|
166
|
+
};
|
|
167
|
+
}, [P]);
|
|
168
|
+
const te = Ne(
|
|
169
|
+
() => [
|
|
170
|
+
{ key: "Enter", description: b("shortcuts.openPicker", "Open color picker") },
|
|
171
|
+
{ key: "Arrow keys", description: b("shortcuts.navigatePresets", "Navigate presets") }
|
|
172
|
+
],
|
|
173
|
+
[b]
|
|
174
|
+
);
|
|
175
|
+
return Z ? null : /* @__PURE__ */ M(
|
|
176
|
+
"div",
|
|
177
|
+
{
|
|
178
|
+
className: `nice-field nice-field--${J} ${Q === "left" ? "nice-field--label-left" : ""} ${D ? "nice-color-picker--compact" : ""} ${F ? "nice-field--loading" : ""} ${e || ""}`,
|
|
179
|
+
style: {
|
|
180
|
+
...h,
|
|
181
|
+
...H != null && {
|
|
182
|
+
"--nice-field-label-width": typeof H == "number" ? `${H}px` : H
|
|
183
|
+
},
|
|
184
|
+
...T != null && {
|
|
185
|
+
"--nice-field-control-width": typeof T == "number" ? `${T}px` : T
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"aria-busy": F || void 0,
|
|
189
|
+
children: [
|
|
190
|
+
c && /* @__PURE__ */ M(
|
|
191
|
+
"label",
|
|
192
|
+
{
|
|
193
|
+
htmlFor: w,
|
|
194
|
+
className: `nice-field__label ${p ? "nice-field__label--required" : ""}`,
|
|
195
|
+
children: [
|
|
196
|
+
c,
|
|
197
|
+
G && /* @__PURE__ */ i(ge, { shortcuts: te, size: "sm" })
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
),
|
|
201
|
+
/* @__PURE__ */ i("div", { className: "nice-field__control", children: /* @__PURE__ */ M("div", { className: "nice-color-picker", children: [
|
|
202
|
+
/* @__PURE__ */ M("div", { className: "nice-color-picker__preview-row", children: [
|
|
203
|
+
/* @__PURE__ */ i(
|
|
204
|
+
"div",
|
|
205
|
+
{
|
|
206
|
+
ref: R,
|
|
207
|
+
className: "nice-color-picker__swatch",
|
|
208
|
+
id: w,
|
|
209
|
+
style: { background: s },
|
|
210
|
+
onClick: (d) => {
|
|
211
|
+
d.stopPropagation(), n || C((a) => !a);
|
|
212
|
+
},
|
|
213
|
+
onKeyDown: (d) => {
|
|
214
|
+
!n && (d.key === "Enter" || d.key === " ") && (d.preventDefault(), C((a) => !a));
|
|
215
|
+
},
|
|
216
|
+
role: "button",
|
|
217
|
+
tabIndex: 0,
|
|
218
|
+
"aria-label": b("colorPicker.openPalette", "Open color palette"),
|
|
219
|
+
"aria-haspopup": "dialog",
|
|
220
|
+
"aria-expanded": P,
|
|
221
|
+
children: /* @__PURE__ */ i(
|
|
222
|
+
"input",
|
|
223
|
+
{
|
|
224
|
+
ref: (d) => {
|
|
225
|
+
typeof I == "function" ? I(d) : I && (I.current = d);
|
|
226
|
+
},
|
|
227
|
+
type: "hidden",
|
|
228
|
+
value: s,
|
|
229
|
+
disabled: n,
|
|
230
|
+
readOnly: !0
|
|
231
|
+
}
|
|
232
|
+
)
|
|
233
|
+
}
|
|
234
|
+
),
|
|
235
|
+
X && /* @__PURE__ */ i(
|
|
236
|
+
"div",
|
|
237
|
+
{
|
|
238
|
+
className: "nice-input nice-input--sm",
|
|
239
|
+
style: D ? { flex: 1, minWidth: 0 } : { width: 100 },
|
|
240
|
+
children: /* @__PURE__ */ i(
|
|
241
|
+
"input",
|
|
242
|
+
{
|
|
243
|
+
className: "nice-input__native",
|
|
244
|
+
type: "text",
|
|
245
|
+
value: s,
|
|
246
|
+
disabled: n,
|
|
247
|
+
onChange: (d) => _?.(d.target.value),
|
|
248
|
+
maxLength: L ? 9 : 7
|
|
249
|
+
}
|
|
250
|
+
)
|
|
251
|
+
}
|
|
252
|
+
),
|
|
253
|
+
Y && !D && /* @__PURE__ */ i(
|
|
254
|
+
"button",
|
|
255
|
+
{
|
|
256
|
+
type: "button",
|
|
257
|
+
className: "nice-btn nice-btn--outline nice-btn--sm nice-color-picker__random",
|
|
258
|
+
onClick: W,
|
|
259
|
+
disabled: n,
|
|
260
|
+
title: b("colorPicker.random", "Random"),
|
|
261
|
+
"aria-label": b("colorPicker.random", "Random"),
|
|
262
|
+
style: {
|
|
263
|
+
fontSize: "0.65rem",
|
|
264
|
+
textTransform: "uppercase",
|
|
265
|
+
letterSpacing: "0.05em"
|
|
266
|
+
},
|
|
267
|
+
children: b("colorPicker.random", "Random")
|
|
268
|
+
}
|
|
269
|
+
),
|
|
270
|
+
F && /* @__PURE__ */ i("span", { className: "nice-field__spinner", children: /* @__PURE__ */ i("span", { className: "nice-spinner nice-spinner--sm" }) }),
|
|
271
|
+
S === "right" && m && /* @__PURE__ */ i("div", { id: `${w}-error`, className: "nice-field__error", role: "alert", children: m }),
|
|
272
|
+
S === "right" && !m && l && /* @__PURE__ */ i("div", { id: `${w}-helper`, className: "nice-field__helper", children: l })
|
|
273
|
+
] }),
|
|
274
|
+
P && j && typeof document < "u" && xe.createPortal(
|
|
275
|
+
// stopPropagation keeps a click inside the palette from reaching the closer
|
|
276
|
+
// listening outside it; it is no interaction of its own
|
|
277
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
278
|
+
/* @__PURE__ */ i(
|
|
279
|
+
"div",
|
|
280
|
+
{
|
|
281
|
+
ref: U,
|
|
282
|
+
className: `nice-color-picker__popup nice-color-picker__popup--portal ${z}`,
|
|
283
|
+
"data-theme": z === "nice-dark" ? "dark" : z === "nice-light" ? "light" : void 0,
|
|
284
|
+
role: "dialog",
|
|
285
|
+
"aria-label": b("colorPicker.palette", "Color palette"),
|
|
286
|
+
style: { position: "fixed", left: j.left, top: j.top },
|
|
287
|
+
onClick: (d) => d.stopPropagation(),
|
|
288
|
+
children: (() => {
|
|
289
|
+
const d = Le(s), a = { r: d.r, g: d.g, b: d.b }, N = L ? d.a : 1, x = we(a.r, a.g, a.b), k = Ce(a.r, a.g, a.b), $ = (t, g, v, f = N) => _?.(Re(t, g, v, f, L)), re = (t, g, v) => $(t, g, v), ie = (t, g, v) => {
|
|
290
|
+
const f = Pe(t, g, v);
|
|
291
|
+
$(f.r, f.g, f.b);
|
|
292
|
+
}, B = (t, g, v) => {
|
|
293
|
+
const f = Ee(t, g, v);
|
|
294
|
+
$(f.r, f.g, f.b);
|
|
295
|
+
}, q = (t) => $(a.r, a.g, a.b, t), oe = (t) => {
|
|
296
|
+
if (n)
|
|
297
|
+
return;
|
|
298
|
+
const g = t.currentTarget, v = (y) => {
|
|
299
|
+
const E = g.getBoundingClientRect(), ae = Math.max(0, Math.min(E.width, y.clientX - E.left)), se = Math.max(0, Math.min(E.height, y.clientY - E.top)), le = Math.round(ae / E.width * 100), pe = 100 - Math.round(se / E.height * 100);
|
|
300
|
+
B(k.h, le, pe);
|
|
301
|
+
};
|
|
302
|
+
v(t);
|
|
303
|
+
const f = () => {
|
|
304
|
+
document.removeEventListener("pointermove", v), document.removeEventListener("pointerup", f);
|
|
305
|
+
};
|
|
306
|
+
document.addEventListener("pointermove", v), document.addEventListener("pointerup", f);
|
|
307
|
+
}, ce = `hsl(${k.h}, 100%, 50%)`;
|
|
308
|
+
return /* @__PURE__ */ M(ue, { children: [
|
|
309
|
+
/* @__PURE__ */ i("div", { className: "nice-color-picker__popup-header", children: /* @__PURE__ */ i(
|
|
310
|
+
"input",
|
|
311
|
+
{
|
|
312
|
+
type: "text",
|
|
313
|
+
className: "nice-input__native nice-color-picker__popup-hex",
|
|
314
|
+
value: s,
|
|
315
|
+
disabled: n,
|
|
316
|
+
onChange: (t) => _?.(t.target.value),
|
|
317
|
+
maxLength: L ? 9 : 7,
|
|
318
|
+
"aria-label": b("colorPicker.hexValue", "Hex value")
|
|
319
|
+
}
|
|
320
|
+
) }),
|
|
321
|
+
/* @__PURE__ */ i(
|
|
322
|
+
"input",
|
|
323
|
+
{
|
|
324
|
+
type: "range",
|
|
325
|
+
min: 0,
|
|
326
|
+
max: 360,
|
|
327
|
+
value: k.h,
|
|
328
|
+
disabled: n,
|
|
329
|
+
onChange: (t) => B(Number(t.target.value), k.s, k.v),
|
|
330
|
+
className: "nice-color-picker__hue-slider",
|
|
331
|
+
"aria-label": b("colorPicker.hue", "Hue")
|
|
332
|
+
}
|
|
333
|
+
),
|
|
334
|
+
/* @__PURE__ */ i(
|
|
335
|
+
"div",
|
|
336
|
+
{
|
|
337
|
+
className: "nice-color-picker__sv",
|
|
338
|
+
style: {
|
|
339
|
+
/* audit-allow: token-role — black letterbox / canvas fill. A video frame or a
|
|
340
|
+
drawing surface is not a themed surface, so it stays black in both themes. */
|
|
341
|
+
background: `linear-gradient(to top, var(--nice-text, #000), transparent), linear-gradient(to right, var(--nice-bg, #FFF), ${ce})`
|
|
342
|
+
},
|
|
343
|
+
onPointerDown: oe,
|
|
344
|
+
role: "application",
|
|
345
|
+
"aria-label": b("colorPicker.svPalette", "Saturation/value palette"),
|
|
346
|
+
children: /* @__PURE__ */ i(
|
|
347
|
+
"span",
|
|
348
|
+
{
|
|
349
|
+
className: "nice-color-picker__sv-marker",
|
|
350
|
+
style: { left: `${k.s}%`, top: `${100 - k.v}%` }
|
|
351
|
+
}
|
|
352
|
+
)
|
|
353
|
+
}
|
|
354
|
+
),
|
|
355
|
+
/* @__PURE__ */ M("div", { className: "nice-color-picker__sliders", children: [
|
|
356
|
+
/* @__PURE__ */ i("div", { className: "nice-color-picker__slider-col", children: ["h", "s", "l"].map((t) => {
|
|
357
|
+
const g = t === "h" ? 360 : 100, v = x[t], f = (y) => ie(
|
|
358
|
+
t === "h" ? y : x.h,
|
|
359
|
+
t === "s" ? y : x.s,
|
|
360
|
+
t === "l" ? y : x.l
|
|
361
|
+
);
|
|
362
|
+
return /* @__PURE__ */ M("div", { className: "nice-color-picker__slider-row", children: [
|
|
363
|
+
/* @__PURE__ */ i("label", { className: "nice-color-picker__slider-label", children: t.toUpperCase() }),
|
|
364
|
+
/* @__PURE__ */ i(
|
|
365
|
+
"input",
|
|
366
|
+
{
|
|
367
|
+
type: "range",
|
|
368
|
+
min: 0,
|
|
369
|
+
max: g,
|
|
370
|
+
value: v,
|
|
371
|
+
disabled: n,
|
|
372
|
+
onChange: (y) => f(Number(y.target.value))
|
|
373
|
+
}
|
|
374
|
+
),
|
|
375
|
+
/* @__PURE__ */ i(
|
|
376
|
+
"input",
|
|
377
|
+
{
|
|
378
|
+
type: "number",
|
|
379
|
+
min: 0,
|
|
380
|
+
max: g,
|
|
381
|
+
value: v,
|
|
382
|
+
disabled: n,
|
|
383
|
+
onChange: (y) => f(Number(y.target.value) || 0),
|
|
384
|
+
className: "nice-input__native nice-color-picker__slider-num"
|
|
385
|
+
}
|
|
386
|
+
)
|
|
387
|
+
] }, t);
|
|
388
|
+
}) }),
|
|
389
|
+
/* @__PURE__ */ i("div", { className: "nice-color-picker__slider-col", children: ["r", "g", "b"].map((t) => {
|
|
390
|
+
const g = a[t], v = (f) => re(
|
|
391
|
+
t === "r" ? f : a.r,
|
|
392
|
+
t === "g" ? f : a.g,
|
|
393
|
+
t === "b" ? f : a.b
|
|
394
|
+
);
|
|
395
|
+
return /* @__PURE__ */ M("div", { className: "nice-color-picker__slider-row", children: [
|
|
396
|
+
/* @__PURE__ */ i("label", { className: "nice-color-picker__slider-label", children: t.toUpperCase() }),
|
|
397
|
+
/* @__PURE__ */ i(
|
|
398
|
+
"input",
|
|
399
|
+
{
|
|
400
|
+
type: "range",
|
|
401
|
+
min: 0,
|
|
402
|
+
max: 255,
|
|
403
|
+
value: g,
|
|
404
|
+
disabled: n,
|
|
405
|
+
onChange: (f) => v(Number(f.target.value))
|
|
406
|
+
}
|
|
407
|
+
),
|
|
408
|
+
/* @__PURE__ */ i(
|
|
409
|
+
"input",
|
|
410
|
+
{
|
|
411
|
+
type: "number",
|
|
412
|
+
min: 0,
|
|
413
|
+
max: 255,
|
|
414
|
+
value: g,
|
|
415
|
+
disabled: n,
|
|
416
|
+
onChange: (f) => v(Number(f.target.value) || 0),
|
|
417
|
+
className: "nice-input__native nice-color-picker__slider-num"
|
|
418
|
+
}
|
|
419
|
+
)
|
|
420
|
+
] }, t);
|
|
421
|
+
}) })
|
|
422
|
+
] }),
|
|
423
|
+
L && /* @__PURE__ */ M("div", { className: "nice-color-picker__alpha-row", children: [
|
|
424
|
+
/* @__PURE__ */ i("label", { className: "nice-color-picker__slider-label", children: "A" }),
|
|
425
|
+
/* @__PURE__ */ i(
|
|
426
|
+
"input",
|
|
427
|
+
{
|
|
428
|
+
type: "range",
|
|
429
|
+
min: 0,
|
|
430
|
+
max: 100,
|
|
431
|
+
value: Math.round(N * 100),
|
|
432
|
+
disabled: n,
|
|
433
|
+
onChange: (t) => q(Number(t.target.value) / 100),
|
|
434
|
+
className: "nice-color-picker__alpha-slider",
|
|
435
|
+
style: {
|
|
436
|
+
background: `linear-gradient(to right, transparent, rgb(${a.r},${a.g},${a.b}))`
|
|
437
|
+
},
|
|
438
|
+
"aria-label": b("colorPicker.alpha", "Alpha")
|
|
439
|
+
}
|
|
440
|
+
),
|
|
441
|
+
/* @__PURE__ */ i(
|
|
442
|
+
"input",
|
|
443
|
+
{
|
|
444
|
+
type: "number",
|
|
445
|
+
min: 0,
|
|
446
|
+
max: 100,
|
|
447
|
+
value: Math.round(N * 100),
|
|
448
|
+
disabled: n,
|
|
449
|
+
onChange: (t) => q((Number(t.target.value) || 0) / 100),
|
|
450
|
+
className: "nice-input__native nice-color-picker__slider-num"
|
|
451
|
+
}
|
|
452
|
+
)
|
|
453
|
+
] }),
|
|
454
|
+
K.length > 0 && /* @__PURE__ */ i("div", { className: "nice-color-picker__popup-presets", children: K.map((t) => /* @__PURE__ */ i(
|
|
455
|
+
"div",
|
|
456
|
+
{
|
|
457
|
+
className: `nice-color-picker__preset ${s === t ? "nice-color-picker__preset--active" : ""}`,
|
|
458
|
+
style: { background: t },
|
|
459
|
+
onClick: () => {
|
|
460
|
+
_?.(t), C(!1);
|
|
461
|
+
},
|
|
462
|
+
role: "button",
|
|
463
|
+
tabIndex: 0,
|
|
464
|
+
"aria-label": t,
|
|
465
|
+
onKeyDown: (g) => {
|
|
466
|
+
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), _?.(t), C(!1));
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
t
|
|
470
|
+
)) })
|
|
471
|
+
] });
|
|
472
|
+
})()
|
|
473
|
+
}
|
|
474
|
+
),
|
|
475
|
+
document.body
|
|
476
|
+
)
|
|
477
|
+
] }) }),
|
|
478
|
+
S !== "right" && m && /* @__PURE__ */ i("div", { id: `${w}-error`, className: "nice-field__error", role: "alert", children: m }),
|
|
479
|
+
S !== "right" && !m && l && /* @__PURE__ */ i("div", { id: `${w}-helper`, className: "nice-field__helper", children: l })
|
|
480
|
+
]
|
|
481
|
+
}
|
|
482
|
+
);
|
|
483
|
+
}
|
|
484
|
+
),
|
|
485
|
+
{ displayName: "NiceColorPicker" }
|
|
486
|
+
);
|
|
487
|
+
export {
|
|
488
|
+
je as NiceColorPicker,
|
|
489
|
+
Fe as hexToRgb,
|
|
490
|
+
Oe as rgbToHex
|
|
491
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o="https://nice2dev.com/schemas/component-doc-v1.json",n="NiceConnectorConfigForm",e="Configuration form for setting up data connector parameters.",t="tools",c="1.0.0",i="stable",s=[{name:"connector",type:"Connector",required:!0,description:"Connector to configure"},{name:"config",type:"ConnectorConfig",description:"Current configuration"},{name:"onChange",type:"(config: ConnectorConfig) => void",description:"Change callback"},{name:"onTest",type:"(config: ConnectorConfig) => Promise<TestResult>",description:"Test callback"},{name:"onSave",type:"(config: ConnectorConfig) => Promise<void>",description:"Save callback"}],r=[{title:"Connector Config",description:"Configure connector",code:`<NiceConnectorConfigForm
|
|
2
|
+
connector={selectedConnector}
|
|
3
|
+
config={connectorConfig}
|
|
4
|
+
onChange={setConnectorConfig}
|
|
5
|
+
onTest={testConnection}
|
|
6
|
+
onSave={saveConfig}
|
|
7
|
+
/>`}],a={keyboard:["Tab through fields"],aria:["Form descriptions"]},C=["NiceConnectorSelector","NiceIntegrationHub"],g={$schema:o,name:n,description:e,category:t,since:c,status:i,props:s,examples:r,accessibility:a,seeAlso:C};exports.$schema=o;exports.accessibility=a;exports.category=t;exports.default=g;exports.description=e;exports.examples=r;exports.name=n;exports.props=s;exports.seeAlso=C;exports.since=c;exports.status=i;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const o = "https://nice2dev.com/schemas/component-doc-v1.json", n = "NiceConnectorConfigForm", e = "Configuration form for setting up data connector parameters.", t = "tools", c = "1.0.0", i = "stable", r = [{ name: "connector", type: "Connector", required: !0, description: "Connector to configure" }, { name: "config", type: "ConnectorConfig", description: "Current configuration" }, { name: "onChange", type: "(config: ConnectorConfig) => void", description: "Change callback" }, { name: "onTest", type: "(config: ConnectorConfig) => Promise<TestResult>", description: "Test callback" }, { name: "onSave", type: "(config: ConnectorConfig) => Promise<void>", description: "Save callback" }], s = [{ title: "Connector Config", description: "Configure connector", code: `<NiceConnectorConfigForm
|
|
2
|
+
connector={selectedConnector}
|
|
3
|
+
config={connectorConfig}
|
|
4
|
+
onChange={setConnectorConfig}
|
|
5
|
+
onTest={testConnection}
|
|
6
|
+
onSave={saveConfig}
|
|
7
|
+
/>` }], a = { keyboard: ["Tab through fields"], aria: ["Form descriptions"] }, C = ["NiceConnectorSelector", "NiceIntegrationHub"], g = {
|
|
8
|
+
$schema: o,
|
|
9
|
+
name: n,
|
|
10
|
+
description: e,
|
|
11
|
+
category: t,
|
|
12
|
+
since: c,
|
|
13
|
+
status: i,
|
|
14
|
+
props: r,
|
|
15
|
+
examples: s,
|
|
16
|
+
accessibility: a,
|
|
17
|
+
seeAlso: C
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
o as $schema,
|
|
21
|
+
a as accessibility,
|
|
22
|
+
t as category,
|
|
23
|
+
g as default,
|
|
24
|
+
e as description,
|
|
25
|
+
s as examples,
|
|
26
|
+
n as name,
|
|
27
|
+
r as props,
|
|
28
|
+
C as seeAlso,
|
|
29
|
+
c as since,
|
|
30
|
+
i as status
|
|
31
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", t = "NiceDataBranchGraph", n = "Timeline visualization of data changes, merges, and environment promotions.", a = "data-branching", i = "1.0.7", o = "stable", s = [{ name: "history", type: "DataHistoryEntry[]", required: !0, description: "Data change history" }, { name: "environments", type: "string[]", description: "Environment names for lanes" }, { name: "layout", type: "'horizontal' | 'vertical'", default: "horizontal", description: "Timeline layout" }], c = [{ title: "Data Branch Graph", description: "Visualize data change history", code: `<NiceDataBranchGraph
|
|
2
|
+
history={changeHistory}
|
|
3
|
+
environments={['DEV', 'TEST', 'PROD']}
|
|
4
|
+
onEntrySelect={handleSelect}
|
|
5
|
+
/>` }], r = { role: "tree", ariaLabel: "Data change timeline" }, h = ["NiceDataDiffViewer", "NiceGitGraph"], l = {
|
|
6
|
+
$schema: e,
|
|
7
|
+
name: t,
|
|
8
|
+
description: n,
|
|
9
|
+
category: a,
|
|
10
|
+
since: i,
|
|
11
|
+
status: o,
|
|
12
|
+
props: s,
|
|
13
|
+
examples: c,
|
|
14
|
+
accessibility: r,
|
|
15
|
+
seeAlso: h
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
e as $schema,
|
|
19
|
+
r as accessibility,
|
|
20
|
+
a as category,
|
|
21
|
+
l as default,
|
|
22
|
+
n as description,
|
|
23
|
+
c as examples,
|
|
24
|
+
t as name,
|
|
25
|
+
s as props,
|
|
26
|
+
h as seeAlso,
|
|
27
|
+
i as since,
|
|
28
|
+
o as status
|
|
29
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",t="NiceDataBranchGraph",a="Timeline visualization of data changes, merges, and environment promotions.",n="data-branching",i="1.0.7",s="stable",o=[{name:"history",type:"DataHistoryEntry[]",required:!0,description:"Data change history"},{name:"environments",type:"string[]",description:"Environment names for lanes"},{name:"layout",type:"'horizontal' | 'vertical'",default:"horizontal",description:"Timeline layout"}],c=[{title:"Data Branch Graph",description:"Visualize data change history",code:`<NiceDataBranchGraph
|
|
2
|
+
history={changeHistory}
|
|
3
|
+
environments={['DEV', 'TEST', 'PROD']}
|
|
4
|
+
onEntrySelect={handleSelect}
|
|
5
|
+
/>`}],r={role:"tree",ariaLabel:"Data change timeline"},l=["NiceDataDiffViewer","NiceGitGraph"],h={$schema:e,name:t,description:a,category:n,since:i,status:s,props:o,examples:c,accessibility:r,seeAlso:l};exports.$schema=e;exports.accessibility=r;exports.category=n;exports.default=h;exports.description=a;exports.examples=c;exports.name=t;exports.props=o;exports.seeAlso=l;exports.since=i;exports.status=s;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",n="NiceDataBranchManager",a="Environment management panel for DEV, TEST, UAT, STAGING, PROD data environments.",t="data-branching",o="1.0.7",c="stable",r=[{name:"environments",type:"DataEnvironment[]",required:!0,description:"Available environments"},{name:"onSelect",type:"(env: string) => void",description:"Environment selection callback"},{name:"onCreateBranch",type:"(name: string, from: string) => Promise<void>",description:"Create data branch callback"}],s=[{title:"Data Branch Manager",description:"Manage data environments",code:`<NiceDataBranchManager
|
|
2
|
+
environments={envList}
|
|
3
|
+
currentEnvironment="DEV"
|
|
4
|
+
onSelect={handleSelect}
|
|
5
|
+
onPromote={handlePromote}
|
|
6
|
+
/>`}],i={role:"region",ariaLabel:"Data environment manager"},m=["NiceDataSnapshot","NiceDataMergeBuilder"],l={$schema:e,name:n,description:a,category:t,since:o,status:c,props:r,examples:s,accessibility:i,seeAlso:m};exports.$schema=e;exports.accessibility=i;exports.category=t;exports.default=l;exports.description=a;exports.examples=s;exports.name=n;exports.props=r;exports.seeAlso=m;exports.since=o;exports.status=c;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const n = "https://nice2dev.com/schemas/component-doc-v1.json", e = "NiceDataBranchManager", a = "Environment management panel for DEV, TEST, UAT, STAGING, PROD data environments.", t = "data-branching", o = "1.0.7", r = "stable", c = [{ name: "environments", type: "DataEnvironment[]", required: !0, description: "Available environments" }, { name: "onSelect", type: "(env: string) => void", description: "Environment selection callback" }, { name: "onCreateBranch", type: "(name: string, from: string) => Promise<void>", description: "Create data branch callback" }], i = [{ title: "Data Branch Manager", description: "Manage data environments", code: `<NiceDataBranchManager
|
|
2
|
+
environments={envList}
|
|
3
|
+
currentEnvironment="DEV"
|
|
4
|
+
onSelect={handleSelect}
|
|
5
|
+
onPromote={handlePromote}
|
|
6
|
+
/>` }], s = { role: "region", ariaLabel: "Data environment manager" }, m = ["NiceDataSnapshot", "NiceDataMergeBuilder"], l = {
|
|
7
|
+
$schema: n,
|
|
8
|
+
name: e,
|
|
9
|
+
description: a,
|
|
10
|
+
category: t,
|
|
11
|
+
since: o,
|
|
12
|
+
status: r,
|
|
13
|
+
props: c,
|
|
14
|
+
examples: i,
|
|
15
|
+
accessibility: s,
|
|
16
|
+
seeAlso: m
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
n as $schema,
|
|
20
|
+
s as accessibility,
|
|
21
|
+
t as category,
|
|
22
|
+
l as default,
|
|
23
|
+
a as description,
|
|
24
|
+
i as examples,
|
|
25
|
+
e as name,
|
|
26
|
+
c as props,
|
|
27
|
+
m as seeAlso,
|
|
28
|
+
o as since,
|
|
29
|
+
r as status
|
|
30
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",o="NiceDataConflictResolver",t="Resolve data conflicts during merge with side-by-side comparison and resolution actions.",s="data-branching",c="1.0.7",n="stable",i=[{name:"conflicts",type:"DataConflict[]",required:!0,description:"List of conflicts"},{name:"onResolve",type:"(resolution: ConflictResolution) => void",description:"Resolve conflict callback"},{name:"onResolveAll",type:"(strategy: 'source' | 'target') => void",description:"Resolve all callback"}],l=[{title:"Data Conflict Resolver",description:"Resolve merge conflicts",code:`<NiceDataConflictResolver
|
|
2
|
+
conflicts={mergeConflicts}
|
|
3
|
+
onResolve={handleResolve}
|
|
4
|
+
onResolveAll={handleResolveAll}
|
|
5
|
+
/>`}],a={role:"region",ariaLabel:"Data conflict resolver"},r=["NiceDataMergeBuilder","NiceGitConflictResolver"],d={$schema:e,name:o,description:t,category:s,since:c,status:n,props:i,examples:l,accessibility:a,seeAlso:r};exports.$schema=e;exports.accessibility=a;exports.category=s;exports.default=d;exports.description=t;exports.examples=l;exports.name=o;exports.props=i;exports.seeAlso=r;exports.since=c;exports.status=n;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", o = "NiceDataConflictResolver", t = "Resolve data conflicts during merge with side-by-side comparison and resolution actions.", s = "data-branching", c = "1.0.7", n = "stable", l = [{ name: "conflicts", type: "DataConflict[]", required: !0, description: "List of conflicts" }, { name: "onResolve", type: "(resolution: ConflictResolution) => void", description: "Resolve conflict callback" }, { name: "onResolveAll", type: "(strategy: 'source' | 'target') => void", description: "Resolve all callback" }], i = [{ title: "Data Conflict Resolver", description: "Resolve merge conflicts", code: `<NiceDataConflictResolver
|
|
2
|
+
conflicts={mergeConflicts}
|
|
3
|
+
onResolve={handleResolve}
|
|
4
|
+
onResolveAll={handleResolveAll}
|
|
5
|
+
/>` }], a = { role: "region", ariaLabel: "Data conflict resolver" }, r = ["NiceDataMergeBuilder", "NiceGitConflictResolver"], d = {
|
|
6
|
+
$schema: e,
|
|
7
|
+
name: o,
|
|
8
|
+
description: t,
|
|
9
|
+
category: s,
|
|
10
|
+
since: c,
|
|
11
|
+
status: n,
|
|
12
|
+
props: l,
|
|
13
|
+
examples: i,
|
|
14
|
+
accessibility: a,
|
|
15
|
+
seeAlso: r
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
e as $schema,
|
|
19
|
+
a as accessibility,
|
|
20
|
+
s as category,
|
|
21
|
+
d as default,
|
|
22
|
+
t as description,
|
|
23
|
+
i as examples,
|
|
24
|
+
o as name,
|
|
25
|
+
l as props,
|
|
26
|
+
r as seeAlso,
|
|
27
|
+
c as since,
|
|
28
|
+
n as status
|
|
29
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",t="NiceDataDiffViewer",i="Compare data records between environments with field-level diff highlighting.",s="data-branching",n="1.0.7",a="stable",o=[{name:"entity",type:"string",description:"Entity type name"},{name:"mode",type:"'split' | 'inline'",default:"split",description:"Display mode"}],c=[{title:"Data Diff Viewer",description:"Compare records between environments",code:`<NiceDataDiffViewer
|
|
2
|
+
sourceData={devRecord}
|
|
3
|
+
targetData={testRecord}
|
|
4
|
+
entity="Customer"
|
|
5
|
+
mode="split"
|
|
6
|
+
/>`}],r={role:"region",ariaLabel:"Data comparison viewer"},l=["NiceDataBranchGraph","NiceDataConflictResolver"],d={$schema:e,name:t,description:i,category:s,since:n,status:a,props:o,examples:c,accessibility:r,seeAlso:l};exports.$schema=e;exports.accessibility=r;exports.category=s;exports.default=d;exports.description=i;exports.examples=c;exports.name=t;exports.props=o;exports.seeAlso=l;exports.since=n;exports.status=a;
|