@gravitee/ui-particles-angular 17.9.1 → 18.0.0-renovate-angular-158f278

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.
@@ -3,17 +3,29 @@ import { OnChanges, OnDestroy, ElementRef, SimpleChanges } from '@angular/core';
3
3
  import { HttpClient } from '@angular/common/http';
4
4
  import { DomSanitizer } from '@angular/platform-browser';
5
5
  import { GioPrismJsService } from '@gravitee/ui-particles-angular';
6
+ import * as _asciidoctor_core from '@asciidoctor/core';
6
7
  import { Observable } from 'rxjs';
7
- import { Asciidoctor } from '@asciidoctor/core';
8
8
  import * as i2 from '@angular/common';
9
9
 
10
+ /**
11
+ * The `@asciidoctor/core` module itself: since 4.0.0 the package exposes its API as module level
12
+ * functions instead of the instance built by the default exported factory.
13
+ */
14
+ type Asciidoctor = typeof _asciidoctor_core;
10
15
  declare global {
11
16
  interface Window {
12
- _gioAsciidoctor: Asciidoctor;
17
+ /** The pending — then settled — import, shared by every caller. See `GioAsciidoctorService`. */
18
+ _gioAsciidoctor?: Promise<Asciidoctor>;
13
19
  }
14
20
  }
