@gravitee/ui-particles-angular 16.2.1-apim-11833-llm-proxy-ui-does-not-match-designs-fd54867 → 16.2.1-apim-11427-9396ebd

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.
@@ -2964,8 +2964,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
2964
2964
  * limitations under the License.
2965
2965
  */
2966
2966
  class GioFormlyJsonSchemaService {
2967
- constructor(formlyJsonschema) {
2967
+ constructor(formlyJsonschema, builder) {
2968
2968
  this.formlyJsonschema = formlyJsonschema;
2969
+ this.builder = builder;
2969
2970
  }
2970
2971
  toFormlyFieldConfig(jsonSchema, context) {
2971
2972
  return this.formlyJsonschema.toFieldConfig(jsonSchema, {
@@ -3015,7 +3016,6 @@ class GioFormlyJsonSchemaService {
3015
3016
  mappedField = {
3016
3017
  key: mappedField.key,
3017
3018
  type: mapSource.gioConfig?.uiType,
3018
- wrappers: ['gio-currency-prefix'],
3019
3019
  props: {
3020
3020
  ...mappedField.props,
3021
3021
  ...mapSource.gioConfig?.uiTypeProps,
@@ -3072,15 +3072,6 @@ class GioFormlyJsonSchemaService {
3072
3072
  },
3073
3073
  };
3074
3074
  }
3075
- if (mapSource.gioConfig?.currency) {
3076
- mappedField.props = {
3077
- ...mappedField.props,
3078
- attributes: {
3079
- ...mappedField.props?.attributes,
3080
- currency: 1,
3081
- },
3082
- };
3083
- }
3084
3075
  return mappedField;
3085
3076
  }
3086
3077
  bannerMap(mappedField, mapSource) {
@@ -3183,12 +3174,12 @@ class GioFormlyJsonSchemaService {
3183
3174
  }
3184
3175
  return mappedField;
3185
3176
  }
3186
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: GioFormlyJsonSchemaService, deps: [{ token: i1$7.FormlyJsonschema }], target: i0.ɵɵFactoryTarget.Injectable }); }
3177
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: GioFormlyJsonSchemaService, deps: [{ token: i1$7.FormlyJsonschema }, { token: i1$8.FormlyFormBuilder }], target: i0.ɵɵFactoryTarget.Injectable }); }
3187
3178
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: GioFormlyJsonSchemaService }); }
3188
3179
  }
3189
3180
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: GioFormlyJsonSchemaService, decorators: [{
3190
3181
  type: Injectable
3191
- }], ctorParameters: () => [{ type: i1$7.FormlyJsonschema }] });
3182
+ }], ctorParameters: () => [{ type: i1$7.FormlyJsonschema }, { type: i1$8.FormlyFormBuilder }] });
3192
3183
  const getBannerProperties = (banner) => {
3193
3184
  return {
3194
3185
  bannerText: banner.text,
@@ -5405,47 +5396,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
5405
5396
  args: [{ selector: 'gio-banner-wrapper', standalone: false, template: "<!--\n\n Copyright (C) 2023 The Gravitee team (http://gravitee.io)\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<div class=\"wrapper\">\n <div class=\"banner\">\n <div class=\"banner__icon\"><mat-icon svgIcon=\"gio:info\"></mat-icon></div>\n <div>\n <div class=\"banner__title\" [innerHTML]=\"props.bannerTitle\"></div>\n <div class=\"banner__text\" [innerHTML]=\"props.bannerText\"></div>\n </div>\n </div>\n <ng-container #fieldComponent></ng-container>\n</div>\n", styles: ["@charset \"UTF-8\";.gio-top-bar-menu .gio-badge-accent{background-color:var(--gio-oem-palette--active, #ffc2ac);color:var(--gio-oem-palette--active-contrast, #1e1b1b)}::ng-deep gio-banner-wrapper ul{padding-inline-start:16px}.wrapper{padding:8px 0}.banner{display:flex;flex-direction:row;align-items:flex-start;padding:8px;border-radius:8px;margin-bottom:8px;background:#f7f7f8;gap:8px}.banner__icon{padding-top:2px}.banner__icon mat-icon{width:16px;height:16px;color:#da3b00}.banner__title{font-size:14px;font-weight:700;line-height:20px;font-family:Manrope,sans-serif;letter-spacing:.4px}.banner__text{font-size:14px;font-weight:500;line-height:22px;font-family:Manrope,sans-serif;letter-spacing:.4px;color:#322f2f}\n"] }]
5406
5397
  }] });
5407
5398
 
