hisd3-ui-kit 5.0.0 → 5.1.0
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/README.md +39 -2
- package/dist/index.cjs.js +33 -23
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +50 -6
- package/dist/index.js +28 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ThemeConfig, MenuProps, TableProps, TabsProps, ButtonProps, InputProps, FormItemProps, GetProps, Skeleton, Input, InputNumberProps, GetRef, InputNumber,
|
|
1
|
+
import { ThemeConfig, MenuProps, TableProps, TabsProps, ButtonProps, InputProps, SelectProps, FormItemProps, GetProps, Skeleton, Input, InputNumberProps, GetRef, InputNumber, RadioGroupProps, CheckboxProps, Checkbox, SwitchProps, DatePickerProps, DatePicker, TimePickerProps, TimePicker, TimeRangePickerProps, AutoCompleteProps, AutoComplete, MentionsProps, MentionsRef, CascaderAutoProps, Cascader, TreeSelectProps, TreeSelect, SegmentedProps, TransferProps, Transfer, Slider, RateProps, Rate, ColorPickerProps, UploadProps, UploadFile } from 'antd';
|
|
2
2
|
import React, { ReactNode, ComponentType } from 'react';
|
|
3
3
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
4
4
|
import * as styled_components from 'styled-components';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { AnyObject } from 'antd/es/_util/type';
|
|
7
|
+
import { DefaultOptionType } from 'antd/es/select';
|
|
7
8
|
import * as antd_es_input_TextArea from 'antd/es/input/TextArea';
|
|
8
9
|
|
|
9
10
|
/** Named primary-color presets. Any hex string is also accepted. */
|
|
@@ -1059,9 +1060,52 @@ interface HISD3SearchInputProps extends Omit<InputProps, "size"> {
|
|
|
1059
1060
|
/** @deprecated use `size` — kept so existing call sites keep working. */
|
|
1060
1061
|
compact?: boolean;
|
|
1061
1062
|
}
|
|
1062
|
-
/**
|
|
1063
|
+
/** Light search field with a leading icon (the page-level search bar). */
|
|
1063
1064
|
declare const HISD3SearchInput: React.ForwardRefExoticComponent<Omit<HISD3SearchInputProps, "ref"> & React.RefAttributes<InputRef>>;
|
|
1064
1065
|
|
|
1066
|
+
/** An option that may carry a second, smaller line under its label. */
|
|
1067
|
+
interface HISD3SelectOption extends DefaultOptionType {
|
|
1068
|
+
/** Shown under the label, smaller and muted — e.g. the account title under its code. */
|
|
1069
|
+
description?: React.ReactNode;
|
|
1070
|
+
}
|
|
1071
|
+
interface HISD3SelectProps extends SelectProps<any, HISD3SelectOption> {
|
|
1072
|
+
/**
|
|
1073
|
+
* Wrap long text onto more lines — in the chosen value and in every option —
|
|
1074
|
+
* instead of cutting it off with "…". On by default.
|
|
1075
|
+
*
|
|
1076
|
+
* Turns antd's virtual list off unless you pass `virtual` yourself: wrapped
|
|
1077
|
+
* rows are not all the same height. Pass `virtual` for a very long list.
|
|
1078
|
+
*/
|
|
1079
|
+
wrap?: boolean;
|
|
1080
|
+
/** Label line in a monospace font — for codes (account codes, UACS, …). */
|
|
1081
|
+
monoLabel?: boolean;
|
|
1082
|
+
}
|
|
1083
|
+
interface HISD3SelectLabelProps {
|
|
1084
|
+
label: React.ReactNode;
|
|
1085
|
+
description?: React.ReactNode;
|
|
1086
|
+
/** Label in a monospace font. */
|
|
1087
|
+
mono?: boolean;
|
|
1088
|
+
}
|
|
1089
|
+
/**
|
|
1090
|
+
* The two-line layout HISD3Select uses for an option with a `description`:
|
|
1091
|
+
* the label on top, the description underneath, smaller and muted. Both wrap.
|
|
1092
|
+
* Exported for a custom `optionRender` / `labelRender` that wants the same look.
|
|
1093
|
+
*/
|
|
1094
|
+
declare const HISD3SelectLabel: React.FC<HISD3SelectLabelProps>;
|
|
1095
|
+
/**
|
|
1096
|
+
* antd Select that wraps long text instead of truncating it, and shows an
|
|
1097
|
+
* option's `description` on a second line — in the dropdown and in the box.
|
|
1098
|
+
*
|
|
1099
|
+
* ```tsx
|
|
1100
|
+
* <HISD3Select
|
|
1101
|
+
* showSearch
|
|
1102
|
+
* monoLabel
|
|
1103
|
+
* options={accounts.map((a) => ({ value: a.code, label: a.code, description: a.title }))}
|
|
1104
|
+
* />
|
|
1105
|
+
* ```
|
|
1106
|
+
*/
|
|
1107
|
+
declare const HISD3Select: React.ForwardRefExoticComponent<Omit<HISD3SelectProps, "ref"> & React.RefAttributes<RefSelectProps>>;
|
|
1108
|
+
|
|
1065
1109
|
type HISD3SkeletonInputProps = GetProps<typeof Skeleton.Input>;
|
|
1066
1110
|
type ControlSize = HISD3SkeletonInputProps["size"];
|
|
1067
1111
|
interface HISD3FormFieldBaseProps extends Omit<FormItemProps, "children"> {
|
|
@@ -1112,8 +1156,8 @@ declare const HISD3FormTextArea: React.ForwardRefExoticComponent<Omit<HISD3FormT
|
|
|
1112
1156
|
type HISD3FormInputNumberProps = HISD3FormFieldProps<InputNumberProps>;
|
|
1113
1157
|
/** Numeric input, full width of its column. */
|
|
1114
1158
|
declare const HISD3FormInputNumber: HISD3FormFieldComponent<HISD3FormInputNumberProps, HISD3InputNumberRef>;
|
|
1115
|
-
type HISD3FormSelectProps = HISD3FormFieldProps<
|
|
1116
|
-
/** Select / multi-select. */
|
|
1159
|
+
type HISD3FormSelectProps = HISD3FormFieldProps<HISD3SelectProps>;
|
|
1160
|
+
/** Select / multi-select (`HISD3Select`: long text wraps, options may carry a `description`). */
|
|
1117
1161
|
declare const HISD3FormSelect: React.ForwardRefExoticComponent<Omit<HISD3FormSelectProps, "ref"> & React.RefAttributes<RefSelectProps>>;
|
|
1118
1162
|
type HISD3FormRadioGroupProps = HISD3FormFieldProps<RadioGroupProps>;
|
|
1119
1163
|
/** Radio group — pass `fieldProps.options`. */
|
|
@@ -1259,5 +1303,5 @@ declare const HISD3_LAYOUT: {
|
|
|
1259
1303
|
readonly pageGutter: 28;
|
|
1260
1304
|
};
|
|
1261
1305
|
|
|
1262
|
-
export { AppAnimateGroups, AppAnimates, AppMotionAnimate, AuthType, DialogProvider, Fonts, FooterType, HISD3AvatarMenu, HISD3Button, HISD3FormAutoComplete, HISD3FormCascader, HISD3FormCheckbox, HISD3FormCheckboxGroup, HISD3FormColorPicker, HISD3FormDatePicker, HISD3FormField, HISD3FormInput, HISD3FormInputNumber, HISD3FormMentions, HISD3FormOTP, HISD3FormPassword, HISD3FormRadioGroup, HISD3FormRangePicker, HISD3FormRate, HISD3FormSearch, HISD3FormSegmented, HISD3FormSelect, HISD3FormSlider, HISD3FormSwitch, HISD3FormTextArea, HISD3FormTimePicker, HISD3FormTimeRangePicker, HISD3FormTransfer, HISD3FormTreeSelect, HISD3FormUpload, HISD3FormUploadDragger, HISD3HeaderActions, HISD3Input, HISD3LoginPage, HISD3NotificationButton, HISD3PageBody, HISD3PageHeader, HISD3Provider, HISD3SearchInput, HISD3Sidebar, HISD3Table, HISD3Tabs, HISD3Tag, HISD3_BORDER_PRESETS, HISD3_COLORS, HISD3_FONT_FAMILY, HISD3_FONT_WEIGHT_BODY, HISD3_FONT_WEIGHT_HEADING, HISD3_LAYOUT, HISD3_LOGO_SRC, HISD3_NEUTRALS, HISD3_PRESETS, HeaderIconButton, HeaderType, LayoutDirection, LayoutType, MenuStyle, MessageType, NavStyle, RoutePermittedRole, RouteTransition, ThemeMode, ThemeStyle, ThemeStyleRadius, UserMenu, borderVarsCss, createHisd3Theme, getInitials, hisd3AntdTheme, hisd3VarsCss, normalizeUploadFileList, resolvePrimary, shade, tint, useDialog, useInsideHISD3Provider };
|
|
1263
|
-
export type { DialogOwnProps, DialogProps, DialogResult, HISD3AutoCompleteRef, HISD3AvatarMenuProps, HISD3Borders, HISD3BreadcrumbItem, HISD3ButtonProps, HISD3ButtonVariant, HISD3CascaderRef, HISD3FormAutoCompleteProps, HISD3FormCascaderProps, HISD3FormCheckboxGroupProps, HISD3FormCheckboxProps, HISD3FormColorPickerProps, HISD3FormDatePickerProps, HISD3FormFieldBaseProps, HISD3FormFieldComponent, HISD3FormFieldProps, HISD3FormFieldShellProps, HISD3FormInputNumberProps, HISD3FormInputProps, HISD3FormMentionsProps, HISD3FormOTPProps, HISD3FormPasswordProps, HISD3FormRadioGroupProps, HISD3FormRangePickerProps, HISD3FormRateProps, HISD3FormSearchProps, HISD3FormSegmentedProps, HISD3FormSelectProps, HISD3FormSliderProps, HISD3FormSwitchProps, HISD3FormTextAreaProps, HISD3FormTimePickerProps, HISD3FormTimeRangePickerProps, HISD3FormTransferProps, HISD3FormTreeSelectProps, HISD3FormUploadProps, HISD3HeaderActionsProps, HISD3InputNumberRef, HISD3InputProps, HISD3LoginPageProps, HISD3LoginValues, HISD3MenuItem, HISD3Notification, HISD3NotificationButtonProps, HISD3OTPRef, HISD3PageHeaderProps, HISD3PickerRef, HISD3Preset, HISD3ProviderProps, HISD3RangePickerRef, HISD3RateRef, HISD3SearchInputProps, HISD3SidebarProps, HISD3SkeletonInputProps, HISD3SliderRef, HISD3TabItem, HISD3TablePagination, HISD3TableProps, HISD3TabsProps, HISD3TagProps, HISD3TagTone, HISD3TagVariant, HISD3ThemeOptions, HISD3TimePickerRef, HISD3TimeRangePickerRef, HISD3TransferRef, HISD3TreeSelectRef, IUserEmployee, LoginSide, LoginVariant, StyledTheme, UserMenuProps };
|
|
1306
|
+
export { AppAnimateGroups, AppAnimates, AppMotionAnimate, AuthType, DialogProvider, Fonts, FooterType, HISD3AvatarMenu, HISD3Button, HISD3FormAutoComplete, HISD3FormCascader, HISD3FormCheckbox, HISD3FormCheckboxGroup, HISD3FormColorPicker, HISD3FormDatePicker, HISD3FormField, HISD3FormInput, HISD3FormInputNumber, HISD3FormMentions, HISD3FormOTP, HISD3FormPassword, HISD3FormRadioGroup, HISD3FormRangePicker, HISD3FormRate, HISD3FormSearch, HISD3FormSegmented, HISD3FormSelect, HISD3FormSlider, HISD3FormSwitch, HISD3FormTextArea, HISD3FormTimePicker, HISD3FormTimeRangePicker, HISD3FormTransfer, HISD3FormTreeSelect, HISD3FormUpload, HISD3FormUploadDragger, HISD3HeaderActions, HISD3Input, HISD3LoginPage, HISD3NotificationButton, HISD3PageBody, HISD3PageHeader, HISD3Provider, HISD3SearchInput, HISD3Select, HISD3SelectLabel, HISD3Sidebar, HISD3Table, HISD3Tabs, HISD3Tag, HISD3_BORDER_PRESETS, HISD3_COLORS, HISD3_FONT_FAMILY, HISD3_FONT_WEIGHT_BODY, HISD3_FONT_WEIGHT_HEADING, HISD3_LAYOUT, HISD3_LOGO_SRC, HISD3_NEUTRALS, HISD3_PRESETS, HeaderIconButton, HeaderType, LayoutDirection, LayoutType, MenuStyle, MessageType, NavStyle, RoutePermittedRole, RouteTransition, ThemeMode, ThemeStyle, ThemeStyleRadius, UserMenu, borderVarsCss, createHisd3Theme, getInitials, hisd3AntdTheme, hisd3VarsCss, normalizeUploadFileList, resolvePrimary, shade, tint, useDialog, useInsideHISD3Provider };
|
|
1307
|
+
export type { DialogOwnProps, DialogProps, DialogResult, HISD3AutoCompleteRef, HISD3AvatarMenuProps, HISD3Borders, HISD3BreadcrumbItem, HISD3ButtonProps, HISD3ButtonVariant, HISD3CascaderRef, HISD3FormAutoCompleteProps, HISD3FormCascaderProps, HISD3FormCheckboxGroupProps, HISD3FormCheckboxProps, HISD3FormColorPickerProps, HISD3FormDatePickerProps, HISD3FormFieldBaseProps, HISD3FormFieldComponent, HISD3FormFieldProps, HISD3FormFieldShellProps, HISD3FormInputNumberProps, HISD3FormInputProps, HISD3FormMentionsProps, HISD3FormOTPProps, HISD3FormPasswordProps, HISD3FormRadioGroupProps, HISD3FormRangePickerProps, HISD3FormRateProps, HISD3FormSearchProps, HISD3FormSegmentedProps, HISD3FormSelectProps, HISD3FormSliderProps, HISD3FormSwitchProps, HISD3FormTextAreaProps, HISD3FormTimePickerProps, HISD3FormTimeRangePickerProps, HISD3FormTransferProps, HISD3FormTreeSelectProps, HISD3FormUploadProps, HISD3HeaderActionsProps, HISD3InputNumberRef, HISD3InputProps, HISD3LoginPageProps, HISD3LoginValues, HISD3MenuItem, HISD3Notification, HISD3NotificationButtonProps, HISD3OTPRef, HISD3PageHeaderProps, HISD3PickerRef, HISD3Preset, HISD3ProviderProps, HISD3RangePickerRef, HISD3RateRef, HISD3SearchInputProps, HISD3SelectLabelProps, HISD3SelectOption, HISD3SelectProps, HISD3SidebarProps, HISD3SkeletonInputProps, HISD3SliderRef, HISD3TabItem, HISD3TablePagination, HISD3TableProps, HISD3TabsProps, HISD3TagProps, HISD3TagTone, HISD3TagVariant, HISD3ThemeOptions, HISD3TimePickerRef, HISD3TimeRangePickerRef, HISD3TransferRef, HISD3TreeSelectRef, IUserEmployee, LoginSide, LoginVariant, StyledTheme, UserMenuProps };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigProvider as o,App as i,Layout as n,Dropdown as a,Spin as l,Menu as d,Breadcrumb as s,Button as p,Switch as c,Empty as h,Table as g,Pagination as m,Tabs as u,Input as b,Form as f,InputNumber as x,Select as y,Radio as v,Checkbox as w,DatePicker as k,TimePicker as A,AutoComplete as D,Mentions as S,Cascader as z,TreeSelect as E,Segmented as C,Transfer as I,Slider as F,Rate as B,Skeleton as N,ColorPicker as T,Upload as L}from"antd";import R,{createContext as P,useContext as U,useMemo as H,createElement as M,useState as O,useEffect as $,forwardRef as G,useCallback as j,Fragment as q,useRef as Q}from"react";import K,{ThemeProvider as W,css as V}from"styled-components";import{SettingOutlined as Z,LogoutOutlined as Y,DownOutlined as J,ExclamationCircleOutlined as X,MenuUnfoldOutlined as _,MenuFoldOutlined as ee,RightOutlined as te,LeftOutlined as re,EyeInvisibleOutlined as oe,EyeOutlined as ie,BellFilled as ne,SearchOutlined as ae}from"@ant-design/icons";function le(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}le('body,html{height:100%;width:100%}input::-ms-clear,input::-ms-reveal{display:none}*,:after,:before{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:sans-serif;line-height:1.15}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{font-weight:500;margin-bottom:.5em;margin-top:0}p{margin-bottom:1em;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit;margin-bottom:1em}input[type=number],input[type=password],input[type=text],textarea{-webkit-appearance:none}dl,ol,ul{margin-bottom:1em;margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}code,kbd,pre,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}pre{margin-bottom:1em;margin-top:0;overflow:auto}figure{margin:0 0 1em}img{border-style:none;vertical-align:middle}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;padding-bottom:.3em;padding-top:.75em;text-align:left}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5em;line-height:inherit;margin-bottom:.5em;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}');le('@import url("https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");:root{--hisd3-rule-width:1px;--hisd3-control-bg:#e6e4e1;--hisd3-control-bg-hover:#dbd8d4;--hisd3-popup-radius:10px;--font-body:"Archivo",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--font-heading:var(--font-body);--font-weight-heading:800}body{-webkit-font-smoothing:antialiased;font-family:var(--font-body)}body,html{overscroll-behavior:none}.ant-typography h1,.ant-typography h2,.ant-typography h3,.ant-typography h4,.ant-typography h5,h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);font-weight:var(--font-weight-heading);letter-spacing:-.01em}');const de={siderWidth:260,siderCollapsedWidth:64,topBarHeight:60,pageGutter:28},se={brand:"#E5533B",brandBlue:"#1B6FE0",red:"#E5401C",orange:"#F26B1D",teal:"#00796B",blue:"#1D5FD1",green:"#2E7D32",purple:"#6A3FD6"},pe={bgLayout:"#F3F2F0",bgContainer:"#F3F2F0",bgElevated:"#FFFFFF",bgFilled:"#E6E4E1",bgFilledHover:"#DBD8D4",text:"#171717",textSecondary:"#4A4A4A",textTertiary:"#6E6E6E",border:"#D9D5CE",borderSecondary:"#E7E4DE",borderStrong:"#1F1F1F",white:"#FFFFFF"},ce={hairline:{width:1,border:"#D9D5CE",borderSecondary:"#E7E4DE"},bold:{width:2,border:"#1F1F1F",borderSecondary:"#CFCDC9"}},he="'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",ge=800,me=400,ue=(e="red")=>se[e]??e,be=(e,t)=>{const r=e.replace("#",""),o=3===r.length?r.split("").map((e=>e+e)).join(""):r,i=parseInt(o,16);return`#${[i>>16&255,i>>8&255,255&i].map((e=>(e=>Math.round(e*(1-t)))(e).toString(16).padStart(2,"0"))).join("")}`},fe=(e,t)=>{const r=e.replace("#",""),o=3===r.length?r.split("").map((e=>e+e)).join(""):r,i=parseInt(o,16),n=i>>8&255,a=255&i,l=e=>Math.round(e+(255-e)*t);return`#${[l(i>>16&255),l(n),l(a)].map((e=>e.toString(16).padStart(2,"0"))).join("")}`},xe=({primary:e,radius:t=0,borders:r="hairline",lineWidth:o,overrides:i}={})=>{const n=ue(e),a=ce[r]??ce.hairline,l=o??a.width,d={...pe,border:a.border,borderSecondary:a.borderSecondary},s={cssVar:{key:"hisd3"},token:{colorPrimary:n,colorInfo:n,colorLink:n,colorPrimaryBg:fe(n,.92),colorPrimaryBgHover:fe(n,.86),colorPrimaryBorder:fe(n,.6),fontFamily:he,fontSize:14,fontWeightStrong:700,borderRadius:t,borderRadiusLG:t,borderRadiusSM:t,borderRadiusXS:t,lineWidth:l,colorBgLayout:d.bgLayout,colorBgContainer:d.bgContainer,colorBgElevated:d.bgElevated,colorText:d.text,colorTextSecondary:d.textSecondary,colorTextTertiary:d.textTertiary,colorTextHeading:d.text,colorBorder:d.border,colorBorderSecondary:d.borderSecondary,colorSplit:d.borderSecondary,controlHeight:40,controlHeightLG:52,controlHeightSM:32,boxShadow:"none",boxShadowSecondary:"0 2px 6px rgba(16,15,14,0.06), 0 12px 32px rgba(16,15,14,0.14)"},components:{Layout:{siderBg:d.bgLayout,headerBg:d.bgLayout,bodyBg:d.bgLayout,headerPadding:`0 ${de.pageGutter}px`},Menu:{itemBg:"transparent",subMenuItemBg:"transparent",itemColor:d.text,itemHoverColor:d.text,itemHoverBg:"rgba(0,0,0,0.04)",itemSelectedBg:fe(n,.9),itemSelectedColor:n,itemActiveBg:fe(n,.86),subMenuItemSelectedColor:n,groupTitleColor:d.textTertiary,groupTitleFontSize:12,itemBorderRadius:0,itemMarginInline:0,itemMarginBlock:0,itemHeight:40,itemPaddingInline:de.pageGutter,iconSize:16,collapsedIconSize:18,activeBarBorderWidth:0,activeBarWidth:0},Button:{fontWeight:600,primaryShadow:"none",defaultShadow:"none",dangerShadow:"none",defaultBorderColor:d.border,defaultColor:d.text,defaultBg:d.bgLayout,defaultHoverBg:d.white,defaultHoverBorderColor:d.borderStrong,defaultHoverColor:d.text,defaultActiveBorderColor:d.borderStrong,paddingInline:16,contentFontSize:14,contentFontSizeLG:16,contentFontSizeSM:13},Input:{activeShadow:"none",colorBorder:d.border,hoverBorderColor:d.borderStrong,activeBorderColor:d.borderStrong,paddingInline:16},Select:{optionSelectedBg:fe(n,.9),colorBorder:d.border},Table:{headerBg:d.bgContainer,headerColor:d.textTertiary,headerSplitColor:"transparent",headerBorderRadius:0,borderColor:d.borderSecondary,rowHoverBg:be(d.bgContainer,.03),cellPaddingBlock:10,cellPaddingInline:12,cellFontSize:14,cellPaddingBlockMD:8,cellPaddingInlineMD:10,cellPaddingBlockSM:6,cellPaddingInlineSM:8,cellFontSizeMD:14,cellFontSizeSM:13,footerBg:d.bgContainer},Tabs:{inkBarColor:n,itemColor:d.text,itemSelectedColor:n,itemHoverColor:n,titleFontSize:15,horizontalItemGutter:32,horizontalMargin:"0",lineWidthBold:4},Tag:{borderRadiusSM:0,defaultBg:"transparent"},Pagination:{itemBg:d.bgLayout,itemActiveBg:n,itemSize:32,itemSizeSM:26,itemInputBg:d.bgLayout},Dropdown:{paddingBlock:10},Breadcrumb:{itemColor:d.textTertiary,lastItemColor:d.text,linkColor:d.textTertiary,linkHoverColor:n,separatorColor:d.textTertiary},Card:{headerFontSize:20}}};return i?{...s,...i,token:{...s.token,...i.token},components:{...s.components,...i.components}}:s},ye=({primary:e,borders:t="hairline",lineWidth:r,radius:o=0}={})=>{const i=ue(e),n=ce[t]??ce.hairline,a=pe;return[":root{",`--hisd3-rule-width:${r??n.width}px;`,`--hisd3-control-bg:${a.bgFilled};`,`--hisd3-control-bg-hover:${a.bgFilledHover};`,"--hisd3-popup-radius:10px;",`--hisd3-radius:${o}px;`,`--ant-color-primary:${i};`,`--ant-color-primary-bg:${fe(i,.92)};`,`--ant-color-primary-bg-hover:${fe(i,.86)};`,`--ant-color-primary-border:${fe(i,.6)};`,`--ant-color-error:${i===se.red?i:"#E5401C"};`,`--ant-color-text:${a.text};`,`--ant-color-text-secondary:${a.textSecondary};`,`--ant-color-text-tertiary:${a.textTertiary};`,`--hisd3-table-bg:${a.bgContainer};`,`--hisd3-table-hover-bg:${be(a.bgContainer,.03)};`,`--hisd3-border:${n.border};`,`--hisd3-border-secondary:${n.borderSecondary};`,`--ant-color-border:${n.border};`,`--ant-color-border-secondary:${n.borderSecondary};`,`--ant-color-bg-layout:${a.bgLayout};`,`--ant-color-bg-elevated:${a.bgElevated};`,"}"].join("")},ve=(e="hairline",t)=>ye({borders:e,lineWidth:t}),we=xe(),ke={primary:se.red,primaryLight:fe(se.red,.9),headerSelectedBg:"rgba(0,0,0,0.04)"},Ae=P(!1),De=()=>U(Ae),Se=({primary:r,radius:n,borders:a="hairline",lineWidth:l,overrides:d,theme:s,styledTheme:p={},children:c})=>{const h=H((()=>s??xe({primary:r,radius:n,borders:a,lineWidth:l,overrides:d})),[s,r,n,a,l,d]),g=H((()=>ye({primary:r,borders:a,lineWidth:l,radius:n})),[r,a,l,n]);return e(Ae.Provider,{value:!0,children:[t("style",{dangerouslySetInnerHTML:{__html:g}}),t(o,{theme:h,children:t(W,{theme:p,children:t(i,{component:!1,children:c})})})]})},{Header:ze,Content:Ee}=n,Ce=de.siderWidth,Ie=de.siderCollapsedWidth,Fe=de.topBarHeight,Be=K(n)`
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigProvider as o,App as i,Layout as n,Dropdown as a,Spin as l,Menu as d,Breadcrumb as s,Button as p,Switch as c,Empty as h,Table as g,Pagination as m,Tabs as u,Input as b,Select as f,Form as x,InputNumber as v,Radio as y,Checkbox as w,DatePicker as k,TimePicker as A,AutoComplete as D,Mentions as S,Cascader as z,TreeSelect as E,Segmented as C,Transfer as I,Slider as F,Rate as B,Skeleton as N,ColorPicker as L,Upload as T}from"antd";import R,{createContext as P,useContext as U,useMemo as H,createElement as M,useState as O,useEffect as $,forwardRef as G,useCallback as j,Fragment as q,useRef as Q}from"react";import K,{ThemeProvider as W,css as V}from"styled-components";import{SettingOutlined as Z,LogoutOutlined as Y,DownOutlined as J,ExclamationCircleOutlined as X,MenuUnfoldOutlined as _,MenuFoldOutlined as ee,RightOutlined as te,LeftOutlined as re,EyeInvisibleOutlined as oe,EyeOutlined as ie,BellFilled as ne,SearchOutlined as ae}from"@ant-design/icons";function le(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}le('body,html{height:100%;width:100%}input::-ms-clear,input::-ms-reveal{display:none}*,:after,:before{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:sans-serif;line-height:1.15}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{font-weight:500;margin-bottom:.5em;margin-top:0}p{margin-bottom:1em;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit;margin-bottom:1em}input[type=number],input[type=password],input[type=text],textarea{-webkit-appearance:none}dl,ol,ul{margin-bottom:1em;margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}code,kbd,pre,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}pre{margin-bottom:1em;margin-top:0;overflow:auto}figure{margin:0 0 1em}img{border-style:none;vertical-align:middle}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;padding-bottom:.3em;padding-top:.75em;text-align:left}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5em;line-height:inherit;margin-bottom:.5em;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}');le('@import url("https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");:root{--hisd3-rule-width:1px;--hisd3-control-bg:#e6e4e1;--hisd3-control-bg-hover:#dbd8d4;--hisd3-input-bg:#faf9f7;--hisd3-input-bg-hover:#fff;--hisd3-input-border-hover:#b9b4ac;--hisd3-popup-radius:10px;--font-body:"Archivo",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--font-heading:var(--font-body);--font-weight-heading:800}body{-webkit-font-smoothing:antialiased;font-family:var(--font-body)}body,html{overscroll-behavior:none}.ant-typography h1,.ant-typography h2,.ant-typography h3,.ant-typography h4,.ant-typography h5,h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);font-weight:var(--font-weight-heading);letter-spacing:-.01em}.hisd3-wrap-popup.ant-select-dropdown .ant-select-item,.hisd3-wrap-select.ant-select-dropdown .ant-select-item{height:auto;min-height:32px;padding-block:6px}.hisd3-wrap-popup.ant-select-dropdown .ant-select-item-option-content,.hisd3-wrap-select.ant-select .ant-select-selection-item,.hisd3-wrap-select.ant-select-dropdown .ant-select-item-option-content,.hisd3-wrap-select.ant-select-single .ant-select-content{line-height:1.35;overflow:visible;overflow-wrap:anywhere;text-overflow:clip;white-space:normal}.hisd3-select-label{line-height:1.35;min-width:0;overflow-wrap:anywhere;padding-block:2px;white-space:normal}.hisd3-select-label-description{color:var(--ant-color-text-secondary,rgba(0,0,0,.55));font-size:12px;font-weight:400}');const de={siderWidth:260,siderCollapsedWidth:64,topBarHeight:60,pageGutter:28},se={brand:"#E5533B",brandBlue:"#1B6FE0",red:"#E5401C",orange:"#F26B1D",teal:"#00796B",blue:"#1D5FD1",green:"#2E7D32",purple:"#6A3FD6"},pe={bgLayout:"#F3F2F0",bgContainer:"#F3F2F0",bgElevated:"#FFFFFF",bgFilled:"#E6E4E1",bgFilledHover:"#DBD8D4",text:"#171717",textSecondary:"#4A4A4A",textTertiary:"#6E6E6E",border:"#D9D5CE",borderSecondary:"#E7E4DE",borderStrong:"#1F1F1F",white:"#FFFFFF"},ce={hairline:{width:1,border:"#D9D5CE",borderSecondary:"#E7E4DE"},bold:{width:2,border:"#1F1F1F",borderSecondary:"#CFCDC9"}},he="'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",ge=800,me=400,ue=(e="red")=>se[e]??e,be=(e,t)=>{const r=e.replace("#",""),o=3===r.length?r.split("").map((e=>e+e)).join(""):r,i=parseInt(o,16);return`#${[i>>16&255,i>>8&255,255&i].map((e=>(e=>Math.round(e*(1-t)))(e).toString(16).padStart(2,"0"))).join("")}`},fe=(e,t)=>{const r=e.replace("#",""),o=3===r.length?r.split("").map((e=>e+e)).join(""):r,i=parseInt(o,16),n=i>>8&255,a=255&i,l=e=>Math.round(e+(255-e)*t);return`#${[l(i>>16&255),l(n),l(a)].map((e=>e.toString(16).padStart(2,"0"))).join("")}`},xe=({primary:e,radius:t=0,borders:r="hairline",lineWidth:o,overrides:i}={})=>{const n=ue(e),a=ce[r]??ce.hairline,l=o??a.width,d={...pe,border:a.border,borderSecondary:a.borderSecondary},s={cssVar:{key:"hisd3"},token:{colorPrimary:n,colorInfo:n,colorLink:n,colorPrimaryBg:fe(n,.92),colorPrimaryBgHover:fe(n,.86),colorPrimaryBorder:fe(n,.6),fontFamily:he,fontSize:14,fontWeightStrong:700,borderRadius:t,borderRadiusLG:t,borderRadiusSM:t,borderRadiusXS:t,lineWidth:l,colorBgLayout:d.bgLayout,colorBgContainer:d.bgContainer,colorBgElevated:d.bgElevated,colorText:d.text,colorTextSecondary:d.textSecondary,colorTextTertiary:d.textTertiary,colorTextHeading:d.text,colorBorder:d.border,colorBorderSecondary:d.borderSecondary,colorSplit:d.borderSecondary,controlHeight:40,controlHeightLG:52,controlHeightSM:32,boxShadow:"none",boxShadowSecondary:"0 2px 6px rgba(16,15,14,0.06), 0 12px 32px rgba(16,15,14,0.14)"},components:{Layout:{siderBg:d.bgLayout,headerBg:d.bgLayout,bodyBg:d.bgLayout,headerPadding:`0 ${de.pageGutter}px`},Menu:{itemBg:"transparent",subMenuItemBg:"transparent",itemColor:d.text,itemHoverColor:d.text,itemHoverBg:"rgba(0,0,0,0.04)",itemSelectedBg:fe(n,.9),itemSelectedColor:n,itemActiveBg:fe(n,.86),subMenuItemSelectedColor:n,groupTitleColor:d.textTertiary,groupTitleFontSize:12,itemBorderRadius:0,itemMarginInline:0,itemMarginBlock:0,itemHeight:40,itemPaddingInline:de.pageGutter,iconSize:16,collapsedIconSize:18,activeBarBorderWidth:0,activeBarWidth:0},Button:{fontWeight:600,primaryShadow:"none",defaultShadow:"none",dangerShadow:"none",defaultBorderColor:d.border,defaultColor:d.text,defaultBg:d.bgLayout,defaultHoverBg:d.white,defaultHoverBorderColor:d.borderStrong,defaultHoverColor:d.text,defaultActiveBorderColor:d.borderStrong,paddingInline:16,contentFontSize:14,contentFontSizeLG:16,contentFontSizeSM:13},Input:{activeShadow:"none",colorBorder:d.border,hoverBorderColor:d.borderStrong,activeBorderColor:d.borderStrong,paddingInline:16},Select:{optionSelectedBg:fe(n,.9),colorBorder:d.border},Table:{headerBg:d.bgContainer,headerColor:d.textTertiary,headerSplitColor:"transparent",headerBorderRadius:0,borderColor:d.borderSecondary,rowHoverBg:be(d.bgContainer,.03),cellPaddingBlock:10,cellPaddingInline:12,cellFontSize:14,cellPaddingBlockMD:8,cellPaddingInlineMD:10,cellPaddingBlockSM:6,cellPaddingInlineSM:8,cellFontSizeMD:14,cellFontSizeSM:13,footerBg:d.bgContainer},Tabs:{inkBarColor:n,itemColor:d.text,itemSelectedColor:n,itemHoverColor:n,titleFontSize:15,horizontalItemGutter:32,horizontalMargin:"0",lineWidthBold:4},Tag:{borderRadiusSM:0,defaultBg:"transparent"},Pagination:{itemBg:d.bgLayout,itemActiveBg:n,itemSize:32,itemSizeSM:26,itemInputBg:d.bgLayout},Dropdown:{paddingBlock:10},Breadcrumb:{itemColor:d.textTertiary,lastItemColor:d.text,linkColor:d.textTertiary,linkHoverColor:n,separatorColor:d.textTertiary},Card:{headerFontSize:20}}};return i?{...s,...i,token:{...s.token,...i.token},components:{...s.components,...i.components}}:s},ve=({primary:e,borders:t="hairline",lineWidth:r,radius:o=0}={})=>{const i=ue(e),n=ce[t]??ce.hairline,a=pe;return[":root{",`--hisd3-rule-width:${r??n.width}px;`,`--hisd3-control-bg:${a.bgFilled};`,`--hisd3-control-bg-hover:${a.bgFilledHover};`,"--hisd3-popup-radius:10px;",`--hisd3-radius:${o}px;`,`--ant-color-primary:${i};`,`--ant-color-primary-bg:${fe(i,.92)};`,`--ant-color-primary-bg-hover:${fe(i,.86)};`,`--ant-color-primary-border:${fe(i,.6)};`,`--ant-color-error:${i===se.red?i:"#E5401C"};`,`--ant-color-text:${a.text};`,`--ant-color-text-secondary:${a.textSecondary};`,`--ant-color-text-tertiary:${a.textTertiary};`,`--hisd3-table-bg:${a.bgContainer};`,`--hisd3-table-hover-bg:${be(a.bgContainer,.03)};`,`--hisd3-border:${n.border};`,`--hisd3-border-secondary:${n.borderSecondary};`,`--ant-color-border:${n.border};`,`--ant-color-border-secondary:${n.borderSecondary};`,`--ant-color-bg-layout:${a.bgLayout};`,`--ant-color-bg-elevated:${a.bgElevated};`,"}"].join("")},ye=(e="hairline",t)=>ve({borders:e,lineWidth:t}),we=xe(),ke={primary:se.red,primaryLight:fe(se.red,.9),headerSelectedBg:"rgba(0,0,0,0.04)"},Ae=P(!1),De=()=>U(Ae),Se=({primary:r,radius:n,borders:a="hairline",lineWidth:l,overrides:d,theme:s,styledTheme:p={},children:c})=>{const h=H((()=>s??xe({primary:r,radius:n,borders:a,lineWidth:l,overrides:d})),[s,r,n,a,l,d]),g=H((()=>ve({primary:r,borders:a,lineWidth:l,radius:n})),[r,a,l,n]);return e(Ae.Provider,{value:!0,children:[t("style",{dangerouslySetInnerHTML:{__html:g}}),t(o,{theme:h,children:t(W,{theme:p,children:t(i,{component:!1,children:c})})})]})},{Header:ze,Content:Ee}=n,Ce=de.siderWidth,Ie=de.siderCollapsedWidth,Fe=de.topBarHeight,Be=K(n)`
|
|
2
2
|
position: relative; /* anchor for the edge collapse trigger */
|
|
3
3
|
background: var(--ant-color-bg-layout);
|
|
4
4
|
|
|
@@ -35,7 +35,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
|
|
|
35
35
|
min-width: 0;
|
|
36
36
|
|
|
37
37
|
${({$scroll:e})=>e?"\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n /* keep scroll chaining (and its bounce) out of the document */\n overscroll-behavior: contain;\n ":""}
|
|
38
|
-
`,
|
|
38
|
+
`,Le=K.div`
|
|
39
39
|
flex: 1 1 auto;
|
|
40
40
|
overflow-y: auto;
|
|
41
41
|
overflow-x: hidden;
|
|
@@ -111,7 +111,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
|
|
|
111
111
|
&.hisd3-collapsed .ant-menu-item-group-title {
|
|
112
112
|
display: none;
|
|
113
113
|
}
|
|
114
|
-
`,
|
|
114
|
+
`,Te=K.a`
|
|
115
115
|
display: flex;
|
|
116
116
|
align-items: center;
|
|
117
117
|
gap: 10px;
|
|
@@ -323,7 +323,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
|
|
|
323
323
|
overflow: hidden;
|
|
324
324
|
text-overflow: ellipsis;
|
|
325
325
|
white-space: nowrap;
|
|
326
|
-
`,Ve=(e,t)=>e.key??e.path??`menu-${t}`,Ze=(e,t)=>(e??[]).filter((e=>e&&!e.hideInMenu)).map(((e,r)=>{const o=Ve(e,r);return Array.isArray(e.children)&&e.children.length>0?{key:o,icon:e.icon,label:e.name,disabled:e.disabled,type:e.group?"group":void 0,children:Ze(e.children,t)}:{key:o,icon:e.icon,disabled:e.disabled,label:t(e,e.name)}})),Ye=(e,t)=>M("a",{href:e.path||"/"},t),Je=({account:r,avatarSrc:o,settingsUrl:n,onLogout:l,collapsed:d=!1,placement:s="topRight",extraItems:p=[]})=>{const{modal:c}=i.useApp(),h=[...p??[],{key:"settings",icon:t(Z,{}),label:"Settings",onClick:()=>{window.location.href=n??"/settings"}},{key:"logout",icon:t(Y,{}),label:"Logout",onClick:()=>{c.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:t(X,{}),onOk:l})}}],g=(r.fullName||"").replace(/\(.*?\)/g," ").split(/[\s,]+/).map((e=>e.replace(/[^\p{L}\p{N}]/gu,""))).filter(Boolean).slice(0,2).map((e=>e[0].toUpperCase())).join("")||"?";return t(Oe,{className:"cr-user-info-light",$collapsed:d,$inHeader:"bottomRight"===s,children:t(a,{trigger:["click"],placement:s,menu:{items:h},children:e($e,{className:"ant-dropdown-link",onClick:e=>e.preventDefault(),children:[t(Ge,{$src:o,"aria-hidden":!0,children:!o&&g}),!d&&e(je,{children:[e(qe,{children:[t(Qe,{title:r.fullName,children:r.fullName}),t(Ke,{children:t(J,{})})]}),r.positionType&&t(We,{title:r.positionType,children:r.positionType})]})]})})})},{Sider:Xe}=n,_e=({children:n,account:a,logoUrl:s,appName:p,menuItems:c,onLogout:h,pathname:g,avatarSrc:m,styledTheme:u,settingsUrl:b,antdTheme:f,renderMenuLink:x=Ye,headerExtra:
|
|
326
|
+
`,Ve=(e,t)=>e.key??e.path??`menu-${t}`,Ze=(e,t)=>(e??[]).filter((e=>e&&!e.hideInMenu)).map(((e,r)=>{const o=Ve(e,r);return Array.isArray(e.children)&&e.children.length>0?{key:o,icon:e.icon,label:e.name,disabled:e.disabled,type:e.group?"group":void 0,children:Ze(e.children,t)}:{key:o,icon:e.icon,disabled:e.disabled,label:t(e,e.name)}})),Ye=(e,t)=>M("a",{href:e.path||"/"},t),Je=({account:r,avatarSrc:o,settingsUrl:n,onLogout:l,collapsed:d=!1,placement:s="topRight",extraItems:p=[]})=>{const{modal:c}=i.useApp(),h=[...p??[],{key:"settings",icon:t(Z,{}),label:"Settings",onClick:()=>{window.location.href=n??"/settings"}},{key:"logout",icon:t(Y,{}),label:"Logout",onClick:()=>{c.confirm({title:"Are you sure you want to logout?",content:"Please click OK to continue",icon:t(X,{}),onOk:l})}}],g=(r.fullName||"").replace(/\(.*?\)/g," ").split(/[\s,]+/).map((e=>e.replace(/[^\p{L}\p{N}]/gu,""))).filter(Boolean).slice(0,2).map((e=>e[0].toUpperCase())).join("")||"?";return t(Oe,{className:"cr-user-info-light",$collapsed:d,$inHeader:"bottomRight"===s,children:t(a,{trigger:["click"],placement:s,menu:{items:h},children:e($e,{className:"ant-dropdown-link",onClick:e=>e.preventDefault(),children:[t(Ge,{$src:o,"aria-hidden":!0,children:!o&&g}),!d&&e(je,{children:[e(qe,{children:[t(Qe,{title:r.fullName,children:r.fullName}),t(Ke,{children:t(J,{})})]}),r.positionType&&t(We,{title:r.positionType,children:r.positionType})]})]})})})},{Sider:Xe}=n,_e=({children:n,account:a,logoUrl:s,appName:p,menuItems:c,onLogout:h,pathname:g,avatarSrc:m,styledTheme:u,settingsUrl:b,antdTheme:f,renderMenuLink:x=Ye,headerExtra:v,userMenuItems:y,onCollapse:w,collapsed:k=!1,loading:A=!1,hideSidebar:D=!1,layoutTop:S=!1,hideCollapseTrigger:z=!1,collapseTrigger:E="edge",collapseTriggerOffset:C=Math.round(Fe/2),siderWidth:I=Ce,bareContent:F=!1,hideHeaderBar:B=!1,brandHref:N="/",hideAccountCard:L=!1,scrollContent:T=!0})=>{const R=De(),P=void 0===f?R?null:we:f,[U,M]=O(k);$((()=>{M(k)}),[k]);const G=H((()=>Ze(c,x)),[c,x]),j=H((()=>((e,t)=>{let r;const o=(e,i)=>{(e??[]).forEach(((e,n)=>{const a=Ve(e,n);if(e.path&&t.startsWith(e.path)){const o=t===e.path,n=e.path.length+(o?1:0);(!r||n>r.length)&&(r={key:a,parents:i,length:n})}e.children?.length&&o(e.children,[...i,a])}))};return o(e,[]),{selectedKey:r?.key,openKeys:r?.parents??[]}})(c,g)),[c,g]),[q,Q]=O((()=>j.openKeys));$((()=>{Q((e=>Array.from(new Set([...e,...j.openKeys]))))}),[j.openKeys.join("|")]);const K=e=>{M(e),w?.(e)},V=j.selectedKey?[j.selectedKey]:[],Z=z?"none":E,Y=U?"Expand menu":"Collapse menu",J=e(Te,{href:N,$collapsed:!S&&U,children:[s?t("img",{src:s,alt:p}):t("span",{className:"hisd3-brand-mark","aria-hidden":!0}),(S||!U)&&t("h1",{children:p})]}),X=F?n:t(Me,{children:n});if("undefined"==typeof document)return null;const oe=t(i,{component:!1,children:t(l,{spinning:A,size:"large",children:D?t(r,{children:n}):e(Be,S?{$appShell:T,children:[e(Re,{children:[J,t(d,{mode:"horizontal",items:G,selectedKeys:V}),v,!L&&t(Je,{account:a,avatarSrc:m,settingsUrl:b,onLogout:h,placement:"bottomRight",extraItems:y})]}),t(Ne,{$scroll:T,children:X})]}:{hasSider:!0,$appShell:T,children:[e(Xe,{className:"hisd3-sider",width:I,collapsedWidth:Ie,collapsible:!0,collapsed:U,trigger:null,theme:"light",breakpoint:"lg",onBreakpoint:e=>{e&&K(!0)},children:[J,t(Le,{className:U?"hisd3-collapsed":void 0,children:t(d,{mode:"inline",theme:"light",inlineCollapsed:U,items:G,selectedKeys:V,openKeys:U?void 0:q,onOpenChange:e=>Q(e)})}),!L&&t(Je,{account:a,avatarSrc:m,settingsUrl:b,onLogout:h,collapsed:U,placement:"topRight",extraItems:y})]}),e(Ne,{$scroll:T,children:[!B&&e(Pe,{children:["header"===Z&&t(Ue,{type:"button","aria-label":Y,onClick:()=>K(!U),children:t(U?_:ee,{})}),t("span",{style:{flex:1}}),v]}),X]}),"edge"===Z&&t(He,{type:"button","aria-label":Y,title:Y,$left:U?Ie:I,$top:C,onClick:()=>K(!U),children:t(U?te:re,{})})]})})});return R&&!u?P?t(o,{theme:P,children:oe}):oe:t(W,{theme:u??{},children:P?t(o,{theme:P,children:oe}):oe})},et=de.pageGutter,tt=K.header`
|
|
327
327
|
display: contents;
|
|
328
328
|
`,rt=K.div`
|
|
329
329
|
user-select: none;
|
|
@@ -580,7 +580,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
|
|
|
580
580
|
60% 44%, 68% 44%, 68% 30%, 77% 30%, 77% 52%, 86% 52%, 86% 26%, 94% 26%,
|
|
581
581
|
94% 47%, 100% 47%, 100% 100%, 0 100%
|
|
582
582
|
);
|
|
583
|
-
`,
|
|
583
|
+
`,vt=K.div`
|
|
584
584
|
position: absolute;
|
|
585
585
|
top: 30px;
|
|
586
586
|
${({$side:e})=>"right"===e?"left: 40px;":"right: 40px;"}
|
|
@@ -604,7 +604,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
|
|
|
604
604
|
@media (max-width: ${gt}px) {
|
|
605
605
|
display: none;
|
|
606
606
|
}
|
|
607
|
-
`,
|
|
607
|
+
`,yt=K.div`
|
|
608
608
|
position: absolute;
|
|
609
609
|
${({$side:e})=>"right"===e?"right: -70px;":"left: -70px;"}
|
|
610
610
|
bottom: 40px;
|
|
@@ -818,7 +818,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
|
|
|
818
818
|
text-align: center;
|
|
819
819
|
font-size: 14px;
|
|
820
820
|
color: var(--ant-color-text-secondary, #4A4A4A);
|
|
821
|
-
`,It=({appName:r,tagline:o,logoSrc:i=lt,title:n="Nice to see you again",subtitle:a,panelTitle:l="One system for every part of your hospital.",panelSubtitle:d="Patient care, billing and operations — connected.",panelImage:s,organisationName:p="HISD3",variant:h="soft",side:g="right",identifierLabel:m="User ID or email",identifierPlaceholder:u="Email or user ID",passwordLabel:b="Password",passwordPlaceholder:f="Enter password",submitLabel:x="Sign in",hideRemember:
|
|
821
|
+
`,It=({appName:r,tagline:o,logoSrc:i=lt,title:n="Nice to see you again",subtitle:a,panelTitle:l="One system for every part of your hospital.",panelSubtitle:d="Patient care, billing and operations — connected.",panelImage:s,organisationName:p="HISD3",variant:h="soft",side:g="right",identifierLabel:m="User ID or email",identifierPlaceholder:u="Email or user ID",passwordLabel:b="Password",passwordPlaceholder:f="Enter password",submitLabel:x="Sign in",hideRemember:v=!1,rememberLabel:y="Remember me",onForgotPassword:w,forgotLabel:k="Forgot password?",error:A,loading:D=!1,onSubmit:S,footer:z,className:E})=>{const[C,I]=O(""),[F,B]=O(""),[N,L]=O(!1),[T,R]=O(!1);return e(mt,{className:E,$side:g,children:[t(yt,{$variant:h,$side:g,"aria-hidden":!0}),e(ut,{$variant:h,$side:g,children:[s?t(ft,{$src:s,"aria-hidden":!0}):t(xt,{"aria-hidden":!0}),e(vt,{$side:g,"aria-hidden":!0,children:[t("img",{src:lt,alt:""}),p]}),e(bt,{children:[i&&t("img",{src:i,alt:""}),e("span",{children:[t("span",{className:"hisd3-hero-name",children:r}),o&&t("span",{className:"hisd3-hero-tagline",children:o})]})]}),t("h2",{children:l}),d&&t("p",{children:d})]}),e(wt,{$variant:h,$side:g,onSubmit:e=>{e.preventDefault(),D||S({identifier:C,password:F,remember:N})},noValidate:!0,children:[e(kt,{$variant:h,children:[i&&t("img",{className:"hisd3-login-logo",src:i,alt:""}),e("span",{children:[t("span",{className:"hisd3-login-name",children:r}),o&&t("span",{className:"hisd3-login-tagline",children:o})]})]}),t(At,{$variant:h,children:n}),a&&t(Dt,{children:a}),A&&t(Et,{role:"alert",children:A}),e(St,{$variant:h,children:[t("span",{className:"hisd3-field-label",children:m}),t("span",{className:"hisd3-field-control",children:t("input",{value:C,onChange:e=>I(e.target.value),placeholder:u,autoComplete:"username",disabled:D,autoFocus:!0})})]}),e(St,{$variant:h,children:[t("span",{className:"hisd3-field-label",children:b}),e("span",{className:"hisd3-field-control",children:[t("input",{type:T?"text":"password",value:F,onChange:e=>B(e.target.value),placeholder:f,autoComplete:"current-password",disabled:D}),t("button",{type:"button",className:"hisd3-field-reveal","aria-label":T?"Hide password":"Show password",onClick:()=>R((e=>!e)),tabIndex:-1,children:t(T?oe:ie,{})})]})]}),(!v||w)&&e(zt,{children:[v?t("span",{}):e("label",{className:"hisd3-remember",children:[t(c,{size:"small",checked:N,onChange:L,disabled:D}),y]}),w&&t("button",{type:"button",className:"hisd3-forgot",onClick:w,children:k})]}),t(pt,{variant:"primary",htmlType:"submit",size:"large",loading:D,block:!0,style:{borderRadius:"soft"===h?10:0,height:50},children:x}),z&&t(Ct,{children:z})]})]})},Ft=K.button`
|
|
822
822
|
user-select: none;
|
|
823
823
|
-webkit-user-select: none;
|
|
824
824
|
position: relative;
|
|
@@ -882,7 +882,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
|
|
|
882
882
|
border-radius: var(--hisd3-popup-radius, 10px);
|
|
883
883
|
box-shadow: 0 2px 6px rgba(16, 15, 14, 0.06),
|
|
884
884
|
0 12px 32px rgba(16, 15, 14, 0.14);
|
|
885
|
-
`,
|
|
885
|
+
`,Lt=K.div`
|
|
886
886
|
display: flex;
|
|
887
887
|
align-items: center;
|
|
888
888
|
justify-content: space-between;
|
|
@@ -910,7 +910,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
|
|
|
910
910
|
text-decoration: underline;
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
`,
|
|
913
|
+
`,Tt=K.div`
|
|
914
914
|
max-height: 380px;
|
|
915
915
|
overflow-y: auto;
|
|
916
916
|
`,Rt=K.button`
|
|
@@ -990,7 +990,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
|
|
|
990
990
|
}
|
|
991
991
|
`,Ot=K.div`
|
|
992
992
|
padding: 28px 16px;
|
|
993
|
-
`,$t=({items:r=[],count:o,loading:i=!1,title:n="Notifications",onMarkAllRead:d,onSeeAll:s,seeAllLabel:p="See all notifications",emptyText:c="You're all caught up",onOpenChange:g,size:m=40,icon:u,className:b})=>{const[f,x]=O(!1),
|
|
993
|
+
`,$t=({items:r=[],count:o,loading:i=!1,title:n="Notifications",onMarkAllRead:d,onSeeAll:s,seeAllLabel:p="See all notifications",emptyText:c="You're all caught up",onOpenChange:g,size:m=40,icon:u,className:b})=>{const[f,x]=O(!1),v=o??r.filter((e=>e.unread)).length,y=e(Nt,{children:[e(Lt,{children:[t("h4",{children:n}),d&&v>0&&t("button",{type:"button",onClick:d,children:"Mark all as read"})]}),i?t(Ot,{style:{textAlign:"center"},children:t(l,{})}):0===r.length?t(Ot,{children:t(h,{image:h.PRESENTED_IMAGE_SIMPLE,description:c})}):t(Tt,{children:r.map((r=>e(Rt,{type:"button",$unread:r.unread,onClick:()=>{r.onClick?.(r),x(!1),g?.(!1)},children:[t(Pt,{$src:r.avatarSrc,children:!r.avatarSrc&&(r.icon??t(ne,{}))}),e(Ut,{children:[t("strong",{children:r.title}),r.description&&t("span",{children:r.description}),r.time&&t("time",{children:r.time})]}),r.unread&&t(Ht,{})]},r.id)))}),s&&t(Mt,{type:"button",onClick:()=>{s(),x(!1),g?.(!1)},children:p})]});return t(a,{open:f,onOpenChange:e=>{x(e),g?.(e)},trigger:["click"],placement:"bottomRight",popupRender:()=>y,children:e(Ft,{type:"button",$size:m,$open:f,className:b,"aria-label":`${n}${v?` (${v} unread)`:""}`,children:[u??t(ne,{}),v>0&&t(Bt,{$size:m,children:v>99?"99+":v})]})})},Gt=K.button`
|
|
994
994
|
user-select: none;
|
|
995
995
|
-webkit-user-select: none;
|
|
996
996
|
position: relative;
|
|
@@ -1339,17 +1339,26 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
|
|
|
1339
1339
|
font-size: 15px;
|
|
1340
1340
|
}
|
|
1341
1341
|
`,cr=G(((e,r)=>t(pr,{...e,ref:r})));cr.displayName="HISD3Input";const hr=K(pr)`
|
|
1342
|
-
/*
|
|
1342
|
+
/*
|
|
1343
|
+
* default: the same 40px control height as buttons and selects.
|
|
1344
|
+
* Lighter than the page with a visible border, so it reads as a field to
|
|
1345
|
+
* type in; a fill darker than the page reads as disabled.
|
|
1346
|
+
*/
|
|
1343
1347
|
&.ant-input-affix-wrapper {
|
|
1344
|
-
background: var(--hisd3-bg
|
|
1345
|
-
border-color: var(--hisd3-border
|
|
1348
|
+
background: var(--hisd3-input-bg, #FAF9F7);
|
|
1349
|
+
border-color: var(--hisd3-border, var(--ant-color-border, #D9D5CE));
|
|
1346
1350
|
height: 40px;
|
|
1347
1351
|
padding-inline: 14px;
|
|
1348
1352
|
|
|
1349
|
-
&:hover
|
|
1353
|
+
&:hover {
|
|
1354
|
+
border-color: var(--hisd3-input-border-hover, #B9B4AC);
|
|
1355
|
+
background: var(--hisd3-input-bg-hover, #FFFFFF);
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1350
1358
|
&:focus-within {
|
|
1351
|
-
border-color: var(--
|
|
1352
|
-
background: var(--hisd3-bg-
|
|
1359
|
+
border-color: var(--ant-color-primary);
|
|
1360
|
+
background: var(--hisd3-input-bg-hover, #FFFFFF);
|
|
1361
|
+
box-shadow: 0 0 0 3px var(--ant-color-primary-bg, rgba(0, 121, 107, 0.12));
|
|
1353
1362
|
}
|
|
1354
1363
|
|
|
1355
1364
|
.ant-input {
|
|
@@ -1360,6 +1369,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
|
|
|
1360
1369
|
.ant-input-prefix {
|
|
1361
1370
|
margin-inline-end: 10px;
|
|
1362
1371
|
font-size: 15px;
|
|
1372
|
+
color: var(--ant-color-text-secondary);
|
|
1363
1373
|
}
|
|
1364
1374
|
}
|
|
1365
1375
|
|
|
@@ -1390,7 +1400,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
|
|
|
1390
1400
|
font-size: 19px;
|
|
1391
1401
|
}
|
|
1392
1402
|
}
|
|
1393
|
-
`,gr={small:"hisd3-search-sm",middle:"",large:"hisd3-search-lg"},mr=G((({size:e,compact:r,className:o,...i},n)=>t(hr,{ref:n,allowClear:!0,prefix:t(ae,{}),className:[gr[e??(r?"small":"middle")],o??""].join(" ").trim(),...i})));mr.displayName="HISD3SearchInput";const ur=
|
|
1403
|
+
`,gr={small:"hisd3-search-sm",middle:"",large:"hisd3-search-lg"},mr=G((({size:e,compact:r,className:o,...i},n)=>t(hr,{ref:n,allowClear:!0,prefix:t(ae,{}),className:[gr[e??(r?"small":"middle")],o??""].join(" ").trim(),...i})));mr.displayName="HISD3SearchInput";const ur=({label:r,description:o,mono:i})=>e("div",{className:"hisd3-select-label",children:[t("div",{className:"hisd3-select-label-primary",style:i?{fontFamily:"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"}:void 0,children:r}),null!=o&&""!==o?t("div",{className:"hisd3-select-label-description",children:o}):null]}),br=e=>"string"==typeof e||"number"==typeof e?String(e):"",fr=e=>(e??[]).flatMap((e=>Array.isArray(e.options)?fr(e.options):[e])),xr=(e,t)=>{if(!t)return!1;return`${br(t.label??t.value)} ${br(t.description)}`.toUpperCase().includes(e.toUpperCase())},vr=(...e)=>e.filter(Boolean).join(" "),yr=G((({wrap:e=!0,monoLabel:r,options:o,mode:i,showSearch:n,filterOption:a,optionFilterProp:l,optionRender:d,labelRender:s,virtual:p,rootClassName:c,...h},g)=>{const m=H((()=>new Map(fr(o).map((e=>[e.value,e])))),[o]),u=H((()=>[...m.values()].some((e=>null!=e.description))),[m]),b=(e,o)=>null!=e?.description||r?t(ur,{label:e?.label??o,description:e?.description,mono:r}):o,x="object"==typeof n?n:void 0;return t(f,{...h,ref:g,mode:i,options:o,showSearch:n,optionFilterProp:l,filterOption:a??(!(void 0!==a||void 0!==l||void 0!==x?.filterOption||void 0!==x?.optionFilterProp)&&u?xr:void 0),optionRender:d??(e=>b(e.data,e.label??e.value)),labelRender:s??(i?void 0:({label:e,value:t})=>b(m.get(t),e??t)),virtual:p??(!e&&void 0),rootClassName:vr(e&&"hisd3-wrap-select",c)})}));yr.displayName="HISD3Select";const wr=K(x.Item)`
|
|
1394
1404
|
&.ant-form-item {
|
|
1395
1405
|
margin-bottom: 6px;
|
|
1396
1406
|
}
|
|
@@ -1410,5 +1420,5 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{ConfigPro
|
|
|
1410
1420
|
.ant-input-number-group-wrapper {
|
|
1411
1421
|
width: 100%;
|
|
1412
1422
|
}
|
|
1413
|
-
`,br=({node:e})=>t(r,{children:e}),fr=({loading:e,loadingProps:r,vertical:o,bolderLabel:i,controlSize:n,skeleton:a,layout:l,className:d,children:s,...p})=>t(ur,{...p,layout:o?"vertical":l,className:["hisd3-form-field",i?"hisd3-form-field-bold":"",d??""].join(" ").trim(),children:e?t(br,{node:a??t(N.Input,{active:!0,block:!0,size:n,...r})}):s}),xr=e=>t(N.Button,{active:!0,size:"small",style:{width:e,minWidth:e}}),yr=G((({fieldProps:e,propsinput:r,...o},i)=>{const n={...r,...e};return t(fr,{...o,controlSize:n.size,children:t(cr,{...n,ref:i})})}));yr.displayName="HISD3FormInput";const vr=G((({fieldProps:e,...r},o)=>t(fr,{...r,controlSize:e?.size,children:t(b.Password,{...e,ref:o})})));vr.displayName="HISD3FormPassword";const wr=G((({fieldProps:e,loadingProps:r,...o},i)=>t(fr,{...o,controlSize:e?.size,loadingProps:{...r,style:{height:22*(e?.rows??3)+10,...r?.style}},children:t(b.TextArea,{...e,ref:i})})));wr.displayName="HISD3FormTextArea";const kr=G((({fieldProps:e,...r},o)=>t(fr,{...r,controlSize:e?.size,children:t(x,{...e,ref:o})})));kr.displayName="HISD3FormInputNumber";const Ar=G((({fieldProps:e,...r},o)=>t(fr,{...r,controlSize:e?.size,children:t(y,{...e,ref:o})})));Ar.displayName="HISD3FormSelect";const Dr=G((({fieldProps:e,...r},o)=>t(fr,{...r,controlSize:e?.size,children:t(v.Group,{...e,ref:o})})));Dr.displayName="HISD3FormRadioGroup";const Sr=G((({fieldProps:e,text:r,...o},i)=>t(fr,{valuePropName:"checked",skeleton:xr(120),...o,children:t(w,{...e,ref:i,children:r??e?.children})})));Sr.displayName="HISD3FormCheckbox";const zr=G((({fieldProps:e,...r},o)=>t(fr,{...r,children:t(w.Group,{...e,ref:o})})));zr.displayName="HISD3FormCheckboxGroup";const Er=G((({fieldProps:e,...r},o)=>t(fr,{valuePropName:"checked",skeleton:xr("small"===e?.size?28:44),...r,children:t(c,{...e,ref:o})})));Er.displayName="HISD3FormSwitch";const Cr=G((({fieldProps:e,...r},o)=>t(fr,{...r,controlSize:e?.size,children:t(k,{...e,ref:o})})));Cr.displayName="HISD3FormDatePicker";const Ir=G((({fieldProps:e,...r},o)=>t(fr,{...r,controlSize:e?.size,children:t(k.RangePicker,{...e,ref:o})})));Ir.displayName="HISD3FormRangePicker";const Fr=G((({fieldProps:e,...r},o)=>t(fr,{...r,controlSize:e?.size,children:t(A,{...e,ref:o})})));Fr.displayName="HISD3FormTimePicker";const Br=G((({fieldProps:e,...r},o)=>t(fr,{...r,controlSize:e?.size,children:t(A.RangePicker,{...e,ref:o})})));Br.displayName="HISD3FormTimeRangePicker";const Nr=G((({fieldProps:e,...r},o)=>t(fr,{...r,controlSize:e?.size,children:t(b.Search,{...e,ref:o})})));Nr.displayName="HISD3FormSearch";const Tr=G((({fieldProps:e,loadingProps:r,...o},i)=>t(fr,{...o,controlSize:e?.size,loadingProps:{block:!1,...r,style:{width:48*(e?.length??6),...r?.style}},children:t(b.OTP,{...e,ref:i})})));Tr.displayName="HISD3FormOTP";const Lr=G((({fieldProps:e,...r},o)=>t(fr,{...r,controlSize:e?.size,children:t(D,{...e,ref:o})})));Lr.displayName="HISD3FormAutoComplete";const Rr=G((({fieldProps:e,loadingProps:r,...o},i)=>t(fr,{...o,controlSize:e?.size,loadingProps:{...r,style:{height:22*(e?.rows??1)+18,...r?.style}},children:t(S,{...e,ref:i})})));Rr.displayName="HISD3FormMentions";const Pr=G((({fieldProps:e,...r},o)=>t(fr,{...r,controlSize:e?.size,children:t(z,{...e,ref:o})})));Pr.displayName="HISD3FormCascader";const Ur=G((({fieldProps:e,...r},o)=>t(fr,{...r,controlSize:e?.size,children:t(E,{...e,ref:o})})));Ur.displayName="HISD3FormTreeSelect";const Hr=G((({fieldProps:e,...r},o)=>t(fr,{...r,skeleton:xr(200),children:t(C,{...e,options:e?.options??[],ref:o})})));Hr.displayName="HISD3FormSegmented";const Mr=G((({fieldProps:e,loadingProps:r,...o},i)=>t(fr,{valuePropName:"targetKeys",loadingProps:{...r,style:{height:200,...r?.style}},...o,children:t(I,{...e,ref:i})})));Mr.displayName="HISD3FormTransfer";const Or=G((({fieldProps:e,...r},o)=>t(fr,{...r,controlSize:"small",children:t(F,{...e,ref:o})})));Or.displayName="HISD3FormSlider";const $r=G((({fieldProps:e,...r},o)=>t(fr,{...r,skeleton:xr(28*(e?.count??5)),children:t(B,{...e,ref:o})})));$r.displayName="HISD3FormRate";const Gr=({fieldProps:e,...r})=>t(fr,{getValueFromEvent:(e,t)=>t,skeleton:t(N.Button,{active:!0,shape:"square"}),...r,children:t(T,{...e})});Gr.displayName="HISD3FormColorPicker";const jr=e=>Array.isArray(e)?e:e?.fileList??[],qr=({fieldProps:e,children:r,...o})=>t(fr,{valuePropName:"fileList",getValueFromEvent:jr,skeleton:t(N.Button,{active:!0}),...o,children:t(L,{...e,children:r??e?.children})});qr.displayName="HISD3FormUpload";const Qr=({fieldProps:e,children:r,loadingProps:o,...i})=>t(fr,{valuePropName:"fileList",getValueFromEvent:jr,loadingProps:{...o,style:{height:150,...o?.style}},...i,children:t(L.Dragger,{...e,children:r??e?.children})});Qr.displayName="HISD3FormUploadDragger";const Kr=P(null);let Wr=0;function Vr({children:r}){const[o,i]=O([]),n=H((()=>({mount:(e,t)=>i((r=>[...r.filter((t=>t.id!==e)),{id:e,node:t}])),unmount:e=>i((t=>t.filter((t=>t.id!==e))))})),[]);return e(Kr.Provider,{value:n,children:[r,o.map((e=>t(q,{children:e.node},e.id)))]})}function Zr({Component:e,props:r,onClose:o,unmount:i}){const[n,a]=O(!0),l=Q(!1),d={...r,open:n,hide:j((e=>{l.current||(l.current=!0,a(!1),o?.(e),window.setTimeout(i,320))}),[o,i])};return t(e,{...d})}function Yr(e){const r=U(Kr);if(!r)throw new Error("useDialog needs DialogProvider above it.");return j(((o,i)=>{const n=Wr+=1;r.mount(n,t(Zr,{Component:e,props:o,onClose:i,unmount:()=>r.unmount(n)},n))}),[e,r])}var Jr,Xr,_r,eo,to,ro,oo,io,no,ao,lo,so,po;!function(e){e.MODERN="modern",e.STANDARD="standard"}(Jr||(Jr={})),function(e){e.MODERN="30px",e.STANDARD="16px"}(Xr||(Xr={})),function(e){e.LIGHT="light",e.SEMI_DARK="semi-dark",e.DARK="dark"}(_r||(_r={})),function(e){e.FULL_WIDTH="full-width",e.BOXED="boxed",e.FRAMED="framed"}(eo||(eo={})),function(e){e.DEFAULT="default",e.STANDARD="standard",e.ROUNDED="rounded",e.ROUNDED_REVERSE="rounded-reverse",e.CURVED_MENU="curved-menu"}(to||(to={})),function(e){e.DEFAULT="default",e.MINI="mini",e.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",e.STANDARD="standard",e.HEADER_USER="user-header",e.HEADER_USER_MINI="user-mini-header",e.DRAWER="drawer",e.BIT_BUCKET="bit-bucket",e.H_DEFAULT="h-default",e.HOR_HEADER_FIXED="hor-header-fixed",e.HOR_DARK_LAYOUT="hor-dark-layout"}(ro||(ro={})),function(e){e.FIXED="fixed",e.FLUID="fluid"}(oo||(oo={})),function(e){e.RTL="rtl",e.LTR="ltr"}(io||(io={})),function(e){e.DARK="dark",e.LIGHT="light"}(no||(no={})),function(e){e.NONE="none",e.FADE="fade",e.SLIDE_LEFT="slideLeft",e.SLIDE_RIGHT="slideRight",e.SLIDE_UP="slideUp",e.SLIDE_DOWN="slideDown"}(ao||(ao={})),function(e){e.LIGHT="300",e.REGULAR="400",e.MEDIUM="500",e.BOLD="600"}(lo||(lo={})),function(e){e.FIREBASE="firebase",e.AWS_COGNITO="aws_cognito",e.AUTH0="auth0",e.JWT_AUTH="jwt_auth"}(so||(so={})),function(e){e.SLIDEUPIN="transition.slideUpIn",e.SLIDEUPOUT="transition.slideUpOut",e.SLIDEDOWNIN="transition.slideDownIn",e.SLIDEDOWNOUT="transition.slideDownOut",e.SLIDELEFTIN="transition.slideLeftIn",e.SLIDELEFTOUT="transition.slideLeftOut",e.SLIDERIGHTIN="transition.slideRightIn",e.SLIDERIGHTOUT="transition.slideRightOut",e.FADEIN="transition.fadeIn",e.FADEOUT="transition.fadeOut"}(po||(po={}));const co={SLIDEUPIN:{hidden:{y:0},visible:{opacity:1,y:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.2,staggerChildren:.05}}},SLIDEUPOUT:{hidden:{y:0},visible:{opacity:0,y:"100vh",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDEDOWNIN:{hidden:{opacity:0,y:"-100vh"},visible:{opacity:1,y:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDEDOWNOUT:{hidden:{y:0},visible:{opacity:0,y:"-100vh",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDELEFTIN:{hidden:{x:"100vw"},visible:{opacity:1,x:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDELEFTOUT:{hidden:{x:0},visible:{opacity:0,x:"100vw",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDERIGHTIN:{hidden:{x:"-100vw"},visible:{opacity:1,x:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDERIGHTOUT:{hidden:{x:0},visible:{opacity:0,x:"-100vw",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},FADEIN:{hidden:{opacity:0,scale:1},visible:{opacity:1,scale:1,transition:{ease:"easeIn",when:"beforeChildren",staggerChildren:.15}}},FADEOUT:{hidden:{opacity:1,scale:1},visible:{opacity:0,scale:1,transition:{ease:"easeOut",when:"beforeChildren",staggerChildren:.15}}},NOANIMATION:{hidden:{opacity:1},visible:{opacity:1}}},ho={SLIDEUPIN:{variants:{hidden:{y:100,opacity:0},visible:{opacity:1,y:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDEUPOUT:{variants:{hidden:{y:0,opacity:1},visible:{opacity:0,y:"-100vh"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDEDOWNIN:{variants:{hidden:{y:-100,opacity:0},visible:{opacity:1,y:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDEDOWNOUT:{variants:{hidden:{y:0,opacity:1},visible:{opacity:0,y:"100vh"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDELEFTIN:{variants:{hidden:{x:100,opacity:0},visible:{opacity:1,x:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDELEFTOUT:{variants:{hidden:{x:0,opacity:1},visible:{opacity:0,x:"-100vw"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDERIGHTIN:{variants:{hidden:{x:-100,opacity:0},visible:{opacity:1,x:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDERIGHTOUT:{variants:{hidden:{x:0,opacity:1},visible:{opacity:0,x:"-100vw"}},transition:{ease:"easeOut",when:"beforeChildren"}},FADEIN:{variants:{hidden:{opacity:0},visible:{opacity:1}},transition:{duration:.1,ease:"easeIn",when:"beforeChildren"}},FADEOUT:{variants:{hidden:{opacity:1},visible:{opacity:0}},transition:{duration:.1,ease:"easeOut",when:"beforeChildren"}}};var go,mo;!function(e){e[e.MEDIA=1]="MEDIA",e[e.TEXT=2]="TEXT"}(go||(go={})),function(e){e.Admin="admin",e.User="user"}(mo||(mo={}));export{co as AppAnimateGroups,po as AppAnimates,ho as AppMotionAnimate,so as AuthType,Vr as DialogProvider,lo as Fonts,oo as FooterType,Vt as HISD3AvatarMenu,pt as HISD3Button,Lr as HISD3FormAutoComplete,Pr as HISD3FormCascader,Sr as HISD3FormCheckbox,zr as HISD3FormCheckboxGroup,Gr as HISD3FormColorPicker,Cr as HISD3FormDatePicker,fr as HISD3FormField,yr as HISD3FormInput,kr as HISD3FormInputNumber,Rr as HISD3FormMentions,Tr as HISD3FormOTP,vr as HISD3FormPassword,Dr as HISD3FormRadioGroup,Ir as HISD3FormRangePicker,$r as HISD3FormRate,Nr as HISD3FormSearch,Hr as HISD3FormSegmented,Ar as HISD3FormSelect,Or as HISD3FormSlider,Er as HISD3FormSwitch,wr as HISD3FormTextArea,Fr as HISD3FormTimePicker,Br as HISD3FormTimeRangePicker,Mr as HISD3FormTransfer,Ur as HISD3FormTreeSelect,qr as HISD3FormUpload,Qr as HISD3FormUploadDragger,Jt as HISD3HeaderActions,cr as HISD3Input,It as HISD3LoginPage,$t as HISD3NotificationButton,nt as HISD3PageBody,at as HISD3PageHeader,Se as HISD3Provider,mr as HISD3SearchInput,_e as HISD3Sidebar,or as HISD3Table,nr as HISD3Tabs,sr as HISD3Tag,ce as HISD3_BORDER_PRESETS,ke as HISD3_COLORS,he as HISD3_FONT_FAMILY,me as HISD3_FONT_WEIGHT_BODY,ge as HISD3_FONT_WEIGHT_HEADING,de as HISD3_LAYOUT,lt as HISD3_LOGO_SRC,pe as HISD3_NEUTRALS,se as HISD3_PRESETS,Ft as HeaderIconButton,no as HeaderType,io as LayoutDirection,eo as LayoutType,to as MenuStyle,go as MessageType,ro as NavStyle,mo as RoutePermittedRole,ao as RouteTransition,_r as ThemeMode,Jr as ThemeStyle,Xr as ThemeStyleRadius,Je as UserMenu,ve as borderVarsCss,xe as createHisd3Theme,Wt as getInitials,we as hisd3AntdTheme,ye as hisd3VarsCss,jr as normalizeUploadFileList,ue as resolvePrimary,be as shade,fe as tint,Yr as useDialog,De as useInsideHISD3Provider};
|
|
1423
|
+
`,kr=({node:e})=>t(r,{children:e}),Ar=({loading:e,loadingProps:r,vertical:o,bolderLabel:i,controlSize:n,skeleton:a,layout:l,className:d,children:s,...p})=>t(wr,{...p,layout:o?"vertical":l,className:["hisd3-form-field",i?"hisd3-form-field-bold":"",d??""].join(" ").trim(),children:e?t(kr,{node:a??t(N.Input,{active:!0,block:!0,size:n,...r})}):s}),Dr=e=>t(N.Button,{active:!0,size:"small",style:{width:e,minWidth:e}}),Sr=G((({fieldProps:e,propsinput:r,...o},i)=>{const n={...r,...e};return t(Ar,{...o,controlSize:n.size,children:t(cr,{...n,ref:i})})}));Sr.displayName="HISD3FormInput";const zr=G((({fieldProps:e,...r},o)=>t(Ar,{...r,controlSize:e?.size,children:t(b.Password,{...e,ref:o})})));zr.displayName="HISD3FormPassword";const Er=G((({fieldProps:e,loadingProps:r,...o},i)=>t(Ar,{...o,controlSize:e?.size,loadingProps:{...r,style:{height:22*(e?.rows??3)+10,...r?.style}},children:t(b.TextArea,{...e,ref:i})})));Er.displayName="HISD3FormTextArea";const Cr=G((({fieldProps:e,...r},o)=>t(Ar,{...r,controlSize:e?.size,children:t(v,{...e,ref:o})})));Cr.displayName="HISD3FormInputNumber";const Ir=G((({fieldProps:e,...r},o)=>t(Ar,{...r,controlSize:e?.size,children:t(yr,{...e,ref:o})})));Ir.displayName="HISD3FormSelect";const Fr=G((({fieldProps:e,...r},o)=>t(Ar,{...r,controlSize:e?.size,children:t(y.Group,{...e,ref:o})})));Fr.displayName="HISD3FormRadioGroup";const Br=G((({fieldProps:e,text:r,...o},i)=>t(Ar,{valuePropName:"checked",skeleton:Dr(120),...o,children:t(w,{...e,ref:i,children:r??e?.children})})));Br.displayName="HISD3FormCheckbox";const Nr=G((({fieldProps:e,...r},o)=>t(Ar,{...r,children:t(w.Group,{...e,ref:o})})));Nr.displayName="HISD3FormCheckboxGroup";const Lr=G((({fieldProps:e,...r},o)=>t(Ar,{valuePropName:"checked",skeleton:Dr("small"===e?.size?28:44),...r,children:t(c,{...e,ref:o})})));Lr.displayName="HISD3FormSwitch";const Tr=G((({fieldProps:e,...r},o)=>t(Ar,{...r,controlSize:e?.size,children:t(k,{...e,ref:o})})));Tr.displayName="HISD3FormDatePicker";const Rr=G((({fieldProps:e,...r},o)=>t(Ar,{...r,controlSize:e?.size,children:t(k.RangePicker,{...e,ref:o})})));Rr.displayName="HISD3FormRangePicker";const Pr=G((({fieldProps:e,...r},o)=>t(Ar,{...r,controlSize:e?.size,children:t(A,{...e,ref:o})})));Pr.displayName="HISD3FormTimePicker";const Ur=G((({fieldProps:e,...r},o)=>t(Ar,{...r,controlSize:e?.size,children:t(A.RangePicker,{...e,ref:o})})));Ur.displayName="HISD3FormTimeRangePicker";const Hr=G((({fieldProps:e,...r},o)=>t(Ar,{...r,controlSize:e?.size,children:t(b.Search,{...e,ref:o})})));Hr.displayName="HISD3FormSearch";const Mr=G((({fieldProps:e,loadingProps:r,...o},i)=>t(Ar,{...o,controlSize:e?.size,loadingProps:{block:!1,...r,style:{width:48*(e?.length??6),...r?.style}},children:t(b.OTP,{...e,ref:i})})));Mr.displayName="HISD3FormOTP";const Or=G((({fieldProps:e,...r},o)=>t(Ar,{...r,controlSize:e?.size,children:t(D,{...e,ref:o})})));Or.displayName="HISD3FormAutoComplete";const $r=G((({fieldProps:e,loadingProps:r,...o},i)=>t(Ar,{...o,controlSize:e?.size,loadingProps:{...r,style:{height:22*(e?.rows??1)+18,...r?.style}},children:t(S,{...e,ref:i})})));$r.displayName="HISD3FormMentions";const Gr=G((({fieldProps:e,...r},o)=>t(Ar,{...r,controlSize:e?.size,children:t(z,{...e,ref:o})})));Gr.displayName="HISD3FormCascader";const jr=G((({fieldProps:e,...r},o)=>t(Ar,{...r,controlSize:e?.size,children:t(E,{...e,ref:o})})));jr.displayName="HISD3FormTreeSelect";const qr=G((({fieldProps:e,...r},o)=>t(Ar,{...r,skeleton:Dr(200),children:t(C,{...e,options:e?.options??[],ref:o})})));qr.displayName="HISD3FormSegmented";const Qr=G((({fieldProps:e,loadingProps:r,...o},i)=>t(Ar,{valuePropName:"targetKeys",loadingProps:{...r,style:{height:200,...r?.style}},...o,children:t(I,{...e,ref:i})})));Qr.displayName="HISD3FormTransfer";const Kr=G((({fieldProps:e,...r},o)=>t(Ar,{...r,controlSize:"small",children:t(F,{...e,ref:o})})));Kr.displayName="HISD3FormSlider";const Wr=G((({fieldProps:e,...r},o)=>t(Ar,{...r,skeleton:Dr(28*(e?.count??5)),children:t(B,{...e,ref:o})})));Wr.displayName="HISD3FormRate";const Vr=({fieldProps:e,...r})=>t(Ar,{getValueFromEvent:(e,t)=>t,skeleton:t(N.Button,{active:!0,shape:"square"}),...r,children:t(L,{...e})});Vr.displayName="HISD3FormColorPicker";const Zr=e=>Array.isArray(e)?e:e?.fileList??[],Yr=({fieldProps:e,children:r,...o})=>t(Ar,{valuePropName:"fileList",getValueFromEvent:Zr,skeleton:t(N.Button,{active:!0}),...o,children:t(T,{...e,children:r??e?.children})});Yr.displayName="HISD3FormUpload";const Jr=({fieldProps:e,children:r,loadingProps:o,...i})=>t(Ar,{valuePropName:"fileList",getValueFromEvent:Zr,loadingProps:{...o,style:{height:150,...o?.style}},...i,children:t(T.Dragger,{...e,children:r??e?.children})});Jr.displayName="HISD3FormUploadDragger";const Xr=P(null);let _r=0;function eo({children:r}){const[o,i]=O([]),n=H((()=>({mount:(e,t)=>i((r=>[...r.filter((t=>t.id!==e)),{id:e,node:t}])),unmount:e=>i((t=>t.filter((t=>t.id!==e))))})),[]);return e(Xr.Provider,{value:n,children:[r,o.map((e=>t(q,{children:e.node},e.id)))]})}function to({Component:e,props:r,onClose:o,unmount:i}){const[n,a]=O(!0),l=Q(!1),d={...r,open:n,hide:j((e=>{l.current||(l.current=!0,a(!1),o?.(e),window.setTimeout(i,320))}),[o,i])};return t(e,{...d})}function ro(e){const r=U(Xr);if(!r)throw new Error("useDialog needs DialogProvider above it.");return j(((o,i)=>{const n=_r+=1;r.mount(n,t(to,{Component:e,props:o,onClose:i,unmount:()=>r.unmount(n)},n))}),[e,r])}var oo,io,no,ao,lo,so,po,co,ho,go,mo,uo,bo;!function(e){e.MODERN="modern",e.STANDARD="standard"}(oo||(oo={})),function(e){e.MODERN="30px",e.STANDARD="16px"}(io||(io={})),function(e){e.LIGHT="light",e.SEMI_DARK="semi-dark",e.DARK="dark"}(no||(no={})),function(e){e.FULL_WIDTH="full-width",e.BOXED="boxed",e.FRAMED="framed"}(ao||(ao={})),function(e){e.DEFAULT="default",e.STANDARD="standard",e.ROUNDED="rounded",e.ROUNDED_REVERSE="rounded-reverse",e.CURVED_MENU="curved-menu"}(lo||(lo={})),function(e){e.DEFAULT="default",e.MINI="mini",e.MINI_SIDEBAR_TOGGLE="mini-sidebar-toggle",e.STANDARD="standard",e.HEADER_USER="user-header",e.HEADER_USER_MINI="user-mini-header",e.DRAWER="drawer",e.BIT_BUCKET="bit-bucket",e.H_DEFAULT="h-default",e.HOR_HEADER_FIXED="hor-header-fixed",e.HOR_DARK_LAYOUT="hor-dark-layout"}(so||(so={})),function(e){e.FIXED="fixed",e.FLUID="fluid"}(po||(po={})),function(e){e.RTL="rtl",e.LTR="ltr"}(co||(co={})),function(e){e.DARK="dark",e.LIGHT="light"}(ho||(ho={})),function(e){e.NONE="none",e.FADE="fade",e.SLIDE_LEFT="slideLeft",e.SLIDE_RIGHT="slideRight",e.SLIDE_UP="slideUp",e.SLIDE_DOWN="slideDown"}(go||(go={})),function(e){e.LIGHT="300",e.REGULAR="400",e.MEDIUM="500",e.BOLD="600"}(mo||(mo={})),function(e){e.FIREBASE="firebase",e.AWS_COGNITO="aws_cognito",e.AUTH0="auth0",e.JWT_AUTH="jwt_auth"}(uo||(uo={})),function(e){e.SLIDEUPIN="transition.slideUpIn",e.SLIDEUPOUT="transition.slideUpOut",e.SLIDEDOWNIN="transition.slideDownIn",e.SLIDEDOWNOUT="transition.slideDownOut",e.SLIDELEFTIN="transition.slideLeftIn",e.SLIDELEFTOUT="transition.slideLeftOut",e.SLIDERIGHTIN="transition.slideRightIn",e.SLIDERIGHTOUT="transition.slideRightOut",e.FADEIN="transition.fadeIn",e.FADEOUT="transition.fadeOut"}(bo||(bo={}));const fo={SLIDEUPIN:{hidden:{y:0},visible:{opacity:1,y:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.2,staggerChildren:.05}}},SLIDEUPOUT:{hidden:{y:0},visible:{opacity:0,y:"100vh",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDEDOWNIN:{hidden:{opacity:0,y:"-100vh"},visible:{opacity:1,y:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDEDOWNOUT:{hidden:{y:0},visible:{opacity:0,y:"-100vh",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDELEFTIN:{hidden:{x:"100vw"},visible:{opacity:1,x:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDELEFTOUT:{hidden:{x:0},visible:{opacity:0,x:"100vw",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDERIGHTIN:{hidden:{x:"-100vw"},visible:{opacity:1,x:0,transition:{ease:"easeIn",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},SLIDERIGHTOUT:{hidden:{x:0},visible:{opacity:0,x:"-100vw",transition:{ease:"easeOut",delay:0,when:"beforeChildren",duration:.4,staggerChildren:.15}}},FADEIN:{hidden:{opacity:0,scale:1},visible:{opacity:1,scale:1,transition:{ease:"easeIn",when:"beforeChildren",staggerChildren:.15}}},FADEOUT:{hidden:{opacity:1,scale:1},visible:{opacity:0,scale:1,transition:{ease:"easeOut",when:"beforeChildren",staggerChildren:.15}}},NOANIMATION:{hidden:{opacity:1},visible:{opacity:1}}},xo={SLIDEUPIN:{variants:{hidden:{y:100,opacity:0},visible:{opacity:1,y:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDEUPOUT:{variants:{hidden:{y:0,opacity:1},visible:{opacity:0,y:"-100vh"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDEDOWNIN:{variants:{hidden:{y:-100,opacity:0},visible:{opacity:1,y:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDEDOWNOUT:{variants:{hidden:{y:0,opacity:1},visible:{opacity:0,y:"100vh"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDELEFTIN:{variants:{hidden:{x:100,opacity:0},visible:{opacity:1,x:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDELEFTOUT:{variants:{hidden:{x:0,opacity:1},visible:{opacity:0,x:"-100vw"}},transition:{ease:"easeOut",when:"beforeChildren"}},SLIDERIGHTIN:{variants:{hidden:{x:-100,opacity:0},visible:{opacity:1,x:0}},transition:{ease:"easeIn",when:"beforeChildren"}},SLIDERIGHTOUT:{variants:{hidden:{x:0,opacity:1},visible:{opacity:0,x:"-100vw"}},transition:{ease:"easeOut",when:"beforeChildren"}},FADEIN:{variants:{hidden:{opacity:0},visible:{opacity:1}},transition:{duration:.1,ease:"easeIn",when:"beforeChildren"}},FADEOUT:{variants:{hidden:{opacity:1},visible:{opacity:0}},transition:{duration:.1,ease:"easeOut",when:"beforeChildren"}}};var vo,yo;!function(e){e[e.MEDIA=1]="MEDIA",e[e.TEXT=2]="TEXT"}(vo||(vo={})),function(e){e.Admin="admin",e.User="user"}(yo||(yo={}));export{fo as AppAnimateGroups,bo as AppAnimates,xo as AppMotionAnimate,uo as AuthType,eo as DialogProvider,mo as Fonts,po as FooterType,Vt as HISD3AvatarMenu,pt as HISD3Button,Or as HISD3FormAutoComplete,Gr as HISD3FormCascader,Br as HISD3FormCheckbox,Nr as HISD3FormCheckboxGroup,Vr as HISD3FormColorPicker,Tr as HISD3FormDatePicker,Ar as HISD3FormField,Sr as HISD3FormInput,Cr as HISD3FormInputNumber,$r as HISD3FormMentions,Mr as HISD3FormOTP,zr as HISD3FormPassword,Fr as HISD3FormRadioGroup,Rr as HISD3FormRangePicker,Wr as HISD3FormRate,Hr as HISD3FormSearch,qr as HISD3FormSegmented,Ir as HISD3FormSelect,Kr as HISD3FormSlider,Lr as HISD3FormSwitch,Er as HISD3FormTextArea,Pr as HISD3FormTimePicker,Ur as HISD3FormTimeRangePicker,Qr as HISD3FormTransfer,jr as HISD3FormTreeSelect,Yr as HISD3FormUpload,Jr as HISD3FormUploadDragger,Jt as HISD3HeaderActions,cr as HISD3Input,It as HISD3LoginPage,$t as HISD3NotificationButton,nt as HISD3PageBody,at as HISD3PageHeader,Se as HISD3Provider,mr as HISD3SearchInput,yr as HISD3Select,ur as HISD3SelectLabel,_e as HISD3Sidebar,or as HISD3Table,nr as HISD3Tabs,sr as HISD3Tag,ce as HISD3_BORDER_PRESETS,ke as HISD3_COLORS,he as HISD3_FONT_FAMILY,me as HISD3_FONT_WEIGHT_BODY,ge as HISD3_FONT_WEIGHT_HEADING,de as HISD3_LAYOUT,lt as HISD3_LOGO_SRC,pe as HISD3_NEUTRALS,se as HISD3_PRESETS,Ft as HeaderIconButton,ho as HeaderType,co as LayoutDirection,ao as LayoutType,lo as MenuStyle,vo as MessageType,so as NavStyle,yo as RoutePermittedRole,go as RouteTransition,no as ThemeMode,oo as ThemeStyle,io as ThemeStyleRadius,Je as UserMenu,ye as borderVarsCss,xe as createHisd3Theme,Wt as getInitials,we as hisd3AntdTheme,ve as hisd3VarsCss,Zr as normalizeUploadFileList,ue as resolvePrimary,be as shade,fe as tint,ro as useDialog,De as useInsideHISD3Provider};
|
|
1414
1424
|
//# sourceMappingURL=index.js.map
|