@edsis/angular 21.1.4 → 21.1.31

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 (150) hide show
  1. package/.npmignore +2 -0
  2. package/README.md +123 -88
  3. package/brand/etos/README.md +273 -0
  4. package/brand/etos/package.json +4 -0
  5. package/chart/README.md +0 -0
  6. package/chart/package.json +4 -0
  7. package/collection.json +30 -0
  8. package/component/package.json +4 -0
  9. package/etos/styles/color.css +73 -0
  10. package/etos/styles/index.css +7 -0
  11. package/etos/styles/layout.css +21 -0
  12. package/etos/styles/package.css +15 -0
  13. package/etos/styles/style.css +53 -0
  14. package/fesm2022/ojiepermana-angular-brand-etos.mjs +1060 -0
  15. package/fesm2022/ojiepermana-angular-brand-etos.mjs.map +1 -0
  16. package/fesm2022/ojiepermana-angular-chart.mjs +3714 -0
  17. package/fesm2022/ojiepermana-angular-chart.mjs.map +1 -0
  18. package/fesm2022/ojiepermana-angular-component.mjs +4851 -0
  19. package/fesm2022/ojiepermana-angular-component.mjs.map +1 -0
  20. package/fesm2022/ojiepermana-angular-generator-api.mjs +67 -0
  21. package/fesm2022/ojiepermana-angular-generator-api.mjs.map +1 -0
  22. package/fesm2022/ojiepermana-angular-layout.mjs +457 -0
  23. package/fesm2022/ojiepermana-angular-layout.mjs.map +1 -0
  24. package/fesm2022/ojiepermana-angular-navigation.mjs +2369 -0
  25. package/fesm2022/ojiepermana-angular-navigation.mjs.map +1 -0
  26. package/fesm2022/ojiepermana-angular-theme.mjs +407 -0
  27. package/fesm2022/ojiepermana-angular-theme.mjs.map +1 -0
  28. package/fesm2022/ojiepermana-angular.mjs +22 -0
  29. package/fesm2022/ojiepermana-angular.mjs.map +1 -0
  30. package/generator/api/README.md +246 -0
  31. package/generator/api/bin/package.json +3 -0
  32. package/generator/api/bin/schematics/init/index.js +88 -0
  33. package/generator/api/bin/schematics/ng-add/index.js +108 -0
  34. package/generator/api/bin/schematics/sdk/index.js +76 -0
  35. package/generator/api/bin/src/config/loader.js +41 -0
  36. package/generator/api/bin/src/config/schema.js +56 -0
  37. package/generator/api/bin/src/emit/client.js +246 -0
  38. package/generator/api/bin/src/emit/metadata.js +295 -0
  39. package/generator/api/bin/src/emit/models.js +106 -0
  40. package/generator/api/bin/src/emit/navigation.js +56 -0
  41. package/generator/api/bin/src/emit/operations.js +122 -0
  42. package/generator/api/bin/src/emit/public-api.js +54 -0
  43. package/generator/api/bin/src/emit/services.js +87 -0
  44. package/generator/api/bin/src/engine.js +65 -0
  45. package/generator/api/bin/src/layout/per-domain.js +355 -0
  46. package/generator/api/bin/src/parser/bundle.js +25 -0
  47. package/generator/api/bin/src/parser/ir.js +320 -0
  48. package/generator/api/bin/src/parser/types.js +7 -0
  49. package/generator/api/bin/src/render/template.js +58 -0
  50. package/generator/api/bin/src/writer/index.js +236 -0
  51. package/generator/api/package.json +4 -0
  52. package/generator/api/schematics/init/schema.json +19 -0
  53. package/generator/api/schematics/ng-add/schema.json +14 -0
  54. package/generator/api/schematics/sdk/schema.json +19 -0
  55. package/generator/api/sdk.config.example.json +22 -0
  56. package/generator/guide/README.md +84 -0
  57. package/generator/guide/bin/package.json +3 -0
  58. package/generator/guide/bin/schematics/build/index.js +35 -0
  59. package/generator/guide/bin/schematics/init/index.js +70 -0
  60. package/generator/guide/bin/src/config/loader.js +50 -0
  61. package/generator/guide/bin/src/config/schema.js +12 -0
  62. package/generator/guide/bin/src/engine/component.js +74 -0
  63. package/generator/guide/bin/src/engine/frontmatter.js +42 -0
  64. package/generator/guide/bin/src/engine/index.js +42 -0
  65. package/generator/guide/bin/src/engine/naming.js +39 -0
  66. package/generator/guide/bin/src/engine/render.js +31 -0
  67. package/generator/guide/bin/src/engine/routes.js +106 -0
  68. package/generator/guide/bin/src/engine/walk.js +35 -0
  69. package/generator/guide/guide.config.example.json +9 -0
  70. package/generator/guide/schematics/build/schema.json +14 -0
  71. package/generator/guide/schematics/init/schema.json +19 -0
  72. package/layout/package.json +4 -0
  73. package/navigation/package.json +4 -0
  74. package/package.json +102 -39
  75. package/theme/package.json +4 -0
  76. package/theme/styles/etos.css +6 -0
  77. package/theme/styles/index.css +32 -0
  78. package/theme/styles/themes/library/_components.css +81 -0
  79. package/theme/styles/themes/library/_layers.css +15 -0
  80. package/theme/styles/themes/library/_material-overrides.css +254 -0
  81. package/theme/styles/themes/library/_tokens.css +55 -0
  82. package/theme/styles/themes/library/color/amber.css +31 -0
  83. package/theme/styles/themes/library/color/base.css +36 -0
  84. package/theme/styles/themes/library/color/blue.css +31 -0
  85. package/theme/styles/themes/library/color/cyan.css +31 -0
  86. package/theme/styles/themes/library/color/emerald.css +31 -0
  87. package/theme/styles/themes/library/color/fuchsia.css +31 -0
  88. package/theme/styles/themes/library/color/green.css +31 -0
  89. package/theme/styles/themes/library/color/index.css +22 -0
  90. package/theme/styles/themes/library/color/indigo.css +31 -0
  91. package/theme/styles/themes/library/color/lime.css +31 -0
  92. package/theme/styles/themes/library/color/orange.css +31 -0
  93. package/theme/styles/themes/library/color/pink.css +31 -0
  94. package/theme/styles/themes/library/color/purple.css +31 -0
  95. package/theme/styles/themes/library/color/red.css +31 -0
  96. package/theme/styles/themes/library/color/rose.css +31 -0
  97. package/theme/styles/themes/library/color/sky.css +31 -0
  98. package/theme/styles/themes/library/color/teal.css +31 -0
  99. package/theme/styles/themes/library/color/violet.css +31 -0
  100. package/theme/styles/themes/library/color/yellow.css +31 -0
  101. package/theme/styles/themes/library/style/brutal.css +50 -0
  102. package/theme/styles/themes/library/style/default.css +54 -0
  103. package/theme/styles/themes/library/style/index.css +8 -0
  104. package/theme/styles/themes/library/style/sharp.css +50 -0
  105. package/theme/styles/themes/library/style/soft.css +50 -0
  106. package/theme/styles/themes/mode/dark.css +20 -0
  107. package/theme/styles/themes/mode/index.css +6 -0
  108. package/theme/styles/themes/mode/light.css +24 -0
  109. package/theme/styles/themes/tailwind.css +114 -0
  110. package/types/ojiepermana-angular-brand-etos.d.ts +162 -0
  111. package/types/ojiepermana-angular-chart.d.ts +1094 -0
  112. package/types/ojiepermana-angular-component.d.ts +1632 -0
  113. package/types/ojiepermana-angular-generator-api.d.ts +85 -0
  114. package/types/ojiepermana-angular-layout.d.ts +163 -0
  115. package/types/ojiepermana-angular-navigation.d.ts +393 -0
  116. package/types/ojiepermana-angular-theme.d.ts +171 -0
  117. package/types/ojiepermana-angular.d.ts +3 -0
  118. package/fesm2022/edsis-angular-auth.mjs +0 -1209
  119. package/fesm2022/edsis-angular-auth.mjs.map +0 -1
  120. package/fesm2022/edsis-angular-sdk-access.mjs +0 -1364
  121. package/fesm2022/edsis-angular-sdk-access.mjs.map +0 -1
  122. package/fesm2022/edsis-angular-sdk-approval.mjs +0 -1258
  123. package/fesm2022/edsis-angular-sdk-approval.mjs.map +0 -1
  124. package/fesm2022/edsis-angular-sdk-auth.mjs +0 -253
  125. package/fesm2022/edsis-angular-sdk-auth.mjs.map +0 -1
  126. package/fesm2022/edsis-angular-sdk-employee.mjs +0 -283
  127. package/fesm2022/edsis-angular-sdk-employee.mjs.map +0 -1
  128. package/fesm2022/edsis-angular-sdk-health.mjs +0 -95
  129. package/fesm2022/edsis-angular-sdk-health.mjs.map +0 -1
  130. package/fesm2022/edsis-angular-sdk-shared.mjs +0 -2740
  131. package/fesm2022/edsis-angular-sdk-shared.mjs.map +0 -1
  132. package/fesm2022/edsis-angular-sdk-storage.mjs +0 -287
  133. package/fesm2022/edsis-angular-sdk-storage.mjs.map +0 -1
  134. package/fesm2022/edsis-angular-sdk-user.mjs +0 -488
  135. package/fesm2022/edsis-angular-sdk-user.mjs.map +0 -1
  136. package/fesm2022/edsis-angular-sdk.mjs +0 -6730
  137. package/fesm2022/edsis-angular-sdk.mjs.map +0 -1
  138. package/fesm2022/edsis-angular.mjs +0 -8
  139. package/fesm2022/edsis-angular.mjs.map +0 -1
  140. package/types/edsis-angular-auth.d.ts +0 -119
  141. package/types/edsis-angular-sdk-access.d.ts +0 -546
  142. package/types/edsis-angular-sdk-approval.d.ts +0 -637
  143. package/types/edsis-angular-sdk-auth.d.ts +0 -127
  144. package/types/edsis-angular-sdk-employee.d.ts +0 -158
  145. package/types/edsis-angular-sdk-health.d.ts +0 -34
  146. package/types/edsis-angular-sdk-shared.d.ts +0 -176
  147. package/types/edsis-angular-sdk-storage.d.ts +0 -101
  148. package/types/edsis-angular-sdk-user.d.ts +0 -188
  149. package/types/edsis-angular-sdk.d.ts +0 -1927
  150. package/types/edsis-angular.d.ts +0 -2
