@das-fed/upf-utils 6.4.0-dev.248 → 6.4.0-dev.249
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/api-services/modules/authentication/es5.js +1088 -1079
- package/api-services/modules/authentication/index.js +897 -883
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +1118 -1106
- package/api-services/modules/bems/index.js +923 -905
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +1088 -1079
- package/api-services/modules/contract/index.js +897 -883
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1048 -1058
- package/api-services/modules/duty-manage/index.js +858 -872
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/es5.js +976 -973
- package/api-services/modules/index.js +733 -729
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +868 -871
- package/api-services/modules/iot/index.js +681 -685
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1104 -1116
- package/api-services/modules/justauth/index.js +903 -921
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +1114 -1102
- package/api-services/modules/knowledge/index.js +920 -902
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +1102 -1114
- package/api-services/modules/link/index.js +902 -920
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +849 -852
- package/api-services/modules/permission/index.js +661 -665
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +1093 -1081
- package/api-services/modules/supplier/index.js +901 -883
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +815 -817
- package/api-services/modules/systemConfiguration/index.js +636 -640
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +1102 -1114
- package/api-services/modules/tool/index.js +902 -920
- package/api-services/modules/tool/index.js.gz +0 -0
- package/common-info/getPermissionMethod/es5.js +856 -859
- package/common-info/getPermissionMethod/index.js +665 -669
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-tools/timezone-format/es5.js +315 -283
- package/common-tools/timezone-format/index.js +262 -204
- package/common-tools/timezone-format/index.js.gz +0 -0
- package/create-api-service/es5.js +1078 -1090
- package/create-api-service/index.js +887 -905
- package/create-api-service/index.js.gz +0 -0
- package/esm-map.json +13 -0
- package/package.json +3 -3
- package/theme/bridge.d.ts +42 -0
- package/theme/es5.d.ts +8 -41
- package/theme/es5.js +799 -489
- package/theme/index.d.ts +8 -41
- package/theme/index.js +537 -390
- package/theme/index.js.gz +0 -0
- package/theme/source-variables.d.ts +35 -0
package/theme/index.js.gz
CHANGED
|
Binary file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type BuiltinPresetThemeName = 'default' | 'cjb' | 'ssl' | 'dkh';
|
|
2
|
+
export type ThemeMode = 'light' | 'dark';
|
|
3
|
+
export type ThemeSourceVariableName = '--upf-brand-primary' | '--upf-brand-secondary' | '--upf-color-primary' | '--upf-color-primary-bg' | '--upf-color-success' | '--upf-color-warning' | '--upf-color-error' | '--upf-color-info' | '--upf-text-primary' | '--upf-text-secondary' | '--upf-text-disabled' | '--upf-text-placeholder' | '--upf-bg-primary' | '--upf-bg-secondary' | '--upf-bg-elevated' | '--upf-bg-mask' | '--upf-border-color' | '--upf-divider-color' | '--upf-nav-bg' | '--upf-nav-border-color' | '--upf-nav-text' | '--upf-nav-hover-bg' | '--upf-nav-active-bg' | '--upf-nav-active-text' | '--upf-menu-bg' | '--upf-menu-text' | '--upf-menu-hover-bg' | '--upf-menu-active-bg' | '--upf-menu-active-text' | '--upf-menu-submenu-bg' | '--upf-tab-bg' | '--upf-tab-text' | '--upf-tab-hover-bg' | '--upf-tab-active-bg' | '--upf-tab-active-text' | '--upf-border-radius' | '--upf-box-shadow' | '--upf-box-shadow-elevated';
|
|
4
|
+
export type ThemeVariables = Record<ThemeSourceVariableName, string>;
|
|
5
|
+
export type PartialThemeVariables = Partial<Record<ThemeSourceVariableName, string>>;
|
|
6
|
+
export type ThemeVariableCategoryGroupKey = 'foundation' | 'shell';
|
|
7
|
+
export interface ThemeVariableCategory {
|
|
8
|
+
group: ThemeVariableCategoryGroupKey;
|
|
9
|
+
name: string;
|
|
10
|
+
displayName: string;
|
|
11
|
+
shortDisplayName?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
variables: ThemeSourceVariableName[];
|
|
14
|
+
}
|
|
15
|
+
export interface ThemeSourceVariableMeta {
|
|
16
|
+
name: ThemeSourceVariableName;
|
|
17
|
+
label: string;
|
|
18
|
+
hint: string;
|
|
19
|
+
category: ThemeVariableCategory['name'];
|
|
20
|
+
fallback?: ThemeSourceVariableName | readonly ThemeSourceVariableName[] | ((variables: Record<string, string>) => string);
|
|
21
|
+
fallbackDeps?: readonly ThemeSourceVariableName[];
|
|
22
|
+
}
|
|
23
|
+
export declare const THEME_SOURCE_VARIABLE_CATEGORIES: ThemeVariableCategory[];
|
|
24
|
+
export declare const THEME_SOURCE_VARIABLE_META: readonly ThemeSourceVariableMeta[];
|
|
25
|
+
export declare const THEME_SOURCE_VARIABLE_NAMES: ThemeSourceVariableName[];
|
|
26
|
+
export declare const THEME_SOURCE_VARIABLE_LABELS: Record<ThemeSourceVariableName, string>;
|
|
27
|
+
export declare const THEME_SOURCE_VARIABLE_HINTS: Record<ThemeSourceVariableName, string>;
|
|
28
|
+
export declare const THEME_SOURCE_VARIABLE_RELATIONS: Partial<Record<ThemeSourceVariableName, ThemeSourceVariableName>>;
|
|
29
|
+
export declare const PRESET_THEME_VARIABLES: Record<BuiltinPresetThemeName, ThemeVariables>;
|
|
30
|
+
export declare const getThemeSourceVariableNames: () => ThemeSourceVariableName[];
|
|
31
|
+
export declare const getThemeSourceVariableLabels: () => Record<ThemeSourceVariableName, string>;
|
|
32
|
+
export declare const getThemeSourceVariableHints: () => Record<ThemeSourceVariableName, string>;
|
|
33
|
+
export declare const getThemeSourceVariableCategories: () => ThemeVariableCategory[];
|
|
34
|
+
export declare const getThemeSourceVariableRelations: () => Partial<Record<ThemeSourceVariableName, ThemeSourceVariableName>>;
|
|
35
|
+
export declare const normalizeThemeSourceVariables: (partialVariables: Record<string, string | number | undefined> | undefined, fallbackVariables?: Record<string, string | number | undefined>) => ThemeVariables;
|