ados-rcm 1.1.1102 → 1.1.1104
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/AModule/AComponents/AResource/AResource.d.ts +19 -0
- package/dist/AModule/AComponents/ATheme/ATheme.d.ts +3 -1
- package/dist/AModule/AComponents/AWeekdayPicker/AWeekdayPicker.d.ts +12 -0
- package/dist/AModule/AComponents/AWeekdayPicker/resources.d.ts +3 -0
- package/dist/AModule/AComponents/AWeekdayPicker/weekdayModel.d.ts +9 -0
- package/dist/AModule/AComponents/BTable/BTable.d.ts +18 -0
- package/dist/AModule/AComponents/BTable/BTableBody.d.ts +91 -0
- package/dist/AModule/AComponents/BTable/BTableCore.d.ts +257 -0
- package/dist/AModule/AComponents/BTable/BTableCount.d.ts +22 -0
- package/dist/AModule/AComponents/BTable/BTableFilter.d.ts +34 -0
- package/dist/AModule/AComponents/BTable/BTableFooter.d.ts +22 -0
- package/dist/AModule/AComponents/BTable/BTableHeader.d.ts +51 -0
- package/dist/AModule/AComponents/BTable/BTableResize.d.ts +15 -0
- package/dist/AModule/AComponents/BTable/BTableResources.d.ts +17 -0
- package/dist/AModule/AComponents/BTable/BTableSort.d.ts +10 -0
- package/dist/AModule/AComponents/BTable/filterF.d.ts +6 -0
- package/dist/AModule/AComponents/BTable/layoutF.d.ts +20 -0
- package/dist/AModule/AComponents/BTable/measureF.d.ts +3 -0
- package/dist/AModule/AComponents/BTable/pageNumbers.d.ts +2 -0
- package/dist/AModule/AComponents/BTable/support/BTableIcon.d.ts +7 -0
- package/dist/AModule/AComponents/BTable/support/LoadingDots.d.ts +4 -0
- package/dist/AModule/AComponents/BTable/support/checkBoxModel.d.ts +16 -0
- package/dist/AModule/AComponents/BTable/support/id.d.ts +2 -0
- package/dist/AModule/AComponents/BTable/support/searchHighlight.d.ts +1 -0
- package/dist/AModule/AComponents/BTable/support/tabularContent.d.ts +5 -0
- package/dist/AModule/AComponents/BTable/support/textMeasurement.d.ts +11 -0
- package/dist/AModule/AComponents/BTable/tableF.d.ts +32 -0
- package/dist/AModule/AComponents/BTable/tableFilterField.d.ts +4 -0
- package/dist/AModule/AComponents/BTable/tableKeyF.d.ts +8 -0
- package/dist/AModule/AComponents/BTable/tableSortF.d.ts +24 -0
- package/dist/AModule/AComponents/BTable/windowF.d.ts +27 -0
- package/dist/AModule/AUtils/idGenF.d.ts +1 -0
- package/dist/{index-7anBxeF4.js → index-B4BCpckb.js} +42770 -36385
- package/dist/index-C6fAoKN3.cjs +448 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +139 -127
- package/dist/{staticAdapterSerializer-BDsqHrgc.js → staticAdapterSerializer-B5QUnYre.js} +1 -1
- package/dist/{staticAdapterSerializer-D_pZYkZQ.cjs → staticAdapterSerializer-D6GsHe-e.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-kHSzWRKU.cjs +0 -443
|
@@ -52,6 +52,9 @@ export declare const Resources: {
|
|
|
52
52
|
'Toggle Filter': string;
|
|
53
53
|
'No Items': string;
|
|
54
54
|
};
|
|
55
|
+
AWeekdayPicker: {
|
|
56
|
+
Weekday: string;
|
|
57
|
+
};
|
|
55
58
|
ASelect: {
|
|
56
59
|
'Select(Placeholder)': string;
|
|
57
60
|
};
|
|
@@ -143,6 +146,22 @@ export declare const Resources: {
|
|
|
143
146
|
Fullscreen: string;
|
|
144
147
|
'Exit Fullscreen': string;
|
|
145
148
|
};
|
|
149
|
+
BTable: {
|
|
150
|
+
locale: string;
|
|
151
|
+
All: string;
|
|
152
|
+
'Advanced search': string;
|
|
153
|
+
'Clear filters': string;
|
|
154
|
+
'Exact match': string;
|
|
155
|
+
'Exact match not found': (labels: string) => string;
|
|
156
|
+
'Loading items': string;
|
|
157
|
+
'Select current page': string;
|
|
158
|
+
'Select row': (key: string) => string;
|
|
159
|
+
Collapse: string;
|
|
160
|
+
Expand: string;
|
|
161
|
+
Newest: string;
|
|
162
|
+
Oldest: string;
|
|
163
|
+
Confidential: string;
|
|
164
|
+
};
|
|
146
165
|
AWrap: {
|
|
147
166
|
Asterisk: string;
|
|
148
167
|
};
|
|
@@ -133,9 +133,11 @@ export declare const ARadioSelectKeys: readonly ["ARadioSelect_RadioButton_borde
|
|
|
133
133
|
export type TARadioSelectKeys = (typeof ARadioSelectKeys)[number];
|
|
134
134
|
export declare const AChipKeys: readonly ["AChip_background-color", "AChip_color", "AChip_border", "AChip_hover_background-color", "AChip_hover_color", "AChip_DeleteButton_border", "AChip_DeleteButton_color", "AChip_DeleteButton_hover_border", "AChip_DeleteButton_hover_color"];
|
|
135
135
|
export type TAChipKeys = (typeof AChipKeys)[number];
|
|
136
|
+
export declare const AWeekdayPickerStyleKeys: readonly ["AWeekdayPicker_border", "AWeekdayPicker_color", "AWeekdayPicker_divider", "AWeekdayPicker_hover_color", "AWeekdayPicker_hover_background-color", "AWeekdayPicker_selected_color"];
|
|
137
|
+
export type TAWeekdayPickerStyleKeys = (typeof AWeekdayPickerStyleKeys)[number];
|
|
136
138
|
export declare const ADrawerStyleKeys: readonly ["ADrawer_background-color"];
|
|
137
139
|
export type TADrawerStyleKeys = (typeof ADrawerStyleKeys)[number];
|
|
138
|
-
export declare const componentStyleKeys: ("Body-background-color" | "Body-color" | "Body-transition" | "Font" | "Scrollbar-handle" | "Scrollbar-handle-hover" | "Scrollbar-handle-active" | "Scrollbar-track" | "Scrollbar-border-radius" | "Scrollbar-width" | "Transition" | "Transition-Enabled" | "ABase_Dimming_background-color" | "ABase_Dimming_opacity" | "ABase_Primary_Skeleton_background-color" | "ABase_Secondary_Skeleton_background-color" | "ATooltip_background-color" | "ATooltip_color" | "AButton_Primary_border" | "AButton_Primary_background-color" | "AButton_Primary_color" | "AButton_Primary_hover_border" | "AButton_Primary_hover_background-color" | "AButton_Primary_hover_color" | "AButton_Primary_active_border" | "AButton_Primary_active_background-color" | "AButton_Primary_active_color" | "AButton_Secondary_border" | "AButton_Secondary_background-color" | "AButton_Secondary_color" | "AButton_Secondary_hover_border" | "AButton_Secondary_hover_background-color" | "AButton_Secondary_hover_color" | "AButton_Secondary_active_border" | "AButton_Secondary_active_background-color" | "AButton_Secondary_active_color" | "AButton_Alter_border" | "AButton_Alter_background-color" | "AButton_Alter_color" | "AButton_Alter_hover_border" | "AButton_Alter_hover_background-color" | "AButton_Alter_hover_color" | "AButton_Alter_active_border" | "AButton_Alter_active_background-color" | "AButton_Alter_active_color" | "AInput_border-radius" | "AInput_Primary_background-color" | "AInput_Primary_border" | "AInput_Primary_color" | "AInput_Primary_hover_border" | "AInput_Primary_focus_background-color" | "AInput_Primary_focus_border" | "AInput_Primary_placeholder_color" | "AInput_Secondary_background-color" | "AInput_Secondary_border" | "AInput_Secondary_color" | "AInput_Secondary_hover_border" | "AInput_Secondary_focus_border" | "AInput_Secondary_placeholder_color" | "AInput_ReadOnly_background-color" | "AInput_ReadOnly_border" | "AInput_ReadOnly_color" | "AInput_Error_HelperText_color" | "AInput_Error_background-color" | "AInput_Error_border" | "AInput_Error_color" | "AInput_Error_placeholder_color" | "ATextArea_Primary_background-color" | "ATextArea_Primary_border" | "ATextArea_Primary_color" | "ATextArea_Primary_hover_border" | "ATextArea_Primary_focus_background-color" | "ATextArea_Primary_focus_border" | "ATextArea_Secondary_background-color" | "ATextArea_Secondary_border" | "ATextArea_Secondary_color" | "ATextArea_Secondary_hover_border" | "ATextArea_Secondary_focus_border" | "ATextArea_ReadOnly_background-color" | "ATextArea_ReadOnly_border" | "ATextArea_ReadOnly_color" | "ATextArea_Error_background-color" | "ATextArea_Error_border" | "ATextArea_Error_color" | "ATextArea_Error_placeholder_color" | "BEditor_Primary_background-color" | "BEditor_Primary_border" | "BEditor_Primary_color" | "BEditor_Primary_hover_border" | "BEditor_Primary_focus_background-color" | "BEditor_Primary_focus_border" | "BEditor_ReadOnly_background-color" | "BEditor_ReadOnly_border" | "BEditor_ReadOnly_hover_border" | "BEditor_ReadOnly_focus_border" | "BEditor_ReadOnly_color" | "BEditor_Error_background-color" | "BEditor_Error_border" | "BEditor_Error_hover_border" | "BEditor_Error_focus_border" | "BEditor_Error_color" | "BEditor_Error_placeholder_color" | "BEditor_Addon_Primary_background-color" | "BEditor_Addon_Primary_border" | "BEditor_Addon_Primary_color" | "BEditor_Addon_Secondary_background-color" | "BEditor_Addon_Secondary_border" | "BEditor_Addon_Secondary_color" | "BEditor_Addon_hover_background-color" | "BEditor_Addon_hover_color" | "BEditor_Addon_focus_border" | "BEditor_Background_color" | "BEditor_Placeholder_color" | "BEditor_Shadow_Soft_color" | "BEditor_Shadow_Normal_color" | "BEditor_Shadow_Strong_color" | "BEditor_Overlay_background-color" | "BEditor_Table_Selection_background-color" | "BEditor_Table_Picker_Cell_hover_background-color" | "BEditor_Table_Menu_Divider_background-color" | "BEditor_Table_Menu_Tooltip_background-color" | "BEditor_Table_Menu_Tooltip_color" | "BEditor_border-radius" | "BEditor_Select_border-radius" | "BEditor_Option_border-radius" | "ACheckBox_color" | "ADialog_Paper_background-color" | "ADialog_background-color" | "ADialog_border" | "ADialog_Action_background-color" | "ASelect_Placeholder_color" | "ASelect_Primary_border" | "ASelect_Primary_hover_border" | "ASelect_Primary_Arrow_color" | "ASelect_Primary_Options_background-color" | "ASelect_Primary_Options_border" | "ASelect_Primary_Option_hover_background-color" | "ASelect_Primary_Option_active_background-color" | "ASelect_Primary_Option_Selected_background-color" | "ASelect_Secondary_border" | "ASelect_Secondary_hover_border" | "ASelect_Secondary_background-color" | "ASelect_Secondary_Arrow_color" | "ASelect_Secondary_Options_background-color" | "ASelect_Secondary_Options_border" | "ASelect_Secondary_Option_hover_background-color" | "ASelect_Secondary_Option_active_background-color" | "ASelect_Secondary_Option_Selected_background-color" | "AMultiSelect_Placeholder_color" | "AMultiSelect_Primary_border" | "AMultiSelect_Primary_hover_border" | "AMultiSelect_Primary_Arrow_color" | "AMultiSelect_Primary_Options_background-color" | "AMultiSelect_Primary_Options_border" | "AMultiSelect_Primary_Option_hover_background-color" | "AMultiSelect_Primary_Option_active_background-color" | "AMultiSelect_Primary_Option_Selected_background-color" | "AMultiSelect_Secondary_border" | "AMultiSelect_Secondary_hover_border" | "AMultiSelect_Secondary_background-color" | "AMultiSelect_Secondary_Arrow_color" | "AMultiSelect_Secondary_Options_background-color" | "AMultiSelect_Secondary_Options_border" | "AMultiSelect_Secondary_Option_hover_background-color" | "AMultiSelect_Secondary_Option_active_background-color" | "AMultiSelect_Secondary_Option_Selected_background-color" | "ATree_background-color" | "ATree_Indent_border" | "ATreeBodyHeader_border-bottom" | "ATreeItem_hover_background-color" | "ATreeItem_active_background-color" | "ATreeItem_select_background-color" | "ATreeItem_search_background-color" | "ATreeItem_search_border-top" | "ATreeItem_search_border-bottom" | "ATreeItem_select_color" | "ASwitch_Track_Falsy_border" | "ASwitch_Track_Truthy_border" | "ASwitch_Thumb_border" | "ATab_IndicatorTrack_Primary_border-bottom" | "ATab_Indicator_Primary_background-color" | "ATab_Option_Secondary_border" | "ATab_Option_Secondary_IsSelected_border-bottom" | "ATab_Option_Secondary_IsDisabled_border" | "ATab_IndicatorTrack_Tertiary_background-color" | "ATab_Indicator_Tertiary_background-color" | "ATab_Option_Tertiary_color" | "ATab_Option_Tertiary_IsSelected_color" | "ATab_Option_Quaternary_color" | "ATab_Option_Quaternary_IsSelected_color" | "AFileBox_border" | "AFileBox_background-color" | "AFileBox_SelectedFile_color" | "AFileBox_Dropping_color" | "AFileUploader_background-color" | "AFileUploader_brand_color" | "AFileUploader_disabled_color" | "AFileUploader_error_color" | "AFileUploader_text_color" | "AListView_border-thin" | "AListView_border-thick" | "AStepper_OutCircle_background-color" | "AStepper_OutCircle_IsOver_background-color" | "AStepper_InCircle_background-color" | "AStepper_InCircle_IsOver_background-color" | "AStepper_Line_background-color" | "AStepper_Line_IsOver_background-color" | "ADatePicker_Anchor_border" | "ADatePicker_Anchor_color" | "ADatePicker_Anchor_Placeholder_color" | "ADatePicker_Anchor_hover_border" | "ADatePicker_Anchor_focus_border" | "ADatePicker_Anchor_Icon_Primary_color" | "ADatePicker_Anchor_Icon_Secondary_color" | "ADatePicker_background-color" | "ADatePicker_border" | "ADatePicker_Container_focus_border" | "ADatePicker_border-radius" | "ADatePicker_DateContainer_background-color" | "ADatePicker_String_border" | "ADatePicker_Prev_background-color" | "ADatePicker_Prev_border-right" | "ADatePicker_Next_background-color" | "ADatePicker_Next_border-left" | "ADatePicker_Cell_color" | "ADatePicker_Cell_IsNotCurrentMonth_color" | "ADatePicker_Cell_IsDisabled_color" | "ADatePicker_Cell_IsSelected_background-color" | "ADatePicker_Cell_IsSelected_color" | "ADatePicker_Cell_IsHovered_background-color" | "ADateRangePicker_Anchor_border" | "ADateRangePicker_Anchor_color" | "ADateRangePicker_Anchor_Placeholder_color" | "ADateRangePicker_Anchor_hover_border" | "ADateRangePicker_Anchor_focus_border" | "ADateRangePicker_Anchor_Icon_Primary_color" | "ADateRangePicker_Anchor_Icon_Secondary_color" | "ADateRangePicker_background-color" | "ADateRangePicker_border" | "ADateRangePicker_border-radius" | "ADateRangePicker_ChoiceButton_border-radius" | "ADateRangePicker_Container_focus_border" | "ADateRangePicker_DateContainer_background-color" | "ADateRangePicker_String_border" | "ADateRangePicker_Prev_background-color" | "ADateRangePicker_Prev_border-right" | "ADateRangePicker_Next_background-color" | "ADateRangePicker_Next_border-left" | "ADateRangePicker_Cell_color" | "ADateRangePicker_Cell_IsNotCurrentMonth_color" | "ADateRangePicker_Cell_IsDisabled_color" | "ADateRangePicker_Cell_IsSelected_background-color" | "ADateRangePicker_Cell_IsSelected_color" | "ADateRangePicker_Cell_IsHovered_background-color" | "AIconButton_Primary_color" | "AIconButton_Primary_border" | "AIconButton_Primary_background-color" | "AIconButton_Primary_hover_background-color" | "AIconButton_Primary_active_background-color" | "AIconButton_Secondary_color" | "AIconButton_Secondary_background-color" | "AIconButton_Secondary_hover_background-color" | "AIconButton_Secondary_active_background-color" | "ATableBody_TRow_border-bottom" | "ATableBody_TRow_IsSelected_background-color" | "ATableBody_TRow_IsSelectable_hover_background-color" | "ATableBody_TH_color" | "ATableBody_TD_IsMarked_background-color" | "ATableBody_TD_IsMarked_color" | "ATableBody_Resizer_hover_ResizerCenter_background-color" | "ATableBody_Resizer_active_ResizerCenter_background-color" | "ATableBody_Resizer_active_ResizerOut_background-color" | "ATableBody_Resizer_active_ResizerIn_background-color" | "ATableFooter_Button_IsSelected_background-color" | "ATableFooter_Button_IsSelected_color" | "ATableFooter_Button_IsDisabled_color" | "ATableFilter_SubFilters_background-color" | "ATableFilter_SubFilters_border" | "ATableFilter_Icon_color" | "ATableFilter_Alert_color" | "ADivideFrame_DividerInner_background-color" | "AFloatMenu_background-color" | "AFloatMenu_hover_background-color" | "AFloatMenu_color" | "AFloatMenu_border" | "ALoadingBorder_background-color" | "ALoadingBorder_ProgressBar_background-color" | "ALoadingBorder_Cover_background-color" | "AWrap_Error_color" | "ARadioSelect_RadioButton_border" | "ARadioSelect_RadioButton_InnerCircle_isChecked_background-color" | "AChip_background-color" | "AChip_color" | "AChip_border" | "AChip_hover_background-color" | "AChip_hover_color" | "AChip_DeleteButton_border" | "AChip_DeleteButton_color" | "AChip_DeleteButton_hover_border" | "AChip_DeleteButton_hover_color" | "ADrawer_background-color")[];
|
|
140
|
+
export declare const componentStyleKeys: ("Body-background-color" | "Body-color" | "Body-transition" | "Font" | "Scrollbar-handle" | "Scrollbar-handle-hover" | "Scrollbar-handle-active" | "Scrollbar-track" | "Scrollbar-border-radius" | "Scrollbar-width" | "Transition" | "Transition-Enabled" | "ABase_Dimming_background-color" | "ABase_Dimming_opacity" | "ABase_Primary_Skeleton_background-color" | "ABase_Secondary_Skeleton_background-color" | "ATooltip_background-color" | "ATooltip_color" | "AButton_Primary_border" | "AButton_Primary_background-color" | "AButton_Primary_color" | "AButton_Primary_hover_border" | "AButton_Primary_hover_background-color" | "AButton_Primary_hover_color" | "AButton_Primary_active_border" | "AButton_Primary_active_background-color" | "AButton_Primary_active_color" | "AButton_Secondary_border" | "AButton_Secondary_background-color" | "AButton_Secondary_color" | "AButton_Secondary_hover_border" | "AButton_Secondary_hover_background-color" | "AButton_Secondary_hover_color" | "AButton_Secondary_active_border" | "AButton_Secondary_active_background-color" | "AButton_Secondary_active_color" | "AButton_Alter_border" | "AButton_Alter_background-color" | "AButton_Alter_color" | "AButton_Alter_hover_border" | "AButton_Alter_hover_background-color" | "AButton_Alter_hover_color" | "AButton_Alter_active_border" | "AButton_Alter_active_background-color" | "AButton_Alter_active_color" | "AInput_border-radius" | "AInput_Primary_background-color" | "AInput_Primary_border" | "AInput_Primary_color" | "AInput_Primary_hover_border" | "AInput_Primary_focus_background-color" | "AInput_Primary_focus_border" | "AInput_Primary_placeholder_color" | "AInput_Secondary_background-color" | "AInput_Secondary_border" | "AInput_Secondary_color" | "AInput_Secondary_hover_border" | "AInput_Secondary_focus_border" | "AInput_Secondary_placeholder_color" | "AInput_ReadOnly_background-color" | "AInput_ReadOnly_border" | "AInput_ReadOnly_color" | "AInput_Error_HelperText_color" | "AInput_Error_background-color" | "AInput_Error_border" | "AInput_Error_color" | "AInput_Error_placeholder_color" | "ATextArea_Primary_background-color" | "ATextArea_Primary_border" | "ATextArea_Primary_color" | "ATextArea_Primary_hover_border" | "ATextArea_Primary_focus_background-color" | "ATextArea_Primary_focus_border" | "ATextArea_Secondary_background-color" | "ATextArea_Secondary_border" | "ATextArea_Secondary_color" | "ATextArea_Secondary_hover_border" | "ATextArea_Secondary_focus_border" | "ATextArea_ReadOnly_background-color" | "ATextArea_ReadOnly_border" | "ATextArea_ReadOnly_color" | "ATextArea_Error_background-color" | "ATextArea_Error_border" | "ATextArea_Error_color" | "ATextArea_Error_placeholder_color" | "BEditor_Primary_background-color" | "BEditor_Primary_border" | "BEditor_Primary_color" | "BEditor_Primary_hover_border" | "BEditor_Primary_focus_background-color" | "BEditor_Primary_focus_border" | "BEditor_ReadOnly_background-color" | "BEditor_ReadOnly_border" | "BEditor_ReadOnly_hover_border" | "BEditor_ReadOnly_focus_border" | "BEditor_ReadOnly_color" | "BEditor_Error_background-color" | "BEditor_Error_border" | "BEditor_Error_hover_border" | "BEditor_Error_focus_border" | "BEditor_Error_color" | "BEditor_Error_placeholder_color" | "BEditor_Addon_Primary_background-color" | "BEditor_Addon_Primary_border" | "BEditor_Addon_Primary_color" | "BEditor_Addon_Secondary_background-color" | "BEditor_Addon_Secondary_border" | "BEditor_Addon_Secondary_color" | "BEditor_Addon_hover_background-color" | "BEditor_Addon_hover_color" | "BEditor_Addon_focus_border" | "BEditor_Background_color" | "BEditor_Placeholder_color" | "BEditor_Shadow_Soft_color" | "BEditor_Shadow_Normal_color" | "BEditor_Shadow_Strong_color" | "BEditor_Overlay_background-color" | "BEditor_Table_Selection_background-color" | "BEditor_Table_Picker_Cell_hover_background-color" | "BEditor_Table_Menu_Divider_background-color" | "BEditor_Table_Menu_Tooltip_background-color" | "BEditor_Table_Menu_Tooltip_color" | "BEditor_border-radius" | "BEditor_Select_border-radius" | "BEditor_Option_border-radius" | "ACheckBox_color" | "ADialog_Paper_background-color" | "ADialog_background-color" | "ADialog_border" | "ADialog_Action_background-color" | "ASelect_Placeholder_color" | "ASelect_Primary_border" | "ASelect_Primary_hover_border" | "ASelect_Primary_Arrow_color" | "ASelect_Primary_Options_background-color" | "ASelect_Primary_Options_border" | "ASelect_Primary_Option_hover_background-color" | "ASelect_Primary_Option_active_background-color" | "ASelect_Primary_Option_Selected_background-color" | "ASelect_Secondary_border" | "ASelect_Secondary_hover_border" | "ASelect_Secondary_background-color" | "ASelect_Secondary_Arrow_color" | "ASelect_Secondary_Options_background-color" | "ASelect_Secondary_Options_border" | "ASelect_Secondary_Option_hover_background-color" | "ASelect_Secondary_Option_active_background-color" | "ASelect_Secondary_Option_Selected_background-color" | "AMultiSelect_Placeholder_color" | "AMultiSelect_Primary_border" | "AMultiSelect_Primary_hover_border" | "AMultiSelect_Primary_Arrow_color" | "AMultiSelect_Primary_Options_background-color" | "AMultiSelect_Primary_Options_border" | "AMultiSelect_Primary_Option_hover_background-color" | "AMultiSelect_Primary_Option_active_background-color" | "AMultiSelect_Primary_Option_Selected_background-color" | "AMultiSelect_Secondary_border" | "AMultiSelect_Secondary_hover_border" | "AMultiSelect_Secondary_background-color" | "AMultiSelect_Secondary_Arrow_color" | "AMultiSelect_Secondary_Options_background-color" | "AMultiSelect_Secondary_Options_border" | "AMultiSelect_Secondary_Option_hover_background-color" | "AMultiSelect_Secondary_Option_active_background-color" | "AMultiSelect_Secondary_Option_Selected_background-color" | "ATree_background-color" | "ATree_Indent_border" | "ATreeBodyHeader_border-bottom" | "ATreeItem_hover_background-color" | "ATreeItem_active_background-color" | "ATreeItem_select_background-color" | "ATreeItem_search_background-color" | "ATreeItem_search_border-top" | "ATreeItem_search_border-bottom" | "ATreeItem_select_color" | "ASwitch_Track_Falsy_border" | "ASwitch_Track_Truthy_border" | "ASwitch_Thumb_border" | "ATab_IndicatorTrack_Primary_border-bottom" | "ATab_Indicator_Primary_background-color" | "ATab_Option_Secondary_border" | "ATab_Option_Secondary_IsSelected_border-bottom" | "ATab_Option_Secondary_IsDisabled_border" | "ATab_IndicatorTrack_Tertiary_background-color" | "ATab_Indicator_Tertiary_background-color" | "ATab_Option_Tertiary_color" | "ATab_Option_Tertiary_IsSelected_color" | "ATab_Option_Quaternary_color" | "ATab_Option_Quaternary_IsSelected_color" | "AFileBox_border" | "AFileBox_background-color" | "AFileBox_SelectedFile_color" | "AFileBox_Dropping_color" | "AFileUploader_background-color" | "AFileUploader_brand_color" | "AFileUploader_disabled_color" | "AFileUploader_error_color" | "AFileUploader_text_color" | "AListView_border-thin" | "AListView_border-thick" | "AStepper_OutCircle_background-color" | "AStepper_OutCircle_IsOver_background-color" | "AStepper_InCircle_background-color" | "AStepper_InCircle_IsOver_background-color" | "AStepper_Line_background-color" | "AStepper_Line_IsOver_background-color" | "ADatePicker_Anchor_border" | "ADatePicker_Anchor_color" | "ADatePicker_Anchor_Placeholder_color" | "ADatePicker_Anchor_hover_border" | "ADatePicker_Anchor_focus_border" | "ADatePicker_Anchor_Icon_Primary_color" | "ADatePicker_Anchor_Icon_Secondary_color" | "ADatePicker_background-color" | "ADatePicker_border" | "ADatePicker_Container_focus_border" | "ADatePicker_border-radius" | "ADatePicker_DateContainer_background-color" | "ADatePicker_String_border" | "ADatePicker_Prev_background-color" | "ADatePicker_Prev_border-right" | "ADatePicker_Next_background-color" | "ADatePicker_Next_border-left" | "ADatePicker_Cell_color" | "ADatePicker_Cell_IsNotCurrentMonth_color" | "ADatePicker_Cell_IsDisabled_color" | "ADatePicker_Cell_IsSelected_background-color" | "ADatePicker_Cell_IsSelected_color" | "ADatePicker_Cell_IsHovered_background-color" | "ADateRangePicker_Anchor_border" | "ADateRangePicker_Anchor_color" | "ADateRangePicker_Anchor_Placeholder_color" | "ADateRangePicker_Anchor_hover_border" | "ADateRangePicker_Anchor_focus_border" | "ADateRangePicker_Anchor_Icon_Primary_color" | "ADateRangePicker_Anchor_Icon_Secondary_color" | "ADateRangePicker_background-color" | "ADateRangePicker_border" | "ADateRangePicker_border-radius" | "ADateRangePicker_ChoiceButton_border-radius" | "ADateRangePicker_Container_focus_border" | "ADateRangePicker_DateContainer_background-color" | "ADateRangePicker_String_border" | "ADateRangePicker_Prev_background-color" | "ADateRangePicker_Prev_border-right" | "ADateRangePicker_Next_background-color" | "ADateRangePicker_Next_border-left" | "ADateRangePicker_Cell_color" | "ADateRangePicker_Cell_IsNotCurrentMonth_color" | "ADateRangePicker_Cell_IsDisabled_color" | "ADateRangePicker_Cell_IsSelected_background-color" | "ADateRangePicker_Cell_IsSelected_color" | "ADateRangePicker_Cell_IsHovered_background-color" | "AIconButton_Primary_color" | "AIconButton_Primary_border" | "AIconButton_Primary_background-color" | "AIconButton_Primary_hover_background-color" | "AIconButton_Primary_active_background-color" | "AIconButton_Secondary_color" | "AIconButton_Secondary_background-color" | "AIconButton_Secondary_hover_background-color" | "AIconButton_Secondary_active_background-color" | "ATableBody_TRow_border-bottom" | "ATableBody_TRow_IsSelected_background-color" | "ATableBody_TRow_IsSelectable_hover_background-color" | "ATableBody_TH_color" | "ATableBody_TD_IsMarked_background-color" | "ATableBody_TD_IsMarked_color" | "ATableBody_Resizer_hover_ResizerCenter_background-color" | "ATableBody_Resizer_active_ResizerCenter_background-color" | "ATableBody_Resizer_active_ResizerOut_background-color" | "ATableBody_Resizer_active_ResizerIn_background-color" | "ATableFooter_Button_IsSelected_background-color" | "ATableFooter_Button_IsSelected_color" | "ATableFooter_Button_IsDisabled_color" | "ATableFilter_SubFilters_background-color" | "ATableFilter_SubFilters_border" | "ATableFilter_Icon_color" | "ATableFilter_Alert_color" | "ADivideFrame_DividerInner_background-color" | "AFloatMenu_background-color" | "AFloatMenu_hover_background-color" | "AFloatMenu_color" | "AFloatMenu_border" | "ALoadingBorder_background-color" | "ALoadingBorder_ProgressBar_background-color" | "ALoadingBorder_Cover_background-color" | "AWrap_Error_color" | "ARadioSelect_RadioButton_border" | "ARadioSelect_RadioButton_InnerCircle_isChecked_background-color" | "AChip_background-color" | "AChip_color" | "AChip_border" | "AChip_hover_background-color" | "AChip_hover_color" | "AChip_DeleteButton_border" | "AChip_DeleteButton_color" | "AChip_DeleteButton_hover_border" | "AChip_DeleteButton_hover_color" | "AWeekdayPicker_border" | "AWeekdayPicker_color" | "AWeekdayPicker_divider" | "AWeekdayPicker_hover_color" | "AWeekdayPicker_hover_background-color" | "AWeekdayPicker_selected_color" | "ADrawer_background-color")[];
|
|
139
141
|
export type TComponentStyleKeys = (typeof componentStyleKeys)[number];
|
|
140
142
|
export type TComponentStyle = {
|
|
141
143
|
[key in TComponentStyleKeys]: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type { TWeekdayValue } from './weekdayModel';
|
|
2
|
+
export { formatWeekdaySelection, parseWeekdayValue, serializeWeekdayValue, toggleWeekdaySelection, WEEKDAY_ORDER, } from './weekdayModel';
|
|
3
|
+
export interface IAWeekdayPickerProps {
|
|
4
|
+
'aria-label'?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
locale?: 'en' | 'ko';
|
|
8
|
+
mode?: 'multiple' | 'single';
|
|
9
|
+
onChange: (value: string) => void;
|
|
10
|
+
value: string | number | boolean | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare function AWeekdayPicker({ 'aria-label': ariaLabel, className, disabled, locale, mode, onChange, value, }: Readonly<IAWeekdayPickerProps>): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const WEEKDAY_ORDER: readonly ["mon", "tue", "wed", "thu", "fri", "sat", "sun"];
|
|
2
|
+
export type TWeekdayValue = (typeof WEEKDAY_ORDER)[number];
|
|
3
|
+
export declare const WEEKDAY_LABELS_KO: Record<TWeekdayValue, string>;
|
|
4
|
+
export declare const WEEKDAY_LABELS_EN: Record<TWeekdayValue, string>;
|
|
5
|
+
export declare function isWeekdayValue(value: string): value is TWeekdayValue;
|
|
6
|
+
export declare function parseWeekdayValue(value?: string | number | boolean, fallback?: TWeekdayValue): TWeekdayValue[];
|
|
7
|
+
export declare function serializeWeekdayValue(days: readonly TWeekdayValue[]): string;
|
|
8
|
+
export declare function formatWeekdaySelection(value: string | number | boolean | undefined, locale?: 'en' | 'ko'): string;
|
|
9
|
+
export declare function toggleWeekdaySelection(current: readonly TWeekdayValue[], day: TWeekdayValue, multiple: boolean): TWeekdayValue[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IAWrapProps } from '../AWrap/AWrap';
|
|
2
|
+
import { IItem } from '../../AUtils/objF';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
import { IBTableProps as IBTableCoreProps } from './BTableCore';
|
|
5
|
+
export { BTableResources } from './BTableResources';
|
|
6
|
+
export type { IBTableActions, IBTableCountProps, IBTableDef, IBTableFilter, IBTableFilterSetProps, IBTableInfiniteScrollData, IBTablePageF, IBTablePagination, IBTableSortation, IBTableState, IBTableTRProps, TBTableDefs, TBTableFilteration, TBTableFilterSetType, TBTableFilterType, TBTableSomeFilter, TBTableSortF, TBTableStringMatchMode, TDisabledResult, TFilterKey, TRequiredBTableDefs, } from './BTableCore';
|
|
7
|
+
export { BTableCore } from './BTableCore';
|
|
8
|
+
export type { IBTableProps as IBTableCoreProps } from './BTableCore';
|
|
9
|
+
export type { IBTableRowProps, IBTableDefaultRowProps, TBTableBodyType, TSpanWidths } from './BTableBody';
|
|
10
|
+
export type { TBTableFooterType } from './BTableFooter';
|
|
11
|
+
export type { TBTableFilterValue, TBTableFilterValueMap, TBTableFilterOnChange } from './BTableFilter';
|
|
12
|
+
export { bTableF } from './tableF';
|
|
13
|
+
export { initSortPagedItems } from './tableSortF';
|
|
14
|
+
export interface IBTableProps<T extends IItem> extends IAWrapProps, Omit<IBTableCoreProps<T>, 'noMarking'> {
|
|
15
|
+
FilterLeftAddon?: React.ReactNode;
|
|
16
|
+
id?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const BTable: <T extends IItem>(props: IBTableProps<T>) => React.ReactNode;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { IABaseProps } from '../ABase/ABase';
|
|
2
|
+
import { TCanCallback } from '../../AUtils/cbF';
|
|
3
|
+
import { IItem } from '../../AUtils/objF';
|
|
4
|
+
import { Resources } from '../AResource/AResource';
|
|
5
|
+
import { TUseValues } from '../../AHooks/useValues';
|
|
6
|
+
import { default as React } from 'react';
|
|
7
|
+
import { IBTableInfiniteScrollData, IBTablePagination, IBTableSortation, IBTableTRProps, TBTableDefs, TBTableFilteration, TBTableFilterType, TDisabledResult } from './BTableCore';
|
|
8
|
+
export { MIN_COLUMN_WIDTH } from './BTableResize';
|
|
9
|
+
export declare const DEFAULT_COLUMN_WIDTH = 100;
|
|
10
|
+
export declare const MIN_ROW_HEIGHT = 50;
|
|
11
|
+
/** ATable DEF_HEADER_HEIGHT — body column header row, independent of data rowHeight */
|
|
12
|
+
export declare const DEF_HEADER_HEIGHT = 50;
|
|
13
|
+
export declare const CELL_PADDING = 12;
|
|
14
|
+
/** Sort icon (md 24) + TH gap when isSortable on fixedValues columns. */
|
|
15
|
+
export declare const FIXED_VALUES_SORT_SLOT = 26;
|
|
16
|
+
export declare const BORDER_HEIGHT = 1;
|
|
17
|
+
/** ATable 유사 body: 카드/행선/선택색/셀패딩 */
|
|
18
|
+
export declare const CELL_PADDING_SECONDARY = 8;
|
|
19
|
+
export type TBTableBodyType = 'primary' | 'secondary';
|
|
20
|
+
export declare const getBorderHeight: (baseHeight?: number) => number;
|
|
21
|
+
interface IBTableBodyProps<T extends IItem> {
|
|
22
|
+
alwaysOverflowed?: boolean;
|
|
23
|
+
appliedFilteration: TBTableFilteration<T>;
|
|
24
|
+
/** primary=카드형, secondary=ATable 플랫 (noEdge/sort/divider 기본값 파생은 Core) */
|
|
25
|
+
bodyType?: TBTableBodyType;
|
|
26
|
+
checkDisabled?: (item: T) => TDisabledResult;
|
|
27
|
+
createTableElementId: (segments?: React.ReactNode[], explicitId?: string) => string;
|
|
28
|
+
/** 내부/테스트·플레이그라운드 전용 디버그 스위치 — false면 고정 높이 행에서도 windowing을 강제로 끈다(비교용). 기본 true. */
|
|
29
|
+
debugWindowing?: boolean;
|
|
30
|
+
defs: TBTableDefs<T>;
|
|
31
|
+
dividerType?: 'primary' | 'secondary';
|
|
32
|
+
expandedKeys?: ReadonlySet<string>;
|
|
33
|
+
filterType?: TBTableFilterType;
|
|
34
|
+
hasCheck?: boolean;
|
|
35
|
+
infiniteScrollData?: IBTableInfiniteScrollData;
|
|
36
|
+
isContainerOverflowed?: boolean;
|
|
37
|
+
isLoading?: boolean;
|
|
38
|
+
isRowRendered: boolean;
|
|
39
|
+
isSelectMulti?: boolean;
|
|
40
|
+
isSelectUtil?: boolean;
|
|
41
|
+
isTableDisabled?: string | boolean;
|
|
42
|
+
noEdge?: boolean;
|
|
43
|
+
noMarking?: boolean;
|
|
44
|
+
onMeasuredRowHeightChange?: (height: number) => void;
|
|
45
|
+
onRowCheckClick?: (item: T) => void;
|
|
46
|
+
pagedItems: T[];
|
|
47
|
+
pagination: IBTablePagination;
|
|
48
|
+
pk?: keyof T | (keyof T)[];
|
|
49
|
+
placeholder?: React.ReactNode;
|
|
50
|
+
renderExpanded?: (item: T) => React.ReactNode;
|
|
51
|
+
resources: Partial<typeof Resources.ATable>;
|
|
52
|
+
rowCheck?: boolean;
|
|
53
|
+
rowDisabledCursor?: (item: T) => React.CSSProperties['cursor'];
|
|
54
|
+
rowHeight: number;
|
|
55
|
+
RowRenderer?: (props: IBTableRowProps<T>) => React.ReactNode;
|
|
56
|
+
rProps?: TCanCallback<IBTableTRProps<T>, IABaseProps>;
|
|
57
|
+
selectDisabled?: (item: T) => TDisabledResult;
|
|
58
|
+
selectedScrollKey?: unknown;
|
|
59
|
+
showRows?: number;
|
|
60
|
+
sortIconType?: 'primary' | 'secondary';
|
|
61
|
+
tableContentMinWidth: number;
|
|
62
|
+
tableRef?: React.RefObject<HTMLDivElement>;
|
|
63
|
+
useSelect?: TUseValues<T[]>;
|
|
64
|
+
useSortation: TUseValues<IBTableSortation<T> | undefined>;
|
|
65
|
+
}
|
|
66
|
+
export declare const BTableBody: <T extends IItem>(props: IBTableBodyProps<T>) => React.JSX.Element;
|
|
67
|
+
export type TSpanWidths<T> = {
|
|
68
|
+
[key in keyof T]?: {
|
|
69
|
+
flexGrow: number;
|
|
70
|
+
flexShrink: number;
|
|
71
|
+
flexBasis: string | number;
|
|
72
|
+
maxWidth?: number;
|
|
73
|
+
minWidth: number;
|
|
74
|
+
width: number;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export interface IBTableRowProps<T extends IItem> {
|
|
78
|
+
createTableElementId: (segments?: React.ReactNode[], explicitId?: string) => string;
|
|
79
|
+
defs: TBTableDefs<T>;
|
|
80
|
+
isSelected?: boolean;
|
|
81
|
+
item: T;
|
|
82
|
+
rowIndex: number;
|
|
83
|
+
}
|
|
84
|
+
export interface IBTableDefaultRowProps<T extends IItem> extends IBTableRowProps<T> {
|
|
85
|
+
appliedFilteration: TBTableFilteration<T>;
|
|
86
|
+
isCheckMode?: boolean;
|
|
87
|
+
isContainerOverflowed?: boolean;
|
|
88
|
+
isLastItem?: boolean;
|
|
89
|
+
rowHeight: number;
|
|
90
|
+
spanWidths: TSpanWidths<T>;
|
|
91
|
+
}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { IABaseProps } from '../ABase/ABase';
|
|
2
|
+
import { IATableTDProps, IATableTHProps } from '../ATable/ATable';
|
|
3
|
+
import { IDateRange } from '../ADatePicker/ADateRangePicker';
|
|
4
|
+
import { IItem } from '../../AUtils/objF';
|
|
5
|
+
import { Resources } from '../AResource/AResource';
|
|
6
|
+
import { TActionRef, TIdx, TPromisable } from '../ATypes/ATypes';
|
|
7
|
+
import { TCanCallback } from '../../AUtils/cbF';
|
|
8
|
+
import { TUseValues } from '../../AHooks/useValues';
|
|
9
|
+
import { default as React } from 'react';
|
|
10
|
+
import { TIcons } from '../AIcon/AIcon';
|
|
11
|
+
import { IBTableRowProps, TBTableBodyType } from './BTableBody';
|
|
12
|
+
import { TBTableFilterValueMap } from './BTableFilter';
|
|
13
|
+
import { TBTableFooterType } from './BTableFooter';
|
|
14
|
+
export type TFilterKey<K extends IItem> = Extract<keyof K, string | number> | string;
|
|
15
|
+
export type TDisabledResult = string | boolean | undefined;
|
|
16
|
+
export interface IBTableTRProps<T extends IItem> {
|
|
17
|
+
item: T;
|
|
18
|
+
}
|
|
19
|
+
export interface IBTableFilterSetProps<T extends IItem> {
|
|
20
|
+
def: IBTableDef<T>;
|
|
21
|
+
filter: TBTableSomeFilter<T>;
|
|
22
|
+
filterKey: TIdx;
|
|
23
|
+
}
|
|
24
|
+
export interface IBTablePageF {
|
|
25
|
+
maxCountChange: (maxCount: number) => void;
|
|
26
|
+
move: (page: number) => void;
|
|
27
|
+
moveFirst: () => void;
|
|
28
|
+
moveLast: () => void;
|
|
29
|
+
moveNext: () => void;
|
|
30
|
+
movePrev: () => void;
|
|
31
|
+
}
|
|
32
|
+
export interface IBTableCountProps<T extends IItem = IItem> {
|
|
33
|
+
checkedCount: number;
|
|
34
|
+
countIdSegments?: React.ReactNode[];
|
|
35
|
+
createTableElementId?: (segments?: React.ReactNode[], explicitId?: string) => string;
|
|
36
|
+
filteredCount: number;
|
|
37
|
+
hideParentheses?: boolean;
|
|
38
|
+
isFiltered?: boolean;
|
|
39
|
+
items: T[];
|
|
40
|
+
maxCount?: number;
|
|
41
|
+
pageF: IBTablePageF;
|
|
42
|
+
resources: typeof Resources.ATable;
|
|
43
|
+
totalCount: number;
|
|
44
|
+
}
|
|
45
|
+
export interface IBTableDef<T extends IItem> {
|
|
46
|
+
align?: TCanCallback<IATableTHProps<T>, NonNullable<React.CSSProperties['justifyContent']>>;
|
|
47
|
+
asText?: TCanCallback<IATableTDProps<T>, string | number>;
|
|
48
|
+
colSpan?: TCanCallback<IATableTHProps<T>, number>;
|
|
49
|
+
content?: TCanCallback<IATableTDProps<T>, React.ReactNode>;
|
|
50
|
+
contentStyle?: TCanCallback<IATableTDProps<T>, React.CSSProperties>;
|
|
51
|
+
/** Enum/fixed labels — column width is fixed to the longest label (+ header) at table font. */
|
|
52
|
+
fixedValues?: readonly string[];
|
|
53
|
+
hAlign?: TCanCallback<IATableTHProps<T>, NonNullable<React.CSSProperties['justifyContent']>>;
|
|
54
|
+
hContent?: TCanCallback<IATableTHProps<T>, React.ReactNode>;
|
|
55
|
+
hContentStyle?: TCanCallback<IATableTHProps<T>, React.CSSProperties>;
|
|
56
|
+
hStyle?: TCanCallback<IATableTHProps<T>, React.CSSProperties>;
|
|
57
|
+
isSortable?: boolean;
|
|
58
|
+
maxWidth?: number;
|
|
59
|
+
minWidth?: number;
|
|
60
|
+
name?: string;
|
|
61
|
+
noDivider?: boolean;
|
|
62
|
+
padding?: NonNullable<React.CSSProperties['padding']>;
|
|
63
|
+
serverSortColumn?: string;
|
|
64
|
+
sortF?: (a: T, b: T) => number;
|
|
65
|
+
style?: TCanCallback<IATableTDProps<T>, React.CSSProperties>;
|
|
66
|
+
width?: number;
|
|
67
|
+
}
|
|
68
|
+
export type TBTableDefs<T extends IItem> = {
|
|
69
|
+
[key in Exclude<keyof T, symbol>]?: IBTableDef<T>;
|
|
70
|
+
} & {
|
|
71
|
+
[key: TIdx]: IBTableDef<T>;
|
|
72
|
+
};
|
|
73
|
+
export type TRequiredBTableDefs<T extends IItem, K extends TIdx> = TBTableDefs<T> & {
|
|
74
|
+
[key in K]-?: IBTableDef<T>;
|
|
75
|
+
};
|
|
76
|
+
export type TBTableFilterSetType = 'String' | 'Select' | 'Date' | 'DateRange';
|
|
77
|
+
/**
|
|
78
|
+
* Default : 모든 필터를 한 번에 노출
|
|
79
|
+
*
|
|
80
|
+
* Single : 필터 키 선택 후 단일 입력으로 검색
|
|
81
|
+
*
|
|
82
|
+
* Toggle : 첫 필터만 노출하고 나머지는 펼침 패널에서 검색 (useToggleFilteration 지정 시 필터셋 교체 버튼 노출)
|
|
83
|
+
*/
|
|
84
|
+
export type TBTableFilterType = 'Default' | 'Single' | 'Toggle';
|
|
85
|
+
export type TBTableStringMatchMode = 'contains' | 'exact';
|
|
86
|
+
/** ATable 호환: Toggle 상세검색 좌측 타입 아이콘 */
|
|
87
|
+
type TBTableFilterIconProps = {
|
|
88
|
+
icon?: TIcons;
|
|
89
|
+
iconTooltip?: React.ReactNode;
|
|
90
|
+
};
|
|
91
|
+
export interface IBTableFilter<T extends IItem, K extends IItem = IItem> {
|
|
92
|
+
Date: TBTableFilterIconProps & {
|
|
93
|
+
filterKey?: TFilterKey<K>[] | readonly TFilterKey<K>[];
|
|
94
|
+
maxDate?: Date;
|
|
95
|
+
minDate?: Date;
|
|
96
|
+
hasClearButton?: boolean;
|
|
97
|
+
placeholder?: string;
|
|
98
|
+
predicate?: (item: T, defs: TBTableDefs<T>, filterKey: TFilterKey<T>[], filter: IBTableFilter<T, K>['Date']) => unknown;
|
|
99
|
+
type: 'Date';
|
|
100
|
+
validation?: (value?: TBTableFilterValueMap['Date']) => string;
|
|
101
|
+
value?: Date;
|
|
102
|
+
};
|
|
103
|
+
DateRange: TBTableFilterIconProps & {
|
|
104
|
+
eFilterKey: keyof K;
|
|
105
|
+
maxDate?: Date;
|
|
106
|
+
minDate?: Date;
|
|
107
|
+
hasClearButton?: boolean;
|
|
108
|
+
noDefaultChoices?: boolean;
|
|
109
|
+
placeholder?: string;
|
|
110
|
+
predicate?: (item: T, defs: TBTableDefs<T>, sFilterKey: keyof K, eFilterKey: keyof K, filter: IBTableFilter<T, K>['DateRange']) => unknown;
|
|
111
|
+
sFilterKey: keyof K;
|
|
112
|
+
type: 'DateRange';
|
|
113
|
+
validation?: (value?: TBTableFilterValueMap['DateRange']) => string;
|
|
114
|
+
value?: IDateRange;
|
|
115
|
+
};
|
|
116
|
+
Select: TBTableFilterIconProps & {
|
|
117
|
+
OptionRenderer?: (props: {
|
|
118
|
+
option: string | number | null;
|
|
119
|
+
}) => React.ReactNode;
|
|
120
|
+
filterKey?: TFilterKey<K>[] | readonly TFilterKey<K>[];
|
|
121
|
+
options: string[] | number[] | readonly string[] | readonly number[];
|
|
122
|
+
placeholder?: string;
|
|
123
|
+
predicate?: (item: T, defs: TBTableDefs<T>, filterKey: TFilterKey<T>[], filter: IBTableFilter<T, K>['Select']) => unknown;
|
|
124
|
+
type: 'Select';
|
|
125
|
+
validation?: (value: TBTableFilterValueMap['Select']) => string;
|
|
126
|
+
value?: string | number | null;
|
|
127
|
+
};
|
|
128
|
+
String: TBTableFilterIconProps & {
|
|
129
|
+
autoFocus?: boolean;
|
|
130
|
+
dataList?: string[] | readonly string[];
|
|
131
|
+
filterKey?: TFilterKey<K>[] | readonly TFilterKey<K>[];
|
|
132
|
+
matchMode?: TBTableStringMatchMode;
|
|
133
|
+
matchModeTooltip?: React.ReactNode;
|
|
134
|
+
maxLength?: number;
|
|
135
|
+
placeholder?: string;
|
|
136
|
+
predicate?: (item: T, defs: TBTableDefs<T>, filterKey: TFilterKey<T>[], filter: IBTableFilter<T, K>['String']) => unknown;
|
|
137
|
+
type: 'String';
|
|
138
|
+
validation?: (value: TBTableFilterValueMap['String']) => string;
|
|
139
|
+
value?: string;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
export type TBTableSomeFilter<T extends IItem, K extends IItem = IItem> = IBTableFilter<T, K>[TBTableFilterSetType];
|
|
143
|
+
export type TBTableFilteration<T extends IItem, K extends IItem = IItem> = {
|
|
144
|
+
[key in keyof T]?: TBTableSomeFilter<T, K>;
|
|
145
|
+
} & {
|
|
146
|
+
[key: string]: TBTableSomeFilter<T, K>;
|
|
147
|
+
};
|
|
148
|
+
export type TBTableSortF<T extends IItem> = (a: T, b: T, isAsc?: boolean) => number;
|
|
149
|
+
export interface IBTableSortation<T extends IItem> {
|
|
150
|
+
defKey: TIdx;
|
|
151
|
+
isAsc: boolean;
|
|
152
|
+
sortF?: TBTableSortF<T>;
|
|
153
|
+
}
|
|
154
|
+
export interface IBTablePagination {
|
|
155
|
+
maxCount?: number;
|
|
156
|
+
page: number;
|
|
157
|
+
pageRange: number;
|
|
158
|
+
pageSize: number;
|
|
159
|
+
}
|
|
160
|
+
type TBTableInfiniteScrollDataLoader = {
|
|
161
|
+
fetchNextPage: () => TPromisable<unknown>;
|
|
162
|
+
onLoadMore?: () => TPromisable<unknown>;
|
|
163
|
+
} | {
|
|
164
|
+
fetchNextPage?: () => TPromisable<unknown>;
|
|
165
|
+
onLoadMore: () => TPromisable<unknown>;
|
|
166
|
+
};
|
|
167
|
+
export type IBTableInfiniteScrollData = {
|
|
168
|
+
enabled?: boolean;
|
|
169
|
+
hasNextPage: boolean;
|
|
170
|
+
isFetchingNextPage?: boolean;
|
|
171
|
+
threshold?: number;
|
|
172
|
+
} & TBTableInfiniteScrollDataLoader;
|
|
173
|
+
export interface IBTableState<T extends IItem, K extends IItem = IItem> {
|
|
174
|
+
entireItems?: T[];
|
|
175
|
+
filteration: TBTableFilteration<T, K>;
|
|
176
|
+
pagination: IBTablePagination;
|
|
177
|
+
sortation?: IBTableSortation<T>;
|
|
178
|
+
}
|
|
179
|
+
export interface IBTableActions<T extends IItem> {
|
|
180
|
+
applyFilteration: (cb?: (oldFilteration: TBTableFilteration<T>) => TBTableFilteration<T>) => TPromisable<void>;
|
|
181
|
+
fireOnStateChange: (cb?: (oldState: IBTableState<T>) => IBTableState<T>) => TPromisable<void>;
|
|
182
|
+
}
|
|
183
|
+
type TBTableStateChangeHandler<T extends IItem, K extends IItem = IItem> = {
|
|
184
|
+
bivarianceHack: (params: IBTableState<T, K>) => TPromisable<void>;
|
|
185
|
+
}['bivarianceHack'];
|
|
186
|
+
export interface IBTableProps<T extends IItem> {
|
|
187
|
+
abaseRef?: React.RefObject<HTMLDivElement>;
|
|
188
|
+
actionRef?: TActionRef<IBTableActions<T>>;
|
|
189
|
+
alwaysOverflowed?: boolean;
|
|
190
|
+
/** primary=카드형 body, secondary=ATable 플랫 (noEdge·sortIcon·divider 기본값 파생, 개별 prop으로 오버라이드 가능) */
|
|
191
|
+
bodyType?: TBTableBodyType;
|
|
192
|
+
checkDisabled?: (item: T) => TDisabledResult;
|
|
193
|
+
/** rowCheck의 alias */
|
|
194
|
+
checkOnRowClick?: boolean;
|
|
195
|
+
/** 카운트 위치. `header`면 상단(ATable 유사), footer 카운트는 숨김 */
|
|
196
|
+
countPlacement?: 'footer' | 'header';
|
|
197
|
+
CountRenderer?: <T extends IItem>(props: IBTableCountProps<T>) => React.ReactNode;
|
|
198
|
+
/** 내부/테스트·플레이그라운드 전용 디버그 스위치 — 고정 높이 기본 행 DOM windowing on/off 비교용. 기본 true(windowing 활성). */
|
|
199
|
+
debugWindowing?: boolean;
|
|
200
|
+
defaultDef?: IBTableDef<T>;
|
|
201
|
+
defs?: TBTableDefs<T>;
|
|
202
|
+
dividerType?: 'primary' | 'secondary';
|
|
203
|
+
entireItems?: T[];
|
|
204
|
+
FilterLeftAddon?: React.ReactNode;
|
|
205
|
+
FilterRightAddon?: React.ReactNode;
|
|
206
|
+
filterType?: TBTableFilterType;
|
|
207
|
+
footerType?: TBTableFooterType;
|
|
208
|
+
headerStyle?: React.CSSProperties;
|
|
209
|
+
id?: string;
|
|
210
|
+
infiniteScrollData?: IBTableInfiniteScrollData;
|
|
211
|
+
isDisabled?: string | boolean;
|
|
212
|
+
isLoading?: boolean;
|
|
213
|
+
isSelectMulti?: boolean;
|
|
214
|
+
isSelectUtil?: boolean;
|
|
215
|
+
maxCount?: number;
|
|
216
|
+
noCount?: boolean;
|
|
217
|
+
noEdge?: boolean;
|
|
218
|
+
noFilter?: boolean;
|
|
219
|
+
noFilterClearButton?: boolean;
|
|
220
|
+
noFooter?: boolean;
|
|
221
|
+
noHeader?: boolean;
|
|
222
|
+
noHeaderContents?: boolean;
|
|
223
|
+
noMarking?: boolean;
|
|
224
|
+
noStateChangeOnMount?: boolean;
|
|
225
|
+
onStateChange?: TBTableStateChangeHandler<T>;
|
|
226
|
+
pagedItems?: T[];
|
|
227
|
+
pk?: keyof T | (keyof T)[];
|
|
228
|
+
placeholder?: React.ReactNode;
|
|
229
|
+
/** 지정 시 선두 chevron 컬럼이 추가되고, 펼친 행 아래에 반환 노드를 렌더한다. null 반환 행은 펼침 불가. 펼친 행은 가변 높이라 windowing이 꺼진다. */
|
|
230
|
+
renderExpanded?: (item: T) => React.ReactNode;
|
|
231
|
+
resources?: Partial<typeof Resources.ATable>;
|
|
232
|
+
/** 행 클릭 시 체크박스 토글 활성화 여부 */
|
|
233
|
+
rowCheck?: boolean;
|
|
234
|
+
rowDisabledCursor?: (item: T) => React.CSSProperties['cursor'];
|
|
235
|
+
rowHeight?: number;
|
|
236
|
+
rowRenderedMinWidth?: number;
|
|
237
|
+
RowRenderer?: (props: IBTableRowProps<T>) => React.ReactNode;
|
|
238
|
+
rProps?: TCanCallback<IBTableTRProps<T>, IABaseProps>;
|
|
239
|
+
selectDisabled?: (item: T) => TDisabledResult;
|
|
240
|
+
selectedScrollKey?: unknown;
|
|
241
|
+
showRows?: number;
|
|
242
|
+
sortIconType?: 'primary' | 'secondary';
|
|
243
|
+
SortRightAddon?: React.ReactNode;
|
|
244
|
+
title?: React.ReactNode;
|
|
245
|
+
titleType?: 'Default' | 'Small';
|
|
246
|
+
TopRightAddon?: React.ReactNode;
|
|
247
|
+
totalCount?: number;
|
|
248
|
+
useCheck?: TUseValues<T[]>;
|
|
249
|
+
useFilteration?: TUseValues<TBTableFilteration<T>>;
|
|
250
|
+
usePagination?: TUseValues<Partial<IBTablePagination>, IBTablePagination>;
|
|
251
|
+
useSelect?: TUseValues<T[]>;
|
|
252
|
+
useSortation?: TUseValues<IBTableSortation<T> | undefined>;
|
|
253
|
+
/** filterType='Toggle'에서 Convert 버튼으로 교체되는 보조 필터셋 */
|
|
254
|
+
useToggleFilteration?: TUseValues<TBTableFilteration<T>>;
|
|
255
|
+
}
|
|
256
|
+
export declare const BTableCore: <T extends IItem>(props: IBTableProps<T>) => React.JSX.Element;
|
|
257
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IItem } from '../../AUtils/objF';
|
|
2
|
+
import { Resources } from '../AResource/AResource';
|
|
3
|
+
import { TUseValues } from '../../AHooks/useValues';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { IBTableCountProps, IBTablePageF } from './BTableCore';
|
|
6
|
+
export interface IBTableCountDisplayProps<T extends IItem> {
|
|
7
|
+
className?: string;
|
|
8
|
+
countIdSegments?: ReactNode[];
|
|
9
|
+
CountRenderer?: <T extends IItem>(props: IBTableCountProps<T>) => React.ReactNode;
|
|
10
|
+
createTableElementId?: (segments?: React.ReactNode[], explicitId?: string) => string;
|
|
11
|
+
hideParentheses?: boolean;
|
|
12
|
+
isFiltered?: boolean;
|
|
13
|
+
items: T[];
|
|
14
|
+
maxCount?: number;
|
|
15
|
+
noCount?: boolean;
|
|
16
|
+
pageF: IBTablePageF;
|
|
17
|
+
resources: typeof Resources.ATable;
|
|
18
|
+
totalCount: number;
|
|
19
|
+
useCheck?: TUseValues<T[]>;
|
|
20
|
+
}
|
|
21
|
+
export declare const DefaultCountRenderer: <T extends IItem>(props: IBTableCountProps<T>) => import("react").JSX.Element;
|
|
22
|
+
export declare const BTableCount: <T extends IItem>(props: IBTableCountDisplayProps<T>) => import("react").JSX.Element | null;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IDateRange } from '../ADatePicker/ADateRangePicker';
|
|
2
|
+
import { IItem } from '../../AUtils/objF';
|
|
3
|
+
import { Resources } from '../AResource/AResource';
|
|
4
|
+
import { TUseValues } from '../../AHooks/useValues';
|
|
5
|
+
import { default as React } from 'react';
|
|
6
|
+
import { IBTableFilterSetProps, TBTableDefs, TBTableFilteration, TBTableFilterType, TBTableSomeFilter } from './BTableCore';
|
|
7
|
+
import { IBTableFilterF } from './BTableHeader';
|
|
8
|
+
export interface IBTableFilterProps<T extends IItem> {
|
|
9
|
+
allSearchPredicate?: (item: T, searchValue: string) => boolean;
|
|
10
|
+
createTableElementId: (segments?: React.ReactNode[], explicitId?: string) => string;
|
|
11
|
+
defs?: TBTableDefs<T>;
|
|
12
|
+
filterF: IBTableFilterF;
|
|
13
|
+
FilterLeftAddon?: React.ReactNode;
|
|
14
|
+
FilterRightAddon?: React.ReactNode;
|
|
15
|
+
filterSets: IBTableFilterSetProps<T>[];
|
|
16
|
+
filterType: TBTableFilterType;
|
|
17
|
+
hasToggleFilteration?: boolean;
|
|
18
|
+
noFilterClearButton?: boolean;
|
|
19
|
+
resources: typeof Resources.ATable;
|
|
20
|
+
useErrMsgs: TUseValues<string[]>;
|
|
21
|
+
useFilteration: TUseValues<TBTableFilteration<T>>;
|
|
22
|
+
/** countPlacement='header' — ATable처럼 필터 입력 너비 300px */
|
|
23
|
+
withHeaderCount?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare const ALL_SEARCH_KEY = "_all_";
|
|
26
|
+
export type TBTableFilterValueMap = {
|
|
27
|
+
Date: Date | undefined;
|
|
28
|
+
DateRange: IDateRange | undefined;
|
|
29
|
+
Select: string | number | null;
|
|
30
|
+
String: string;
|
|
31
|
+
};
|
|
32
|
+
export type TBTableFilterValue<T extends keyof TBTableFilterValueMap = never> = T extends keyof TBTableFilterValueMap ? TBTableFilterValueMap[T] : unknown;
|
|
33
|
+
export type TBTableFilterOnChange<T extends IItem> = (filter: TBTableSomeFilter<T>, newValue: TBTableFilterValue<keyof TBTableFilterValueMap>, idx?: number) => void;
|
|
34
|
+
export declare const BTableFilter: <T extends IItem>(props: IBTableFilterProps<T>) => React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IItem } from '../../AUtils/objF';
|
|
2
|
+
import { Resources } from '../AResource/AResource';
|
|
3
|
+
import { TUseValues } from '../../AHooks/useValues';
|
|
4
|
+
import { IBTableCountProps, IBTablePageF, IBTablePagination } from './BTableCore';
|
|
5
|
+
export type TBTableFooterType = 'primary' | 'secondary';
|
|
6
|
+
export interface IBTableFooterProps<T extends IItem> {
|
|
7
|
+
CountRenderer?: <T extends IItem>(props: IBTableCountProps<T>) => React.ReactNode;
|
|
8
|
+
createTableElementId: (segments?: React.ReactNode[], explicitId?: string) => string;
|
|
9
|
+
footerRef: React.RefObject<HTMLDivElement | null>;
|
|
10
|
+
footerType?: TBTableFooterType;
|
|
11
|
+
isFiltered?: boolean;
|
|
12
|
+
items: T[];
|
|
13
|
+
lastPage: number;
|
|
14
|
+
maxCount?: number;
|
|
15
|
+
noCount?: boolean;
|
|
16
|
+
pageF: IBTablePageF;
|
|
17
|
+
pagination: IBTablePagination;
|
|
18
|
+
resources: typeof Resources.ATable;
|
|
19
|
+
totalCount: number;
|
|
20
|
+
useCheck?: TUseValues<T[]>;
|
|
21
|
+
}
|
|
22
|
+
export declare const BTableFooter: <T extends IItem>(props: IBTableFooterProps<T>) => import("react").JSX.Element;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { IItem } from '../../AUtils/objF';
|
|
2
|
+
import { Resources } from '../AResource/AResource';
|
|
3
|
+
import { TUseValues } from '../../AHooks/useValues';
|
|
4
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
5
|
+
import { IBTableCountProps, IBTableFilterSetProps, IBTablePageF, IBTableSortation, TBTableDefs, TBTableFilteration, TBTableFilterType } from './BTableCore';
|
|
6
|
+
import { TBTableBodyType } from './BTableBody';
|
|
7
|
+
export interface IBTableFilterF {
|
|
8
|
+
apply: () => void;
|
|
9
|
+
clear: () => void;
|
|
10
|
+
/** filterType='Toggle' + useToggleFilteration 지정 시 보조 필터셋으로 교체 */
|
|
11
|
+
toggle: () => void;
|
|
12
|
+
validate: () => boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface IBTableHeaderProps<T extends IItem> {
|
|
15
|
+
/** primary | secondary — SortRow ATable 플랫 */
|
|
16
|
+
bodyType?: TBTableBodyType;
|
|
17
|
+
/** 카운트 표시 위치. header면 필터 좌측(FilterLeftAddon). SortRow 있으면 SortMeta 유지 */
|
|
18
|
+
countPlacement?: 'footer' | 'header';
|
|
19
|
+
CountRenderer?: <T extends IItem>(props: IBTableCountProps<T>) => React.ReactNode;
|
|
20
|
+
createTableElementId: (segments?: React.ReactNode[], explicitId?: string) => string;
|
|
21
|
+
defs: TBTableDefs<T>;
|
|
22
|
+
filterF: IBTableFilterF;
|
|
23
|
+
FilterLeftAddon?: React.ReactNode;
|
|
24
|
+
FilterRightAddon?: React.ReactNode;
|
|
25
|
+
filterSets: IBTableFilterSetProps<T>[];
|
|
26
|
+
filterType: TBTableFilterType;
|
|
27
|
+
hasToggleFilteration?: boolean;
|
|
28
|
+
headerRef?: React.RefObject<HTMLDivElement | null>;
|
|
29
|
+
headerStyle?: React.CSSProperties;
|
|
30
|
+
isFiltered?: boolean;
|
|
31
|
+
isRowRendered?: boolean;
|
|
32
|
+
items: T[];
|
|
33
|
+
maxCount?: number;
|
|
34
|
+
noCount?: boolean;
|
|
35
|
+
noFilter?: boolean;
|
|
36
|
+
noFilterClearButton?: boolean;
|
|
37
|
+
/** false면 title/TopRightAddon으로 PanelHeader 역할의 HeaderContents 구성 */
|
|
38
|
+
noHeaderContents?: boolean;
|
|
39
|
+
pageF: IBTablePageF;
|
|
40
|
+
resources: typeof Resources.ATable;
|
|
41
|
+
SortRightAddon?: React.ReactNode;
|
|
42
|
+
title?: React.ReactNode;
|
|
43
|
+
titleType?: 'Default' | 'Small';
|
|
44
|
+
TopRightAddon?: React.ReactNode;
|
|
45
|
+
totalCount: number;
|
|
46
|
+
useCheck?: TUseValues<T[]>;
|
|
47
|
+
useErrMsgs: [string[], Dispatch<SetStateAction<string[]>>];
|
|
48
|
+
useFilteration: TUseValues<TBTableFilteration<T>>;
|
|
49
|
+
useSortation: TUseValues<IBTableSortation<T> | undefined>;
|
|
50
|
+
}
|
|
51
|
+
export declare const BTableHeader: <T extends IItem>(props: IBTableHeaderProps<T>) => import("react").JSX.Element | null;
|