5408
- /*
5409
- * Copyright (C) 2025 The Gravitee team (http://gravitee.io)
5410
- *
5411
- * Licensed under the Apache License, Version 2.0 (the "License");
5412
- * you may not use this file except in compliance with the License.
5413
- * You may obtain a copy of the License at
5414
- *
5415
- * http://www.apache.org/licenses/LICENSE-2.0
5416
- *
5417
- * Unless required by applicable law or agreed to in writing, software
5418
- * distributed under the License is distributed on an "AS IS" BASIS,
5419
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5420
- * See the License for the specific language governing permissions and
5421
- * limitations under the License.
5422
- */
5423
- class GioCurrencyPrefixWrapperComponent extends FieldWrapper {
5424
- constructor() {
5425
- super(...arguments);
5426
- this.hide = true;
5427
- }
5428
- ngAfterViewInit() {
5429
- if (this.matPrefix) {
5430
- this.props.prefix = this.matPrefix;
5431
- }
5432
- }
5433
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: GioCurrencyPrefixWrapperComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
5434
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.3", type: GioCurrencyPrefixWrapperComponent, isStandalone: false, selector: "gio-currency-prefix-wrapper", viewQueries: [{ propertyName: "matPrefix", first: true, predicate: ["matPrefix"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!--\n\n Copyright (C) 2023 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<ng-container #fieldComponent></ng-container>\n\n<ng-template #matPrefix>\n <span class=\"currency-prefix\">&nbsp; $</span>\n</ng-template>\n", styles: [".currency-prefix{margin-left:8px;color:#0009}\n"] }); }
5435
- }
5436
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: GioCurrencyPrefixWrapperComponent, decorators: [{
5437
- type: Component,
5438
- args: [{ selector: 'gio-currency-prefix-wrapper', standalone: false, template: "<!--\n\n Copyright (C) 2023 The Gravitee team (http://gravitee.io)\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n-->\n<ng-container #fieldComponent></ng-container>\n\n<ng-template #matPrefix>\n <span class=\"currency-prefix\">&nbsp; $</span>\n</ng-template>\n", styles: [".currency-prefix{margin-left:8px;color:#0009}\n"] }]
5439
- }], propDecorators: { matPrefix: [{
5440
- type: ViewChild,
5441
- args: ['matPrefix', { static: true }]
5442
- }] } });
5443
- function currencyPrefixExtension(field) {
5444
- if (field.props?.attributes?.currency) {
5445
- field.wrappers = [...(field.wrappers || []), 'gio-currency-prefix'];
5446
- }
5447
- }
5448
-
5449
5399
  function bannerExtension(field) {
5450
5400
  if (!field.props || (field.wrappers && field.wrappers.indexOf('gio-with-banner') !== -1)) {
5451
5401
  return;
@@ -5920,8 +5870,7 @@ class GioFormJsonSchemaModule {
5920
5870
  GioFjsCronTypeComponent,
5921
5871
  GioBannerWrapperComponent,
5922
5872
  GioPasswordEyeWrapperComponent,
5923
- GioElHelperWrapperComponent,
5924
- GioCurrencyPrefixWrapperComponent], imports: [CommonModule,
5873
+ GioElHelperWrapperComponent], imports: [CommonModule,
5925
5874
  A11yModule,
5926
5875
  ReactiveFormsModule, i1$8.FormlyModule, FormlyMaterialModule,
5927
5876
  MatInputModule,
@@ -5958,7 +5907,6 @@ class GioFormJsonSchemaModule {
5958
5907
  { name: 'gio-with-banner', component: GioBannerWrapperComponent },
5959
5908
  { name: 'gio-password-eye', component: GioPasswordEyeWrapperComponent },
5960
5909
  { name: 'gio-el-help', component: GioElHelperWrapperComponent },
5961
- { name: 'gio-currency-prefix', component: GioCurrencyPrefixWrapperComponent },
5962
5910
  ],
5963
5911
  types: [
5964
5912
  { name: 'null', component: GioFjsNullTypeComponent, wrappers: ['form-field'] },
@@ -5987,7 +5935,6 @@ class GioFormJsonSchemaModule {
5987
5935
  { name: 'banner', extension: { onPopulate: bannerExtension } },
5988
5936
  { name: 'password-eye', extension: { onPopulate: passwordEyeExtension } },
5989
5937
  { name: 'el-help', extension: { onPopulate: elHelpExtension } },
5990
- { name: 'gio-currency-prefix', extension: { onPopulate: currencyPrefixExtension } },
5991
5938
  ],
5992
5939
  extras: {
5993
5940
  checkExpressionOn: 'changeDetectionCheck',
@@ -6024,7 +5971,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
6024
5971
  GioBannerWrapperComponent,
6025
5972
  GioPasswordEyeWrapperComponent,
6026
5973
  GioElHelperWrapperComponent,
6027
- GioCurrencyPrefixWrapperComponent,
6028
5974
  ],
6029
5975
  imports: [
6030
5976
  CommonModule,
@@ -6051,7 +5997,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
6051
5997
  { name: 'gio-with-banner', component: GioBannerWrapperComponent },
6052
5998
  { name: 'gio-password-eye', component: GioPasswordEyeWrapperComponent },
6053
5999
  { name: 'gio-el-help', component: GioElHelperWrapperComponent },
6054
- { name: 'gio-currency-prefix', component: GioCurrencyPrefixWrapperComponent },
6055
6000
  ],
6056
6001
  types: [
6057
6002
  { name: 'null', component: GioFjsNullTypeComponent, wrappers: ['form-field'] },
@@ -6080,7 +6025,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
6080
6025
  { name: 'banner', extension: { onPopulate: bannerExtension } },
6081
6026
  { name: 'password-eye', extension: { onPopulate: passwordEyeExtension } },
6082
6027
  { name: 'el-help', extension: { onPopulate: elHelpExtension } },
6083
- { name: 'gio-currency-prefix', extension: { onPopulate: currencyPrefixExtension } },
6084
6028
  ],
6085
6029
  extras: {
6086
6030
  checkExpressionOn: 'changeDetectionCheck',