@bigbinary/neeto-folders-frontend 2.0.29 → 2.0.31
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/app/javascript/src/translations/he.json +43 -0
- package/dist/cjs/components.js +15 -15
- package/dist/cjs/components.js.map +1 -1
- package/dist/components.js +15 -15
- package/dist/components.js.map +1 -1
- package/package.json +11 -11
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"common": {
|
|
3
|
+
"cancel": "ביטול",
|
|
4
|
+
"delete": "מחק",
|
|
5
|
+
"edit": "ערוך",
|
|
6
|
+
"move": "העבר",
|
|
7
|
+
"save": "שמור",
|
|
8
|
+
"name": "שם",
|
|
9
|
+
"folder": "תיקייה",
|
|
10
|
+
"folders": "תיקיות",
|
|
11
|
+
"item": "פריט",
|
|
12
|
+
"items": "פריטים",
|
|
13
|
+
"private": "פרטי",
|
|
14
|
+
"moveToFolder": "העבר לתיקייה"
|
|
15
|
+
},
|
|
16
|
+
"createFolder": {
|
|
17
|
+
"parentInfo": "השאר את האפשרות ריקה כדי ליצור {{ folder }} ברמת השורש",
|
|
18
|
+
"parentTitle": "הורה {{ folder }}"
|
|
19
|
+
},
|
|
20
|
+
"deleteFolder": {
|
|
21
|
+
"info": "האם אתה בטוח שברצונך למחוק את {{ folder }} <strong>{{name, anyCase}}</strong>?",
|
|
22
|
+
"title": "מחק {{ folder }}"
|
|
23
|
+
},
|
|
24
|
+
"folders": {
|
|
25
|
+
"title": "{{ folders }}",
|
|
26
|
+
"add": "הוסף {{ folder }} חדש",
|
|
27
|
+
"edit": "ערוך {{ folder }}",
|
|
28
|
+
"name": "שם {{ folder }}",
|
|
29
|
+
"noFolders": "אין {{ folder }} להציג"
|
|
30
|
+
},
|
|
31
|
+
"moveToFolder": {
|
|
32
|
+
"depthExceeded": "לא ניתן להעביר לתיקייה זו {{ folder }}. מקסימום {{maxDepth}} רקורסיות {{ folders }} מותרות.",
|
|
33
|
+
"notAllowed": "אינך יכול להעביר לתיקייה זו {{ folder }}.",
|
|
34
|
+
"remove": "הסר מ{{ folder }}",
|
|
35
|
+
"title": "העבר ל{{ folder }}"
|
|
36
|
+
},
|
|
37
|
+
"reorderFolder": {
|
|
38
|
+
"title": "סדר מחדש {{ folders }}"
|
|
39
|
+
},
|
|
40
|
+
"errors": {
|
|
41
|
+
"blank": "{{entity}} לא יכול להיות ריק"
|
|
42
|
+
}
|
|
43
|
+
}
|
package/dist/cjs/components.js
CHANGED
|
@@ -386,10 +386,10 @@ var Node$1 = function Node(_ref, ref) {
|
|
|
386
386
|
length: depth
|
|
387
387
|
}).map(function (_, index) {
|
|
388
388
|
return /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
389
|
-
className: "neeto-ui-border-gray-300 relative h-full flex-shrink-0 border-
|
|
389
|
+
className: "neeto-ui-border-gray-300 relative h-full flex-shrink-0 border-s",
|
|
390
390
|
style: {
|
|
391
391
|
width: REORDER_TREE_INDENT_WIDTH,
|
|
392
|
-
|
|
392
|
+
insetInlineStart: Math.round(REORDER_TREE_INDENT_WIDTH / 2)
|
|
393
393
|
}
|
|
394
394
|
}, index);
|
|
395
395
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread$g(_objectSpread$g({}, _objectSpread$g(_objectSpread$g({}, rest), {}, {
|
|
@@ -399,7 +399,7 @@ var Node$1 = function Node(_ref, ref) {
|
|
|
399
399
|
"data-cy": "".concat(neetoCist.hyphenate(folder.name), "-folder-node"),
|
|
400
400
|
className: classNames("relative my-1 flex cursor-pointer items-center px-2 py-1", className),
|
|
401
401
|
children: [icon, /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
402
|
-
className: "
|
|
402
|
+
className: "ms-2",
|
|
403
403
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
404
404
|
lineHeight: "snug",
|
|
405
405
|
style: "body1",
|
|
@@ -565,7 +565,7 @@ var PaneBody = function PaneBody(_ref) {
|
|
|
565
565
|
style: "h2",
|
|
566
566
|
children: t("moveToFolder.title")
|
|
567
567
|
}), /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
568
|
-
className: "
|
|
568
|
+
className: "me-2",
|
|
569
569
|
"data-cy": "add-new-folder-button",
|
|
570
570
|
label: t("folders.add"),
|
|
571
571
|
style: "link",
|
|
@@ -812,7 +812,7 @@ var RearrangeFoldersPane = function RearrangeFoldersPane(_ref) {
|
|
|
812
812
|
});
|
|
813
813
|
var nodeProps = {
|
|
814
814
|
icon: /*#__PURE__*/jsxRuntime.jsx(Reorder, {
|
|
815
|
-
className: "neeto-ui-text-gray-500 relative -
|
|
815
|
+
className: "neeto-ui-text-gray-500 relative -start-[0.3125rem] flex-shrink-0"
|
|
816
816
|
})
|
|
817
817
|
};
|
|
818
818
|
if (isFetching) {
|
|
@@ -1147,7 +1147,7 @@ var ReorderFoldersPane = function ReorderFoldersPane(_ref) {
|
|
|
1147
1147
|
});
|
|
1148
1148
|
var nodeProps = {
|
|
1149
1149
|
icon: /*#__PURE__*/jsxRuntime.jsx(Reorder, {
|
|
1150
|
-
className: "neeto-ui-text-gray-500 relative -
|
|
1150
|
+
className: "neeto-ui-text-gray-500 relative -start-[0.3125rem] flex-shrink-0"
|
|
1151
1151
|
})
|
|
1152
1152
|
};
|
|
1153
1153
|
if (isFetching) {
|
|
@@ -1201,7 +1201,7 @@ var ReorderFoldersPane = function ReorderFoldersPane(_ref) {
|
|
|
1201
1201
|
}), /*#__PURE__*/reactDom.createPortal(/*#__PURE__*/jsxRuntime.jsx(core.DragOverlay, {
|
|
1202
1202
|
zIndex: 99999,
|
|
1203
1203
|
children: dragState && /*#__PURE__*/jsxRuntime.jsx(Node$2, _objectSpread$a(_objectSpread$a({}, nodeProps), {}, {
|
|
1204
|
-
className: "neeto-ui-bg-gray-200
|
|
1204
|
+
className: "neeto-ui-bg-gray-200 ps-4 pe-12",
|
|
1205
1205
|
depth: 0,
|
|
1206
1206
|
folder: dragState.activeItem,
|
|
1207
1207
|
folderLabel: config.labels[((_dragState$activeItem = (_dragState$activeItem2 = dragState.activeItem) === null || _dragState$activeItem2 === void 0 || (_dragState$activeItem2 = _dragState$activeItem2.children) === null || _dragState$activeItem2 === void 0 ? void 0 : _dragState$activeItem2.length) !== null && _dragState$activeItem !== void 0 ? _dragState$activeItem : 0) > 1 ? "folders" : "folder"],
|
|
@@ -1317,7 +1317,7 @@ var FolderTile = function FolderTile(_ref) {
|
|
|
1317
1317
|
}), /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
1318
1318
|
className: "flex min-w-0 flex-grow flex-col gap-2",
|
|
1319
1319
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
1320
|
-
className: "-mt-0.5 line-clamp-2 break-words
|
|
1320
|
+
className: "-mt-0.5 line-clamp-2 break-words pe-8",
|
|
1321
1321
|
"data-cy": "folder-name",
|
|
1322
1322
|
lineHeight: "snug",
|
|
1323
1323
|
style: "body1",
|
|
@@ -1332,7 +1332,7 @@ var FolderTile = function FolderTile(_ref) {
|
|
|
1332
1332
|
}), /*#__PURE__*/jsxRuntime.jsx(MoreDropdown, {
|
|
1333
1333
|
menuItems: menuItems,
|
|
1334
1334
|
dropdownButtonProps: {
|
|
1335
|
-
className: "absolute
|
|
1335
|
+
className: "absolute end-2 top-2"
|
|
1336
1336
|
},
|
|
1337
1337
|
dropdownProps: {
|
|
1338
1338
|
onClick: function onClick(event) {
|
|
@@ -1471,15 +1471,15 @@ var Node = function Node(_ref) {
|
|
|
1471
1471
|
"data-cy": "".concat(neetoCist.hyphenate(name), "-").concat(isFolder ? "folder" : "item", "-sublink"),
|
|
1472
1472
|
title: "",
|
|
1473
1473
|
children: [isFolder && (isExpanded ? /*#__PURE__*/jsxRuntime.jsx(FolderIconOpen, {
|
|
1474
|
-
className: "flex-shrink-0
|
|
1474
|
+
className: "flex-shrink-0 me-1",
|
|
1475
1475
|
size: 16
|
|
1476
1476
|
}) : /*#__PURE__*/jsxRuntime.jsx(FolderIcon, {
|
|
1477
|
-
className: "flex-shrink-0
|
|
1477
|
+
className: "flex-shrink-0 me-1",
|
|
1478
1478
|
size: 16
|
|
1479
1479
|
})), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1480
1480
|
className: "flex items-center min-w-0 flex-1",
|
|
1481
1481
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
1482
|
-
className: "line-clamp-1 block truncate
|
|
1482
|
+
className: "line-clamp-1 block truncate ps-0.5",
|
|
1483
1483
|
component: "span",
|
|
1484
1484
|
style: "body2",
|
|
1485
1485
|
title: name,
|
|
@@ -1487,12 +1487,12 @@ var Node = function Node(_ref) {
|
|
|
1487
1487
|
}), isPrivate && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1488
1488
|
title: t("common.private"),
|
|
1489
1489
|
children: /*#__PURE__*/jsxRuntime.jsx(Lock, {
|
|
1490
|
-
className: "flex-shrink-0
|
|
1490
|
+
className: "flex-shrink-0 ms-1",
|
|
1491
1491
|
size: 16
|
|
1492
1492
|
})
|
|
1493
1493
|
})]
|
|
1494
1494
|
}), hasAnyActions && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1495
|
-
className: "flex items-center gap-0.5 py-0.5 absolute
|
|
1495
|
+
className: "flex items-center gap-0.5 py-0.5 absolute end-0 top-0 h-full neeto-sidebar-folders-tree__folder-node-actions neeto-ui-rounded-md ps-2",
|
|
1496
1496
|
onClick: function onClick(e) {
|
|
1497
1497
|
e.preventDefault();
|
|
1498
1498
|
e.stopPropagation();
|
|
@@ -1779,7 +1779,7 @@ TreeSelect.displayName = "TreeSelect";
|
|
|
1779
1779
|
|
|
1780
1780
|
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
1781
1781
|
|
|
1782
|
-
var css = ".neeto-sidebar-folders-tree__folder-node{color:inherit!important}.neeto-sidebar-folders-tree.ant-tree .ant-tree-node-content-wrapper{min-width:0;padding-inline:2px!important}.neeto-sidebar-folders-tree.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected{background-color:rgb(var(--neeto-ui-gray-100));color:rgb(var(--neeto-ui-accent-800))!important;font-weight:500}.neeto-sidebar-folders-tree.ant-tree .ant-tree-switcher{margin-
|
|
1782
|
+
var css = ".neeto-sidebar-folders-tree__folder-node{color:inherit!important}.neeto-sidebar-folders-tree.ant-tree .ant-tree-node-content-wrapper{min-width:0;padding-inline:2px!important}.neeto-sidebar-folders-tree.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected{background-color:rgb(var(--neeto-ui-gray-100));color:rgb(var(--neeto-ui-accent-800))!important;font-weight:500}.neeto-sidebar-folders-tree.ant-tree .ant-tree-switcher{margin-inline-end:0}.neeto-sidebar-folders-tree.ant-tree .ant-tree-switcher .ant-tree-switcher-icon{position:relative}.neeto-folders-grid-view-wrapper{grid-template-columns:repeat(auto-fill,minmax(256px,1fr))}.neeto-sidebar-folders-tree.ant-tree .ant-tree-node-content-wrapper:hover .neeto-sidebar-folders-tree__folder-node-actions{background-image:linear-gradient(90deg,rgba(var(--neeto-ui-gray-100),.5) 0,rgba(var(--neeto-ui-gray-100),1) 25%)}.neeto-sidebar-folders-tree.ant-tree .ant-tree-treenode{margin-bottom:6px}.neeto-sidebar-folders-tree.ant-tree .ant-tree-treenode:before{height:6px}\n/*# sourceM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WFyZ2luLWlubGluZS1lbmQ6IDA7XG59XG5cbi5uZWV0by1zaWRlYmFyLWZvbGRlcnMtdHJlZS5hbnQtdHJlZSAuYW50LXRyZWUtc3dpdGNoZXIgLmFudC10cmVlLXN3aXRjaGVyLWljb24ge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG5cbi5uZWV0by1mb2xkZXJzLWdyaWQtdmlldy13cmFwcGVyIHtcbiAgZ3JpZC10ZW1wbGF0ZS1jb2x1bW5zOiByZXBlYXQoYXV0by1maWxsLCBtaW5tYXgoMjU2cHgsIDFmcikpO1xufVxuXG4ubmVldG8tc2lkZWJhci1mb2xkZXJzLXRyZWUuYW50LXRyZWUgLmFudC10cmVlLW5vZGUtY29udGVudC13cmFwcGVyOmhvdmVyIC5uZWV0by1zaWRlYmFyLWZvbGRlcnMtdHJlZV9fZm9sZGVyLW5vZGUtYWN0aW9ucyB7XG4gIGJhY2tncm91bmQtaW1hZ2U6IGxpbmVhci1ncmFkaWVudCg5MGRlZywgcmdiYSh2YXIoLS1uZWV0by11aS1ncmF5LTEwMCksIC41KSAwLCByZ2JhKHZhcigtLW5lZXRvLXVpLWdyYXktMTAwKSwgMSkgMjUlKTtcbn1cblxuLm5lZXRvLXNpZGViYXItZm9sZGVycy10cmVlLmFudC10cmVlIC5hbnQtdHJlZS10cmVlbm9kZSB7XG4gIG1hcmdpbi1ib3R0b206IDZweDtcbn1cblxuLm5lZXRvLXNpZGViYXItZm9sZGVycy10cmVlLmFudC10cmVlIC5hbnQtdHJlZS10cmVlbm9kZTo6YmVmb3JlIHtcbiAgaGVpZ2h0OiA2cHg7XG59XG4iXX0= */";
|
|
1783
1783
|
n(css,{});
|
|
1784
1784
|
|
|
1785
1785
|
exports.AddEditPane = AddEditPane;
|