@gravitee/ui-particles-angular 7.45.1-renovate-all-devdependencies-minor-patch-9939f3e → 7.46.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.
- package/esm2020/lib/oem-theme/oem-theme.service.mjs +48 -0
- package/esm2020/lib/oem-theme/public-api.mjs +2 -1
- package/fesm2015/gravitee-ui-particles-angular.mjs +48 -1
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +48 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/oem-theme/oem-theme.service.d.ts +19 -0
- package/lib/oem-theme/public-api.d.ts +1 -0
- package/package.json +1 -1
|
@@ -6580,6 +6580,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
6580
6580
|
* limitations under the License.
|
|
6581
6581
|
*/
|
|
6582
6582
|
|
|
6583
|
+
/*
|
|
6584
|
+
* Copyright (C) 2023 The Gravitee team (http://gravitee.io)
|
|
6585
|
+
*
|
|
6586
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6587
|
+
* you may not use this file except in compliance with the License.
|
|
6588
|
+
* You may obtain a copy of the License at
|
|
6589
|
+
*
|
|
6590
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
6591
|
+
*
|
|
6592
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
6593
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
6594
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
6595
|
+
* See the License for the specific language governing permissions and
|
|
6596
|
+
* limitations under the License.
|
|
6597
|
+
*/
|
|
6598
|
+
const COLOR_ARG_TYPES = {
|
|
6599
|
+
menuBackground: {
|
|
6600
|
+
control: 'color',
|
|
6601
|
+
},
|
|
6602
|
+
menuActive: {
|
|
6603
|
+
control: 'color',
|
|
6604
|
+
},
|
|
6605
|
+
};
|
|
6606
|
+
const computeStylesForStory = (args) => {
|
|
6607
|
+
return computeStyles({ menuBackground: args.menuBackground, menuActive: args.menuActive })
|
|
6608
|
+
.map(style => `${style.key}: ${style.value};`)
|
|
6609
|
+
.join(' ');
|
|
6610
|
+
};
|
|
6611
|
+
const computeStyles = (theme) => {
|
|
6612
|
+
const backgroundStyle = computeStyleAndContrastByPrefix('background', theme.menuBackground);
|
|
6613
|
+
const activeStyle = computeStyleAndContrastByPrefix('active', theme.menuActive);
|
|
6614
|
+
let subMenu = [];
|
|
6615
|
+
// If the menu background is defined, then define the sub-menu color
|
|
6616
|
+
if (theme.menuBackground) {
|
|
6617
|
+
subMenu = [{ key: `--gio-oem-palette--sub-menu`, value: `color-mix(in srgb, ${theme.menuBackground} 80%, black)` }];
|
|
6618
|
+
}
|
|
6619
|
+
return [...backgroundStyle, ...activeStyle, ...subMenu];
|
|
6620
|
+
};
|
|
6621
|
+
const computeStyleAndContrastByPrefix = (prefix, color) => {
|
|
6622
|
+
if (!color) {
|
|
6623
|
+
return [];
|
|
6624
|
+
}
|
|
6625
|
+
const paletteColor = { key: `--gio-oem-palette--${prefix}`, value: color };
|
|
6626
|
+
const paletteColorContrast = { key: `--gio-oem-palette--${prefix}-contrast`, value: '#fff' };
|
|
6627
|
+
return [paletteColor, paletteColorContrast];
|
|
6628
|
+
};
|
|
6629
|
+
|
|
6583
6630
|
/*
|
|
6584
6631
|
* Copyright (C) 2023 The Gravitee team (http://gravitee.io)
|
|
6585
6632
|
*
|
|
@@ -6632,5 +6679,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
6632
6679
|
* Generated bundle index. Do not edit.
|
|
6633
6680
|
*/
|
|
6634
6681
|
|
|
6635
|
-
export { ConfigureTestingGioMonacoEditor, GIO_DIALOG_WIDTH, GIO_FORM_FOCUS_INVALID_IGNORE_SELECTOR, GioAsciidoctorComponent, GioAsciidoctorModule, GioAsciidoctorService, GioAvatarComponent, GioAvatarModule, GioBannerActionDirective, GioBannerBodyDirective, GioBannerComponent, GioBannerErrorComponent, GioBannerInfoComponent, GioBannerModule, GioBannerSuccessComponent, GioBannerWarningComponent, GioBaseFormFocusInvalidDirective, GioBreadcrumbComponent, GioBreadcrumbItemDirective, GioBreadcrumbModule, GioButtonFocusInvalidButtonDirective, GioClipboardCopyIconComponent, GioClipboardCopyWrapperComponent, GioClipboardModule, GioConfirmAndValidateDialogComponent, GioConfirmAndValidateDialogHarness, GioConfirmAndValidateDialogModule, GioConfirmDialogComponent, GioConfirmDialogHarness, GioConfirmDialogModule, GioFormCronComponent, GioFormCronHarness, GioFormCronHintComponent, GioFormCronLabelComponent, GioFormCronModule, GioFormFilePickerAddButtonComponent, GioFormFilePickerComponent, GioFormFilePickerEmptyComponent, GioFormFilePickerInputHarness, GioFormFilePickerLabelComponent, GioFormFilePickerModule, GioFormFocusInvalidFormDirective, GioFormFocusInvalidIgnoreDirective, GioFormFocusInvalidModule, GioFormHeadersComponent, GioFormHeadersHarness, GioFormHeadersLabelComponent, GioFormHeadersModule, GioFormJsonSchemaComponent, GioFormJsonSchemaModule, GioFormLabelComponent, GioFormPrefixDirective, GioFormSlideToggleComponent, GioFormSlideToggleDirective, GioFormSlideToggleModule, GioFormTagsInputComponent, GioFormTagsInputHarness, GioFormTagsInputModule, GioIconsModule, GioLicenseDialogComponent, GioLicenseDialogModule, GioLicenseDirective, GioLicenseModule, GioLicenseService, GioLicenseTestingModule, GioLoaderComponent, GioLoaderModule, GioMatConfigModule, GioMenuComponent, GioMenuFooterComponent, GioMenuHeaderComponent, GioMenuItemComponent, GioMenuListComponent, GioMenuModule, GioMenuSelectorComponent, GioMenuSelectorHarness, GioMenuService, GioMonacoEditorComponent, GioMonacoEditorFormFieldDirective, GioMonacoEditorHarness, GioMonacoEditorModule, GioPrismJsService, GioRadioButtonContentComponent, GioRadioButtonModule, GioRadioButtonSubitleComponent, GioRadioButtonTitleComponent, GioSafePipeModule, GioSaveBarComponent, GioSaveBarHarness, GioSaveBarModule, GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent, GioSubmenuModule, GioSubmenuTitleDirective, GioTopBarComponent, GioTopBarContentComponent, GioTopBarLinkComponent, GioTopBarLinkModule, GioTopBarMenuComponent, GioTopBarMenuModule, GioTopBarModule, LICENSE_CONFIGURATION_TESTING, NewFile, SafePipe };
|
|
6682
|
+
export { COLOR_ARG_TYPES, ConfigureTestingGioMonacoEditor, GIO_DIALOG_WIDTH, GIO_FORM_FOCUS_INVALID_IGNORE_SELECTOR, GioAsciidoctorComponent, GioAsciidoctorModule, GioAsciidoctorService, GioAvatarComponent, GioAvatarModule, GioBannerActionDirective, GioBannerBodyDirective, GioBannerComponent, GioBannerErrorComponent, GioBannerInfoComponent, GioBannerModule, GioBannerSuccessComponent, GioBannerWarningComponent, GioBaseFormFocusInvalidDirective, GioBreadcrumbComponent, GioBreadcrumbItemDirective, GioBreadcrumbModule, GioButtonFocusInvalidButtonDirective, GioClipboardCopyIconComponent, GioClipboardCopyWrapperComponent, GioClipboardModule, GioConfirmAndValidateDialogComponent, GioConfirmAndValidateDialogHarness, GioConfirmAndValidateDialogModule, GioConfirmDialogComponent, GioConfirmDialogHarness, GioConfirmDialogModule, GioFormCronComponent, GioFormCronHarness, GioFormCronHintComponent, GioFormCronLabelComponent, GioFormCronModule, GioFormFilePickerAddButtonComponent, GioFormFilePickerComponent, GioFormFilePickerEmptyComponent, GioFormFilePickerInputHarness, GioFormFilePickerLabelComponent, GioFormFilePickerModule, GioFormFocusInvalidFormDirective, GioFormFocusInvalidIgnoreDirective, GioFormFocusInvalidModule, GioFormHeadersComponent, GioFormHeadersHarness, GioFormHeadersLabelComponent, GioFormHeadersModule, GioFormJsonSchemaComponent, GioFormJsonSchemaModule, GioFormLabelComponent, GioFormPrefixDirective, GioFormSlideToggleComponent, GioFormSlideToggleDirective, GioFormSlideToggleModule, GioFormTagsInputComponent, GioFormTagsInputHarness, GioFormTagsInputModule, GioIconsModule, GioLicenseDialogComponent, GioLicenseDialogModule, GioLicenseDirective, GioLicenseModule, GioLicenseService, GioLicenseTestingModule, GioLoaderComponent, GioLoaderModule, GioMatConfigModule, GioMenuComponent, GioMenuFooterComponent, GioMenuHeaderComponent, GioMenuItemComponent, GioMenuListComponent, GioMenuModule, GioMenuSelectorComponent, GioMenuSelectorHarness, GioMenuService, GioMonacoEditorComponent, GioMonacoEditorFormFieldDirective, GioMonacoEditorHarness, GioMonacoEditorModule, GioPrismJsService, GioRadioButtonContentComponent, GioRadioButtonModule, GioRadioButtonSubitleComponent, GioRadioButtonTitleComponent, GioSafePipeModule, GioSaveBarComponent, GioSaveBarHarness, GioSaveBarModule, GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent, GioSubmenuModule, GioSubmenuTitleDirective, GioTopBarComponent, GioTopBarContentComponent, GioTopBarLinkComponent, GioTopBarLinkModule, GioTopBarMenuComponent, GioTopBarMenuModule, GioTopBarModule, LICENSE_CONFIGURATION_TESTING, NewFile, SafePipe, computeStyles, computeStylesForStory };
|
|
6636
6683
|
//# sourceMappingURL=gravitee-ui-particles-angular.mjs.map
|