@gravitee/ui-particles-angular 7.58.0 → 8.0.0-angular15-be0770c
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/README.md +1 -1
- package/esm2020/lib/gio-asciidoctor/gio-asciidoctor.component.mjs +4 -4
- package/esm2020/lib/gio-asciidoctor/gio-asciidoctor.module.mjs +5 -5
- package/esm2020/lib/gio-asciidoctor/gio-asciidoctor.service.mjs +3 -3
- package/esm2020/lib/gio-avatar/gio-avatar.component.mjs +7 -7
- package/esm2020/lib/gio-avatar/gio-avatar.module.mjs +5 -5
- package/esm2020/lib/gio-banner/gio-banner.component.mjs +29 -29
- package/esm2020/lib/gio-banner/gio-banner.module.mjs +5 -5
- package/esm2020/lib/gio-breadcrumb/gio-breadcrumb-item.directive.mjs +3 -3
- package/esm2020/lib/gio-breadcrumb/gio-breadcrumb.component.mjs +5 -5
- package/esm2020/lib/gio-breadcrumb/gio-breadcrumb.module.mjs +5 -5
- package/esm2020/lib/gio-clipboard/gio-clipboard-copy-icon.component.mjs +8 -8
- package/esm2020/lib/gio-clipboard/gio-clipboard-copy-wrapper.component.mjs +7 -7
- package/esm2020/lib/gio-clipboard/gio-clipboard.base.component.mjs +3 -3
- package/esm2020/lib/gio-clipboard/gio-clipboard.module.mjs +5 -5
- package/esm2020/lib/gio-confirm-and-validate-dialog/gio-confirm-and-validate-dialog.component.mjs +13 -14
- package/esm2020/lib/gio-confirm-and-validate-dialog/gio-confirm-and-validate-dialog.module.mjs +5 -5
- package/esm2020/lib/gio-confirm-dialog/gio-confirm-dialog.component.mjs +5 -5
- package/esm2020/lib/gio-confirm-dialog/gio-confirm-dialog.module.mjs +5 -5
- package/esm2020/lib/gio-form-cron/gio-form-cron-hint.component.mjs +3 -3
- package/esm2020/lib/gio-form-cron/gio-form-cron-label.component.mjs +3 -3
- package/esm2020/lib/gio-form-cron/gio-form-cron.component.mjs +24 -24
- package/esm2020/lib/gio-form-cron/gio-form-cron.module.mjs +13 -15
- package/esm2020/lib/gio-form-file-picker/gio-form-file-picker-add-button/gio-form-file-picker-add-button.component.mjs +6 -6
- package/esm2020/lib/gio-form-file-picker/gio-form-file-picker-empty/gio-form-file-picker-empty.component.mjs +3 -3
- package/esm2020/lib/gio-form-file-picker/gio-form-file-picker-label/gio-form-file-picker-label.component.mjs +3 -3
- package/esm2020/lib/gio-form-file-picker/gio-form-file-picker.component.mjs +14 -14
- package/esm2020/lib/gio-form-file-picker/gio-form-file-picker.module.mjs +5 -5
- package/esm2020/lib/gio-form-focus-first-invalid/gio-form-focus-first-invalid-ignore.directive.mjs +3 -3
- package/esm2020/lib/gio-form-focus-first-invalid/gio-form-focus-first-invalid.directive.mjs +9 -9
- package/esm2020/lib/gio-form-focus-first-invalid/gio-form-focus-first-invalid.module.mjs +4 -4
- package/esm2020/lib/gio-form-headers/gio-form-headers-label.component.mjs +3 -3
- package/esm2020/lib/gio-form-headers/gio-form-headers.component.mjs +26 -26
- package/esm2020/lib/gio-form-headers/gio-form-headers.harness.mjs +2 -2
- package/esm2020/lib/gio-form-headers/gio-form-headers.module.mjs +12 -14
- package/esm2020/lib/gio-form-json-schema/gio-form-json-schema.component.mjs +17 -17
- package/esm2020/lib/gio-form-json-schema/gio-form-json-schema.module.mjs +61 -63
- package/esm2020/lib/gio-form-json-schema/gio-formly-json-schema.service.mjs +3 -3
- package/esm2020/lib/gio-form-json-schema/type-component/array-type.component.mjs +9 -9
- package/esm2020/lib/gio-form-json-schema/type-component/code-editor-type.component.mjs +10 -21
- package/esm2020/lib/gio-form-json-schema/type-component/headers-type.component.mjs +10 -10
- package/esm2020/lib/gio-form-json-schema/type-component/multischema-type.component.mjs +7 -7
- package/esm2020/lib/gio-form-json-schema/type-component/null-type.component.mjs +3 -3
- package/esm2020/lib/gio-form-json-schema/type-component/object-type.component.mjs +7 -7
- package/esm2020/lib/gio-form-json-schema/type-component/toggle-type.component.mjs +9 -9
- package/esm2020/lib/gio-form-json-schema/wrappers/gio-banner-wrapper.component.mjs +4 -4
- package/esm2020/lib/gio-form-json-schema/wrappers/gio-password-eye.component.mjs +10 -9
- package/esm2020/lib/gio-form-slide-toggle/gio-form-label.directive.mjs +9 -9
- package/esm2020/lib/gio-form-slide-toggle/gio-form-slide-toggle.component.mjs +5 -5
- package/esm2020/lib/gio-form-slide-toggle/gio-form-slide-toggle.module.mjs +5 -6
- package/esm2020/lib/gio-form-tags-input/gio-form-tags-input.component.mjs +67 -67
- package/esm2020/lib/gio-form-tags-input/gio-form-tags-input.harness.mjs +14 -11
- package/esm2020/lib/gio-form-tags-input/gio-form-tags-input.module.mjs +13 -15
- package/esm2020/lib/gio-icons/gio-icons.module.mjs +5 -5
- package/esm2020/lib/gio-license/gio-license-dialog/gio-license-dialog.component.mjs +7 -7
- package/esm2020/lib/gio-license/gio-license-dialog/gio-license-dialog.module.mjs +5 -6
- package/esm2020/lib/gio-license/gio-license.directive.mjs +3 -3
- package/esm2020/lib/gio-license/gio-license.module.mjs +5 -5
- package/esm2020/lib/gio-license/gio-license.service.mjs +3 -3
- package/esm2020/lib/gio-license/gio-license.testing.module.mjs +6 -6
- package/esm2020/lib/gio-license-expiration-notification/gio-license-expiration-notification.component.mjs +6 -6
- package/esm2020/lib/gio-license-expiration-notification/gio-license-expiration-notification.module.mjs +5 -5
- package/esm2020/lib/gio-loader/gio-loader.component.mjs +3 -3
- package/esm2020/lib/gio-loader/gio-loader.module.mjs +5 -5
- package/esm2020/lib/gio-mat-config/gio-mat-config.module.mjs +13 -6
- package/esm2020/lib/gio-monaco-editor/gio-monaco-editor-form-field.directive.mjs +24 -24
- package/esm2020/lib/gio-monaco-editor/gio-monaco-editor.component.mjs +3 -3
- package/esm2020/lib/gio-monaco-editor/gio-monaco-editor.module.mjs +6 -6
- package/esm2020/lib/gio-monaco-editor/gio-monaco-editor.testing.component.mjs +3 -3
- package/esm2020/lib/gio-monaco-editor/services/gio-language-json.service.mjs +3 -3
- package/esm2020/lib/gio-monaco-editor/services/gio-monaco-editor.service.mjs +3 -3
- package/esm2020/lib/gio-pipe/gio.pipe.module.mjs +5 -5
- package/esm2020/lib/gio-pipe/safe.pipe.mjs +3 -3
- package/esm2020/lib/gio-prismjs/gio-prismjs.service.mjs +3 -3
- package/esm2020/lib/gio-radio-button/gio-radio-button-content.component.mjs +12 -12
- package/esm2020/lib/gio-radio-button/gio-radio-button.module.mjs +5 -5
- package/esm2020/lib/gio-save-bar/gio-save-bar.component.mjs +8 -8
- package/esm2020/lib/gio-save-bar/gio-save-bar.module.mjs +5 -5
- package/esm2020/lib/oem-theme/gio-menu/gio-menu-footer/gio-menu-footer.component.mjs +3 -3
- package/esm2020/lib/oem-theme/gio-menu/gio-menu-header/gio-menu-header.component.mjs +3 -3
- package/esm2020/lib/oem-theme/gio-menu/gio-menu-item/gio-menu-item.component.mjs +5 -5
- package/esm2020/lib/oem-theme/gio-menu/gio-menu-license-expiration-notification/gio-menu-license-expiration-notification.component.mjs +3 -3
- package/esm2020/lib/oem-theme/gio-menu/gio-menu-list/gio-menu-list.component.mjs +3 -3
- package/esm2020/lib/oem-theme/gio-menu/gio-menu-selector/gio-menu-selector.component.mjs +6 -7
- package/esm2020/lib/oem-theme/gio-menu/gio-menu.component.mjs +5 -5
- package/esm2020/lib/oem-theme/gio-menu/gio-menu.module.mjs +5 -5
- package/esm2020/lib/oem-theme/gio-menu/gio-menu.service.mjs +3 -3
- package/esm2020/lib/oem-theme/gio-submenu/gio-submenu-group/gio-submenu-group.component.mjs +3 -3
- package/esm2020/lib/oem-theme/gio-submenu/gio-submenu-item/gio-submenu-item.component.mjs +5 -5
- package/esm2020/lib/oem-theme/gio-submenu/gio-submenu.component.mjs +6 -6
- package/esm2020/lib/oem-theme/gio-submenu/gio-submenu.module.mjs +5 -5
- package/esm2020/lib/oem-theme/gio-top-bar/gio-top-bar-content/gio-top-bar-content.component.mjs +4 -4
- package/esm2020/lib/oem-theme/gio-top-bar/gio-top-bar-link/gio-top-bar-link.component.mjs +4 -4
- package/esm2020/lib/oem-theme/gio-top-bar/gio-top-bar-link/gio-top-bar-link.module.mjs +5 -5
- package/esm2020/lib/oem-theme/gio-top-bar/gio-top-bar-menu/gio-top-bar-menu.component.mjs +3 -3
- package/esm2020/lib/oem-theme/gio-top-bar/gio-top-bar-menu/gio-top-bar-menu.module.mjs +5 -5
- package/esm2020/lib/oem-theme/gio-top-bar/gio-top-bar.component.mjs +4 -4
- package/esm2020/lib/oem-theme/gio-top-bar/gio-top-bar.module.mjs +5 -5
- package/esm2020/lib/oem-theme/oem-theme.service.mjs +2 -2
- package/fesm2015/gravitee-ui-particles-angular-testing.mjs.map +1 -1
- package/fesm2015/gravitee-ui-particles-angular.mjs +651 -657
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular-testing.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +651 -657
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-asciidoctor/gio-asciidoctor.component.d.ts +1 -1
- package/lib/gio-asciidoctor/gio-asciidoctor.service.d.ts +1 -1
- package/lib/gio-avatar/gio-avatar.component.d.ts +1 -1
- package/lib/gio-banner/gio-banner.component.d.ts +8 -8
- package/lib/gio-breadcrumb/gio-breadcrumb-item.directive.d.ts +1 -1
- package/lib/gio-breadcrumb/gio-breadcrumb.component.d.ts +1 -1
- package/lib/gio-clipboard/gio-clipboard-copy-icon.component.d.ts +1 -1
- package/lib/gio-clipboard/gio-clipboard-copy-wrapper.component.d.ts +1 -1
- package/lib/gio-clipboard/gio-clipboard.base.component.d.ts +1 -1
- package/lib/gio-confirm-and-validate-dialog/gio-confirm-and-validate-dialog.component.d.ts +3 -5
- package/lib/gio-confirm-dialog/gio-confirm-dialog.component.d.ts +2 -2
- package/lib/gio-form-cron/gio-form-cron-hint.component.d.ts +1 -1
- package/lib/gio-form-cron/gio-form-cron-label.component.d.ts +1 -1
- package/lib/gio-form-cron/gio-form-cron.adapter.d.ts +1 -1
- package/lib/gio-form-cron/gio-form-cron.component.d.ts +3 -3
- package/lib/gio-form-cron/gio-form-cron.harness.d.ts +1 -1
- package/lib/gio-form-file-picker/gio-form-file-picker-add-button/gio-form-file-picker-add-button.component.d.ts +1 -1
- package/lib/gio-form-file-picker/gio-form-file-picker-empty/gio-form-file-picker-empty.component.d.ts +1 -1
- package/lib/gio-form-file-picker/gio-form-file-picker-label/gio-form-file-picker-label.component.d.ts +1 -1
- package/lib/gio-form-file-picker/gio-form-file-picker.component.d.ts +2 -2
- package/lib/gio-form-focus-first-invalid/gio-form-focus-first-invalid-ignore.directive.d.ts +1 -1
- package/lib/gio-form-focus-first-invalid/gio-form-focus-first-invalid.directive.d.ts +3 -3
- package/lib/gio-form-headers/gio-form-headers-label.component.d.ts +1 -1
- package/lib/gio-form-headers/gio-form-headers.component.d.ts +6 -6
- package/lib/gio-form-json-schema/gio-form-json-schema.component.d.ts +3 -3
- package/lib/gio-form-json-schema/model/GioJsonSchema.d.ts +3 -3
- package/lib/gio-form-json-schema/type-component/array-type.component.d.ts +1 -1
- package/lib/gio-form-json-schema/type-component/code-editor-type.component.d.ts +3 -3
- package/lib/gio-form-json-schema/type-component/headers-type.component.d.ts +2 -2
- package/lib/gio-form-json-schema/type-component/multischema-type.component.d.ts +1 -1
- package/lib/gio-form-json-schema/type-component/null-type.component.d.ts +1 -1
- package/lib/gio-form-json-schema/type-component/object-type.component.d.ts +1 -1
- package/lib/gio-form-json-schema/type-component/toggle-type.component.d.ts +2 -2
- package/lib/gio-form-json-schema/wrappers/gio-banner-wrapper.component.d.ts +1 -1
- package/lib/gio-form-json-schema/wrappers/gio-password-eye.component.d.ts +1 -1
- package/lib/gio-form-slide-toggle/gio-form-label.directive.d.ts +3 -3
- package/lib/gio-form-slide-toggle/gio-form-slide-toggle.component.d.ts +2 -2
- package/lib/gio-form-tags-input/gio-form-tags-input.component.d.ts +4 -4
- package/lib/gio-form-tags-input/gio-form-tags-input.harness.d.ts +3 -3
- package/lib/gio-license/gio-license-dialog/gio-license-dialog.component.d.ts +2 -2
- package/lib/gio-license/gio-license.directive.d.ts +1 -1
- package/lib/gio-license/gio-license.service.d.ts +1 -1
- package/lib/gio-license-expiration-notification/gio-license-expiration-notification.component.d.ts +1 -1
- package/lib/gio-loader/gio-loader.component.d.ts +1 -1
- package/lib/gio-monaco-editor/gio-monaco-editor-form-field.directive.d.ts +1 -1
- package/lib/gio-monaco-editor/gio-monaco-editor.component.d.ts +2 -2
- package/lib/gio-monaco-editor/gio-monaco-editor.harness.d.ts +1 -1
- package/lib/gio-monaco-editor/gio-monaco-editor.testing.component.d.ts +1 -1
- package/lib/gio-monaco-editor/models/GioMonacoEditorConfig.d.ts +1 -1
- package/lib/gio-monaco-editor/models/MonacoEditorTheme.d.ts +1 -1
- package/lib/gio-pipe/safe.pipe.d.ts +1 -1
- package/lib/gio-radio-button/gio-radio-button-content.component.d.ts +3 -3
- package/lib/gio-save-bar/gio-save-bar.component.d.ts +3 -3
- package/lib/oem-theme/gio-menu/gio-menu-footer/gio-menu-footer.component.d.ts +1 -1
- package/lib/oem-theme/gio-menu/gio-menu-header/gio-menu-header.component.d.ts +1 -1
- package/lib/oem-theme/gio-menu/gio-menu-item/gio-menu-item.component.d.ts +1 -1
- package/lib/oem-theme/gio-menu/gio-menu-license-expiration-notification/gio-menu-license-expiration-notification.component.d.ts +1 -1
- package/lib/oem-theme/gio-menu/gio-menu-list/gio-menu-list.component.d.ts +1 -1
- package/lib/oem-theme/gio-menu/gio-menu-selector/gio-menu-selector.component.d.ts +2 -2
- package/lib/oem-theme/gio-menu/gio-menu.component.d.ts +1 -1
- package/lib/oem-theme/gio-submenu/gio-submenu-group/gio-submenu-group.component.d.ts +1 -1
- package/lib/oem-theme/gio-submenu/gio-submenu-item/gio-submenu-item.component.d.ts +1 -1
- package/lib/oem-theme/gio-submenu/gio-submenu.component.d.ts +3 -3
- package/lib/oem-theme/gio-top-bar/gio-top-bar-content/gio-top-bar-content.component.d.ts +2 -2
- package/lib/oem-theme/gio-top-bar/gio-top-bar-link/gio-top-bar-link.component.d.ts +1 -1
- package/lib/oem-theme/gio-top-bar/gio-top-bar-menu/gio-top-bar-menu.component.d.ts +1 -1
- package/lib/oem-theme/gio-top-bar/gio-top-bar.component.d.ts +2 -2
- package/lib/oem-theme/oem-theme.service.d.ts +1 -1
- package/package.json +14 -14
- package/src/lib/gio-button-toggle-group/gio-button-toggle-group.scss +1 -1
- package/src/lib/gio-radio-button/gio-radio-button.scss +23 -2
- package/src/lib/gio-table-light/gio-table-light.scss +2 -2
- package/src/scss/gio-mat-legacy-theme-variable.scss +100 -0
- package/src/scss/gio-mat-theme-variable.scss +12 -11
- package/src/scss/gio-mat-theme.scss +35 -2
- package/src/scss/index.scss +1 -0
- package/src/scss/mat-override/mat-button.scss +13 -0
- package/src/scss/mat-override/mat-card.scss +6 -0
- package/src/scss/mat-override/mat-form-field.scss +11 -0
- package/src/scss/mat-override/mat-list.scss +13 -0
- package/src/scss/mat-override/mat-option.scss +10 -2
- package/src/scss/mat-override/mat-table.scss +8 -0
- package/src/scss/mat-override/mat-tabs.scss +1 -0
- package/src/scss/theme/color/gio-palettes.stories.scss +36 -15
- package/testing/harnesses/div.harness.d.ts +1 -1
- package/testing/harnesses/span.harness.d.ts +1 -1
- package/testing/package.json +0 -10
- /package/{gravitee-ui-particles-angular.d.ts → index.d.ts} +0 -0
- /package/testing/{gravitee-ui-particles-angular-testing.d.ts → index.d.ts} +0 -0
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
// Config mat Typography
|
|
22
22
|
$mat-typography: mat.define-typography-config(
|
|
23
23
|
$font-family: '"Golos UI", Roboto, "Helvetica Neue", sans-serif',
|
|
24
|
-
$
|
|
25
|
-
$
|
|
26
|
-
$
|
|
27
|
-
$
|
|
28
|
-
$headline: mat.define-typography-level(
|
|
29
|
-
$
|
|
30
|
-
$
|
|
31
|
-
$
|
|
32
|
-
$body-
|
|
33
|
-
$body-
|
|
24
|
+
$headline-1: mat.define-typography-level(112px, 112px, 400, $letter-spacing: -0.05em),
|
|
25
|
+
$headline-2: mat.define-typography-level(56px, 56px, 400, $letter-spacing: -0.02em),
|
|
26
|
+
$headline-3: mat.define-typography-level(45px, 48px, 400, $letter-spacing: -0.005em),
|
|
27
|
+
$headline-4: mat.define-typography-level(60px, 66px, 600, $letter-spacing: -0.5px),
|
|
28
|
+
$headline-5: mat.define-typography-level(34px, 44px, 600),
|
|
29
|
+
$headline-6: mat.define-typography-level(26px, 36px, 600),
|
|
30
|
+
$subtitle-1: mat.define-typography-level(18px, 24px, 600, $letter-spacing: 0.4px),
|
|
31
|
+
$subtitle-2: mat.define-typography-level(14px, 20px, 500, $letter-spacing: 0.4px),
|
|
32
|
+
$body-1: mat.define-typography-level(14px, 20px, 500, $letter-spacing: 0.4px),
|
|
33
|
+
$body-2: mat.define-typography-level(14px, 20px, 400, $letter-spacing: 0.4px),
|
|
34
34
|
$caption: mat.define-typography-level(12px, 16px, 400),
|
|
35
35
|
$button: mat.define-typography-level(14px, 14px, 500),
|
|
36
|
-
$
|
|
36
|
+
$overline: mat.define-typography-level(inherit, 1.125, 400),
|
|
37
37
|
);
|
|
38
38
|
|
|
39
39
|
// Mat default light theme
|
|
@@ -45,6 +45,7 @@ $mat-theme-default: mat.define-light-theme(
|
|
|
45
45
|
warn: palettes.$mat-error-palette,
|
|
46
46
|
),
|
|
47
47
|
typography: $mat-typography,
|
|
48
|
+
density: 0,
|
|
48
49
|
)
|
|
49
50
|
);
|
|
50
51
|
|
|
@@ -15,15 +15,48 @@
|
|
|
15
15
|
*/
|
|
16
16
|
@use '@angular/material' as mat;
|
|
17
17
|
|
|
18
|
+
@use './gio-mat-legacy-theme-variable' as legacy-theme-variable;
|
|
18
19
|
@use './gio-mat-theme-variable' as theme-variable;
|
|
19
20
|
|
|
20
21
|
@use './mat-override' as override;
|
|
21
22
|
|
|
22
23
|
// Config material theme with gio theme
|
|
23
|
-
@mixin mat-theme() {
|
|
24
|
-
|
|
24
|
+
@mixin mat-theme($legacy: false) {
|
|
25
|
+
// TODO(v15): As of v15 mat.legacy-core no longer includes default typography styles.
|
|
26
|
+
// The following line adds:
|
|
27
|
+
// 1. Default typography styles for all components
|
|
28
|
+
// 2. Styles for typography hierarchy classes (e.g. .mat-headline-1)
|
|
29
|
+
// If you specify typography styles for the components you use elsewhere, you should delete this line.
|
|
30
|
+
// If you don't need the default component typographies but still want the hierarchy styles,
|
|
31
|
+
// you can delete this line and instead use:
|
|
32
|
+
// `@include mat.legacy-typography-hierarchy(theme-variable.$mat-typography);`
|
|
33
|
+
|
|
34
|
+
/*
|
|
35
|
+
TODO(mdc-migration): Remove all-legacy-component-typographies once all legacy components are migrated
|
|
36
|
+
*/
|
|
37
|
+
@include mat.all-legacy-component-typographies(legacy-theme-variable.$mat-legacy-typography);
|
|
38
|
+
@include mat.all-component-typographies(theme-variable.$mat-typography);
|
|
39
|
+
|
|
40
|
+
/*
|
|
41
|
+
TODO(mdc-migration): Remove legacy-core once all legacy components are migrated
|
|
42
|
+
*/
|
|
43
|
+
@include mat.legacy-core;
|
|
44
|
+
@include mat.core;
|
|
45
|
+
|
|
46
|
+
/*
|
|
47
|
+
TODO(mdc-migration): Remove all-legacy-component-themes once all legacy components are migrated
|
|
48
|
+
*/
|
|
49
|
+
@include mat.all-legacy-component-themes(legacy-theme-variable.$mat-legacy-theme);
|
|
25
50
|
@include mat.all-component-themes(theme-variable.$mat-theme);
|
|
26
51
|
|
|
52
|
+
@if $legacy {
|
|
53
|
+
@include mat.legacy-typography-hierarchy(legacy-theme-variable.$mat-legacy-typography);
|
|
54
|
+
} @else {
|
|
55
|
+
@include mat.typography-hierarchy(theme-variable.$mat-typography);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@include mat.form-field-density(-1);
|
|
59
|
+
|
|
27
60
|
// Gio overrides
|
|
28
61
|
@include override.mat-h5;
|
|
29
62
|
@include override.mat-form-field;
|
package/src/scss/index.scss
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
@forward './theme/typography/gio-typography' show subtitle-typography, code-typography, link-typography, caption-2;
|
|
23
23
|
|
|
24
24
|
@forward './gio-mat-theme-variable' show $mat-theme, $mat-typography, $mat-theme-dark;
|
|
25
|
+
@forward './gio-mat-legacy-theme-variable' show $mat-legacy-theme, $mat-legacy-typography, $mat-legacy-theme-dark;
|
|
25
26
|
|
|
26
27
|
@forward './gio-fonts' show import-fonts;
|
|
27
28
|
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
@mixin mat-button() {
|
|
17
|
+
// Legacy mat-button
|
|
17
18
|
.mat-button.mat-button-base,
|
|
18
19
|
.mat-stroked-button.mat-button-base,
|
|
19
20
|
.mat-raised-button.mat-button-base,
|
|
@@ -82,4 +83,16 @@
|
|
|
82
83
|
line-height: 18px;
|
|
83
84
|
}
|
|
84
85
|
}
|
|
86
|
+
|
|
87
|
+
// MDC mat-button
|
|
88
|
+
.mdc-button {
|
|
89
|
+
&:has(.mdc-button__label:empty) {
|
|
90
|
+
min-width: 36px;
|
|
91
|
+
|
|
92
|
+
.mat-icon {
|
|
93
|
+
margin-right: -6px;
|
|
94
|
+
margin-left: -6px;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
85
98
|
}
|
|
@@ -16,7 +16,13 @@
|
|
|
16
16
|
@use '@angular/material' as mat;
|
|
17
17
|
|
|
18
18
|
@mixin mat-card() {
|
|
19
|
+
// Legacy mat-card
|
|
19
20
|
.mat-card:not(.mat-card .mat-card, [class*='mat-elevation-z']) {
|
|
20
21
|
@include mat.elevation(3);
|
|
21
22
|
}
|
|
23
|
+
|
|
24
|
+
// Mat card MDC
|
|
25
|
+
.mat-mdc-card:not(.mat-mdc-card .mat-mdc-card, [class*='mat-mdc-elevation-z'], [class*='mat-elevation-z']) {
|
|
26
|
+
@include mat.elevation(3);
|
|
27
|
+
}
|
|
22
28
|
}
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
@use '../gio-mat-palettes' as palettes;
|
|
21
21
|
|
|
22
22
|
@mixin mat-form-field() {
|
|
23
|
+
// Legacy mat-form-field
|
|
23
24
|
.mat-form-field:not([class*='mat-paginator']) {
|
|
24
25
|
// Increase default padding to have space for two lines of hint & error bellow the input
|
|
25
26
|
padding-bottom: 16px;
|
|
@@ -48,4 +49,14 @@
|
|
|
48
49
|
.mat-form-field-appearance-outline .mat-form-field-infix {
|
|
49
50
|
padding-top: 0.8em;
|
|
50
51
|
}
|
|
52
|
+
|
|
53
|
+
// MDC mat-form-field
|
|
54
|
+
|
|
55
|
+
.mat-mdc-form-field {
|
|
56
|
+
margin: 0.45em 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.mat-mdc-form-field.mat-form-field-disabled {
|
|
60
|
+
cursor: not-allowed !important;
|
|
61
|
+
}
|
|
51
62
|
}
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
$background: map.get(theme.$mat-theme, background);
|
|
22
22
|
|
|
23
23
|
@mixin mat-list() {
|
|
24
|
+
// Legacy mat-list
|
|
25
|
+
|
|
24
26
|
/**
|
|
25
27
|
* When a Mat List is inside a Mat Card then set a negative to balance default padding of the Mat Card
|
|
26
28
|
*/
|
|
@@ -36,4 +38,15 @@ $background: map.get(theme.$mat-theme, background);
|
|
|
36
38
|
background-color: mat.get-color-from-palette($background, hover);
|
|
37
39
|
}
|
|
38
40
|
}
|
|
41
|
+
|
|
42
|
+
// MDC mat-list
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Change background color of each list item on hover
|
|
46
|
+
*/
|
|
47
|
+
.mat-mdc-list-item {
|
|
48
|
+
&:hover {
|
|
49
|
+
background-color: mat.get-color-from-palette($background, hover);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
39
52
|
}
|
|
@@ -16,13 +16,21 @@
|
|
|
16
16
|
|
|
17
17
|
@use '@angular/material' as mat;
|
|
18
18
|
|
|
19
|
+
@use '../gio-mat-legacy-theme-variable' as theme-legacy;
|
|
19
20
|
@use '../gio-mat-theme-variable' as theme;
|
|
20
21
|
|
|
21
22
|
@mixin mat-option() {
|
|
23
|
+
// Legacy mat-option
|
|
22
24
|
.mat-option,
|
|
23
25
|
.mat-typography .mat-option {
|
|
24
26
|
height: 40px;
|
|
25
|
-
font-size: mat.font-size(theme.$mat-typography, input);
|
|
26
|
-
line-height: mat.line-height(theme.$mat-typography, input);
|
|
27
|
+
font-size: mat.font-size(theme-legacy.$mat-legacy-typography, input);
|
|
28
|
+
line-height: mat.line-height(theme-legacy.$mat-legacy-typography, input);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// MDC mat-option
|
|
32
|
+
.mat-typography .mat-mdc-option {
|
|
33
|
+
min-height: 40px;
|
|
34
|
+
@include mat.typography-level(theme.$mat-typography, 'body-2');
|
|
27
35
|
}
|
|
28
36
|
}
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
$background: map.get(theme.$mat-theme, background);
|
|
22
22
|
|
|
23
23
|
@mixin mat-table() {
|
|
24
|
+
// Legacy mat-table
|
|
24
25
|
.mat-table {
|
|
25
26
|
tbody tr:hover {
|
|
26
27
|
background-color: mat.get-color-from-palette($background, hover);
|
|
@@ -49,4 +50,11 @@ $background: map.get(theme.$mat-theme, background);
|
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
}
|
|
53
|
+
|
|
54
|
+
// MDC mat-table
|
|
55
|
+
.mat-mdc-table {
|
|
56
|
+
tbody tr.mat-mdc-row:hover {
|
|
57
|
+
background-color: mat.get-color-from-palette($background, hover);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
52
60
|
}
|
|
@@ -27,12 +27,15 @@ $palettes: (
|
|
|
27
27
|
);
|
|
28
28
|
|
|
29
29
|
/* stylelint-disable selector-pseudo-class-no-unknown */
|
|
30
|
-
:
|
|
30
|
+
:root {
|
|
31
31
|
@each $paletteName, $palette in $palettes {
|
|
32
32
|
@each $colorName in $colorNames {
|
|
33
33
|
@if map.has-key($palette, $colorName) {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
$color: mat.get-color-from-palette($palette, $colorName);
|
|
35
|
+
$color-contrast: mat.get-color-from-palette($palette, #{$colorName}-contrast);
|
|
36
|
+
|
|
37
|
+
--gp--#{$paletteName}__#{$colorName}: #{$color};
|
|
38
|
+
--gp--#{$paletteName}__#{$colorName}-contrast: #{$color-contrast};
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
41
|
}
|
|
@@ -40,32 +43,50 @@ $palettes: (
|
|
|
40
43
|
// Special palettes
|
|
41
44
|
|
|
42
45
|
@each $colorName in (patch, post, put, get, delete, option, trace, head) {
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
$color: mat.get-color-from-palette(gio.$mat-method-palette, $colorName);
|
|
47
|
+
$color-contrast: mat.get-color-from-palette(gio.$mat-method-palette, #{$colorName}-contrast);
|
|
48
|
+
|
|
49
|
+
--gp--method__#{$colorName}: #{$color};
|
|
50
|
+
--gp--method__#{$colorName}-contrast: #{$color-contrast};
|
|
45
51
|
}
|
|
46
52
|
|
|
47
53
|
@each $colorName in (white, black, disabled) {
|
|
48
|
-
|
|
49
|
-
|
|
54
|
+
$color: mat.get-color-from-palette(gio.$mat-basic-palette, $colorName);
|
|
55
|
+
$color-contrast: mat.get-color-from-palette(gio.$mat-basic-palette, #{$colorName}-contrast);
|
|
56
|
+
|
|
57
|
+
--gp--basic__#{$colorName}: #{$color};
|
|
58
|
+
--gp--basic__#{$colorName}-contrast: #{$color-contrast};
|
|
50
59
|
}
|
|
51
60
|
|
|
52
61
|
@each $colorName in (lighter80, lighter70, lighter60, lighter50, lighter40, lighter30, lighter20, lighter10, default) {
|
|
53
|
-
|
|
54
|
-
|
|
62
|
+
$color: mat.get-color-from-palette(gio.$mat-space-palette, $colorName);
|
|
63
|
+
$color-contrast: mat.get-color-from-palette(gio.$mat-space-palette, #{$colorName}-contrast);
|
|
64
|
+
|
|
65
|
+
--gp--space__#{$colorName}: #{$color};
|
|
66
|
+
--gp--space__#{$colorName}-contrast: #{$color-contrast};
|
|
55
67
|
}
|
|
56
68
|
|
|
57
69
|
@each $colorName in (darker80, darker70, darker60, darker50, darker40, darker30, darker20, darker10, default) {
|
|
58
|
-
|
|
59
|
-
|
|
70
|
+
$color: mat.get-color-from-palette(gio.$mat-dove-palette, $colorName);
|
|
71
|
+
$color-contrast: mat.get-color-from-palette(gio.$mat-dove-palette, #{$colorName}-contrast);
|
|
72
|
+
|
|
73
|
+
--gp--dove__#{$colorName}: #{$color};
|
|
74
|
+
--gp--dove__#{$colorName}-contrast: #{$color-contrast};
|
|
60
75
|
}
|
|
61
76
|
|
|
62
77
|
@each $colorName in (lighter80, lighter60, lighter40, lighter20, default) {
|
|
63
|
-
|
|
64
|
-
|
|
78
|
+
$color: mat.get-color-from-palette(gio.$mat-cyan-palette, $colorName);
|
|
79
|
+
$color-contrast: mat.get-color-from-palette(gio.$mat-cyan-palette, #{$colorName}-contrast);
|
|
80
|
+
|
|
81
|
+
--gp--cyan__#{$colorName}: #{$color};
|
|
82
|
+
--gp--cyan__#{$colorName}-contrast: #{$color-contrast};
|
|
65
83
|
}
|
|
66
84
|
|
|
67
85
|
@each $colorName in (lighter80, lighter60, lighter40, lighter20, default) {
|
|
68
|
-
|
|
69
|
-
|
|
86
|
+
$color: mat.get-color-from-palette(gio.$mat-blue-palette, $colorName);
|
|
87
|
+
$color-contrast: mat.get-color-from-palette(gio.$mat-blue-palette, #{$colorName}-contrast);
|
|
88
|
+
|
|
89
|
+
--gp--blue__#{$colorName}: #{$color};
|
|
90
|
+
--gp--blue__#{$colorName}-contrast: #{$color-contrast};
|
|
70
91
|
}
|
|
71
92
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsyncFactoryFn, BaseHarnessFilters, ComponentHarness, HarnessPredicate, HarnessQuery } from '@angular/cdk/testing';
|
|
2
|
-
export
|
|
2
|
+
export type DivHarnessFilters = BaseHarnessFilters & {
|
|
3
3
|
/** Filters based on the text */
|
|
4
4
|
text?: string | RegExp;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsyncFactoryFn, BaseHarnessFilters, ComponentHarness, HarnessPredicate, HarnessQuery } from '@angular/cdk/testing';
|
|
2
|
-
export
|
|
2
|
+
export type SpanHarnessFilters = BaseHarnessFilters & {
|
|
3
3
|
/** Filters based on the text */
|
|
4
4
|
text?: string | RegExp;
|
|
5
5
|
};
|
package/testing/package.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"module": "../fesm2015/gravitee-ui-particles-angular-testing.mjs",
|
|
3
|
-
"es2020": "../fesm2020/gravitee-ui-particles-angular-testing.mjs",
|
|
4
|
-
"esm2020": "../esm2020/testing/gravitee-ui-particles-angular-testing.mjs",
|
|
5
|
-
"fesm2020": "../fesm2020/gravitee-ui-particles-angular-testing.mjs",
|
|
6
|
-
"fesm2015": "../fesm2015/gravitee-ui-particles-angular-testing.mjs",
|
|
7
|
-
"typings": "gravitee-ui-particles-angular-testing.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"name": "@gravitee/ui-particles-angular/testing"
|
|
10
|
-
}
|
|
File without changes
|
|
File without changes
|