@alfresco/adf-core 8.2.0-18186380146 → 8.2.0

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 (98) hide show
  1. package/README.md +0 -16
  2. package/api/lib/adf-http-client.service.d.ts +9 -9
  3. package/api/lib/alfresco-api/alfresco-api.utils.d.ts +1 -1
  4. package/app.config.schema.json +0 -3
  5. package/bundles/assets/adf-core/i18n/ar.json +0 -5
  6. package/bundles/assets/adf-core/i18n/cs.json +0 -5
  7. package/bundles/assets/adf-core/i18n/da.json +0 -5
  8. package/bundles/assets/adf-core/i18n/de.json +19 -9
  9. package/bundles/assets/adf-core/i18n/en.json +22 -12
  10. package/bundles/assets/adf-core/i18n/es.json +19 -9
  11. package/bundles/assets/adf-core/i18n/fi.json +0 -5
  12. package/bundles/assets/adf-core/i18n/fr.json +19 -9
  13. package/bundles/assets/adf-core/i18n/it.json +19 -9
  14. package/bundles/assets/adf-core/i18n/ja.json +0 -5
  15. package/bundles/assets/adf-core/i18n/nb.json +0 -5
  16. package/bundles/assets/adf-core/i18n/nl.json +0 -5
  17. package/bundles/assets/adf-core/i18n/pl.json +19 -9
  18. package/bundles/assets/adf-core/i18n/pt-BR.json +0 -5
  19. package/bundles/assets/adf-core/i18n/pt.json +19 -9
  20. package/bundles/assets/adf-core/i18n/ru.json +0 -5
  21. package/bundles/assets/adf-core/i18n/sv.json +0 -5
  22. package/bundles/assets/adf-core/i18n/zh-CN.json +0 -5
  23. package/custom-theme/material-theme.scss +13 -13
  24. package/custom-theme/theme/custom-palette-creator.scss +23 -25
  25. package/custom-theme/theme/custom-theme-palettes.scss +7 -7
  26. package/custom-theme/theme/theme-data.scss +13 -13
  27. package/custom-theme/theme/typography.scss +5 -5
  28. package/fesm2022/adf-core.mjs +1226 -1212
  29. package/fesm2022/adf-core.mjs.map +1 -1
  30. package/fesm2022/alfresco-adf-core-api.mjs +40 -27
  31. package/fesm2022/alfresco-adf-core-api.mjs.map +1 -1
  32. package/fesm2022/alfresco-adf-core-shell.mjs +5 -1
  33. package/fesm2022/alfresco-adf-core-shell.mjs.map +1 -1
  34. package/lib/auth/basic-auth/basic-alfresco-auth.service.d.ts +2 -24
  35. package/lib/auth/interfaces/authentication-service.interface.d.ts +7 -13
  36. package/lib/auth/models/oauth-config.model.d.ts +0 -1
  37. package/lib/auth/oidc/oidc-authentication.service.d.ts +0 -20
  38. package/lib/auth/services/authentication.service.d.ts +10 -28
  39. package/lib/auth/services/base-authentication.service.d.ts +6 -14
  40. package/lib/card-view/components/card-view/card-view.component.scss +2 -1
  41. package/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.scss +59 -34
  42. package/lib/card-view/components/card-view-textitem/card-view-textitem.component.scss +8 -0
  43. package/lib/clipboard/clipboard.directive.d.ts +10 -11
  44. package/lib/clipboard/clipboard.module.d.ts +5 -4
  45. package/lib/core.module.d.ts +44 -46
  46. package/lib/datatable/components/columns-selector/columns-selector.component.d.ts +2 -1
  47. package/lib/datatable/components/columns-selector/columns-selector.component.scss +89 -76
  48. package/lib/datatable/components/datatable-cell/datatable-cell.component.d.ts +2 -0
  49. package/lib/form/components/form-base.component.d.ts +1 -1
  50. package/lib/form/components/form-field/form-field.component.d.ts +5 -0
  51. package/lib/form/components/form-renderer.component.d.ts +7 -5
  52. package/lib/form/components/form-renderer.component.scss +44 -0
  53. package/lib/form/components/widgets/amount/amount.widget.d.ts +43 -4
  54. package/lib/form/components/widgets/base-viewer/base-viewer.widget.d.ts +16 -0
  55. package/lib/form/components/widgets/button/button.widget.d.ts +12 -0
  56. package/lib/form/components/widgets/button/button.widget.scss +14 -0
  57. package/lib/form/components/widgets/core/container-column.model.d.ts +2 -0
  58. package/lib/form/components/widgets/core/container-row.model.d.ts +26 -0
  59. package/lib/form/components/widgets/core/form-field-types.d.ts +5 -0
  60. package/lib/form/components/widgets/core/form-field-validator.d.ts +4 -0
  61. package/lib/form/components/widgets/core/form-field.model.d.ts +26 -2
  62. package/lib/form/components/widgets/core/form.model.d.ts +2 -1
  63. package/lib/{datatable/components/mocks/datatable.mock.d.ts → form/components/widgets/core/handlers/form-field-rule.handler.d.ts} +5 -5
  64. package/lib/{login/components/login-dialog/login-dialog-component-data.interface.d.ts → form/components/widgets/core/repeatable-section.model.d.ts} +8 -5
  65. package/lib/form/components/widgets/index.d.ts +4 -1
  66. package/lib/form/components/widgets/reactive-widget.interface.d.ts +4 -0
  67. package/lib/form/components/widgets/repeat/repeat.widget.d.ts +9 -0
  68. package/lib/form/components/widgets/repeat/repeat.widget.scss +36 -0
  69. package/lib/form/form-base.module.d.ts +3 -2
  70. package/lib/info-drawer/info-drawer.component.scss +6 -0
  71. package/lib/login/login.module.d.ts +3 -5
  72. package/lib/login/public-api.d.ts +0 -2
  73. package/lib/mock/public-api.d.ts +0 -1
  74. package/lib/mock/translation.service.mock.d.ts +1 -0
  75. package/lib/notifications/components/notification-history.component.d.ts +9 -3
  76. package/lib/notifications/notification-history.module.d.ts +2 -4
  77. package/lib/notifications/public-api.d.ts +0 -1
  78. package/lib/snackbar-content/snackbar-content.component.scss +4 -1
  79. package/lib/styles/{material.theme.scss → _globals.scss} +1 -1
  80. package/lib/styles/_index.scss +4 -126
  81. package/lib/styles/_mat-selectors.scss +3 -0
  82. package/lib/testing/index.d.ts +0 -1
  83. package/lib/testing/noop-translate.module.d.ts +1 -0
  84. package/lib/testing/unit-testing-utils.d.ts +4 -0
  85. package/lib/translation/translation.service.d.ts +6 -0
  86. package/package.json +4 -5
  87. package/schematics/migrations/schematics/migrations/7_0_0/index.d.ts +1 -2
  88. package/schematics/migrations/schematics/migrations/7_0_0/index.js +46 -59
  89. package/schematics/migrations/schematics/migrations/7_0_0/index.js.map +1 -1
  90. package/schematics/migrations/schematics/migrations/collection.json +0 -5
  91. package/lib/clipboard/clipboard.theme.scss +0 -19
  92. package/lib/login/components/login-dialog/login-dialog.component.d.ts +0 -15
  93. package/lib/login/components/login-dialog/login-dialog.component.scss +0 -4
  94. package/lib/mock/data-column.mock.d.ts +0 -51
  95. package/lib/notifications/components/add-notification.stories.component.d.ts +0 -10
  96. package/lib/styles/_theming.scss +0 -3
  97. package/lib/styles/_typography.scss +0 -18
  98. package/lib/testing/core.story.module.d.ts +0 -9
