@fayz-ai/plugin-workforce 0.2.3 → 0.2.4
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 +11 -16
- package/dist/index.js.map +1 -1
- package/dist/views/PeopleView.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React3 from 'react';
|
|
2
2
|
import { recordRailFields, RECORD_GROUP, activeFacet, createSafeDataProvider, getSupabaseClientOptional, getActiveTenantId } from '@fayz-ai/core';
|
|
3
3
|
import { createPluginContext, saveSchedule, registerEntityPath, useModuleNavigation, useModuleNavAccess, parseViewId, EntitlementGate, UpgradePrompt, ScheduleEditor, usePermissionOptional, adminNavigateTo, formatCurrency, PersonLink, createCrudPage, WidgetSlot } from '@fayz-ai/admin';
|
|
4
|
-
import { ModulePage, FilterRail, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, MiniCalendar, toLocalISODate, RailWorkspace, Badge, Button, Skeleton, resolveRangePreset, compareCodes, PageToolbar, DateRangeControl, StatTiles, StatementTable,
|
|
4
|
+
import { ModulePage, FilterRail, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, MiniCalendar, toLocalISODate, RailWorkspace, Badge, Button, Skeleton, resolveRangePreset, compareCodes, PageToolbar, DateRangeControl, StatTiles, StatementTable, PageSubNav, Modal, ModalContent, ModalHeader, ModalTitle, ModalBody, Input, ModalFooter, toast, Popover, PopoverTrigger, PopoverContent, Checkbox, Avatar, AvatarFallback, AvatarImage } from '@fayz-ai/ui';
|
|
5
5
|
import { Send, CalendarDays, Plus, ExternalLink, HandCoins, AlertTriangle, Users, CalendarCheck, Unlock, Lock, Clock, LayoutTemplate, ListTree, UserPlus, UserMinus, CakeSlice, Plane, CalendarClock, ShieldAlert, Stethoscope, ClipboardList, FileText, ChevronRight, Trash2, Pencil, Eye, ImageOff, MapPin, ScanFace } from 'lucide-react';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
import { createStore } from 'zustand/vanilla';
|
|
@@ -1341,21 +1341,16 @@ function PeopleView({ entity, mode }) {
|
|
|
1341
1341
|
const [tab, setTab] = React3.useState("people");
|
|
1342
1342
|
const onList = !mode || mode === "list";
|
|
1343
1343
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1344
|
-
onList && /* @__PURE__ */
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
"aria-label": "Pessoas e Documentos"
|
|
1355
|
-
}
|
|
1356
|
-
),
|
|
1357
|
-
/* @__PURE__ */ jsx("span", {})
|
|
1358
|
-
] }),
|
|
1344
|
+
onList && /* @__PURE__ */ jsx(
|
|
1345
|
+
PageSubNav,
|
|
1346
|
+
{
|
|
1347
|
+
"aria-label": "Pessoas e Documentos",
|
|
1348
|
+
items: [
|
|
1349
|
+
{ id: "people", label: "Pessoas", icon: "Users" },
|
|
1350
|
+
{ id: "documents", label: "Documentos", icon: "FileText" }
|
|
1351
|
+
].map((i) => ({ ...i, active: tab === i.id, onClick: () => setTab(i.id) }))
|
|
1352
|
+
}
|
|
1353
|
+
),
|
|
1359
1354
|
onList && tab === "documents" ? /* @__PURE__ */ jsx(TeamDocuments, {}) : /* @__PURE__ */ jsx(Page, {})
|
|
1360
1355
|
] });
|
|
1361
1356
|
}
|