@fayz-ai/plugin-workforce 0.3.25 → 0.3.26

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.
@@ -1,5 +1,5 @@
1
1
  import { WorkforceContextProvider, PeopleView, useWorkforceProvider, useWorkforceStore, useWorkforceConfig, formatCurrency } from './chunk-6GWD6GQK.js';
2
- import { ModulePage, FilterRail, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, MiniCalendar, toLocalISODate, Badge, Button, Skeleton, resolveRangePreset, compareCodes, PageToolbar, DateRangeControl, StatTiles, StatementTable, Modal, ModalContent, ModalHeader, ModalTitle, ModalBody, Input, ModalFooter, toast, Popover, PopoverTrigger, PopoverContent, Checkbox, Avatar, AvatarFallback, DataTable, AvatarImage } from '@fayz-ai/ui';
2
+ import { ModulePage, FilterRail, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, MiniCalendar, toLocalISODate, Badge, Button, Skeleton, resolveRangePreset, compareCodes, PageToolbar, DateRangeControl, ShellBanner, StatTiles, StatementTable, Modal, ModalContent, ModalHeader, ModalTitle, ModalBody, Input, ModalFooter, toast, Popover, PopoverTrigger, PopoverContent, Checkbox, Avatar, AvatarFallback, DataTable, AvatarImage } from '@fayz-ai/ui';
3
3
  import { useModuleNavigation, useModuleNavAccess, EntitlementGate, UpgradePrompt, parseViewId, ScheduleEditor, usePermissionOptional, adminNavigateTo, PersonLink } from '@fayz-ai/admin';
4
4
  import React3 from 'react';
5
5
  import { Send, CalendarDays, Plus, ExternalLink, HandCoins, AlertTriangle, Users, CalendarCheck, Unlock, Lock, Clock, LayoutTemplate, ListTree, UserPlus, UserMinus, CakeSlice, Plane, CalendarClock, ShieldAlert, Stethoscope, ClipboardList, Pencil, Eye, ChevronRight, Trash2, ImageOff, MapPin, ScanFace } from 'lucide-react';
@@ -1412,20 +1412,30 @@ function PayrollCostsView() {
1412
1412
  /* @__PURE__ */ jsx(HandCoins, { className: "mx-auto mb-3 h-8 w-8 text-muted-foreground", "aria-hidden": true }),
1413
1413
  /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "O raz\xE3o do Financeiro n\xE3o est\xE1 dispon\xEDvel neste ambiente \u2014 instale o m\xF3dulo Financeiro para ver o custo de pessoal aqui." })
1414
1414
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
1415
- !escopoStore.loading && !escopo ? /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 rounded-xl border border-warning/40 bg-warning/5 p-4", children: [
1416
- /* @__PURE__ */ jsx(AlertTriangle, { className: "mt-0.5 h-4 w-4 shrink-0 text-warning", "aria-hidden": true }),
1417
- /* @__PURE__ */ jsxs("div", { className: "space-y-1 text-sm", children: [
1418
- /* @__PURE__ */ jsx("p", { className: "font-medium", children: "Nenhum ramo de pessoal escolhido." }),
1419
- /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground", children: [
1420
- "O demonstrativo abaixo soma ",
1421
- /* @__PURE__ */ jsx("strong", { children: "todas" }),
1422
- " as despesas classificadas em conta cont\xE1bil \u2014 inclusive aluguel, imposto e equipamento. Escolha em",
1423
- " ",
1424
- /* @__PURE__ */ jsx("span", { className: "whitespace-nowrap font-medium", children: "Contas de pessoal" }),
1425
- " os ramos do seu plano que s\xE3o gente, e o total passa a valer como custo de equipe."
1426
- ] })
1427
- ] })
1428
- ] }) : null,
1415
+ !escopoStore.loading && !escopo ? /* @__PURE__ */ jsx(ShellBanner, { urgency: "warning", children: /* @__PURE__ */ jsxs(
1416
+ "section",
1417
+ {
1418
+ role: "region",
1419
+ "aria-label": "Nenhum ramo de pessoal escolhido",
1420
+ className: "flex w-full flex-wrap items-center gap-x-3 gap-y-2 border-t border-amber-300/60 bg-amber-50 px-4 py-1.5 text-sm text-foreground md:flex-nowrap md:pl-6 md:pr-[calc(2rem+var(--fz-fab-clearance,0px))] dark:border-amber-500/30 dark:bg-amber-500/10",
1421
+ "data-testid": "payroll-no-scope-banner",
1422
+ children: [
1423
+ /* @__PURE__ */ jsx(AlertTriangle, { className: "h-4 w-4 shrink-0 text-amber-600", "aria-hidden": true }),
1424
+ /* @__PURE__ */ jsxs("p", { className: "min-w-0 flex-1", children: [
1425
+ /* @__PURE__ */ jsx("span", { className: "font-medium", children: "Nenhum ramo de pessoal escolhido" }),
1426
+ /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground", children: [
1427
+ " ",
1428
+ "\u2014 o total soma ",
1429
+ /* @__PURE__ */ jsx("strong", { className: "font-medium text-foreground", children: "todas" }),
1430
+ " as despesas classificadas, inclusive aluguel e imposto. Escolha em",
1431
+ " ",
1432
+ /* @__PURE__ */ jsx("span", { className: "whitespace-nowrap font-medium text-foreground", children: "Contas de pessoal" }),
1433
+ " os ramos que s\xE3o gente."
1434
+ ] })
1435
+ ] })
1436
+ ]
1437
+ }
1438
+ ) }) : null,
1429
1439
  /* @__PURE__ */ jsx(
1430
1440
  StatTiles,
1431
1441
  {
@@ -2129,5 +2139,5 @@ function WorkforcePage({ config, provider, store, staffEntity }) {
2129
2139
  }
2130
2140
 
2131
2141
  export { WorkforcePage };
2132
- //# sourceMappingURL=WorkforcePage-A64KM6IC.js.map
2133
- //# sourceMappingURL=WorkforcePage-A64KM6IC.js.map
2142
+ //# sourceMappingURL=WorkforcePage-BCIP3AH2.js.map
2143
+ //# sourceMappingURL=WorkforcePage-BCIP3AH2.js.map