@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.
Files changed (57) hide show
  1. package/api-services/modules/authentication/es5.js +1088 -1079
  2. package/api-services/modules/authentication/index.js +897 -883
  3. package/api-services/modules/authentication/index.js.gz +0 -0
  4. package/api-services/modules/bems/es5.js +1118 -1106
  5. package/api-services/modules/bems/index.js +923 -905
  6. package/api-services/modules/bems/index.js.gz +0 -0
  7. package/api-services/modules/contract/es5.js +1088 -1079
  8. package/api-services/modules/contract/index.js +897 -883
  9. package/api-services/modules/contract/index.js.gz +0 -0
  10. package/api-services/modules/duty-manage/es5.js +1048 -1058
  11. package/api-services/modules/duty-manage/index.js +858 -872
  12. package/api-services/modules/duty-manage/index.js.gz +0 -0
  13. package/api-services/modules/es5.js +976 -973
  14. package/api-services/modules/index.js +733 -729
  15. package/api-services/modules/index.js.gz +0 -0
  16. package/api-services/modules/iot/es5.js +868 -871
  17. package/api-services/modules/iot/index.js +681 -685
  18. package/api-services/modules/iot/index.js.gz +0 -0
  19. package/api-services/modules/justauth/es5.js +1104 -1116
  20. package/api-services/modules/justauth/index.js +903 -921
  21. package/api-services/modules/justauth/index.js.gz +0 -0
  22. package/api-services/modules/knowledge/es5.js +1114 -1102
  23. package/api-services/modules/knowledge/index.js +920 -902
  24. package/api-services/modules/knowledge/index.js.gz +0 -0
  25. package/api-services/modules/link/es5.js +1102 -1114
  26. package/api-services/modules/link/index.js +902 -920
  27. package/api-services/modules/link/index.js.gz +0 -0
  28. package/api-services/modules/permission/es5.js +849 -852
  29. package/api-services/modules/permission/index.js +661 -665
  30. package/api-services/modules/permission/index.js.gz +0 -0
  31. package/api-services/modules/supplier/es5.js +1093 -1081
  32. package/api-services/modules/supplier/index.js +901 -883
  33. package/api-services/modules/supplier/index.js.gz +0 -0
  34. package/api-services/modules/systemConfiguration/es5.js +815 -817
  35. package/api-services/modules/systemConfiguration/index.js +636 -640
  36. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  37. package/api-services/modules/tool/es5.js +1102 -1114
  38. package/api-services/modules/tool/index.js +902 -920
  39. package/api-services/modules/tool/index.js.gz +0 -0
  40. package/common-info/getPermissionMethod/es5.js +856 -859
  41. package/common-info/getPermissionMethod/index.js +665 -669
  42. package/common-info/getPermissionMethod/index.js.gz +0 -0
  43. package/common-tools/timezone-format/es5.js +315 -283
  44. package/common-tools/timezone-format/index.js +262 -204
  45. package/common-tools/timezone-format/index.js.gz +0 -0
  46. package/create-api-service/es5.js +1078 -1090
  47. package/create-api-service/index.js +887 -905
  48. package/create-api-service/index.js.gz +0 -0
  49. package/esm-map.json +13 -0
  50. package/package.json +3 -3
  51. package/theme/bridge.d.ts +42 -0
  52. package/theme/es5.d.ts +8 -41
  53. package/theme/es5.js +799 -489
  54. package/theme/index.d.ts +8 -41
  55. package/theme/index.js +537 -390
  56. package/theme/index.js.gz +0 -0
  57. 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;