ados-rcm 1.0.652 → 1.1.1
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/ATheme/ATheme2.d.ts +26 -3
- package/dist/index.cjs.js +13 -13
- package/dist/index.es.js +1812 -1792
- package/package.json +1 -1
@@ -17,6 +17,12 @@ declare function getCurrentPaletteMode(): "mode-1";
|
|
17
17
|
* Description : get the shallow value of the palette key.
|
18
18
|
*/
|
19
19
|
declare function getPaletteValue(key: TPaletteKeys, mode?: TPaletteModes): string;
|
20
|
+
/**
|
21
|
+
* getPaletteDeepValue : (key: TPaletteKeys) => string
|
22
|
+
*
|
23
|
+
* Description : get the calculated value of the palette key.
|
24
|
+
*/
|
25
|
+
declare function getPaletteDeepValue(key: TPaletteKeys): string;
|
20
26
|
interface IPaletteModeChangeEvent {
|
21
27
|
type: 'paletteModeChange';
|
22
28
|
listener: (newPaletteMode: TPaletteModes) => void;
|
@@ -45,11 +51,17 @@ export type TSemanticKeys = (typeof semanticKeys)[number];
|
|
45
51
|
*/
|
46
52
|
declare function getCurrentSemanticMode(): "light" | "dark";
|
47
53
|
/**
|
48
|
-
* getSemanticValue : (key: TSemanticKeys, mode: TSemanticModes) => string
|
54
|
+
* getSemanticValue : (key: TSemanticKeys, mode: TSemanticModes, isDeep: boolean) => string
|
49
55
|
*
|
50
56
|
* Description : get the shallow value of the semantic key.
|
51
57
|
*/
|
52
58
|
declare function getSemanticValue(key: TSemanticKeys, mode?: TSemanticModes): string;
|
59
|
+
/**
|
60
|
+
* getSemanticDeepValue : (key: TSemanticKeys) => string
|
61
|
+
*
|
62
|
+
* Description : get the calculated value of the semantic key.
|
63
|
+
*/
|
64
|
+
declare function getSemanticDeepValue(key: TSemanticKeys): string;
|
53
65
|
interface ISemanticModeChangeEvent {
|
54
66
|
type: 'semanticModeChange';
|
55
67
|
listener: (newSemanticMode: TSemanticModes) => void;
|
@@ -94,7 +106,7 @@ export declare const ATabStyleKeys: readonly ["ATab_IndicatorTrack_Primary_borde
|
|
94
106
|
export type TATabStyleKeys = (typeof ATabStyleKeys)[number];
|
95
107
|
export declare const AFileBoxStyleKeys: readonly ["AFileBox_border", "AFileBox_background-color", "AFileBox_SelectedFile_color", "AFileBox_Dropping_color"];
|
96
108
|
export type TAFileBoxStyleKeys = (typeof AFileBoxStyleKeys)[number];
|
97
|
-
export declare const AListViewStyleKeys: readonly ["AListView_border-top", "AListView_Row_border-bottom", "AListView_Label_border-left", "AListView_Rendered_border-left"];
|
109
|
+
export declare const AListViewStyleKeys: readonly ["AListView_border-top", "AListView_Row_border-bottom", "AListView_Label_border-left", "AListView_Rendered_border-left", "AListView_Rendered_border-right"];
|
98
110
|
export type TAListViewStyleKeys = (typeof AListViewStyleKeys)[number];
|
99
111
|
export declare const AStepperStyleKeys: readonly ["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"];
|
100
112
|
export type TAStepperStyleKeys = (typeof AStepperStyleKeys)[number];
|
@@ -112,7 +124,7 @@ export declare const AFloatMenuKeys: readonly ["AFloatMenu_background-color", "A
|
|
112
124
|
export type TAFloatMenuKeys = (typeof AFloatMenuKeys)[number];
|
113
125
|
export declare const ALoadingBorderKeys: readonly ["ALoadingBorder_background-color", "ALoadingBorder_ProgressBar_background-color", "ALoadingBorder_Cover_background-color"];
|
114
126
|
export type TALoadingBorderKeys = (typeof ALoadingBorderKeys)[number];
|
115
|
-
export declare const ComponentStyleKeys: readonly ["Body-background-color", "Body-color", "Body-transition", "Font", "Scrollbar-handle", "Scrollbar-handle-hover", "Scrollbar-handle-active", "Scrollbar-track", "Scrollbar-border-radius", "Scrollbar-width", "ABase_Dimming_background-color", "ATooltip_background-color", "ATooltip_color", "AButton_Primary_border", "AButton_Primary_background-color", "AButton_Primary_color", "AButton_Secondary_border", "AButton_Secondary_background-color", "AButton_Secondary_color", "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", "ACheckBox_color", "ADialog_Paper_background-color", "ADialog_background-color", "ADialog_border", "ADialog_Action_background-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_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_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_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", "AFileBox_border", "AFileBox_background-color", "AFileBox_SelectedFile_color", "AFileBox_Dropping_color", "AListView_border-top", "AListView_Row_border-bottom", "AListView_Label_border-left", "AListView_Rendered_border-left", "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_hover_border", "ADatePicker_Anchor_focus_border", "ADatePicker_Anchor_Icon_Primary_color", "ADatePicker_Anchor_Icon_Secondary_color", "ADatePicker_background-color", "ADatePicker_border", "ADatePicker_StringInputContainer_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_hover_border", "ADateRangePicker_Anchor_focus_border", "ADateRangePicker_Anchor_Icon_Primary_color", "ADateRangePicker_Anchor_Icon_Secondary_color", "ADateRangePicker_background-color", "ADateRangePicker_border", "ADateRangePicker_StringInputContainer_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_background-color", "AIconButton_Primary_border", "AIconButton_Primary_hover_border", "ATableBody_TRow_border-bottom", "ATableBody_TRow_IsSelected_background-color", "ATableBody_TRow_IsSelectable_hover_background-color", "ATableBody_TH_color", "ATableBody_TD_IsMarked_background-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", "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"];
|
127
|
+
export declare const ComponentStyleKeys: readonly ["Body-background-color", "Body-color", "Body-transition", "Font", "Scrollbar-handle", "Scrollbar-handle-hover", "Scrollbar-handle-active", "Scrollbar-track", "Scrollbar-border-radius", "Scrollbar-width", "ABase_Dimming_background-color", "ATooltip_background-color", "ATooltip_color", "AButton_Primary_border", "AButton_Primary_background-color", "AButton_Primary_color", "AButton_Secondary_border", "AButton_Secondary_background-color", "AButton_Secondary_color", "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", "ACheckBox_color", "ADialog_Paper_background-color", "ADialog_background-color", "ADialog_border", "ADialog_Action_background-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_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_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_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", "AFileBox_border", "AFileBox_background-color", "AFileBox_SelectedFile_color", "AFileBox_Dropping_color", "AListView_border-top", "AListView_Row_border-bottom", "AListView_Label_border-left", "AListView_Rendered_border-left", "AListView_Rendered_border-right", "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_hover_border", "ADatePicker_Anchor_focus_border", "ADatePicker_Anchor_Icon_Primary_color", "ADatePicker_Anchor_Icon_Secondary_color", "ADatePicker_background-color", "ADatePicker_border", "ADatePicker_StringInputContainer_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_hover_border", "ADateRangePicker_Anchor_focus_border", "ADateRangePicker_Anchor_Icon_Primary_color", "ADateRangePicker_Anchor_Icon_Secondary_color", "ADateRangePicker_background-color", "ADateRangePicker_border", "ADateRangePicker_StringInputContainer_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_background-color", "AIconButton_Primary_border", "AIconButton_Primary_hover_border", "ATableBody_TRow_border-bottom", "ATableBody_TRow_IsSelected_background-color", "ATableBody_TRow_IsSelectable_hover_background-color", "ATableBody_TH_color", "ATableBody_TD_IsMarked_background-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", "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"];
|
116
128
|
export type TComponentStyleKeys = (typeof ComponentStyleKeys)[number];
|
117
129
|
export type TComponentStyle = {
|
118
130
|
[key in TComponentStyleKeys]: string;
|
@@ -120,7 +132,13 @@ export type TComponentStyle = {
|
|
120
132
|
export type TComponentHardStyle = {
|
121
133
|
[key in keyof TComponentStyle]: TSemanticKeys;
|
122
134
|
};
|
135
|
+
/**
|
136
|
+
* getComponentStyleValue : (key: TComponentStyleKeys, isDeep?: boolean) => string
|
137
|
+
*
|
138
|
+
* Description : get the value of the componentStyle with semantic names.
|
139
|
+
*/
|
123
140
|
declare function getComponentStyleValue(key: TComponentStyleKeys): string;
|
141
|
+
declare function getComponentStyleDeepValue(key: TComponentStyleKeys): string;
|
124
142
|
/**
|
125
143
|
* editComponentStyle : (theme: Partial<TComponentStyle>) => void
|
126
144
|
*
|
@@ -163,20 +181,25 @@ declare function init({ semanticMode, save, followDeviceSetting }: IInitParams):
|
|
163
181
|
type TAThemeEvent = IPaletteModeChangeEvent | ISemanticModeChangeEvent;
|
164
182
|
declare function addEventListener<T extends TAThemeEvent>(param: T): void;
|
165
183
|
declare function removeEventListener<T extends TAThemeEvent>(param: T): void;
|
184
|
+
declare function getDeepValue(key: TPaletteKeys | TSemanticKeys | TComponentStyleKeys): string;
|
166
185
|
export declare const AThemes: {
|
167
186
|
getCurrentPaletteMode: typeof getCurrentPaletteMode;
|
168
187
|
getPaletteValue: typeof getPaletteValue;
|
188
|
+
getPaletteDeepValue: typeof getPaletteDeepValue;
|
169
189
|
changePaletteMode: typeof changePaletteMode;
|
170
190
|
editPalette: typeof editPalette;
|
171
191
|
getCurrentSemanticMode: typeof getCurrentSemanticMode;
|
172
192
|
getSemanticValue: typeof getSemanticValue;
|
193
|
+
getSemanticDeepValue: typeof getSemanticDeepValue;
|
173
194
|
changeSemanticMode: typeof changeSemanticMode;
|
174
195
|
editSemantic: typeof editSemantic;
|
175
196
|
getComponentStyleValue: typeof getComponentStyleValue;
|
197
|
+
getComponentStyleDeepValue: typeof getComponentStyleDeepValue;
|
176
198
|
editComponentStyle: typeof editComponentStyle;
|
177
199
|
editComponentStyleWithSemantic: typeof editComponentStyleWithSemantic;
|
178
200
|
init: typeof init;
|
179
201
|
addEventListener: typeof addEventListener;
|
180
202
|
removeEventListener: typeof removeEventListener;
|
203
|
+
getDeepValue: typeof getDeepValue;
|
181
204
|
};
|
182
205
|
export {};
|