@@ -285,11 +285,6 @@
285
285
  "ACTION": {
286
286
  "HELP": "Behöver du hjälp?",
287
287
  "REGISTER": "Registrera"
288
- },
289
- "DIALOG": {
290
- "CANCEL": "Avbryt",
291
- "CHOOSE": "Välj",
292
- "LOGIN": "Logga in"
293
288
  }
294
289
  },
295
290
  "ADF-DATATABLE": {
@@ -285,11 +285,6 @@
285
285
  "ACTION": {
286
286
  "HELP": "是否需要帮助?",
287
287
  "REGISTER": "注册"
288
- },
289
- "DIALOG": {
290
- "CANCEL": "取消",
291
- "CHOOSE": "选择",
292
- "LOGIN": "登录"
293
288
  }
294
289
  },
295
290
  "ADF-DATATABLE": {
@@ -1,36 +1,36 @@
1
1
  @use 'sass:map';
2
2
  @use '@angular/material' as mat;
3
- @import './theme/theme-data';
3
+ @use './theme/theme-data' as theme;
4
4
 
5
5
  $custom-theme: mat.m2-define-light-theme(
6
6
  (
7
7
  color: (
8
- primary: map.get($palettes, primary),
9
- accent: map.get($palettes, accent),
10
- warn: map.get($palettes, warning)
8
+ primary: map.get(theme.$palettes, primary),
9
+ accent: map.get(theme.$palettes, accent),
10
+ warn: map.get(theme.$palettes, warning)
11
11
  ),
12
- typography: $app-typography
12
+ typography: theme.$app-typography
13
13
  )
14
14
  );
15
15
 
16
- @if $background-color {
17
- $custom-theme: get-custom-background-color($background-color, $custom-theme);
16
+ @if theme.$background-color {
17
+ $custom-theme: theme.get-custom-background-color(theme.$background-color, $custom-theme);
18
18
  }
19
19
 
20
- @if $text-color {
21
- $custom-theme: get-custom-text-color($text-color, $custom-theme);
20
+ @if theme.$text-color {
21
+ $custom-theme: theme.get-custom-text-color(theme.$text-color, $custom-theme);
22
22
  }
23
23
 
24
- @if $base-font-size {
24
+ @if theme.$base-font-size {
25
25
  body,
26
26
  html {
27
- font-size: $base-font-size;
27
+ font-size: theme.$base-font-size;
28
28
  }
29
29
  }
30
30
 
31
- @if $font-family {
31
+ @if theme.$font-family {
32
32
  body,
33
33
  html {
34
- font-family: $font-family;
34
+ font-family: theme.$font-family;
35
35
  }
36
36
  }
@@ -15,7 +15,7 @@
15
15
  $colors: (
16
16
  red: color.red($color),
17
17
  green: color.green($color),
18
- blue: color.blue($color),
18
+ blue: color.blue($color)
19
19
  );
20
20
 
21
21
  @each $name, $value in $colors {
@@ -32,7 +32,7 @@
32
32
  $colors: map.merge(
33
33
  $colors,
34
34
  (
35
- $name: $value,
35
+ $name: $value
36
36
  )
37
37
  );
38
38
  }
@@ -91,10 +91,10 @@
91
91
  $color900: color.mix($dark, $color, 75%);
92
92
 
93
93
  /* stylelint-disable scss/dollar-variable-pattern */
94
- $colorA100: color.adjust(saturate(color.mix($dark, $color, 15%), 80%), $lightness: 45.6%);
95
- $colorA200: color.adjust(saturate(color.mix($dark, $color, 15%), 80%), $lightness: 35.6%);
96
- $colorA400: color.adjust(saturate(color.mix($dark, $color, 15%), 100%), $lightness: 25.6%);
97
- $colorA700: color.adjust(saturate(color.mix($dark, $color, 15%), 100%), $lightness: 20.5%);
94
+ $colorA100: color.adjust(color.adjust(color.mix($dark, $color, 15%), $saturation: 80%), $lightness: 45.6%);
95
+ $colorA200: color.adjust(color.adjust(color.mix($dark, $color, 15%), $saturation: 80%), $lightness: 35.6%);
96
+ $colorA400: color.adjust(color.adjust(color.mix($dark, $color, 15%), $saturation: 100%), $lightness: 25.6%);
97
+ $colorA700: color.adjust(color.adjust(color.mix($dark, $color, 15%), $saturation: 100%), $lightness: 20.5%);
98
98
  /* stylelint-enable scss/dollar-variable-pattern */
99
99
 
100
100
  $contrast50: create-text-color($color50, $colorType);
@@ -126,30 +126,28 @@
126
126
  700: $color700,
127
127
  800: $color800,
128
128
  900: $color900,
129
- /* stylelint-disable value-keyword-case */
130
- A100: $colorA100,
129
+ /* stylelint-disable value-keyword-case */ A100: $colorA100,
131
130
  A200: $colorA200,
132
131
  A400: $colorA400,
133
132
  A700: $colorA700,
134
133
  /* stylelint-enable value-keyword-case */
135
134
  contrast: (
136
- 50: $contrast50,
137
- 100: $contrast100,
138
- 200: $contrast200,
139
- 300: $contrast300,
140
- 400: $contrast400,
141
- 500: $contrast500,
142
- 600: $contrast600,
143
- 700: $contrast700,
144
- 800: $contrast800,
145
- 900: $contrast900,
146
- /* stylelint-disable value-keyword-case */
147
- A100: $contrastA100,
148
- A200: $contrastA200,
149
- A400: $contrastA400,
150
- A700: $contrastA700,
151
- /* stylelint-enable value-keyword-case */
152
- ),
135
+ 50: $contrast50,
136
+ 100: $contrast100,
137
+ 200: $contrast200,
138
+ 300: $contrast300,
139
+ 400: $contrast400,
140
+ 500: $contrast500,
141
+ 600: $contrast600,
142
+ 700: $contrast700,
143
+ 800: $contrast800,
144
+ 900: $contrast900,
145
+ /* stylelint-disable value-keyword-case */ A100: $contrastA100,
146
+ A200: $contrastA200,
147
+ A400: $contrastA400,
148
+ A700: $contrastA700,
149
+ /* stylelint-enable value-keyword-case */
150
+ )
153
151
  );
154
152
 
155
153
  @return $palette;
@@ -1,27 +1,27 @@
1
1
  @use '@angular/material' as mat;
2
- @import './default-colors';
3
- @import './custom-palette-creator';
2
+ @use 'default-colors';
3
+ @use 'custom-palette-creator';
4
4
 
5
5
  @function get-mat-palettes($primary-color, $accent-color) {
6
6
  $mat-primary-palette: null;
7
7
 
8
8
  @if ($primary-color) {
9
- $custom-theme-primary-palette: create-color-palette($primary-color, 'primary');
9
+ $custom-theme-primary-palette: custom-palette-creator.create-color-palette($primary-color, 'primary');
10
10
  $mat-primary-palette: mat.m2-define-palette($custom-theme-primary-palette, 500);
11
11
  } @else {
12
- $mat-primary-palette: mat.m2-define-palette($default-primary, A100);
12
+ $mat-primary-palette: mat.m2-define-palette(default-colors.$default-primary, A100);
13
13
  }
14
14
 
15
15
  $mat-accent-palette: null;
16
16
 
17
17
  @if ($accent-color) {
18
- $custom-theme-accent-palette: create-color-palette($accent-color, 'accent');
18
+ $custom-theme-accent-palette: custom-palette-creator.create-color-palette($accent-color, 'accent');
19
19
  $mat-accent-palette: mat.m2-define-palette($custom-theme-accent-palette, 500);
20
20
  } @else {
21
- $mat-accent-palette: mat.m2-define-palette($default-accent);
21
+ $mat-accent-palette: mat.m2-define-palette(default-colors.$default-accent);
22
22
  }
23
23
 
24
- $mat-warn-palette: mat.m2-define-palette($default-warn, A100);
24
+ $mat-warn-palette: mat.m2-define-palette(default-colors.$default-warn, A100);
25
25
 
26
26
  @return (primary: $mat-primary-palette, accent: $mat-accent-palette, warning: $mat-warn-palette);
27
27
  }
@@ -1,18 +1,18 @@
1
1
  @use 'sass:map';
2
- @import './theme-configuration';
3
- @import './typography';
4
- @import './custom-theme-palettes';
5
- @import './custom-background-color';
6
- @import './custom-text-color';
2
+ @use 'theme-configuration';
3
+ @use 'typography';
4
+ @use 'custom-theme-palettes';
5
+ @use 'custom-background-color';
6
+ @use 'custom-text-color';
7
7
 
8
- $primary-color: map.get($theme-config, 'primaryColor');
9
- $accent-color: map.get($theme-config, 'accentColor');
10
- $background-color: map.get($theme-config, 'backgroundColor');
8
+ $primary-color: map.get(theme-configuration.$theme-config, 'primaryColor');
9
+ $accent-color: map.get(theme-configuration.$theme-config, 'accentColor');
10
+ $background-color: map.get(theme-configuration.$theme-config, 'backgroundColor');
11
11
 
12
- $text-color: map.get($theme-config, 'textColor');
13
- $base-font-size: map.get($theme-config, 'baseFontSize');
14
- $font-family: map.get($theme-config, 'fontFamily');
12
+ $text-color: map.get(theme-configuration.$theme-config, 'textColor');
13
+ $base-font-size: map.get(theme-configuration.$theme-config, 'baseFontSize');
14
+ $font-family: map.get(theme-configuration.$theme-config, 'fontFamily');
15
15
 
16
- $app-typography: get-mat-typography($base-font-size, $font-family);
16
+ $app-typography: typography.get-mat-typography($base-font-size, $font-family);
17
17
 
18
- $palettes: get-mat-palettes($primary-color, $accent-color);
18
+ $palettes: custom-theme-palettes.get-mat-palettes($primary-color, $accent-color);
@@ -1,6 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use '@angular/material' as mat;
3
- @import '../variables/font-family';
3
+ @use 'sass:meta';
4
+ @use '../variables/font-family';
4
5
 
5
6
  @function get-mat-typography($base-font-size, $font-family) {
6
7
  $custom-typography: mat.m2-define-typography-config(
@@ -16,8 +17,7 @@
16
17
  $subtitle-2: mat.m2-define-typography-level(14px, 24px, 500),
17
18
  $body-2: mat.m2-define-typography-level(14px, 20px, 400),
18
19
  $caption: mat.m2-define-typography-level(12px, 20px, 400),
19
- $button: mat.m2-define-typography-level(14px, 14px, 500),
20
- // Line-height must be unit-less fraction of the font-size.
20
+ $button: mat.m2-define-typography-level(14px, 14px, 500) // Line-height must be unit-less fraction of the font-size.
21
21
  );
22
22
 
23
23
  @if $base-font-size {
@@ -34,14 +34,14 @@
34
34
  $body-2: mat.m2-define-typography-level(1rem, 1.42rem, 400),
35
35
  $caption: mat.m2-define-typography-level(0.86rem, 1.42rem, 400),
36
36
  $button: mat.m2-define-typography-level(1rem, 1rem, 500),
37
- $font-family: $default-font-family
37
+ $font-family: font-family.$default-font-family
38
38
  );
39
39
  }
40
40
 
41
41
  @if $font-family {
42
42
  @each $key, $level in $custom-typography {
43
43
  /* stylelint-disable-next-line scss/no-global-function-names */
44
- @if type-of($level) == 'map' {
44
+ @if meta.type-of($level) == 'map' {
45
45
  $new-level: map.merge(
46
46
  $level,
47
47
  (