15
21
  declare class GioAsciidoctorService {
16
22
  load(): Observable<Asciidoctor>;
23
+ /**
24
+ * Imports the module once, however many callers ask for it.
25
+ *
26
+ * The promise is held on the window rather than on the service so that several root injectors —
27
+ * several Angular applications on the same page — share a single import.
28
+ */
17
29
  private loadAsciidoctor;
18
30
  static ɵfac: i0.ɵɵFactoryDeclaration<GioAsciidoctorService, never>;
19
31
  static ɵprov: i0.ɵɵInjectableDeclaration<GioAsciidoctorService>;
@@ -46,4 +58,23 @@ declare class GioAsciidoctorModule {
46
58
  static ɵinj: i0.ɵɵInjectorDeclaration<GioAsciidoctorModule>;
47
59
  }
48
60
 
49
- export { GioAsciidoctorComponent, GioAsciidoctorModule, GioAsciidoctorService };
61
+ /**
62
+ * Stands in for the real conversion, wrapping the content so that a test can tell the component
63
+ * rendered it.
64
+ */
65
+ declare const asciidoctorTestingConvert: (content: string) => Promise<string>;
66
+ /**
67
+ * Replaces `GioAsciidoctorService` in a test bed.
68
+ *
69
+ * `@asciidoctor/core` 4 cannot be loaded under jsdom at all — its browser build is ESM using
70
+ * `import.meta`, and its CommonJS build calls `createRequire()` on `document.baseURI` — so any test
71
+ * rendering a `<gio-asciidoctor>` has to replace the service that imports it.
72
+ */
73
+ declare class GioAsciidoctorTestingModule {
74
+ static ɵfac: i0.ɵɵFactoryDeclaration<GioAsciidoctorTestingModule, never>;
75
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GioAsciidoctorTestingModule, never, never, never>;
76
+ static ɵinj: i0.ɵɵInjectorDeclaration<GioAsciidoctorTestingModule>;
77
+ }
78
+
79
+ export { GioAsciidoctorComponent, GioAsciidoctorModule, GioAsciidoctorService, GioAsciidoctorTestingModule, asciidoctorTestingConvert };
80
+ export type { Asciidoctor };
package/index.d.ts CHANGED
@@ -505,9 +505,16 @@ declare class GioMonacoEditorComponent implements ControlValueAccessor, AfterVie
505
505
  private setupLanguage;
506
506
  private updateModelLanguage;
507
507
  private autoformatValue;
508
+ private formatThroughMonaco;
508
509
  static ɵfac: i0.ɵɵFactoryDeclaration<GioMonacoEditorComponent, [null, null, null, null, null, null, null, { optional: true; self: true; }]>;
509
510
  static ɵcmp: i0.ɵɵComponentDeclaration<GioMonacoEditorComponent, "gio-monaco-editor", never, { "languageConfig": { "alias": "languageConfig"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disableMiniMap": { "alias": "disableMiniMap"; "required": false; }; "disableAutoFormat": { "alias": "disableAutoFormat"; "required": false; }; "singleLineMode": { "alias": "singleLineMode"; "required": false; }; }, {}, never, never, false, never>;
510
511
  }
512
+ /**
513
+ * Re-indent a JSON string the way Monaco's formatter would, with two spaces.
514
+ *
515
+ * @returns the formatted string, or `undefined` when the input is not JSON and should be left alone
516
+ */
517
+ declare const formatJsonString: (value: string) => string | undefined;
511
518
 
512
519
  type GioMonacoEditorConfig = MonacoEditorLanguageConfig;
513
520
  type CodeEditorProps = FormlyFieldProps & {
@@ -1888,5 +1895,5 @@ declare class GioActionMenuItemComponent {
1888
1895
  static ɵcmp: i0.ɵɵComponentDeclaration<GioActionMenuItemComponent, "gio-action-menu-item", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
1889
1896
  }
1890
1897
 
1891
- export { ConfigureTestingGioMonacoEditor, GIO_DIALOG_WIDTH, GIO_FORM_FOCUS_INVALID_IGNORE_SELECTOR, GioActionMenuComponent, GioActionMenuItemComponent, GioAvatarComponent, GioAvatarModule, GioBannerActionDirective, GioBannerBodyDirective, GioBannerComponent, GioBannerErrorComponent, GioBannerInfoComponent, GioBannerModule, GioBannerSuccessComponent, GioBannerWarningComponent, GioBaseFormFocusInvalidDirective, GioBreadcrumbComponent, GioBreadcrumbItemDirective, GioBreadcrumbModule, GioButtonFocusInvalidButtonDirective, GioCardEmptyStateComponent, GioCardEmptyStateModule, GioClipboardCopyIconComponent, GioClipboardCopyWrapperComponent, GioClipboardModule, GioConfirmAndValidateDialogComponent, GioConfirmAndValidateDialogHarness, GioConfirmAndValidateDialogModule, GioConfirmDialogComponent, GioConfirmDialogHarness, GioConfirmDialogModule, GioElAssistantComponent, GioElPromptComponent, GioElService, GioFormCronComponent, GioFormCronHarness, GioFormCronHintComponent, GioFormCronLabelComponent, GioFormCronModule, GioFormFilePickerAddButtonComponent, GioFormFilePickerComponent, GioFormFilePickerEmptyComponent, GioFormFilePickerInputHarness, GioFormFilePickerLabelComponent, GioFormFilePickerModule, GioFormFocusInvalidFormDirective, GioFormFocusInvalidIgnoreDirective, GioFormFocusInvalidModule, GioFormHeadersComponent, GioFormHeadersHarness, GioFormHeadersLabelComponent, GioFormHeadersModule, GioFormJsonSchemaComponent, GioFormJsonSchemaModule, GioFormLabelComponent, GioFormPrefixDirective, GioFormSelectionInlineCardComponent, GioFormSelectionInlineCardContentComponent, GioFormSelectionInlineCardHarness, GioFormSelectionInlineCardSubtitleComponent, GioFormSelectionInlineCardTitleComponent, GioFormSelectionInlineComponent, GioFormSelectionInlineHarness, GioFormSelectionInlineModule, GioFormSlideToggleComponent, GioFormSlideToggleDirective, GioFormSlideToggleModule, GioFormTagsInputComponent, GioFormTagsInputHarness, GioFormTagsInputModule, GioIconsModule, GioLicenseDialogComponent, GioLicenseDialogModule, GioLicenseDirective, GioLicenseExpirationNotificationComponent, GioLicenseExpirationNotificationHarness, GioLicenseExpirationNotificationModule, GioLicenseModule, GioLicenseService, GioLicenseTestingModule, GioLoaderComponent, GioLoaderModule, GioMatConfigModule, GioMenuComponent, GioMenuFooterComponent, GioMenuHeaderComponent, GioMenuItemComponent, GioMenuItemsComponent, GioMenuLicenseExpirationNotificationComponent, GioMenuListComponent, GioMenuModule, GioMenuSearchComponent, GioMenuSearchHarness, GioMenuSearchService, GioMenuSelectorComponent, GioMenuSelectorHarness, GioMenuService, GioMonacoClipboardCopyComponent, GioMonacoEditorComponent, GioMonacoEditorFormFieldDirective, GioMonacoEditorHarness, GioMonacoEditorModule, GioPopoverComponent, GioPrismJsService, GioSafePipeModule, GioSaveBarComponent, GioSaveBarHarness, GioSaveBarModule, GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent, GioSubmenuModule, GioSubmenuTitleDirective, GioTopBarComponent, GioTopBarContentComponent, GioTopBarLinkComponent, GioTopBarLinkModule, GioTopBarMenuComponent, GioTopBarMenuModule, GioTopBarModule, LICENSE_CONFIGURATION_TESTING, NewFile, OEM_LICENSE_CONFIGURATION_TESTING, PopoverTriggerDirective, SafePipe, cleanLocalStorageReduceState, computeStyles, isFormHeaderElConfig, isLicensePluginOptions, isPromptError, isPromptSuccess };
1898
+ export { ConfigureTestingGioMonacoEditor, GIO_DIALOG_WIDTH, GIO_FORM_FOCUS_INVALID_IGNORE_SELECTOR, GioActionMenuComponent, GioActionMenuItemComponent, GioAvatarComponent, GioAvatarModule, GioBannerActionDirective, GioBannerBodyDirective, GioBannerComponent, GioBannerErrorComponent, GioBannerInfoComponent, GioBannerModule, GioBannerSuccessComponent, GioBannerWarningComponent, GioBaseFormFocusInvalidDirective, GioBreadcrumbComponent, GioBreadcrumbItemDirective, GioBreadcrumbModule, GioButtonFocusInvalidButtonDirective, GioCardEmptyStateComponent, GioCardEmptyStateModule, GioClipboardCopyIconComponent, GioClipboardCopyWrapperComponent, GioClipboardModule, GioConfirmAndValidateDialogComponent, GioConfirmAndValidateDialogHarness, GioConfirmAndValidateDialogModule, GioConfirmDialogComponent, GioConfirmDialogHarness, GioConfirmDialogModule, GioElAssistantComponent, GioElPromptComponent, GioElService, GioFormCronComponent, GioFormCronHarness, GioFormCronHintComponent, GioFormCronLabelComponent, GioFormCronModule, GioFormFilePickerAddButtonComponent, GioFormFilePickerComponent, GioFormFilePickerEmptyComponent, GioFormFilePickerInputHarness, GioFormFilePickerLabelComponent, GioFormFilePickerModule, GioFormFocusInvalidFormDirective, GioFormFocusInvalidIgnoreDirective, GioFormFocusInvalidModule, GioFormHeadersComponent, GioFormHeadersHarness, GioFormHeadersLabelComponent, GioFormHeadersModule, GioFormJsonSchemaComponent, GioFormJsonSchemaModule, GioFormLabelComponent, GioFormPrefixDirective, GioFormSelectionInlineCardComponent, GioFormSelectionInlineCardContentComponent, GioFormSelectionInlineCardHarness, GioFormSelectionInlineCardSubtitleComponent, GioFormSelectionInlineCardTitleComponent, GioFormSelectionInlineComponent, GioFormSelectionInlineHarness, GioFormSelectionInlineModule, GioFormSlideToggleComponent, GioFormSlideToggleDirective, GioFormSlideToggleModule, GioFormTagsInputComponent, GioFormTagsInputHarness, GioFormTagsInputModule, GioIconsModule, GioLicenseDialogComponent, GioLicenseDialogModule, GioLicenseDirective, GioLicenseExpirationNotificationComponent, GioLicenseExpirationNotificationHarness, GioLicenseExpirationNotificationModule, GioLicenseModule, GioLicenseService, GioLicenseTestingModule, GioLoaderComponent, GioLoaderModule, GioMatConfigModule, GioMenuComponent, GioMenuFooterComponent, GioMenuHeaderComponent, GioMenuItemComponent, GioMenuItemsComponent, GioMenuLicenseExpirationNotificationComponent, GioMenuListComponent, GioMenuModule, GioMenuSearchComponent, GioMenuSearchHarness, GioMenuSearchService, GioMenuSelectorComponent, GioMenuSelectorHarness, GioMenuService, GioMonacoClipboardCopyComponent, GioMonacoEditorComponent, GioMonacoEditorFormFieldDirective, GioMonacoEditorHarness, GioMonacoEditorModule, GioPopoverComponent, GioPrismJsService, GioSafePipeModule, GioSaveBarComponent, GioSaveBarHarness, GioSaveBarModule, GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent, GioSubmenuModule, GioSubmenuTitleDirective, GioTopBarComponent, GioTopBarContentComponent, GioTopBarLinkComponent, GioTopBarLinkModule, GioTopBarMenuComponent, GioTopBarMenuModule, GioTopBarModule, LICENSE_CONFIGURATION_TESTING, NewFile, OEM_LICENSE_CONFIGURATION_TESTING, PopoverTriggerDirective, SafePipe, cleanLocalStorageReduceState, computeStyles, formatJsonString, isFormHeaderElConfig, isLicensePluginOptions, isPromptError, isPromptSuccess };
1892
1899
  export type { AutocompleteOptions, DisplayValueWithFn, ElAiPromptState, ElColumns, FeatureInfo, FeedbackRequestId, FeedbackSubmission, FeedbackType, FormHeaderFieldMapper, GioBannerTypes, GioConfig, GioConfirmAndValidateDialogData, GioConfirmDialogData, GioConfirmDialogResult, GioFormCronHarnessFilters, GioFormSelectionInlineCardHarnessFilters, GioFormSelectionInlineHarnessFilters, GioFormTagsInputHarnessFilters, GioIfConfig, GioJsonSchema, GioJsonSchemaContext, GioLicenseDialogData, GioMonacoEditorHarnessFilters, GioSubmenuTheme, GioTopBarProductTypes, GioTopBarTypes, GioUiTypeConfig, Header, License, LicenseConfiguration, LicenseOptions, LicenseOptionsBase, LicensePluginOptions, MenuSearchItem, MonacoEditorLanguageConfig, OemTheme, OverlayOptions, PromptError, PromptSuccess, SelectorItem, Tags, UTM };
package/index.scss CHANGED
@@ -13,4 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- @forward './src/scss/index.scss';
16
+ @forward './src/scss/index';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/ui-particles-angular",
3
- "version": "17.9.1",
3
+ "version": "18.0.0-renovate-angular-158f278",
4
4
  "description": "Gravitee.io - UI Particles Angular",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,12 +8,12 @@
8
8
  },
9
9
  "license": "Apache-2.0",
10
10
  "dependencies": {
11
- "@fontsource/fira-mono": "5.0.14",
12
- "@fontsource/kanit": "^5.2.6",
13
- "@fontsource/manrope": "^5.2.5",
14
- "@fontsource/material-icons": "5.0.19",
15
- "cronstrue": "^2.48.0",
16
- "tslib": "^2.6.2"
11
+ "@fontsource/fira-mono": "5.3.0",
12
+ "@fontsource/kanit": "^5.3.0",
13
+ "@fontsource/manrope": "^5.3.0",
14
+ "@fontsource/material-icons": "5.3.0",
15
+ "cronstrue": "^3.0.0",
16
+ "tslib": "^2.8.1"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "@angular/animations": "^20.3.3",
@@ -22,20 +22,20 @@
22
22
  "@angular/core": "^20.3.3",
23
23
  "@angular/forms": "^20.3.3",
24
24
  "@angular/material": "^20.2.8",
25
- "@asciidoctor/core": "^3.0.0",
26
- "@ngx-formly/core": "^6.2.2",
27
- "@ngx-formly/material": "^6.2.2",
25
+ "@asciidoctor/core": "^4.0.0",
26
+ "@ngx-formly/core": "^6.2.2 || ^7.0.0 || ^8.0.0",
27
+ "@ngx-formly/material": "^6.2.2 || ^7.0.0 || ^8.0.0",
28
28
  "ngx-file-helpers": "^11.0.0 || ^12.0.0",
29
29
  "prismjs": "^1.29.0"
30
30
  },
31
31
  "peerDependenciesMeta": {
32
- "@ngx-formly/core": {
32
+ "@asciidoctor/core": {
33
33
  "optional": true
34
34
  },
35
- "@ngx-formly/material": {
35
+ "@ngx-formly/core": {
36
36
  "optional": true
37
37
  },
38
- "asciidoctor": {
38
+ "@ngx-formly/material": {
39
39
  "optional": true
40
40
  },
41
41
  "prismjs": {
@@ -63,11 +63,11 @@
63
63
  font-weight: normal;
64
64
  letter-spacing: normal;
65
65
  line-height: 1;
66
+ overflow-wrap: normal;
66
67
 
67
68
  /* Support for Safari and Chrome. */
68
69
  text-rendering: optimizelegibility;
69
70
  text-transform: none;
70
71
  white-space: nowrap;
71
- word-wrap: normal;
72
72
  }
73
73
  }
@@ -284,8 +284,7 @@ $mat-basic-palette: mat.m2-define-palette(
284
284
  white: mat.m2-get-color-from-palette($mat-smoke-palette, lighter80),
285
285
  disabled: rgb(0 0 0 / 12%),
286
286
  // Same color as the disabled color of material
287
- contrast:
288
- (
287
+ contrast: (
289
288
  black: mat.m2-get-color-from-palette($mat-smoke-palette, lighter80),
290
289
  white: mat.m2-get-color-from-palette($mat-smoke-palette, darker80),
291
290
  disabled: rgb(0 0 0 / 26%),
@@ -14,8 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- @forward './gio-mat-palettes' show $mat-primary-palette, $mat-accent-palette, $mat-success-palette, $mat-warning-palette, $mat-error-palette,
18
- $mat-method-palette, $mat-basic-palette, $mat-blue-palette, $mat-cyan-palette, $mat-space-palette, $mat-dove-palette, $mat-smoke-palette;
17
+ @forward './gio-mat-palettes' show $mat-primary-palette, $mat-accent-palette, $mat-success-palette, $mat-warning-palette,
18
+ $mat-error-palette, $mat-method-palette, $mat-basic-palette, $mat-blue-palette, $mat-cyan-palette, $mat-space-palette, $mat-dove-palette,
19
+ $mat-smoke-palette;
19
20
 
20
21
  @forward './gio-oem-palette' show $mat-oem-palette, $mat-oem-palette-light;
21
22