@shortstravelmgmt/component-lib 0.1.4 → 0.1.6
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.d.ts +88 -2
- package/dist/index.esm.js +422 -259
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +427 -258
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -140,6 +140,7 @@ declare const ArrowUpRightIcon: React__default.FC<IconProps>;
|
|
|
140
140
|
declare const ArrowDownLeftIcon: React__default.FC<IconProps>;
|
|
141
141
|
declare const EyeIcon: React__default.FC<IconProps>;
|
|
142
142
|
declare const DownloadIcon: React__default.FC<IconProps>;
|
|
143
|
+
declare const UploadIcon: React__default.FC<IconProps>;
|
|
143
144
|
declare const FilterIcon: React__default.FC<IconProps>;
|
|
144
145
|
declare const CalendarIcon: React__default.FC<IconProps>;
|
|
145
146
|
declare const UserIcon: React__default.FC<IconProps>;
|
|
@@ -1815,6 +1816,91 @@ declare const formatTeamScheduleTravelDates: (startValue?: string, endValue?: st
|
|
|
1815
1816
|
/** Hub's read-only expanded Team Schedule table. */
|
|
1816
1817
|
declare const TeamScheduleExpandedTable: ({ rows, teamCode, onTripClick, emptyMessage, className }: TeamScheduleExpandedTableProps) => React.JSX.Element;
|
|
1817
1818
|
|
|
1819
|
+
type TeamFormMode = 'Add' | 'Edit';
|
|
1820
|
+
type TeamNumericValue = number | '';
|
|
1821
|
+
interface ManagedFormProps<T> {
|
|
1822
|
+
/** Controlled values. Omit to let the form manage its own state. */
|
|
1823
|
+
values?: T;
|
|
1824
|
+
/** Initial values used when the form is uncontrolled. */
|
|
1825
|
+
initialValues?: Partial<T>;
|
|
1826
|
+
/** Called whenever any field changes. */
|
|
1827
|
+
onChange?: (values: T) => void;
|
|
1828
|
+
/** Called after native required-field validation succeeds. */
|
|
1829
|
+
onSubmit?: (values: T) => void;
|
|
1830
|
+
/** Called by the Cancel button. */
|
|
1831
|
+
onCancel?: () => void;
|
|
1832
|
+
/** Hide actions when the fields are hosted by another form, such as Hub List. */
|
|
1833
|
+
showActions?: boolean;
|
|
1834
|
+
/** Disable every field and action. */
|
|
1835
|
+
disabled?: boolean;
|
|
1836
|
+
className?: string;
|
|
1837
|
+
}
|
|
1838
|
+
interface TeamEquipmentValues {
|
|
1839
|
+
description: string;
|
|
1840
|
+
weight: TeamNumericValue;
|
|
1841
|
+
quantity: TeamNumericValue;
|
|
1842
|
+
height: TeamNumericValue;
|
|
1843
|
+
width: TeamNumericValue;
|
|
1844
|
+
depth: TeamNumericValue;
|
|
1845
|
+
}
|
|
1846
|
+
interface TeamEquipmentFormProps extends ManagedFormProps<TeamEquipmentValues> {
|
|
1847
|
+
mode?: TeamFormMode;
|
|
1848
|
+
}
|
|
1849
|
+
declare const TeamEquipmentForm: ({ mode, values, initialValues, onChange, onSubmit, onCancel, showActions, disabled, className, }: TeamEquipmentFormProps) => React.JSX.Element;
|
|
1850
|
+
interface TeamUserAccessValues {
|
|
1851
|
+
userId: string;
|
|
1852
|
+
}
|
|
1853
|
+
interface TeamUserAccessFormProps extends ManagedFormProps<TeamUserAccessValues> {
|
|
1854
|
+
options: SelectOption[];
|
|
1855
|
+
}
|
|
1856
|
+
declare const TeamUserAccessForm: ({ options, values, initialValues, onChange, onSubmit, onCancel, showActions, disabled, className, }: TeamUserAccessFormProps) => React.JSX.Element;
|
|
1857
|
+
type TeamProgramType = 'Air' | 'Car' | 'Hotel';
|
|
1858
|
+
interface TeamProgramValues {
|
|
1859
|
+
type: TeamProgramType;
|
|
1860
|
+
supplier: string;
|
|
1861
|
+
accountNumber: string;
|
|
1862
|
+
}
|
|
1863
|
+
interface TeamProgramFormProps extends ManagedFormProps<TeamProgramValues> {
|
|
1864
|
+
supplierOptions?: Partial<Record<TeamProgramType, SelectOption[]>>;
|
|
1865
|
+
}
|
|
1866
|
+
declare const TeamProgramForm: ({ values, initialValues, onChange, onSubmit, onCancel, showActions, disabled, className, supplierOptions, }: TeamProgramFormProps) => React.JSX.Element;
|
|
1867
|
+
interface TeamRosterMemberValues {
|
|
1868
|
+
portalUserId: string;
|
|
1869
|
+
firstName: string;
|
|
1870
|
+
middleName: string;
|
|
1871
|
+
noMiddleName: boolean;
|
|
1872
|
+
lastName: string;
|
|
1873
|
+
travelerType: string;
|
|
1874
|
+
birthDate: string;
|
|
1875
|
+
gender: string;
|
|
1876
|
+
weight: TeamNumericValue;
|
|
1877
|
+
passportNumber: string;
|
|
1878
|
+
knownTravelerNumber: string;
|
|
1879
|
+
dhsRedressNumber: string;
|
|
1880
|
+
airline: string;
|
|
1881
|
+
frequentFlyerNumber: string;
|
|
1882
|
+
specialRequests: string;
|
|
1883
|
+
}
|
|
1884
|
+
interface TeamPortalUserOption extends SelectOption {
|
|
1885
|
+
traveler?: Partial<TeamRosterMemberValues>;
|
|
1886
|
+
}
|
|
1887
|
+
interface TeamRosterMemberFormProps extends ManagedFormProps<TeamRosterMemberValues> {
|
|
1888
|
+
mode?: TeamFormMode;
|
|
1889
|
+
portalUsers?: TeamPortalUserOption[];
|
|
1890
|
+
airlineOptions?: SelectOption[];
|
|
1891
|
+
travelerTypeOptions?: SelectOption[];
|
|
1892
|
+
}
|
|
1893
|
+
declare const TeamRosterMemberForm: ({ mode, values, initialValues, onChange, onSubmit, onCancel, showActions, disabled, className, portalUsers, airlineOptions, travelerTypeOptions, }: TeamRosterMemberFormProps) => React.JSX.Element;
|
|
1894
|
+
type TeamImportKind = 'equipment' | 'roster' | 'teamworks-roster';
|
|
1895
|
+
interface TeamImportFormProps {
|
|
1896
|
+
kind: TeamImportKind;
|
|
1897
|
+
onSubmit?: (file: File) => void;
|
|
1898
|
+
onCancel?: () => void;
|
|
1899
|
+
disabled?: boolean;
|
|
1900
|
+
className?: string;
|
|
1901
|
+
}
|
|
1902
|
+
declare const TeamImportForm: ({ kind, onSubmit, onCancel, disabled, className }: TeamImportFormProps) => React.JSX.Element;
|
|
1903
|
+
|
|
1818
1904
|
interface TravelSummaryMetricsProps {
|
|
1819
1905
|
tripsTraveled?: string | number;
|
|
1820
1906
|
remainingTrips?: string | number;
|
|
@@ -2421,5 +2507,5 @@ declare const TripDetailPage: {
|
|
|
2421
2507
|
displayName: string;
|
|
2422
2508
|
};
|
|
2423
2509
|
|
|
2424
|
-
export { Accordion, AdministrationPage, AirSegment, Alert, AppLayout, ArrowDownLeftIcon, ArrowUpRightIcon, Avatar, AvatarGroup, Badge, BuildingIcon, BusIcon, Button, CalendarIcon, CalendarTypeSelector, CalendarViewSelector, CarIcon, Card, CardBody, CardFooter, CardHeader, CharterManifestPage, CheckIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, ConfirmModal, ContactList, ContactUsPage, CubeIcon, DashboardIcon, DashboardPage, Datepicker, DocumentIcon, DownloadIcon, Drawer, DrawerBody, DrawerFooter, DrawerHeader, Dropdown, DueDatesDrawer, EditIcon, EyeIcon, FilterChip, FilterIcon, FormField, FormRow, FormSection, FormStack, GridIcon, GroundSegment, GroupTravelRequestPage, HUB_ADMIN_ITEM, HUB_INDIVIDUAL_TRAVEL_ITEM, HUB_NAV_ITEMS, HomeIcon, HotelIcon, HotelSegment, HubAppShell, Icons, IndividualTravelPage, InfoCenterPage, InfoIcon, Input, LightbulbIcon, LimoIcon, LockIcon, LogoIcon, MailIcon, ManifestCapacityStats, ManifestViewToggle, MegaphoneIcon, MembershipPrograms, MenuIcon, Metric, MinusIcon, Modal, ModalFooter, Module, ModuleDivider, ModuleVerticalDivider, NavItem, NotFoundPage, PageBanners, PhoneIcon, PlaneIcon, PlusIcon, PreferencesPanel, PrinterIcon, Progress, ProgressBar, ProgressCircle, RailIcon, RefreshIcon, ReportIcon, RequestFormFooter, RequestFormHeader, RequestFormLayout, RequestSummary, RosterToolbar, SUPPLIER_TYPE_OPTIONS, SchoolContactForm, SearchField, SearchIcon, Segment, SegmentedSelector, Select, SelectFilter, ServiceToggle, ServiceToggleList, SettingsIcon, Sidenav, Spinner, StatusBadge, SummarySection, SupplierTypeToggle, Table, Tag, TeamCard, TeamHeader, TeamManagementPage, TeamScheduleActions, TeamScheduleCompactTable, TeamScheduleExpandedTable, TeamSchedulePage, TeamSubMenu, TeamTravelCalendarPage, Textarea, Timepicker, Title, Toggle, Tooltip, Topbar, TrashIcon, TravelServiceIcon, TravelSummaryMetrics, TravelerForm, TrendDownIcon, TrendUpIcon, TripDetailPage, TripSegment, TripTable, TypeIcon, UserIcon, UsersIcon, WarningIcon, XIcon, formatCompactTripCost, formatTeamScheduleTravelDates, isTravelDueDateCompleted };
|
|
2425
|
-
export type { AccordionProps, AccountInfo, AdministrationCard, AdministrationPageProps, AdministrationTab, AirSegmentProps, AlertProps, AlertVariant, AppLayoutProps, AvatarGroupProps, AvatarProps, AvatarSize, BadgeProps, BadgeSize, BadgeVariant, ButtonProps, ButtonSize, ButtonVariant, CalendarMetric, CalendarTypeSelectorProps, CalendarTypeValue, CalendarView, CalendarViewSelectorProps, CalendarViewValue, CardBodyProps, CardFooterProps, CardHeaderProps, CardPadding, CardProps, CardVariant, CharterManifestEquipment, CharterManifestPageProps, CharterManifestPassenger, CharterManifestSegment, CheckboxProps, ConfirmModalProps, Contact, ContactCardData, ContactInfo, ContactListProps, ContactPair, ContactUsData, ContactUsPageProps, DashboardPageProps, DatepickerProps, DatepickerSize, DrawerBodyProps, DrawerFooterProps, DrawerHeaderProps, DrawerPosition, DrawerProps, DrawerSize, DropdownAlignment, DropdownItemProps, DropdownProps, DueDatesDrawerProps, FilterChipProps, FilterOption, FlightData, FormFieldProps, FormRowProps, FormSectionProps, FormStackProps, GroundData, GroundSegmentProps, GroupTravelRequestPageProps, GroupedTravelDueDates, HotelData, HotelSegmentProps, HubAppShellActions, HubAppShellProps, HubNavigationItem, IconName, IconProps, IndividualTravelPageProps, InfoCenterArticle, InfoCenterPageProps, InfoCenterPageState, InputProps, InputSize, ManifestCapacityStatsProps, ManifestSendState, ManifestView, ManifestViewToggleProps, MembershipProgram, MembershipProgramsProps, MetricProps, ModalFooterProps, ModalProps, ModalSize, ModuleProps, ModuleSize, NavItemProps, NavItemSize, NavItemVariant, NotFoundPageProps, PageBannersProps, PreferenceField, PreferenceSection, PreferencesPanelProps, ProgressBarProps, ProgressCircleProps, ProgressSize, ProgressVariant, RequestFormFooterProps, RequestFormHeaderProps, RequestFormLayoutProps, RequestSummaryProps, RosterToolbarProps, ScheduleFilterOption, ScheduleMetric, SchoolContactFormProps, SearchFieldProps, SeasonOption, SegmentOption, SegmentProps, SegmentVariant, SegmentedSelectorOption, SegmentedSelectorProps, SelectFilterOption, SelectFilterProps, SelectOption, SelectOptionGroup, SelectProps, SelectSize, ServiceConfig, ServiceToggleListProps, ServiceToggleProps, SidenavItem, SidenavProps, SpinnerProps, SpinnerSize, StatusBadgeProps, StatusBadgeVariant, SummaryItem, SummarySectionConfig, SummarySegment, SupplierTypeToggleProps, SupplierTypeValue, SystemBanner, TabKey, TableColumn, TableProps, TagProps, TagSize, TagVariant, TeamCardProps, TeamHeaderProps, TeamManagementPageProps, TeamManagementTab, TeamOption, TeamScheduleActionsProps, TeamScheduleCompactRow, TeamScheduleCompactTableProps, TeamScheduleExpandedRow, TeamScheduleExpandedTableProps, TeamSchedulePageProps, TeamSubMenuProps, TeamSubMenuTab, TeamTravelCalendarPageProps, TextareaProps, TimepickerProps, TimepickerSize, TitleProps, TitleWeight, ToggleProps, ToggleSize, ToolbarAction, TooltipPosition, TooltipProps, TooltipVariant, TopbarProps, TravelAlertBanner, TravelDueDateItem, TravelServiceIconProps, TravelSummaryMetricsProps, TravelType, TravelerFormData, TravelerFormProps, TripData, TripDetailPageProps, TripSegmentProps, TripTableProps, TypeIconProps, VendorCode };
|
|
2510
|
+
export { Accordion, AdministrationPage, AirSegment, Alert, AppLayout, ArrowDownLeftIcon, ArrowUpRightIcon, Avatar, AvatarGroup, Badge, BuildingIcon, BusIcon, Button, CalendarIcon, CalendarTypeSelector, CalendarViewSelector, CarIcon, Card, CardBody, CardFooter, CardHeader, CharterManifestPage, CheckIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, ConfirmModal, ContactList, ContactUsPage, CubeIcon, DashboardIcon, DashboardPage, Datepicker, DocumentIcon, DownloadIcon, Drawer, DrawerBody, DrawerFooter, DrawerHeader, Dropdown, DueDatesDrawer, EditIcon, EyeIcon, FilterChip, FilterIcon, FormField, FormRow, FormSection, FormStack, GridIcon, GroundSegment, GroupTravelRequestPage, HUB_ADMIN_ITEM, HUB_INDIVIDUAL_TRAVEL_ITEM, HUB_NAV_ITEMS, HomeIcon, HotelIcon, HotelSegment, HubAppShell, Icons, IndividualTravelPage, InfoCenterPage, InfoIcon, Input, LightbulbIcon, LimoIcon, LockIcon, LogoIcon, MailIcon, ManifestCapacityStats, ManifestViewToggle, MegaphoneIcon, MembershipPrograms, MenuIcon, Metric, MinusIcon, Modal, ModalFooter, Module, ModuleDivider, ModuleVerticalDivider, NavItem, NotFoundPage, PageBanners, PhoneIcon, PlaneIcon, PlusIcon, PreferencesPanel, PrinterIcon, Progress, ProgressBar, ProgressCircle, RailIcon, RefreshIcon, ReportIcon, RequestFormFooter, RequestFormHeader, RequestFormLayout, RequestSummary, RosterToolbar, SUPPLIER_TYPE_OPTIONS, SchoolContactForm, SearchField, SearchIcon, Segment, SegmentedSelector, Select, SelectFilter, ServiceToggle, ServiceToggleList, SettingsIcon, Sidenav, Spinner, StatusBadge, SummarySection, SupplierTypeToggle, Table, Tag, TeamCard, TeamEquipmentForm, TeamHeader, TeamImportForm, TeamManagementPage, TeamProgramForm, TeamRosterMemberForm, TeamScheduleActions, TeamScheduleCompactTable, TeamScheduleExpandedTable, TeamSchedulePage, TeamSubMenu, TeamTravelCalendarPage, TeamUserAccessForm, Textarea, Timepicker, Title, Toggle, Tooltip, Topbar, TrashIcon, TravelServiceIcon, TravelSummaryMetrics, TravelerForm, TrendDownIcon, TrendUpIcon, TripDetailPage, TripSegment, TripTable, TypeIcon, UploadIcon, UserIcon, UsersIcon, WarningIcon, XIcon, formatCompactTripCost, formatTeamScheduleTravelDates, isTravelDueDateCompleted };
|
|
2511
|
+
export type { AccordionProps, AccountInfo, AdministrationCard, AdministrationPageProps, AdministrationTab, AirSegmentProps, AlertProps, AlertVariant, AppLayoutProps, AvatarGroupProps, AvatarProps, AvatarSize, BadgeProps, BadgeSize, BadgeVariant, ButtonProps, ButtonSize, ButtonVariant, CalendarMetric, CalendarTypeSelectorProps, CalendarTypeValue, CalendarView, CalendarViewSelectorProps, CalendarViewValue, CardBodyProps, CardFooterProps, CardHeaderProps, CardPadding, CardProps, CardVariant, CharterManifestEquipment, CharterManifestPageProps, CharterManifestPassenger, CharterManifestSegment, CheckboxProps, ConfirmModalProps, Contact, ContactCardData, ContactInfo, ContactListProps, ContactPair, ContactUsData, ContactUsPageProps, DashboardPageProps, DatepickerProps, DatepickerSize, DrawerBodyProps, DrawerFooterProps, DrawerHeaderProps, DrawerPosition, DrawerProps, DrawerSize, DropdownAlignment, DropdownItemProps, DropdownProps, DueDatesDrawerProps, FilterChipProps, FilterOption, FlightData, FormFieldProps, FormRowProps, FormSectionProps, FormStackProps, GroundData, GroundSegmentProps, GroupTravelRequestPageProps, GroupedTravelDueDates, HotelData, HotelSegmentProps, HubAppShellActions, HubAppShellProps, HubNavigationItem, IconName, IconProps, IndividualTravelPageProps, InfoCenterArticle, InfoCenterPageProps, InfoCenterPageState, InputProps, InputSize, ManifestCapacityStatsProps, ManifestSendState, ManifestView, ManifestViewToggleProps, MembershipProgram, MembershipProgramsProps, MetricProps, ModalFooterProps, ModalProps, ModalSize, ModuleProps, ModuleSize, NavItemProps, NavItemSize, NavItemVariant, NotFoundPageProps, PageBannersProps, PreferenceField, PreferenceSection, PreferencesPanelProps, ProgressBarProps, ProgressCircleProps, ProgressSize, ProgressVariant, RequestFormFooterProps, RequestFormHeaderProps, RequestFormLayoutProps, RequestSummaryProps, RosterToolbarProps, ScheduleFilterOption, ScheduleMetric, SchoolContactFormProps, SearchFieldProps, SeasonOption, SegmentOption, SegmentProps, SegmentVariant, SegmentedSelectorOption, SegmentedSelectorProps, SelectFilterOption, SelectFilterProps, SelectOption, SelectOptionGroup, SelectProps, SelectSize, ServiceConfig, ServiceToggleListProps, ServiceToggleProps, SidenavItem, SidenavProps, SpinnerProps, SpinnerSize, StatusBadgeProps, StatusBadgeVariant, SummaryItem, SummarySectionConfig, SummarySegment, SupplierTypeToggleProps, SupplierTypeValue, SystemBanner, TabKey, TableColumn, TableProps, TagProps, TagSize, TagVariant, TeamCardProps, TeamEquipmentFormProps, TeamEquipmentValues, TeamFormMode, TeamHeaderProps, TeamImportFormProps, TeamImportKind, TeamManagementPageProps, TeamManagementTab, TeamNumericValue, TeamOption, TeamPortalUserOption, TeamProgramFormProps, TeamProgramType, TeamProgramValues, TeamRosterMemberFormProps, TeamRosterMemberValues, TeamScheduleActionsProps, TeamScheduleCompactRow, TeamScheduleCompactTableProps, TeamScheduleExpandedRow, TeamScheduleExpandedTableProps, TeamSchedulePageProps, TeamSubMenuProps, TeamSubMenuTab, TeamTravelCalendarPageProps, TeamUserAccessFormProps, TeamUserAccessValues, TextareaProps, TimepickerProps, TimepickerSize, TitleProps, TitleWeight, ToggleProps, ToggleSize, ToolbarAction, TooltipPosition, TooltipProps, TooltipVariant, TopbarProps, TravelAlertBanner, TravelDueDateItem, TravelServiceIconProps, TravelSummaryMetricsProps, TravelType, TravelerFormData, TravelerFormProps, TripData, TripDetailPageProps, TripSegmentProps, TripTableProps, TypeIconProps, VendorCode };
|