@@ -0,0 +1,50 @@
1
+ @layer tokens {
2
+ [data-style='brutal'] {
3
+ --theme-radius-xs: 0;
4
+ --theme-radius-base: 0;
5
+ --theme-radius-sm: 0;
6
+ --theme-radius-md: 0;
7
+ --theme-radius-lg: 0;
8
+
9
+ --radius: var(--theme-radius-md);
10
+ --radius-xs: var(--theme-radius-xs);
11
+ --radius-sm: 0;
12
+ --radius-md: 0;
13
+ --radius-lg: 0;
14
+
15
+ --border-width: 2px;
16
+
17
+ --theme-shadow-sm: 2px 2px 0 0 hsl(var(--foreground));
18
+ --theme-shadow: 4px 4px 0 0 hsl(var(--foreground));
19
+ --theme-shadow-md: 6px 6px 0 0 hsl(var(--foreground));
20
+ --theme-shadow-lg: 8px 8px 0 0 hsl(var(--foreground));
21
+
22
+ --shadow-sm: var(--theme-shadow-sm);
23
+ --shadow: var(--theme-shadow);
24
+ --shadow-md: var(--theme-shadow-md);
25
+ --shadow-lg: var(--theme-shadow-lg);
26
+
27
+ --theme-font-sans: 'JetBrains Mono', 'Courier New', monospace;
28
+ --theme-font-mono: 'JetBrains Mono', 'Courier New', monospace;
29
+
30
+ --font-sans: var(--theme-font-sans);
31
+ --font-mono: var(--theme-font-mono);
32
+ --font-weight-bold: 700;
33
+ --theme-text-scale: 1.08;
34
+ --nav-font-family: var(--font-sans);
35
+ --nav-text-size: calc(var(--text-base) - 0.125rem);
36
+ --nav-text-line-height: var(--text-base--line-height);
37
+ --nav-heading-font-family: var(--font-mono);
38
+ --nav-heading-size: var(--text-sm);
39
+ --nav-heading-line-height: var(--text-sm--line-height);
40
+ --nav-heading-weight: 700;
41
+ --nav-heading-letter-spacing: 0.18em;
42
+ --nav-badge-font-family: var(--font-mono);
43
+ --nav-badge-size: var(--text-sm);
44
+ --nav-badge-line-height: var(--text-sm--line-height);
45
+ --nav-badge-weight: 700;
46
+ --letter-spacing: -0.01em;
47
+ --space-unit: 0.25rem;
48
+ --layout-topbar-height: 3.5rem;
49
+ }
50
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Default is the baseline style layer.
3
+ */
4
+ @layer tokens {
5
+ :root,
6
+ [data-style='default'] {
7
+ --theme-radius-xs: 0.125rem;
8
+ --theme-radius-base: 0.5rem;
9
+ --theme-radius-sm: calc(var(--theme-radius-base) - 2px);
10
+ --theme-radius-md: var(--theme-radius-base);
11
+ --theme-radius-lg: calc(var(--theme-radius-base) + 4px);
12
+
13
+ --radius: var(--theme-radius-md);
14
+ --radius-xs: var(--theme-radius-xs);
15
+ --radius-sm: var(--theme-radius-sm);
16
+ --radius-md: var(--theme-radius-md);
17
+ --radius-lg: var(--theme-radius-lg);
18
+
19
+ --border-width: 1px;
20
+
21
+ --theme-shadow-sm: 0 1px 2px 0 hsl(0 0% 0% / 0.05);
22
+ --theme-shadow: 0 1px 3px 0 hsl(0 0% 0% / 0.1);
23
+ --theme-shadow-md: 0 4px 6px -1px hsl(0 0% 0% / 0.1);
24
+ --theme-shadow-lg: 0 10px 15px -3px hsl(0 0% 0% / 0.1);
25
+
26
+ --shadow-sm: var(--theme-shadow-sm);
27
+ --shadow: var(--theme-shadow);
28
+ --shadow-md: var(--theme-shadow-md);
29
+ --shadow-lg: var(--theme-shadow-lg);
30
+
31
+ --theme-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
32
+ --theme-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
33
+
34
+ --font-sans: var(--theme-font-sans);
35
+ --font-mono: var(--theme-font-mono);
36
+ --font-weight-bold: 600;
37
+ --theme-text-scale: 1;
38
+ --nav-font-family: var(--font-sans);
39
+ --nav-text-size: calc(var(--text-base) - 0.125rem);
40
+ --nav-text-line-height: var(--text-base--line-height);
41
+ --nav-heading-font-family: var(--font-sans);
42
+ --nav-heading-size: var(--text-sm);
43
+ --nav-heading-line-height: var(--text-sm--line-height);
44
+ --nav-heading-weight: 600;
45
+ --nav-heading-letter-spacing: 0.12em;
46
+ --nav-badge-font-family: var(--font-sans);
47
+ --nav-badge-size: var(--text-sm);
48
+ --nav-badge-line-height: var(--text-sm--line-height);
49
+ --nav-badge-weight: 500;
50
+ --letter-spacing: 0;
51
+ --space-unit: 0.25rem;
52
+ --layout-topbar-height: 3rem;
53
+ }
54
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Layer 3: style.
3
+ * Imports every style variant in a stable order.
4
+ */
5
+ @import './default.css';
6
+ @import './sharp.css';
7
+ @import './brutal.css';
8
+ @import './soft.css';
@@ -0,0 +1,50 @@
1
+ @layer tokens {
2
+ [data-style='sharp'] {
3
+ --theme-radius-xs: 0;
4
+ --theme-radius-base: 0;
5
+ --theme-radius-sm: 0;
6
+ --theme-radius-md: 0;
7
+ --theme-radius-lg: 0;
8
+
9
+ --radius: var(--theme-radius-md);
10
+ --radius-xs: var(--theme-radius-xs);
11
+ --radius-sm: 0;
12
+ --radius-md: 0;
13
+ --radius-lg: 0;
14
+
15
+ --border-width: 1px;
16
+
17
+ --theme-shadow-sm: none;
18
+ --theme-shadow: none;
19
+ --theme-shadow-md: none;
20
+ --theme-shadow-lg: none;
21
+
22
+ --shadow-sm: none;
23
+ --shadow: none;
24
+ --shadow-md: none;
25
+ --shadow-lg: none;
26
+
27
+ --theme-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
28
+ --theme-font-mono: 'JetBrains Mono', monospace;
29
+
30
+ --font-sans: var(--theme-font-sans);
31
+ --font-mono: var(--theme-font-mono);
32
+ --font-weight-bold: 600;
33
+ --theme-text-scale: 0.98;
34
+ --nav-font-family: var(--font-sans);
35
+ --nav-text-size: calc(var(--text-base) - 0.125rem);
36
+ --nav-text-line-height: var(--text-base--line-height);
37
+ --nav-heading-font-family: var(--font-sans);
38
+ --nav-heading-size: calc(var(--text-sm) * 0.94);
39
+ --nav-heading-line-height: 1.35;
40
+ --nav-heading-weight: 600;
41
+ --nav-heading-letter-spacing: 0.16em;
42
+ --nav-badge-font-family: var(--font-sans);
43
+ --nav-badge-size: calc(var(--text-sm) * 0.94);
44
+ --nav-badge-line-height: 1.35;
45
+ --nav-badge-weight: 500;
46
+ --letter-spacing: 0;
47
+ --space-unit: 0.25rem;
48
+ --layout-topbar-height: 3rem;
49
+ }
50
+ }
@@ -0,0 +1,50 @@
1
+ @layer tokens {
2
+ [data-style='soft'] {
3
+ --theme-radius-xs: 0.25rem;
4
+ --theme-radius-base: 1rem;
5
+ --theme-radius-sm: calc(var(--theme-radius-base) - 4px);
6
+ --theme-radius-md: var(--theme-radius-base);
7
+ --theme-radius-lg: calc(var(--theme-radius-base) + 6px);
8
+
9
+ --radius: var(--theme-radius-md);
10
+ --radius-xs: var(--theme-radius-xs);
11
+ --radius-sm: var(--theme-radius-sm);
12
+ --radius-md: var(--theme-radius-md);
13
+ --radius-lg: var(--theme-radius-lg);
14
+
15
+ --border-width: 1px;
16
+
17
+ --theme-shadow-sm: 0 2px 8px hsl(0 0% 0% / 0.04);
18
+ --theme-shadow: 0 4px 14px hsl(0 0% 0% / 0.08);
19
+ --theme-shadow-md: 0 8px 24px hsl(0 0% 0% / 0.1);
20
+ --theme-shadow-lg: 0 16px 40px hsl(0 0% 0% / 0.12);
21
+
22
+ --shadow-sm: var(--theme-shadow-sm);
23
+ --shadow: var(--theme-shadow);
24
+ --shadow-md: var(--theme-shadow-md);
25
+ --shadow-lg: var(--theme-shadow-lg);
26
+
27
+ --theme-font-sans: 'Quicksand', 'Nunito', system-ui, sans-serif;
28
+ --theme-font-mono: 'Fira Code', monospace;
29
+
30
+ --font-sans: var(--theme-font-sans);
31
+ --font-mono: var(--theme-font-mono);
32
+ --font-weight-bold: 600;
33
+ --theme-text-scale: 1.05;
34
+ --nav-font-family: var(--font-sans);
35
+ --nav-text-size: calc(var(--text-base) - 0.125rem);
36
+ --nav-text-line-height: var(--text-base--line-height);
37
+ --nav-heading-font-family: var(--font-sans);
38
+ --nav-heading-size: var(--text-sm);
39
+ --nav-heading-line-height: var(--text-sm--line-height);
40
+ --nav-heading-weight: 700;
41
+ --nav-heading-letter-spacing: 0.08em;
42
+ --nav-badge-font-family: var(--font-sans);
43
+ --nav-badge-size: var(--text-sm);
44
+ --nav-badge-line-height: var(--text-sm--line-height);
45
+ --nav-badge-weight: 600;
46
+ --letter-spacing: 0;
47
+ --space-unit: 0.25rem;
48
+ --layout-topbar-height: 3.5rem;
49
+ }
50
+ }
@@ -0,0 +1,20 @@
1
+ @layer tokens {
2
+ [data-mode='dark'] {
3
+ color-scheme: dark;
4
+
5
+ --background: 240 10% 3.9%;
6
+ --foreground: 0 0% 98%;
7
+
8
+ --card: 240 10% 3.9%;
9
+ --card-foreground: 0 0% 98%;
10
+
11
+ --popover: 240 10% 3.9%;
12
+ --popover-foreground: 0 0% 98%;
13
+
14
+ --muted: 240 3.7% 15.9%;
15
+ --muted-foreground: 240 5% 64.9%;
16
+
17
+ --border: 240 3.7% 15.9%;
18
+ --input: 240 3.7% 15.9%;
19
+ }
20
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Layer 1: mode.
3
+ * Imports every mode variant in a stable order.
4
+ */
5
+ @import './light.css';
6
+ @import './dark.css';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Light is the default mode layer.
3
+ */
4
+ @layer tokens {
5
+ :root,
6
+ [data-mode='light'] {
7
+ color-scheme: light;
8
+
9
+ --background: 0 0% 100%;
10
+ --foreground: 240 10% 3.9%;
11
+
12
+ --card: 0 0% 100%;
13
+ --card-foreground: 240 10% 3.9%;
14
+
15
+ --popover: 0 0% 100%;
16
+ --popover-foreground: 240 10% 3.9%;
17
+
18
+ --muted: 240 4.8% 95.9%;
19
+ --muted-foreground: 240 3.8% 46.1%;
20
+
21
+ --border: 240 5.9% 90%;
22
+ --input: 240 5.9% 90%;
23
+ }
24
+ }
@@ -0,0 +1,114 @@
1
+ /**
2
+ * Tailwind v4 theme mapping for @edsis/angular/theme.
3
+ *
4
+ * Requires Tailwind CSS ^4.2.0.
5
+ *
6
+ * Usage (styles.css):
7
+ * @import '@edsis/angular/theme/styles';
8
+ * @import 'tailwindcss';
9
+ * @import '@edsis/angular/theme/tailwind/theme.css';
10
+ *
11
+ * Maps the 3-layer HSL CSS variables onto Tailwind v4 design tokens so
12
+ * utilities like `bg-primary`, `text-foreground`, `rounded-md`, and
13
+ * `shadow-lg` resolve to the active theme automatically.
14
+ */
15
+ @custom-variant dark (&:where([data-mode='dark'], [data-mode='dark'] *, .dark, .dark *));
16
+
17
+ @theme inline {
18
+ --color-brand: hsl(var(--brand) / 0.7);
19
+ --color-border: hsl(var(--border));
20
+ --color-input: hsl(var(--input));
21
+ --color-ring: hsl(var(--ring));
22
+ --color-background: hsl(var(--background));
23
+ --color-surface: hsl(var(--surface, var(--muted)));
24
+ --color-surface-foreground: hsl(var(--surface-foreground, var(--foreground)));
25
+ --color-foreground: hsl(var(--foreground));
26
+
27
+ --color-primary: hsl(var(--primary));
28
+ --color-primary-foreground: hsl(var(--primary-foreground));
29
+
30
+ --color-secondary: hsl(var(--secondary));
31
+ --color-secondary-foreground: hsl(var(--secondary-foreground));
32
+
33
+ --color-destructive: hsl(var(--destructive));
34
+ --color-destructive-foreground: hsl(var(--destructive-foreground));
35
+
36
+ --color-success: hsl(var(--success));
37
+ --color-success-foreground: hsl(var(--success-foreground));
38
+
39
+ --color-warning: hsl(var(--warning));
40
+ --color-warning-foreground: hsl(var(--warning-foreground));
41
+
42
+ --color-info: hsl(var(--info));
43
+ --color-info-foreground: hsl(var(--info-foreground));
44
+
45
+ --color-muted: hsl(var(--muted));
46
+ --color-muted-foreground: hsl(var(--muted-foreground));
47
+
48
+ --color-accent: hsl(var(--accent));
49
+ --color-accent-foreground: hsl(var(--accent-foreground));
50
+
51
+ --color-popover: hsl(var(--popover));
52
+ --color-popover-foreground: hsl(var(--popover-foreground));
53
+
54
+ --color-card: hsl(var(--card));
55
+ --color-card-foreground: hsl(var(--card-foreground));
56
+
57
+ --color-chart-1: hsl(var(--chart-1));
58
+ --color-chart-2: hsl(var(--chart-2));
59
+ --color-chart-3: hsl(var(--chart-3));
60
+ --color-chart-4: hsl(var(--chart-4));
61
+ --color-chart-5: hsl(var(--chart-5));
62
+
63
+ --color-sidebar: hsl(var(--sidebar-background));
64
+ --color-sidebar-foreground: hsl(var(--sidebar-foreground));
65
+ --color-sidebar-primary: hsl(var(--sidebar-primary));
66
+ --color-sidebar-primary-foreground: hsl(var(--sidebar-primary-foreground));
67
+ --color-sidebar-accent: hsl(var(--sidebar-accent));
68
+ --color-sidebar-accent-foreground: hsl(var(--sidebar-accent-foreground));
69
+ --color-sidebar-border: hsl(var(--sidebar-border));
70
+ --color-sidebar-ring: hsl(var(--sidebar-ring));
71
+
72
+ --radius: var(--theme-radius-md);
73
+ --radius-xs: var(--theme-radius-xs);
74
+ --radius-sm: var(--theme-radius-sm);
75
+ --radius-md: var(--theme-radius-md);
76
+ --radius-lg: var(--theme-radius-lg);
77
+ --radius-xl: calc(var(--theme-radius-lg) + 0.375rem);
78
+
79
+ --shadow-sm: var(--theme-shadow-sm);
80
+ --shadow: var(--theme-shadow);
81
+ --shadow-md: var(--theme-shadow-md);
82
+ --shadow-lg: var(--theme-shadow-lg);
83
+ --shadow-xl: var(--theme-shadow-lg);
84
+
85
+ --text-xs: calc(0.75rem * var(--theme-text-scale));
86
+ --text-xs--line-height: calc(1 / 0.75);
87
+ --text-sm: calc(0.875rem * var(--theme-text-scale));
88
+ --text-sm--line-height: calc(1.25 / 0.875);
89
+ --text-base: calc(1rem * var(--theme-text-scale));
90
+ --text-base--line-height: calc(1.5 / 1);
91
+ --text-lg: calc(1.125rem * var(--theme-text-scale));
92
+ --text-lg--line-height: calc(1.75 / 1.125);
93
+ --text-xl: calc(1.25rem * var(--theme-text-scale));
94
+ --text-xl--line-height: calc(1.75 / 1.25);
95
+ --text-2xl: calc(1.5rem * var(--theme-text-scale));
96
+ --text-2xl--line-height: calc(2 / 1.5);
97
+ --text-3xl: calc(1.875rem * var(--theme-text-scale));
98
+ --text-3xl--line-height: calc(2.25 / 1.875);
99
+ --text-4xl: calc(2.25rem * var(--theme-text-scale));
100
+ --text-4xl--line-height: calc(2.5 / 2.25);
101
+ --text-5xl: calc(3rem * var(--theme-text-scale));
102
+ --text-5xl--line-height: 1;
103
+ --text-6xl: calc(3.75rem * var(--theme-text-scale));
104
+ --text-6xl--line-height: 1;
105
+ --text-7xl: calc(4.5rem * var(--theme-text-scale));
106
+ --text-7xl--line-height: 1;
107
+ --text-8xl: calc(6rem * var(--theme-text-scale));
108
+ --text-8xl--line-height: 1;
109
+ --text-9xl: calc(8rem * var(--theme-text-scale));
110
+ --text-9xl--line-height: 1;
111
+
112
+ --font-sans: var(--theme-font-sans);
113
+ --font-mono: var(--theme-font-mono);
114
+ }
@@ -0,0 +1,162 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { EnvironmentProviders, TemplateRef } from '@angular/core';
3
+ import { MaterialLayoutConfig, LayoutMode, LayoutWidth } from '@edsis/angular/layout';
4
+ import { NavigationItem } from '@edsis/angular/navigation';
5
+ import { MaterialThemeConfig, MaterialThemeFeature, ColorScheme } from '@edsis/angular/theme';
6
+ import { PopoverSide, PopoverAlign } from '@edsis/angular/component';
7
+
8
+ declare const ETOS_BRAND_NAME = "etos";
9
+ declare const ETOS_THEME_CONFIG: {
10
+ mode: "light";
11
+ brand: "etos";
12
+ };
13
+ declare const ETOS_LAYOUT_CONFIG: {
14
+ mode: "vertical";
15
+ };
16
+
17
+ interface EtosBrandOptions {
18
+ readonly theme?: MaterialThemeConfig;
19
+ readonly layout?: MaterialLayoutConfig;
20
+ readonly navigation?: NavigationItem[];
21
+ readonly navigationId?: string;
22
+ readonly materialDefaults?: boolean;
23
+ }
24
+ declare function provideEtosTheme(config?: MaterialThemeConfig, ...features: MaterialThemeFeature[]): EnvironmentProviders;
25
+ declare function provideEtosLayout(config?: MaterialLayoutConfig): EnvironmentProviders;
26
+ declare function provideEtosBrand(options?: EtosBrandOptions): EnvironmentProviders;
27
+
28
+ type EtosThemeSwitcherAction = string;
29
+ interface EtosThemeSwitcherUserInfo {
30
+ readonly name: string;
31
+ readonly subtitle?: string;
32
+ readonly avatarSrc?: string | null;
33
+ readonly avatarAlt?: string;
34
+ }
35
+ interface EtosThemeSwitcherNotificationShortcut {
36
+ readonly value?: EtosThemeSwitcherAction;
37
+ readonly icon?: string;
38
+ readonly ariaLabel?: string;
39
+ }
40
+ type EtosThemeSwitcherActionTone = 'default' | 'destructive';
41
+ interface EtosThemeSwitcherQuickAction {
42
+ readonly value: EtosThemeSwitcherAction;
43
+ readonly label: string;
44
+ readonly icon: string;
45
+ readonly tone?: EtosThemeSwitcherActionTone;
46
+ }
47
+ declare class EtosThemeSwitcherComponent {
48
+ private readonly theme;
49
+ private readonly layout;
50
+ private readonly popoverTrigger;
51
+ readonly class: _angular_core.InputSignal<string>;
52
+ readonly userInfo: _angular_core.InputSignal<EtosThemeSwitcherUserInfo | null>;
53
+ readonly userName: _angular_core.InputSignal<string>;
54
+ readonly userSubtitle: _angular_core.InputSignal<string>;
55
+ readonly avatarSrc: _angular_core.InputSignal<string | null>;
56
+ readonly avatarAlt: _angular_core.InputSignal<string>;
57
+ readonly quickActions: _angular_core.InputSignal<readonly EtosThemeSwitcherQuickAction[]>;
58
+ readonly notificationShortcut: _angular_core.InputSignal<EtosThemeSwitcherNotificationShortcut | null>;
59
+ readonly showNotificationShortcut: _angular_core.InputSignal<boolean>;
60
+ readonly popoverSide: _angular_core.InputSignal<PopoverSide | null>;
61
+ readonly popoverAlign: _angular_core.InputSignal<PopoverAlign | null>;
62
+ readonly popoverSideOffset: _angular_core.InputSignal<number | null>;
63
+ readonly actionSelected: _angular_core.OutputEmitterRef<string>;
64
+ protected readonly themeMode: _angular_core.Signal<"light" | "dark">;
65
+ protected readonly themeScheme: _angular_core.Signal<"light" | "dark" | "system">;
66
+ protected readonly layoutMode: _angular_core.Signal<"vertical" | "horizontal" | "empty">;
67
+ protected readonly layoutWidth: _angular_core.Signal<"full" | "container" | "wide">;
68
+ protected readonly themeSchemeOptions: readonly [{
69
+ readonly value: "light";
70
+ readonly label: "Light";
71
+ readonly icon: "light_mode";
72
+ }, {
73
+ readonly value: "dark";
74
+ readonly label: "Dark";
75
+ readonly icon: "dark_mode";
76
+ }, {
77
+ readonly value: "system";
78
+ readonly label: "System";
79
+ readonly icon: "computer";
80
+ }];
81
+ protected readonly layoutModeOptions: readonly [{
82
+ readonly value: "horizontal";
83
+ readonly label: "Horizontal";
84
+ readonly icon: "view_column";
85
+ }, {
86
+ readonly value: "vertical";
87
+ readonly label: "Vertical";
88
+ readonly icon: "view_sidebar";
89
+ }, {
90
+ readonly value: "empty";
91
+ readonly label: "Empty";
92
+ readonly icon: "crop_square";
93
+ }];
94
+ protected readonly layoutWidthOptions: readonly [{
95
+ readonly value: "full";
96
+ readonly label: "Full";
97
+ readonly icon: "fit_screen";
98
+ }, {
99
+ readonly value: "container";
100
+ readonly label: "Container";
101
+ readonly icon: "center_focus_strong";
102
+ }, {
103
+ readonly value: "wide";
104
+ readonly label: "Wide";
105
+ readonly icon: "width_wide";
106
+ }];
107
+ protected readonly notificationShortcutConfig: _angular_core.Signal<Required<EtosThemeSwitcherNotificationShortcut> | null>;
108
+ protected readonly actionOptions: _angular_core.Signal<readonly EtosThemeSwitcherQuickAction[]>;
109
+ protected readonly hostClasses: _angular_core.Signal<string>;
110
+ protected readonly resolvedPopoverSide: _angular_core.Signal<PopoverSide>;
111
+ protected readonly resolvedPopoverAlign: _angular_core.Signal<PopoverAlign>;
112
+ protected readonly resolvedPopoverSideOffset: _angular_core.Signal<number>;
113
+ protected readonly resolvedUserName: _angular_core.Signal<string>;
114
+ protected readonly resolvedUserSubtitle: _angular_core.Signal<string>;
115
+ protected readonly resolvedAvatarSrc: _angular_core.Signal<string | null>;
116
+ protected readonly resolvedAvatarAlt: _angular_core.Signal<string>;
117
+ protected readonly hasAvatar: _angular_core.Signal<boolean>;
118
+ protected readonly avatarImageSrc: _angular_core.Signal<string>;
119
+ protected readonly avatarAltText: _angular_core.Signal<string>;
120
+ protected readonly initials: _angular_core.Signal<string>;
121
+ protected readonly triggerLabel: _angular_core.Signal<string>;
122
+ protected triggerButtonClasses(open: boolean): string;
123
+ protected notificationButtonClasses(): string;
124
+ protected segmentedOptionClasses(active: boolean): string;
125
+ protected themeOptionClasses(active: boolean): string;
126
+ protected themeIconClasses(active: boolean): string;
127
+ protected actionButtonClasses(tone?: EtosThemeSwitcherActionTone): string;
128
+ protected actionIconClasses(tone?: EtosThemeSwitcherActionTone): string;
129
+ protected actionLabelClasses(tone?: EtosThemeSwitcherActionTone): string;
130
+ protected setThemeScheme(mode: ColorScheme): void;
131
+ protected setLayoutMode(mode: LayoutMode): void;
132
+ protected setLayoutWidth(width: LayoutWidth): void;
133
+ protected triggerAction(action: EtosThemeSwitcherAction): void;
134
+ protected triggerNotificationAction(event: Event): void;
135
+ private labelForLayoutMode;
136
+ private labelForLayoutWidth;
137
+ private toInitials;
138
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<EtosThemeSwitcherComponent, never>;
139
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EtosThemeSwitcherComponent, "etos-theme-switcher", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; "userInfo": { "alias": "userInfo"; "required": false; "isSignal": true; }; "userName": { "alias": "userName"; "required": false; "isSignal": true; }; "userSubtitle": { "alias": "userSubtitle"; "required": false; "isSignal": true; }; "avatarSrc": { "alias": "avatarSrc"; "required": false; "isSignal": true; }; "avatarAlt": { "alias": "avatarAlt"; "required": false; "isSignal": true; }; "quickActions": { "alias": "quickActions"; "required": true; "isSignal": true; }; "notificationShortcut": { "alias": "notificationShortcut"; "required": false; "isSignal": true; }; "showNotificationShortcut": { "alias": "showNotificationShortcut"; "required": false; "isSignal": true; }; "popoverSide": { "alias": "popoverSide"; "required": false; "isSignal": true; }; "popoverAlign": { "alias": "popoverAlign"; "required": false; "isSignal": true; }; "popoverSideOffset": { "alias": "popoverSideOffset"; "required": false; "isSignal": true; }; }, { "actionSelected": "actionSelected"; }, never, never, true, never>;
140
+ }
141
+
142
+ declare class EtosLayoutComponent {
143
+ readonly mode: _angular_core.InputSignal<"vertical" | "horizontal" | "empty" | null>;
144
+ readonly sidebarHeaderTemplate: _angular_core.InputSignal<TemplateRef<unknown> | null>;
145
+ readonly sidebarFooterTemplate: _angular_core.InputSignal<TemplateRef<unknown> | null>;
146
+ readonly layoutBrandTemplate: _angular_core.InputSignal<TemplateRef<unknown> | null>;
147
+ readonly layoutProfileTemplate: _angular_core.InputSignal<TemplateRef<unknown> | null>;
148
+ private readonly layout;
149
+ protected readonly resolvedMode: _angular_core.Signal<"vertical" | "horizontal" | "empty">;
150
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<EtosLayoutComponent, never>;
151
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EtosLayoutComponent, "etos-layout", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "sidebarHeaderTemplate": { "alias": "sidebarHeaderTemplate"; "required": false; "isSignal": true; }; "sidebarFooterTemplate": { "alias": "sidebarFooterTemplate"; "required": false; "isSignal": true; }; "layoutBrandTemplate": { "alias": "layoutBrandTemplate"; "required": false; "isSignal": true; }; "layoutProfileTemplate": { "alias": "layoutProfileTemplate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
152
+ }
153
+
154
+ declare class ShellPagesComponent {
155
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShellPagesComponent, never>;
156
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShellPagesComponent, "shell-pages", never, {}, {}, never, ["[shell-pages-header]", "[shell-pages-main]", "[shell-pages-footer]"], true, never>;
157
+ }
158
+
159
+ declare const ETOS_BRAND_VERSION = "0.0.1";
160
+
161
+ export { ETOS_BRAND_NAME, ETOS_BRAND_VERSION, ETOS_LAYOUT_CONFIG, ETOS_THEME_CONFIG, EtosLayoutComponent, EtosThemeSwitcherComponent, ShellPagesComponent, provideEtosBrand, provideEtosLayout, provideEtosTheme };
162
+ export type { EtosBrandOptions, EtosThemeSwitcherAction, EtosThemeSwitcherNotificationShortcut, EtosThemeSwitcherQuickAction, EtosThemeSwitcherUserInfo };