@sebgroup/green-core-ng 2.31.0 → 2.32.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.
|
@@ -5,10 +5,10 @@ import { GdsAlert } from '@sebgroup/green-core/components/alert/alert.component.
|
|
|
5
5
|
import { GdsBadge } from '@sebgroup/green-core/components/badge/badge.component.js';
|
|
6
6
|
import { GdsBlur } from '@sebgroup/green-core/components/blur/blur.component.js';
|
|
7
7
|
import { GdsBreadcrumbs } from '@sebgroup/green-core/components/breadcrumbs/breadcrumbs.component.js';
|
|
8
|
+
import { GdsCalendar } from '@sebgroup/green-core/components/calendar/calendar.component.js';
|
|
8
9
|
import { NgControl, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
9
10
|
import { RouterLink, RouterLinkActive } from '@angular/router';
|
|
10
11
|
import { GdsButton } from '@sebgroup/green-core/components/button/button.component.js';
|
|
11
|
-
import { GdsCalendar } from '@sebgroup/green-core/components/calendar/calendar.component.js';
|
|
12
12
|
import { GdsCard } from '@sebgroup/green-core/components/card/card.component.js';
|
|
13
13
|
import { GdsCardLinked } from '@sebgroup/green-core/components/card-linked/card-linked.component.js';
|
|
14
14
|
import { GdsCheckbox } from '@sebgroup/green-core/components/checkbox/checkbox.component.js';
|
|
@@ -16,13 +16,13 @@ import { GdsCoachmark } from '@sebgroup/green-core/components/coachmark/coachmar
|
|
|
16
16
|
import { GdsContextMenu, GdsMenuItem, GdsMenuHeading } from '@sebgroup/green-core/components/context-menu/context-menu.component.js';
|
|
17
17
|
import { GdsDatepicker } from '@sebgroup/green-core/components/datepicker/datepicker.component.js';
|
|
18
18
|
import { GdsDetails } from '@sebgroup/green-core/components/details/details.component.js';
|
|
19
|
+
import { GdsDialog } from '@sebgroup/green-core/components/dialog/dialog.component.js';
|
|
19
20
|
import { GdsDiv } from '@sebgroup/green-core/components/div/div.component.js';
|
|
20
21
|
import { GdsDivider } from '@sebgroup/green-core/components/divider/divider.component.js';
|
|
21
|
-
import { GdsDialog } from '@sebgroup/green-core/components/dialog/dialog.component.js';
|
|
22
22
|
import { GdsDropdown, GdsOption } from '@sebgroup/green-core/components/dropdown/dropdown.component.js';
|
|
23
23
|
import { GdsFab } from '@sebgroup/green-core/components/fab/fab.component.js';
|
|
24
|
-
import { GdsFlex } from '@sebgroup/green-core/components/flex/flex.component.js';
|
|
25
24
|
import { GdsFilterChips } from '@sebgroup/green-core/components/filter-chips/filter-chips.component.js';
|
|
25
|
+
import { GdsFlex } from '@sebgroup/green-core/components/flex/flex.component.js';
|
|
26
26
|
import { GdsFormSummary } from '@sebgroup/green-core/components/form-summary/summary.component.js';
|
|
27
27
|
import { GdsGrid } from '@sebgroup/green-core/components/grid/grid.component.js';
|
|
28
28
|
import { GdsGroupedList } from '@sebgroup/green-core/components/grouped-list/grouped-list.component.js';
|
|
@@ -51,9 +51,9 @@ import { GdsBreadcrumb } from '@sebgroup/green-core/components/breadcrumbs/bread
|
|
|
51
51
|
import { GdsCheckboxGroup } from '@sebgroup/green-core/components/checkbox/checkbox-group/checkbox-group.component.js';
|
|
52
52
|
import { GdsIconDetails } from '@sebgroup/green-core/components/details/details-icon/details-icon.component.js';
|
|
53
53
|
import { GdsFilterChip } from '@sebgroup/green-core/components/filter-chips/filter-chip/filter-chip.component.js';
|
|
54
|
-
import { GdsFormattedAccount } from '@sebgroup/green-core/components/formatted-text/account/formatted-account.component.js';
|
|
55
54
|
import { GdsFormattedDate } from '@sebgroup/green-core/components/formatted-text/date/formatted-date.component.js';
|
|
56
55
|
import { GdsFormattedNumber } from '@sebgroup/green-core/components/formatted-text/number/formatted-number.component.js';
|
|
56
|
+
import { GdsFormattedAccount } from '@sebgroup/green-core/components/formatted-text/account/formatted-account.component.js';
|
|
57
57
|
import { GdsRadioGroup } from '@sebgroup/green-core/components/radio/radio-group/radio-group.component.js';
|
|
58
58
|
import { GdsSegment } from '@sebgroup/green-core/components/segmented-control/segment/segment.component.js';
|
|
59
59
|
import { GdsSensitiveAccount } from '@sebgroup/green-core/components/sensitive/account/sensitive-account.component.js';
|
|
@@ -780,270 +780,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
780
780
|
* Auto-generated from Custom Elements Manifest
|
|
781
781
|
*/
|
|
782
782
|
|
|
783
|
-
/**
|
|
784
|
-
* Base class for Angular wrapper components that wrap Green Core form controls.
|
|
785
|
-
*
|
|
786
|
-
* This class implements ControlValueAccessor to enable seamless integration with
|
|
787
|
-
* Angular forms (both template-driven and reactive forms).
|
|
788
|
-
*
|
|
789
|
-
* @internal
|
|
790
|
-
*/
|
|
791
|
-
class GdsFormControlBase {
|
|
792
|
-
constructor() {
|
|
793
|
-
this.elementRef = inject(ElementRef);
|
|
794
|
-
this.zone = inject(NgZone);
|
|
795
|
-
this.cdr = inject(ChangeDetectorRef);
|
|
796
|
-
this.renderer = inject(Renderer2);
|
|
797
|
-
this.injector = inject(Injector);
|
|
798
|
-
this._onChange = () => { };
|
|
799
|
-
this._onTouched = () => { };
|
|
800
|
-
}
|
|
801
|
-
ngOnInit() {
|
|
802
|
-
// Subclasses should call super.ngOnInit() and add their own initialization
|
|
803
|
-
}
|
|
804
|
-
ngAfterViewInit() {
|
|
805
|
-
// Get the NgControl instance if this component is used in a form
|
|
806
|
-
try {
|
|
807
|
-
this.control = this.injector.get(NgControl, undefined);
|
|
808
|
-
}
|
|
809
|
-
catch {
|
|
810
|
-
// Component is not used in a form context
|
|
811
|
-
this.control = undefined;
|
|
812
|
-
}
|
|
813
|
-
if (this.control) {
|
|
814
|
-
// Subscribe to status changes to update validation state
|
|
815
|
-
this.control.statusChanges?.subscribe(() => {
|
|
816
|
-
this.updateControlState();
|
|
817
|
-
});
|
|
818
|
-
this.control.valueChanges?.subscribe(() => {
|
|
819
|
-
this.updateControlState();
|
|
820
|
-
});
|
|
821
|
-
// Update on form submit
|
|
822
|
-
const form = this.elementRef.nativeElement.form;
|
|
823
|
-
if (form) {
|
|
824
|
-
form.addEventListener('submit', () => {
|
|
825
|
-
this.control?.control?.markAsTouched();
|
|
826
|
-
this.updateControlState();
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
this.updateControlState();
|
|
830
|
-
}
|
|
831
|
-
// Set up event listener for the 'input' event from the web component
|
|
832
|
-
this.elementRef.nativeElement.addEventListener('input', (event) => {
|
|
833
|
-
const value = event.target.value;
|
|
834
|
-
this._onChange(value);
|
|
835
|
-
this.cdr.markForCheck();
|
|
836
|
-
});
|
|
837
|
-
// Set up event listener for the 'change' event from the web component
|
|
838
|
-
this.elementRef.nativeElement.addEventListener('change', () => {
|
|
839
|
-
this._onTouched();
|
|
840
|
-
});
|
|
841
|
-
// Set up blur event listener
|
|
842
|
-
this.elementRef.nativeElement.addEventListener('blur', () => {
|
|
843
|
-
this._onTouched();
|
|
844
|
-
});
|
|
845
|
-
}
|
|
846
|
-
/**
|
|
847
|
-
* Updates the validation state of the underlying web component
|
|
848
|
-
*/
|
|
849
|
-
updateControlState() {
|
|
850
|
-
const control = this.control?.control;
|
|
851
|
-
if (control) {
|
|
852
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'invalid', (control.dirty || control.touched) && control.invalid);
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
// ControlValueAccessor implementation
|
|
856
|
-
/**
|
|
857
|
-
* Writes a new value to the element
|
|
858
|
-
*/
|
|
859
|
-
writeValue(value) {
|
|
860
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'value', value);
|
|
861
|
-
}
|
|
862
|
-
/**
|
|
863
|
-
* Registers a callback function that is called when the control's value changes in the UI
|
|
864
|
-
*/
|
|
865
|
-
registerOnChange(fn) {
|
|
866
|
-
this._onChange = fn;
|
|
867
|
-
}
|
|
868
|
-
/**
|
|
869
|
-
* Registers a callback function that is called when the control is touched
|
|
870
|
-
*/
|
|
871
|
-
registerOnTouched(fn) {
|
|
872
|
-
this._onTouched = fn;
|
|
873
|
-
}
|
|
874
|
-
/**
|
|
875
|
-
* Sets the disabled state of the element
|
|
876
|
-
*/
|
|
877
|
-
setDisabledState(isDisabled) {
|
|
878
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', isDisabled);
|
|
879
|
-
}
|
|
880
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsFormControlBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
881
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: GdsFormControlBase, isStandalone: true, ngImport: i0 }); }
|
|
882
|
-
}
|
|
883
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsFormControlBase, decorators: [{
|
|
884
|
-
type: Directive
|
|
885
|
-
}] });
|
|
886
|
-
|
|
887
|
-
/**
|
|
888
|
-
* Angular wrapper for the gds-button web component
|
|
889
|
-
*
|
|
890
|
-
*/
|
|
891
|
-
let GdsButtonComponent = class GdsButtonComponent extends GdsFormControlBase {
|
|
892
|
-
constructor() {
|
|
893
|
-
super(...arguments);
|
|
894
|
-
this.routerLink = inject(RouterLink, { optional: true, self: true });
|
|
895
|
-
this.routerLinkActive = inject(RouterLinkActive, { optional: true, self: true });
|
|
896
|
-
/** Fired when the button is clicked. */
|
|
897
|
-
this.click = new EventEmitter();
|
|
898
|
-
}
|
|
899
|
-
/**
|
|
900
|
-
* Updates the href attribute from RouterLink
|
|
901
|
-
* @internal
|
|
902
|
-
*/
|
|
903
|
-
updateHref() {
|
|
904
|
-
if (!this.routerLink)
|
|
905
|
-
return;
|
|
906
|
-
// Trick RouterLink into thinking we are an anchor element
|
|
907
|
-
this.routerLink.isAnchorElement = true;
|
|
908
|
-
this.routerLink.updateHref();
|
|
909
|
-
// Set the href attribute on our element
|
|
910
|
-
this.renderer.setAttribute(this.elementRef.nativeElement, 'href', this.routerLink.href || '');
|
|
911
|
-
}
|
|
912
|
-
get element() {
|
|
913
|
-
return this.elementRef.nativeElement;
|
|
914
|
-
}
|
|
915
|
-
ngOnInit() {
|
|
916
|
-
super.ngOnInit();
|
|
917
|
-
// Define the custom element
|
|
918
|
-
try {
|
|
919
|
-
GdsButton.define();
|
|
920
|
-
}
|
|
921
|
-
catch (e) {
|
|
922
|
-
// Component may not be available in this version of green-core
|
|
923
|
-
console.warn('Failed to define gds-button:', e);
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
ngOnChanges(changes) {
|
|
927
|
-
// Implementation added by @ProxyInputs decorator
|
|
928
|
-
if (changes['routerLink']) {
|
|
929
|
-
this.updateHref();
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
ngAfterViewInit() {
|
|
933
|
-
super.ngAfterViewInit();
|
|
934
|
-
this.updateHref();
|
|
935
|
-
}
|
|
936
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
937
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.18", type: GdsButtonComponent, isStandalone: true, selector: "gds-button", inputs: { width: "width", minWidth: "minWidth", maxWidth: "maxWidth", inlineSize: "inlineSize", minInlineSize: "minInlineSize", maxInlineSize: "maxInlineSize", margin: "margin", marginInline: "marginInline", marginBlock: "marginBlock", alignSelf: "alignSelf", justifySelf: "justifySelf", placeSelf: "placeSelf", gridColumn: "gridColumn", gridRow: "gridRow", gridArea: "gridArea", flex: "flex", order: "order", disabled: ["disabled", "disabled", booleanAttribute], justifyContent: "justifyContent", type: "type", rank: "rank", variant: "variant", size: "size", label: "label", wrapped: ["wrapped", "wrapped", booleanAttribute], href: "href", target: "target", rel: "rel", download: "download", validator: "validator", required: ["required", "required", booleanAttribute], errorMessage: "errorMessage", invalid: "invalid", value: "value", name: "name" }, outputs: { click: "click" }, providers: [
|
|
938
|
-
{
|
|
939
|
-
provide: NG_VALUE_ACCESSOR,
|
|
940
|
-
useExisting: forwardRef(() => GdsButtonComponent),
|
|
941
|
-
multi: true,
|
|
942
|
-
},
|
|
943
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
944
|
-
};
|
|
945
|
-
GdsButtonComponent = __decorate([
|
|
946
|
-
ProxyInputs(['width', 'min-width', 'max-width', 'inline-size', 'min-inline-size', 'max-inline-size', 'margin', 'margin-inline', 'margin-block', 'align-self', 'justify-self', 'place-self', 'grid-column', 'grid-row', 'grid-area', 'flex', 'order', 'disabled', 'justify-content', 'type', 'rank', 'variant', 'size', 'label', 'wrapped', 'href', 'target', 'rel', 'download', 'validator', 'required', 'errorMessage', 'invalid', 'value', 'name'])
|
|
947
|
-
], GdsButtonComponent);
|
|
948
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsButtonComponent, decorators: [{
|
|
949
|
-
type: Component,
|
|
950
|
-
args: [{
|
|
951
|
-
selector: 'gds-button',
|
|
952
|
-
standalone: true,
|
|
953
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
954
|
-
template: `<ng-content></ng-content>`,
|
|
955
|
-
providers: [
|
|
956
|
-
{
|
|
957
|
-
provide: NG_VALUE_ACCESSOR,
|
|
958
|
-
useExisting: forwardRef(() => GdsButtonComponent),
|
|
959
|
-
multi: true,
|
|
960
|
-
},
|
|
961
|
-
]
|
|
962
|
-
}]
|
|
963
|
-
}], propDecorators: { width: [{
|
|
964
|
-
type: Input
|
|
965
|
-
}], minWidth: [{
|
|
966
|
-
type: Input
|
|
967
|
-
}], maxWidth: [{
|
|
968
|
-
type: Input
|
|
969
|
-
}], inlineSize: [{
|
|
970
|
-
type: Input
|
|
971
|
-
}], minInlineSize: [{
|
|
972
|
-
type: Input
|
|
973
|
-
}], maxInlineSize: [{
|
|
974
|
-
type: Input
|
|
975
|
-
}], margin: [{
|
|
976
|
-
type: Input
|
|
977
|
-
}], marginInline: [{
|
|
978
|
-
type: Input
|
|
979
|
-
}], marginBlock: [{
|
|
980
|
-
type: Input
|
|
981
|
-
}], alignSelf: [{
|
|
982
|
-
type: Input
|
|
983
|
-
}], justifySelf: [{
|
|
984
|
-
type: Input
|
|
985
|
-
}], placeSelf: [{
|
|
986
|
-
type: Input
|
|
987
|
-
}], gridColumn: [{
|
|
988
|
-
type: Input
|
|
989
|
-
}], gridRow: [{
|
|
990
|
-
type: Input
|
|
991
|
-
}], gridArea: [{
|
|
992
|
-
type: Input
|
|
993
|
-
}], flex: [{
|
|
994
|
-
type: Input
|
|
995
|
-
}], order: [{
|
|
996
|
-
type: Input
|
|
997
|
-
}], disabled: [{
|
|
998
|
-
type: Input,
|
|
999
|
-
args: [{ transform: booleanAttribute }]
|
|
1000
|
-
}], justifyContent: [{
|
|
1001
|
-
type: Input
|
|
1002
|
-
}], type: [{
|
|
1003
|
-
type: Input
|
|
1004
|
-
}], rank: [{
|
|
1005
|
-
type: Input
|
|
1006
|
-
}], variant: [{
|
|
1007
|
-
type: Input
|
|
1008
|
-
}], size: [{
|
|
1009
|
-
type: Input
|
|
1010
|
-
}], label: [{
|
|
1011
|
-
type: Input
|
|
1012
|
-
}], wrapped: [{
|
|
1013
|
-
type: Input,
|
|
1014
|
-
args: [{ transform: booleanAttribute }]
|
|
1015
|
-
}], href: [{
|
|
1016
|
-
type: Input
|
|
1017
|
-
}], target: [{
|
|
1018
|
-
type: Input
|
|
1019
|
-
}], rel: [{
|
|
1020
|
-
type: Input
|
|
1021
|
-
}], download: [{
|
|
1022
|
-
type: Input
|
|
1023
|
-
}], validator: [{
|
|
1024
|
-
type: Input
|
|
1025
|
-
}], required: [{
|
|
1026
|
-
type: Input,
|
|
1027
|
-
args: [{ transform: booleanAttribute }]
|
|
1028
|
-
}], errorMessage: [{
|
|
1029
|
-
type: Input
|
|
1030
|
-
}], invalid: [{
|
|
1031
|
-
type: Input
|
|
1032
|
-
}], value: [{
|
|
1033
|
-
type: Input
|
|
1034
|
-
}], name: [{
|
|
1035
|
-
type: Input
|
|
1036
|
-
}], click: [{
|
|
1037
|
-
type: Output
|
|
1038
|
-
}] } });
|
|
1039
|
-
|
|
1040
|
-
/**
|
|
1041
|
-
* GdsButtonComponent - Angular wrapper for gds-button
|
|
1042
|
-
*
|
|
1043
|
-
*
|
|
1044
|
-
* Auto-generated from Custom Elements Manifest
|
|
1045
|
-
*/
|
|
1046
|
-
|
|
1047
783
|
/**
|
|
1048
784
|
* Angular wrapper for the gds-calendar web component
|
|
1049
785
|
*
|
|
@@ -1144,6 +880,270 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
1144
880
|
* Auto-generated from Custom Elements Manifest
|
|
1145
881
|
*/
|
|
1146
882
|
|
|
883
|
+
/**
|
|
884
|
+
* Base class for Angular wrapper components that wrap Green Core form controls.
|
|
885
|
+
*
|
|
886
|
+
* This class implements ControlValueAccessor to enable seamless integration with
|
|
887
|
+
* Angular forms (both template-driven and reactive forms).
|
|
888
|
+
*
|
|
889
|
+
* @internal
|
|
890
|
+
*/
|
|
891
|
+
class GdsFormControlBase {
|
|
892
|
+
constructor() {
|
|
893
|
+
this.elementRef = inject(ElementRef);
|
|
894
|
+
this.zone = inject(NgZone);
|
|
895
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
896
|
+
this.renderer = inject(Renderer2);
|
|
897
|
+
this.injector = inject(Injector);
|
|
898
|
+
this._onChange = () => { };
|
|
899
|
+
this._onTouched = () => { };
|
|
900
|
+
}
|
|
901
|
+
ngOnInit() {
|
|
902
|
+
// Subclasses should call super.ngOnInit() and add their own initialization
|
|
903
|
+
}
|
|
904
|
+
ngAfterViewInit() {
|
|
905
|
+
// Get the NgControl instance if this component is used in a form
|
|
906
|
+
try {
|
|
907
|
+
this.control = this.injector.get(NgControl, undefined);
|
|
908
|
+
}
|
|
909
|
+
catch {
|
|
910
|
+
// Component is not used in a form context
|
|
911
|
+
this.control = undefined;
|
|
912
|
+
}
|
|
913
|
+
if (this.control) {
|
|
914
|
+
// Subscribe to status changes to update validation state
|
|
915
|
+
this.control.statusChanges?.subscribe(() => {
|
|
916
|
+
this.updateControlState();
|
|
917
|
+
});
|
|
918
|
+
this.control.valueChanges?.subscribe(() => {
|
|
919
|
+
this.updateControlState();
|
|
920
|
+
});
|
|
921
|
+
// Update on form submit
|
|
922
|
+
const form = this.elementRef.nativeElement.form;
|
|
923
|
+
if (form) {
|
|
924
|
+
form.addEventListener('submit', () => {
|
|
925
|
+
this.control?.control?.markAsTouched();
|
|
926
|
+
this.updateControlState();
|
|
927
|
+
});
|
|
928
|
+
}
|
|
929
|
+
this.updateControlState();
|
|
930
|
+
}
|
|
931
|
+
// Set up event listener for the 'input' event from the web component
|
|
932
|
+
this.elementRef.nativeElement.addEventListener('input', (event) => {
|
|
933
|
+
const value = event.target.value;
|
|
934
|
+
this._onChange(value);
|
|
935
|
+
this.cdr.markForCheck();
|
|
936
|
+
});
|
|
937
|
+
// Set up event listener for the 'change' event from the web component
|
|
938
|
+
this.elementRef.nativeElement.addEventListener('change', () => {
|
|
939
|
+
this._onTouched();
|
|
940
|
+
});
|
|
941
|
+
// Set up blur event listener
|
|
942
|
+
this.elementRef.nativeElement.addEventListener('blur', () => {
|
|
943
|
+
this._onTouched();
|
|
944
|
+
});
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* Updates the validation state of the underlying web component
|
|
948
|
+
*/
|
|
949
|
+
updateControlState() {
|
|
950
|
+
const control = this.control?.control;
|
|
951
|
+
if (control) {
|
|
952
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'invalid', (control.dirty || control.touched) && control.invalid);
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
// ControlValueAccessor implementation
|
|
956
|
+
/**
|
|
957
|
+
* Writes a new value to the element
|
|
958
|
+
*/
|
|
959
|
+
writeValue(value) {
|
|
960
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'value', value);
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* Registers a callback function that is called when the control's value changes in the UI
|
|
964
|
+
*/
|
|
965
|
+
registerOnChange(fn) {
|
|
966
|
+
this._onChange = fn;
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* Registers a callback function that is called when the control is touched
|
|
970
|
+
*/
|
|
971
|
+
registerOnTouched(fn) {
|
|
972
|
+
this._onTouched = fn;
|
|
973
|
+
}
|
|
974
|
+
/**
|
|
975
|
+
* Sets the disabled state of the element
|
|
976
|
+
*/
|
|
977
|
+
setDisabledState(isDisabled) {
|
|
978
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', isDisabled);
|
|
979
|
+
}
|
|
980
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsFormControlBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
981
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: GdsFormControlBase, isStandalone: true, ngImport: i0 }); }
|
|
982
|
+
}
|
|
983
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsFormControlBase, decorators: [{
|
|
984
|
+
type: Directive
|
|
985
|
+
}] });
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Angular wrapper for the gds-button web component
|
|
989
|
+
*
|
|
990
|
+
*/
|
|
991
|
+
let GdsButtonComponent = class GdsButtonComponent extends GdsFormControlBase {
|
|
992
|
+
constructor() {
|
|
993
|
+
super(...arguments);
|
|
994
|
+
this.routerLink = inject(RouterLink, { optional: true, self: true });
|
|
995
|
+
this.routerLinkActive = inject(RouterLinkActive, { optional: true, self: true });
|
|
996
|
+
/** Fired when the button is clicked. */
|
|
997
|
+
this.click = new EventEmitter();
|
|
998
|
+
}
|
|
999
|
+
/**
|
|
1000
|
+
* Updates the href attribute from RouterLink
|
|
1001
|
+
* @internal
|
|
1002
|
+
*/
|
|
1003
|
+
updateHref() {
|
|
1004
|
+
if (!this.routerLink)
|
|
1005
|
+
return;
|
|
1006
|
+
// Trick RouterLink into thinking we are an anchor element
|
|
1007
|
+
this.routerLink.isAnchorElement = true;
|
|
1008
|
+
this.routerLink.updateHref();
|
|
1009
|
+
// Set the href attribute on our element
|
|
1010
|
+
this.renderer.setAttribute(this.elementRef.nativeElement, 'href', this.routerLink.href || '');
|
|
1011
|
+
}
|
|
1012
|
+
get element() {
|
|
1013
|
+
return this.elementRef.nativeElement;
|
|
1014
|
+
}
|
|
1015
|
+
ngOnInit() {
|
|
1016
|
+
super.ngOnInit();
|
|
1017
|
+
// Define the custom element
|
|
1018
|
+
try {
|
|
1019
|
+
GdsButton.define();
|
|
1020
|
+
}
|
|
1021
|
+
catch (e) {
|
|
1022
|
+
// Component may not be available in this version of green-core
|
|
1023
|
+
console.warn('Failed to define gds-button:', e);
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
ngOnChanges(changes) {
|
|
1027
|
+
// Implementation added by @ProxyInputs decorator
|
|
1028
|
+
if (changes['routerLink']) {
|
|
1029
|
+
this.updateHref();
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
ngAfterViewInit() {
|
|
1033
|
+
super.ngAfterViewInit();
|
|
1034
|
+
this.updateHref();
|
|
1035
|
+
}
|
|
1036
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1037
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.18", type: GdsButtonComponent, isStandalone: true, selector: "gds-button", inputs: { width: "width", minWidth: "minWidth", maxWidth: "maxWidth", inlineSize: "inlineSize", minInlineSize: "minInlineSize", maxInlineSize: "maxInlineSize", margin: "margin", marginInline: "marginInline", marginBlock: "marginBlock", alignSelf: "alignSelf", justifySelf: "justifySelf", placeSelf: "placeSelf", gridColumn: "gridColumn", gridRow: "gridRow", gridArea: "gridArea", flex: "flex", order: "order", disabled: ["disabled", "disabled", booleanAttribute], justifyContent: "justifyContent", type: "type", rank: "rank", variant: "variant", size: "size", label: "label", wrapped: ["wrapped", "wrapped", booleanAttribute], href: "href", target: "target", rel: "rel", download: "download", validator: "validator", required: ["required", "required", booleanAttribute], errorMessage: "errorMessage", invalid: "invalid", value: "value", name: "name" }, outputs: { click: "click" }, providers: [
|
|
1038
|
+
{
|
|
1039
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1040
|
+
useExisting: forwardRef(() => GdsButtonComponent),
|
|
1041
|
+
multi: true,
|
|
1042
|
+
},
|
|
1043
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1044
|
+
};
|
|
1045
|
+
GdsButtonComponent = __decorate([
|
|
1046
|
+
ProxyInputs(['width', 'min-width', 'max-width', 'inline-size', 'min-inline-size', 'max-inline-size', 'margin', 'margin-inline', 'margin-block', 'align-self', 'justify-self', 'place-self', 'grid-column', 'grid-row', 'grid-area', 'flex', 'order', 'disabled', 'justify-content', 'type', 'rank', 'variant', 'size', 'label', 'wrapped', 'href', 'target', 'rel', 'download', 'validator', 'required', 'errorMessage', 'invalid', 'value', 'name'])
|
|
1047
|
+
], GdsButtonComponent);
|
|
1048
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsButtonComponent, decorators: [{
|
|
1049
|
+
type: Component,
|
|
1050
|
+
args: [{
|
|
1051
|
+
selector: 'gds-button',
|
|
1052
|
+
standalone: true,
|
|
1053
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1054
|
+
template: `<ng-content></ng-content>`,
|
|
1055
|
+
providers: [
|
|
1056
|
+
{
|
|
1057
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1058
|
+
useExisting: forwardRef(() => GdsButtonComponent),
|
|
1059
|
+
multi: true,
|
|
1060
|
+
},
|
|
1061
|
+
]
|
|
1062
|
+
}]
|
|
1063
|
+
}], propDecorators: { width: [{
|
|
1064
|
+
type: Input
|
|
1065
|
+
}], minWidth: [{
|
|
1066
|
+
type: Input
|
|
1067
|
+
}], maxWidth: [{
|
|
1068
|
+
type: Input
|
|
1069
|
+
}], inlineSize: [{
|
|
1070
|
+
type: Input
|
|
1071
|
+
}], minInlineSize: [{
|
|
1072
|
+
type: Input
|
|
1073
|
+
}], maxInlineSize: [{
|
|
1074
|
+
type: Input
|
|
1075
|
+
}], margin: [{
|
|
1076
|
+
type: Input
|
|
1077
|
+
}], marginInline: [{
|
|
1078
|
+
type: Input
|
|
1079
|
+
}], marginBlock: [{
|
|
1080
|
+
type: Input
|
|
1081
|
+
}], alignSelf: [{
|
|
1082
|
+
type: Input
|
|
1083
|
+
}], justifySelf: [{
|
|
1084
|
+
type: Input
|
|
1085
|
+
}], placeSelf: [{
|
|
1086
|
+
type: Input
|
|
1087
|
+
}], gridColumn: [{
|
|
1088
|
+
type: Input
|
|
1089
|
+
}], gridRow: [{
|
|
1090
|
+
type: Input
|
|
1091
|
+
}], gridArea: [{
|
|
1092
|
+
type: Input
|
|
1093
|
+
}], flex: [{
|
|
1094
|
+
type: Input
|
|
1095
|
+
}], order: [{
|
|
1096
|
+
type: Input
|
|
1097
|
+
}], disabled: [{
|
|
1098
|
+
type: Input,
|
|
1099
|
+
args: [{ transform: booleanAttribute }]
|
|
1100
|
+
}], justifyContent: [{
|
|
1101
|
+
type: Input
|
|
1102
|
+
}], type: [{
|
|
1103
|
+
type: Input
|
|
1104
|
+
}], rank: [{
|
|
1105
|
+
type: Input
|
|
1106
|
+
}], variant: [{
|
|
1107
|
+
type: Input
|
|
1108
|
+
}], size: [{
|
|
1109
|
+
type: Input
|
|
1110
|
+
}], label: [{
|
|
1111
|
+
type: Input
|
|
1112
|
+
}], wrapped: [{
|
|
1113
|
+
type: Input,
|
|
1114
|
+
args: [{ transform: booleanAttribute }]
|
|
1115
|
+
}], href: [{
|
|
1116
|
+
type: Input
|
|
1117
|
+
}], target: [{
|
|
1118
|
+
type: Input
|
|
1119
|
+
}], rel: [{
|
|
1120
|
+
type: Input
|
|
1121
|
+
}], download: [{
|
|
1122
|
+
type: Input
|
|
1123
|
+
}], validator: [{
|
|
1124
|
+
type: Input
|
|
1125
|
+
}], required: [{
|
|
1126
|
+
type: Input,
|
|
1127
|
+
args: [{ transform: booleanAttribute }]
|
|
1128
|
+
}], errorMessage: [{
|
|
1129
|
+
type: Input
|
|
1130
|
+
}], invalid: [{
|
|
1131
|
+
type: Input
|
|
1132
|
+
}], value: [{
|
|
1133
|
+
type: Input
|
|
1134
|
+
}], name: [{
|
|
1135
|
+
type: Input
|
|
1136
|
+
}], click: [{
|
|
1137
|
+
type: Output
|
|
1138
|
+
}] } });
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
* GdsButtonComponent - Angular wrapper for gds-button
|
|
1142
|
+
*
|
|
1143
|
+
*
|
|
1144
|
+
* Auto-generated from Custom Elements Manifest
|
|
1145
|
+
*/
|
|
1146
|
+
|
|
1147
1147
|
/**
|
|
1148
1148
|
* Angular wrapper for the gds-card web component
|
|
1149
1149
|
* A container for content representing a single entity. e.g. a contact, article, or task.
|
|
@@ -2165,6 +2165,124 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2165
2165
|
* Auto-generated from Custom Elements Manifest
|
|
2166
2166
|
*/
|
|
2167
2167
|
|
|
2168
|
+
/**
|
|
2169
|
+
* Angular wrapper for the gds-dialog web component
|
|
2170
|
+
*
|
|
2171
|
+
*/
|
|
2172
|
+
let GdsDialogComponent = class GdsDialogComponent {
|
|
2173
|
+
get element() {
|
|
2174
|
+
return this.elementRef.nativeElement;
|
|
2175
|
+
}
|
|
2176
|
+
constructor() {
|
|
2177
|
+
this.elementRef = inject((ElementRef));
|
|
2178
|
+
this.zone = inject(NgZone);
|
|
2179
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
2180
|
+
/** Fired when the dialog is opened or closed. Can be cancelled to prevent the dialog from closing. */
|
|
2181
|
+
this.gdsUiState = new EventEmitter();
|
|
2182
|
+
/** Fired when the dialog is closed */
|
|
2183
|
+
this.gdsClose = new EventEmitter();
|
|
2184
|
+
/** Fired when the dialog is opened */
|
|
2185
|
+
this.gdsShow = new EventEmitter();
|
|
2186
|
+
this.cdr.detach();
|
|
2187
|
+
}
|
|
2188
|
+
ngOnInit() {
|
|
2189
|
+
// Define the custom element
|
|
2190
|
+
try {
|
|
2191
|
+
GdsDialog.define();
|
|
2192
|
+
}
|
|
2193
|
+
catch (e) {
|
|
2194
|
+
// Component may not be available in this version of green-core
|
|
2195
|
+
console.warn('Failed to define gds-dialog:', e);
|
|
2196
|
+
}
|
|
2197
|
+
// Set up event listeners
|
|
2198
|
+
this.elementRef.nativeElement.addEventListener('gds-ui-state', (event) => {
|
|
2199
|
+
this.gdsUiState.emit(event);
|
|
2200
|
+
});
|
|
2201
|
+
this.elementRef.nativeElement.addEventListener('gds-close', (event) => {
|
|
2202
|
+
this.gdsClose.emit(event);
|
|
2203
|
+
});
|
|
2204
|
+
this.elementRef.nativeElement.addEventListener('gds-show', (event) => {
|
|
2205
|
+
this.gdsShow.emit(event);
|
|
2206
|
+
});
|
|
2207
|
+
}
|
|
2208
|
+
ngOnChanges(changes) {
|
|
2209
|
+
// Implementation added by @ProxyInputs decorator
|
|
2210
|
+
}
|
|
2211
|
+
ngAfterViewInit() {
|
|
2212
|
+
// Implementation added by @ProxyInputs decorator
|
|
2213
|
+
}
|
|
2214
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2215
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.18", type: GdsDialogComponent, isStandalone: true, selector: "gds-dialog", inputs: { open: ["open", "open", booleanAttribute], heading: "heading", variant: "variant", placement: "placement", scrollable: ["scrollable", "scrollable", booleanAttribute], width: "width", minWidth: "minWidth", maxWidth: "maxWidth", inlineSize: "inlineSize", minInlineSize: "minInlineSize", maxInlineSize: "maxInlineSize", height: "height", minHeight: "minHeight", maxHeight: "maxHeight", blockSize: "blockSize", minBlockSize: "minBlockSize", maxBlockSize: "maxBlockSize", padding: "padding", paddingInline: "paddingInline", paddingBlock: "paddingBlock" }, outputs: { gdsUiState: "gdsUiState", gdsClose: "gdsClose", gdsShow: "gdsShow" }, usesOnChanges: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2216
|
+
};
|
|
2217
|
+
GdsDialogComponent = __decorate([
|
|
2218
|
+
ProxyInputs(['open', 'heading', 'variant', 'placement', 'scrollable', 'width', 'min-width', 'max-width', 'inline-size', 'min-inline-size', 'max-inline-size', 'height', 'min-height', 'max-height', 'block-size', 'min-block-size', 'max-block-size', 'padding', 'padding-inline', 'padding-block']),
|
|
2219
|
+
__metadata("design:paramtypes", [])
|
|
2220
|
+
], GdsDialogComponent);
|
|
2221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsDialogComponent, decorators: [{
|
|
2222
|
+
type: Component,
|
|
2223
|
+
args: [{
|
|
2224
|
+
selector: 'gds-dialog',
|
|
2225
|
+
standalone: true,
|
|
2226
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2227
|
+
template: `<ng-content></ng-content>`
|
|
2228
|
+
}]
|
|
2229
|
+
}], ctorParameters: () => [], propDecorators: { open: [{
|
|
2230
|
+
type: Input,
|
|
2231
|
+
args: [{ transform: booleanAttribute }]
|
|
2232
|
+
}], heading: [{
|
|
2233
|
+
type: Input
|
|
2234
|
+
}], variant: [{
|
|
2235
|
+
type: Input
|
|
2236
|
+
}], placement: [{
|
|
2237
|
+
type: Input
|
|
2238
|
+
}], scrollable: [{
|
|
2239
|
+
type: Input,
|
|
2240
|
+
args: [{ transform: booleanAttribute }]
|
|
2241
|
+
}], width: [{
|
|
2242
|
+
type: Input
|
|
2243
|
+
}], minWidth: [{
|
|
2244
|
+
type: Input
|
|
2245
|
+
}], maxWidth: [{
|
|
2246
|
+
type: Input
|
|
2247
|
+
}], inlineSize: [{
|
|
2248
|
+
type: Input
|
|
2249
|
+
}], minInlineSize: [{
|
|
2250
|
+
type: Input
|
|
2251
|
+
}], maxInlineSize: [{
|
|
2252
|
+
type: Input
|
|
2253
|
+
}], height: [{
|
|
2254
|
+
type: Input
|
|
2255
|
+
}], minHeight: [{
|
|
2256
|
+
type: Input
|
|
2257
|
+
}], maxHeight: [{
|
|
2258
|
+
type: Input
|
|
2259
|
+
}], blockSize: [{
|
|
2260
|
+
type: Input
|
|
2261
|
+
}], minBlockSize: [{
|
|
2262
|
+
type: Input
|
|
2263
|
+
}], maxBlockSize: [{
|
|
2264
|
+
type: Input
|
|
2265
|
+
}], padding: [{
|
|
2266
|
+
type: Input
|
|
2267
|
+
}], paddingInline: [{
|
|
2268
|
+
type: Input
|
|
2269
|
+
}], paddingBlock: [{
|
|
2270
|
+
type: Input
|
|
2271
|
+
}], gdsUiState: [{
|
|
2272
|
+
type: Output
|
|
2273
|
+
}], gdsClose: [{
|
|
2274
|
+
type: Output
|
|
2275
|
+
}], gdsShow: [{
|
|
2276
|
+
type: Output
|
|
2277
|
+
}] } });
|
|
2278
|
+
|
|
2279
|
+
/**
|
|
2280
|
+
* GdsDialogComponent - Angular wrapper for gds-dialog
|
|
2281
|
+
*
|
|
2282
|
+
*
|
|
2283
|
+
* Auto-generated from Custom Elements Manifest
|
|
2284
|
+
*/
|
|
2285
|
+
|
|
2168
2286
|
/**
|
|
2169
2287
|
* Angular wrapper for the gds-div web component
|
|
2170
2288
|
*
|
|
@@ -2415,124 +2533,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2415
2533
|
* Auto-generated from Custom Elements Manifest
|
|
2416
2534
|
*/
|
|
2417
2535
|
|
|
2418
|
-
/**
|
|
2419
|
-
* Angular wrapper for the gds-dialog web component
|
|
2420
|
-
*
|
|
2421
|
-
*/
|
|
2422
|
-
let GdsDialogComponent = class GdsDialogComponent {
|
|
2423
|
-
get element() {
|
|
2424
|
-
return this.elementRef.nativeElement;
|
|
2425
|
-
}
|
|
2426
|
-
constructor() {
|
|
2427
|
-
this.elementRef = inject((ElementRef));
|
|
2428
|
-
this.zone = inject(NgZone);
|
|
2429
|
-
this.cdr = inject(ChangeDetectorRef);
|
|
2430
|
-
/** Fired when the dialog is opened or closed. Can be cancelled to prevent the dialog from closing. */
|
|
2431
|
-
this.gdsUiState = new EventEmitter();
|
|
2432
|
-
/** Fired when the dialog is closed */
|
|
2433
|
-
this.gdsClose = new EventEmitter();
|
|
2434
|
-
/** Fired when the dialog is opened */
|
|
2435
|
-
this.gdsShow = new EventEmitter();
|
|
2436
|
-
this.cdr.detach();
|
|
2437
|
-
}
|
|
2438
|
-
ngOnInit() {
|
|
2439
|
-
// Define the custom element
|
|
2440
|
-
try {
|
|
2441
|
-
GdsDialog.define();
|
|
2442
|
-
}
|
|
2443
|
-
catch (e) {
|
|
2444
|
-
// Component may not be available in this version of green-core
|
|
2445
|
-
console.warn('Failed to define gds-dialog:', e);
|
|
2446
|
-
}
|
|
2447
|
-
// Set up event listeners
|
|
2448
|
-
this.elementRef.nativeElement.addEventListener('gds-ui-state', (event) => {
|
|
2449
|
-
this.gdsUiState.emit(event);
|
|
2450
|
-
});
|
|
2451
|
-
this.elementRef.nativeElement.addEventListener('gds-close', (event) => {
|
|
2452
|
-
this.gdsClose.emit(event);
|
|
2453
|
-
});
|
|
2454
|
-
this.elementRef.nativeElement.addEventListener('gds-show', (event) => {
|
|
2455
|
-
this.gdsShow.emit(event);
|
|
2456
|
-
});
|
|
2457
|
-
}
|
|
2458
|
-
ngOnChanges(changes) {
|
|
2459
|
-
// Implementation added by @ProxyInputs decorator
|
|
2460
|
-
}
|
|
2461
|
-
ngAfterViewInit() {
|
|
2462
|
-
// Implementation added by @ProxyInputs decorator
|
|
2463
|
-
}
|
|
2464
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2465
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.18", type: GdsDialogComponent, isStandalone: true, selector: "gds-dialog", inputs: { open: ["open", "open", booleanAttribute], heading: "heading", variant: "variant", placement: "placement", scrollable: ["scrollable", "scrollable", booleanAttribute], width: "width", minWidth: "minWidth", maxWidth: "maxWidth", inlineSize: "inlineSize", minInlineSize: "minInlineSize", maxInlineSize: "maxInlineSize", height: "height", minHeight: "minHeight", maxHeight: "maxHeight", blockSize: "blockSize", minBlockSize: "minBlockSize", maxBlockSize: "maxBlockSize", padding: "padding", paddingInline: "paddingInline", paddingBlock: "paddingBlock" }, outputs: { gdsUiState: "gdsUiState", gdsClose: "gdsClose", gdsShow: "gdsShow" }, usesOnChanges: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2466
|
-
};
|
|
2467
|
-
GdsDialogComponent = __decorate([
|
|
2468
|
-
ProxyInputs(['open', 'heading', 'variant', 'placement', 'scrollable', 'width', 'min-width', 'max-width', 'inline-size', 'min-inline-size', 'max-inline-size', 'height', 'min-height', 'max-height', 'block-size', 'min-block-size', 'max-block-size', 'padding', 'padding-inline', 'padding-block']),
|
|
2469
|
-
__metadata("design:paramtypes", [])
|
|
2470
|
-
], GdsDialogComponent);
|
|
2471
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsDialogComponent, decorators: [{
|
|
2472
|
-
type: Component,
|
|
2473
|
-
args: [{
|
|
2474
|
-
selector: 'gds-dialog',
|
|
2475
|
-
standalone: true,
|
|
2476
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2477
|
-
template: `<ng-content></ng-content>`
|
|
2478
|
-
}]
|
|
2479
|
-
}], ctorParameters: () => [], propDecorators: { open: [{
|
|
2480
|
-
type: Input,
|
|
2481
|
-
args: [{ transform: booleanAttribute }]
|
|
2482
|
-
}], heading: [{
|
|
2483
|
-
type: Input
|
|
2484
|
-
}], variant: [{
|
|
2485
|
-
type: Input
|
|
2486
|
-
}], placement: [{
|
|
2487
|
-
type: Input
|
|
2488
|
-
}], scrollable: [{
|
|
2489
|
-
type: Input,
|
|
2490
|
-
args: [{ transform: booleanAttribute }]
|
|
2491
|
-
}], width: [{
|
|
2492
|
-
type: Input
|
|
2493
|
-
}], minWidth: [{
|
|
2494
|
-
type: Input
|
|
2495
|
-
}], maxWidth: [{
|
|
2496
|
-
type: Input
|
|
2497
|
-
}], inlineSize: [{
|
|
2498
|
-
type: Input
|
|
2499
|
-
}], minInlineSize: [{
|
|
2500
|
-
type: Input
|
|
2501
|
-
}], maxInlineSize: [{
|
|
2502
|
-
type: Input
|
|
2503
|
-
}], height: [{
|
|
2504
|
-
type: Input
|
|
2505
|
-
}], minHeight: [{
|
|
2506
|
-
type: Input
|
|
2507
|
-
}], maxHeight: [{
|
|
2508
|
-
type: Input
|
|
2509
|
-
}], blockSize: [{
|
|
2510
|
-
type: Input
|
|
2511
|
-
}], minBlockSize: [{
|
|
2512
|
-
type: Input
|
|
2513
|
-
}], maxBlockSize: [{
|
|
2514
|
-
type: Input
|
|
2515
|
-
}], padding: [{
|
|
2516
|
-
type: Input
|
|
2517
|
-
}], paddingInline: [{
|
|
2518
|
-
type: Input
|
|
2519
|
-
}], paddingBlock: [{
|
|
2520
|
-
type: Input
|
|
2521
|
-
}], gdsUiState: [{
|
|
2522
|
-
type: Output
|
|
2523
|
-
}], gdsClose: [{
|
|
2524
|
-
type: Output
|
|
2525
|
-
}], gdsShow: [{
|
|
2526
|
-
type: Output
|
|
2527
|
-
}] } });
|
|
2528
|
-
|
|
2529
|
-
/**
|
|
2530
|
-
* GdsDialogComponent - Angular wrapper for gds-dialog
|
|
2531
|
-
*
|
|
2532
|
-
*
|
|
2533
|
-
* Auto-generated from Custom Elements Manifest
|
|
2534
|
-
*/
|
|
2535
|
-
|
|
2536
2536
|
/**
|
|
2537
2537
|
* Angular wrapper for the gds-dropdown web component
|
|
2538
2538
|
*
|
|
@@ -2881,6 +2881,98 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2881
2881
|
* Auto-generated from Custom Elements Manifest
|
|
2882
2882
|
*/
|
|
2883
2883
|
|
|
2884
|
+
/**
|
|
2885
|
+
* Angular wrapper for the gds-filter-chips web component
|
|
2886
|
+
*
|
|
2887
|
+
*/
|
|
2888
|
+
let GdsFilterChipsComponent = class GdsFilterChipsComponent extends GdsFormControlBase {
|
|
2889
|
+
constructor() {
|
|
2890
|
+
super(...arguments);
|
|
2891
|
+
/** When a chip is clicked */
|
|
2892
|
+
this.change = new EventEmitter();
|
|
2893
|
+
}
|
|
2894
|
+
get element() {
|
|
2895
|
+
return this.elementRef.nativeElement;
|
|
2896
|
+
}
|
|
2897
|
+
ngOnInit() {
|
|
2898
|
+
super.ngOnInit();
|
|
2899
|
+
// Define the custom element
|
|
2900
|
+
try {
|
|
2901
|
+
GdsFilterChips.define();
|
|
2902
|
+
}
|
|
2903
|
+
catch (e) {
|
|
2904
|
+
// Component may not be available in this version of green-core
|
|
2905
|
+
console.warn('Failed to define gds-filter-chips:', e);
|
|
2906
|
+
}
|
|
2907
|
+
}
|
|
2908
|
+
ngOnChanges(changes) {
|
|
2909
|
+
// Implementation added by @ProxyInputs decorator
|
|
2910
|
+
}
|
|
2911
|
+
ngAfterViewInit() {
|
|
2912
|
+
super.ngAfterViewInit();
|
|
2913
|
+
}
|
|
2914
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsFilterChipsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2915
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.18", type: GdsFilterChipsComponent, isStandalone: true, selector: "gds-filter-chips", inputs: { value: "value", multiple: ["multiple", "multiple", booleanAttribute], label: "label", rowCollapse: ["rowCollapse", "rowCollapse", booleanAttribute], validator: "validator", required: ["required", "required", booleanAttribute], errorMessage: "errorMessage", invalid: "invalid", name: "name", disabled: ["disabled", "disabled", booleanAttribute] }, outputs: { change: "change" }, providers: [
|
|
2916
|
+
{
|
|
2917
|
+
provide: NG_VALUE_ACCESSOR,
|
|
2918
|
+
useExisting: forwardRef(() => GdsFilterChipsComponent),
|
|
2919
|
+
multi: true,
|
|
2920
|
+
},
|
|
2921
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2922
|
+
};
|
|
2923
|
+
GdsFilterChipsComponent = __decorate([
|
|
2924
|
+
ProxyInputs(['value', 'multiple', 'label', 'rowCollapse', 'validator', 'required', 'errorMessage', 'invalid', 'name', 'disabled'])
|
|
2925
|
+
], GdsFilterChipsComponent);
|
|
2926
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsFilterChipsComponent, decorators: [{
|
|
2927
|
+
type: Component,
|
|
2928
|
+
args: [{
|
|
2929
|
+
selector: 'gds-filter-chips',
|
|
2930
|
+
standalone: true,
|
|
2931
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2932
|
+
template: `<ng-content></ng-content>`,
|
|
2933
|
+
providers: [
|
|
2934
|
+
{
|
|
2935
|
+
provide: NG_VALUE_ACCESSOR,
|
|
2936
|
+
useExisting: forwardRef(() => GdsFilterChipsComponent),
|
|
2937
|
+
multi: true,
|
|
2938
|
+
},
|
|
2939
|
+
]
|
|
2940
|
+
}]
|
|
2941
|
+
}], propDecorators: { value: [{
|
|
2942
|
+
type: Input
|
|
2943
|
+
}], multiple: [{
|
|
2944
|
+
type: Input,
|
|
2945
|
+
args: [{ transform: booleanAttribute }]
|
|
2946
|
+
}], label: [{
|
|
2947
|
+
type: Input
|
|
2948
|
+
}], rowCollapse: [{
|
|
2949
|
+
type: Input,
|
|
2950
|
+
args: [{ transform: booleanAttribute }]
|
|
2951
|
+
}], validator: [{
|
|
2952
|
+
type: Input
|
|
2953
|
+
}], required: [{
|
|
2954
|
+
type: Input,
|
|
2955
|
+
args: [{ transform: booleanAttribute }]
|
|
2956
|
+
}], errorMessage: [{
|
|
2957
|
+
type: Input
|
|
2958
|
+
}], invalid: [{
|
|
2959
|
+
type: Input
|
|
2960
|
+
}], name: [{
|
|
2961
|
+
type: Input
|
|
2962
|
+
}], disabled: [{
|
|
2963
|
+
type: Input,
|
|
2964
|
+
args: [{ transform: booleanAttribute }]
|
|
2965
|
+
}], change: [{
|
|
2966
|
+
type: Output
|
|
2967
|
+
}] } });
|
|
2968
|
+
|
|
2969
|
+
/**
|
|
2970
|
+
* GdsFilterChipsComponent - Angular wrapper for gds-filter-chips
|
|
2971
|
+
*
|
|
2972
|
+
*
|
|
2973
|
+
* Auto-generated from Custom Elements Manifest
|
|
2974
|
+
*/
|
|
2975
|
+
|
|
2884
2976
|
/**
|
|
2885
2977
|
* Angular wrapper for the gds-flex web component
|
|
2886
2978
|
*
|
|
@@ -3057,98 +3149,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3057
3149
|
* Auto-generated from Custom Elements Manifest
|
|
3058
3150
|
*/
|
|
3059
3151
|
|
|
3060
|
-
/**
|
|
3061
|
-
* Angular wrapper for the gds-filter-chips web component
|
|
3062
|
-
*
|
|
3063
|
-
*/
|
|
3064
|
-
let GdsFilterChipsComponent = class GdsFilterChipsComponent extends GdsFormControlBase {
|
|
3065
|
-
constructor() {
|
|
3066
|
-
super(...arguments);
|
|
3067
|
-
/** When a chip is clicked */
|
|
3068
|
-
this.change = new EventEmitter();
|
|
3069
|
-
}
|
|
3070
|
-
get element() {
|
|
3071
|
-
return this.elementRef.nativeElement;
|
|
3072
|
-
}
|
|
3073
|
-
ngOnInit() {
|
|
3074
|
-
super.ngOnInit();
|
|
3075
|
-
// Define the custom element
|
|
3076
|
-
try {
|
|
3077
|
-
GdsFilterChips.define();
|
|
3078
|
-
}
|
|
3079
|
-
catch (e) {
|
|
3080
|
-
// Component may not be available in this version of green-core
|
|
3081
|
-
console.warn('Failed to define gds-filter-chips:', e);
|
|
3082
|
-
}
|
|
3083
|
-
}
|
|
3084
|
-
ngOnChanges(changes) {
|
|
3085
|
-
// Implementation added by @ProxyInputs decorator
|
|
3086
|
-
}
|
|
3087
|
-
ngAfterViewInit() {
|
|
3088
|
-
super.ngAfterViewInit();
|
|
3089
|
-
}
|
|
3090
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsFilterChipsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3091
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.18", type: GdsFilterChipsComponent, isStandalone: true, selector: "gds-filter-chips", inputs: { value: "value", multiple: ["multiple", "multiple", booleanAttribute], label: "label", rowCollapse: ["rowCollapse", "rowCollapse", booleanAttribute], validator: "validator", required: ["required", "required", booleanAttribute], errorMessage: "errorMessage", invalid: "invalid", name: "name", disabled: ["disabled", "disabled", booleanAttribute] }, outputs: { change: "change" }, providers: [
|
|
3092
|
-
{
|
|
3093
|
-
provide: NG_VALUE_ACCESSOR,
|
|
3094
|
-
useExisting: forwardRef(() => GdsFilterChipsComponent),
|
|
3095
|
-
multi: true,
|
|
3096
|
-
},
|
|
3097
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3098
|
-
};
|
|
3099
|
-
GdsFilterChipsComponent = __decorate([
|
|
3100
|
-
ProxyInputs(['value', 'multiple', 'label', 'rowCollapse', 'validator', 'required', 'errorMessage', 'invalid', 'name', 'disabled'])
|
|
3101
|
-
], GdsFilterChipsComponent);
|
|
3102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsFilterChipsComponent, decorators: [{
|
|
3103
|
-
type: Component,
|
|
3104
|
-
args: [{
|
|
3105
|
-
selector: 'gds-filter-chips',
|
|
3106
|
-
standalone: true,
|
|
3107
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3108
|
-
template: `<ng-content></ng-content>`,
|
|
3109
|
-
providers: [
|
|
3110
|
-
{
|
|
3111
|
-
provide: NG_VALUE_ACCESSOR,
|
|
3112
|
-
useExisting: forwardRef(() => GdsFilterChipsComponent),
|
|
3113
|
-
multi: true,
|
|
3114
|
-
},
|
|
3115
|
-
]
|
|
3116
|
-
}]
|
|
3117
|
-
}], propDecorators: { value: [{
|
|
3118
|
-
type: Input
|
|
3119
|
-
}], multiple: [{
|
|
3120
|
-
type: Input,
|
|
3121
|
-
args: [{ transform: booleanAttribute }]
|
|
3122
|
-
}], label: [{
|
|
3123
|
-
type: Input
|
|
3124
|
-
}], rowCollapse: [{
|
|
3125
|
-
type: Input,
|
|
3126
|
-
args: [{ transform: booleanAttribute }]
|
|
3127
|
-
}], validator: [{
|
|
3128
|
-
type: Input
|
|
3129
|
-
}], required: [{
|
|
3130
|
-
type: Input,
|
|
3131
|
-
args: [{ transform: booleanAttribute }]
|
|
3132
|
-
}], errorMessage: [{
|
|
3133
|
-
type: Input
|
|
3134
|
-
}], invalid: [{
|
|
3135
|
-
type: Input
|
|
3136
|
-
}], name: [{
|
|
3137
|
-
type: Input
|
|
3138
|
-
}], disabled: [{
|
|
3139
|
-
type: Input,
|
|
3140
|
-
args: [{ transform: booleanAttribute }]
|
|
3141
|
-
}], change: [{
|
|
3142
|
-
type: Output
|
|
3143
|
-
}] } });
|
|
3144
|
-
|
|
3145
|
-
/**
|
|
3146
|
-
* GdsFilterChipsComponent - Angular wrapper for gds-filter-chips
|
|
3147
|
-
*
|
|
3148
|
-
*
|
|
3149
|
-
* Auto-generated from Custom Elements Manifest
|
|
3150
|
-
*/
|
|
3151
|
-
|
|
3152
3152
|
/**
|
|
3153
3153
|
* Angular wrapper for the gds-form-summary web component
|
|
3154
3154
|
*
|
|
@@ -6243,10 +6243,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
6243
6243
|
*/
|
|
6244
6244
|
|
|
6245
6245
|
/**
|
|
6246
|
-
* Angular wrapper for the gds-formatted-
|
|
6246
|
+
* Angular wrapper for the gds-formatted-date web component
|
|
6247
6247
|
*
|
|
6248
6248
|
*/
|
|
6249
|
-
let
|
|
6249
|
+
let GdsFormattedDateComponent = class GdsFormattedDateComponent {
|
|
6250
6250
|
get element() {
|
|
6251
6251
|
return this.elementRef.nativeElement;
|
|
6252
6252
|
}
|
|
@@ -6259,11 +6259,11 @@ let GdsFormattedAccountComponent = class GdsFormattedAccountComponent {
|
|
|
6259
6259
|
ngOnInit() {
|
|
6260
6260
|
// Define the custom element
|
|
6261
6261
|
try {
|
|
6262
|
-
|
|
6262
|
+
GdsFormattedDate.define();
|
|
6263
6263
|
}
|
|
6264
6264
|
catch (e) {
|
|
6265
6265
|
// Component may not be available in this version of green-core
|
|
6266
|
-
console.warn('Failed to define gds-formatted-
|
|
6266
|
+
console.warn('Failed to define gds-formatted-date:', e);
|
|
6267
6267
|
}
|
|
6268
6268
|
}
|
|
6269
6269
|
ngOnChanges(changes) {
|
|
@@ -6272,22 +6272,26 @@ let GdsFormattedAccountComponent = class GdsFormattedAccountComponent {
|
|
|
6272
6272
|
ngAfterViewInit() {
|
|
6273
6273
|
// Implementation added by @ProxyInputs decorator
|
|
6274
6274
|
}
|
|
6275
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
6276
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type:
|
|
6275
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsFormattedDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6276
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: GdsFormattedDateComponent, isStandalone: true, selector: "gds-formatted-date", inputs: { value: "value", format: "format", locale: "locale", tag: "tag", font: "font", fontWeight: "fontWeight", textTransform: "textTransform", textDecoration: "textDecoration", lines: "lines", width: "width", minWidth: "minWidth", maxWidth: "maxWidth", inlineSize: "inlineSize", minInlineSize: "minInlineSize", maxInlineSize: "maxInlineSize", height: "height", minHeight: "minHeight", maxHeight: "maxHeight", blockSize: "blockSize", minBlockSize: "minBlockSize", maxBlockSize: "maxBlockSize", margin: "margin", marginInline: "marginInline", marginBlock: "marginBlock", padding: "padding", paddingInline: "paddingInline", paddingBlock: "paddingBlock", alignSelf: "alignSelf", justifySelf: "justifySelf", placeSelf: "placeSelf", gridColumn: "gridColumn", gridRow: "gridRow", gridArea: "gridArea", flex: "flex", order: "order", position: "position", transform: "transform", inset: "inset", display: "display", level: "level", color: "color", background: "background", border: "border", borderColor: "borderColor", borderWidth: "borderWidth", borderStyle: "borderStyle", borderRadius: "borderRadius", boxShadow: "boxShadow", opacity: "opacity", overflow: "overflow", boxSizing: "boxSizing", zIndex: "zIndex", textAlign: "textAlign", textWrap: "textWrap", overflowWrap: "overflowWrap", whiteSpace: "whiteSpace", gap: "gap", alignItems: "alignItems", alignContent: "alignContent", justifyContent: "justifyContent", justifyItems: "justifyItems", flexDirection: "flexDirection", flexWrap: "flexWrap", placeItems: "placeItems", placeContent: "placeContent", aspectRatio: "aspectRatio", cursor: "cursor", pointerEvents: "pointerEvents" }, usesOnChanges: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6277
6277
|
};
|
|
6278
|
-
|
|
6279
|
-
ProxyInputs(['
|
|
6278
|
+
GdsFormattedDateComponent = __decorate([
|
|
6279
|
+
ProxyInputs(['value', 'format', 'locale', 'tag', 'font', 'font-weight', 'text-transform', 'text-decoration', 'lines', 'width', 'min-width', 'max-width', 'inline-size', 'min-inline-size', 'max-inline-size', 'height', 'min-height', 'max-height', 'block-size', 'min-block-size', 'max-block-size', 'margin', 'margin-inline', 'margin-block', 'padding', 'padding-inline', 'padding-block', 'align-self', 'justify-self', 'place-self', 'grid-column', 'grid-row', 'grid-area', 'flex', 'order', 'position', 'transform', 'inset', 'display', 'level', 'color', 'background', 'border', 'border-color', 'border-width', 'border-style', 'border-radius', 'box-shadow', 'opacity', 'overflow', 'box-sizing', 'z-index', 'text-align', 'text-wrap', 'overflow-wrap', 'white-space', 'gap', 'align-items', 'align-content', 'justify-content', 'justify-items', 'flex-direction', 'flex-wrap', 'place-items', 'place-content', 'aspect-ratio', 'cursor', 'pointer-events']),
|
|
6280
6280
|
__metadata("design:paramtypes", [])
|
|
6281
|
-
],
|
|
6282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
6281
|
+
], GdsFormattedDateComponent);
|
|
6282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsFormattedDateComponent, decorators: [{
|
|
6283
6283
|
type: Component,
|
|
6284
6284
|
args: [{
|
|
6285
|
-
selector: 'gds-formatted-
|
|
6285
|
+
selector: 'gds-formatted-date',
|
|
6286
6286
|
standalone: true,
|
|
6287
6287
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6288
6288
|
template: `<ng-content></ng-content>`
|
|
6289
6289
|
}]
|
|
6290
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
6290
|
+
}], ctorParameters: () => [], propDecorators: { value: [{
|
|
6291
|
+
type: Input
|
|
6292
|
+
}], format: [{
|
|
6293
|
+
type: Input
|
|
6294
|
+
}], locale: [{
|
|
6291
6295
|
type: Input
|
|
6292
6296
|
}], tag: [{
|
|
6293
6297
|
type: Input
|
|
@@ -6422,17 +6426,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
6422
6426
|
}] } });
|
|
6423
6427
|
|
|
6424
6428
|
/**
|
|
6425
|
-
*
|
|
6429
|
+
* GdsFormattedDateComponent - Angular wrapper for gds-formatted-date
|
|
6426
6430
|
*
|
|
6427
6431
|
*
|
|
6428
6432
|
* Auto-generated from Custom Elements Manifest
|
|
6429
6433
|
*/
|
|
6430
6434
|
|
|
6431
6435
|
/**
|
|
6432
|
-
* Angular wrapper for the gds-formatted-
|
|
6436
|
+
* Angular wrapper for the gds-formatted-number web component
|
|
6433
6437
|
*
|
|
6434
6438
|
*/
|
|
6435
|
-
let
|
|
6439
|
+
let GdsFormattedNumberComponent = class GdsFormattedNumberComponent {
|
|
6436
6440
|
get element() {
|
|
6437
6441
|
return this.elementRef.nativeElement;
|
|
6438
6442
|
}
|
|
@@ -6445,11 +6449,11 @@ let GdsFormattedDateComponent = class GdsFormattedDateComponent {
|
|
|
6445
6449
|
ngOnInit() {
|
|
6446
6450
|
// Define the custom element
|
|
6447
6451
|
try {
|
|
6448
|
-
|
|
6452
|
+
GdsFormattedNumber.define();
|
|
6449
6453
|
}
|
|
6450
6454
|
catch (e) {
|
|
6451
6455
|
// Component may not be available in this version of green-core
|
|
6452
|
-
console.warn('Failed to define gds-formatted-
|
|
6456
|
+
console.warn('Failed to define gds-formatted-number:', e);
|
|
6453
6457
|
}
|
|
6454
6458
|
}
|
|
6455
6459
|
ngOnChanges(changes) {
|
|
@@ -6458,27 +6462,29 @@ let GdsFormattedDateComponent = class GdsFormattedDateComponent {
|
|
|
6458
6462
|
ngAfterViewInit() {
|
|
6459
6463
|
// Implementation added by @ProxyInputs decorator
|
|
6460
6464
|
}
|
|
6461
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
6462
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type:
|
|
6465
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsFormattedNumberComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6466
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: GdsFormattedNumberComponent, isStandalone: true, selector: "gds-formatted-number", inputs: { value: "value", locale: "locale", currency: "currency", decimals: "decimals", tag: "tag", font: "font", fontWeight: "fontWeight", textTransform: "textTransform", textDecoration: "textDecoration", lines: "lines", width: "width", minWidth: "minWidth", maxWidth: "maxWidth", inlineSize: "inlineSize", minInlineSize: "minInlineSize", maxInlineSize: "maxInlineSize", height: "height", minHeight: "minHeight", maxHeight: "maxHeight", blockSize: "blockSize", minBlockSize: "minBlockSize", maxBlockSize: "maxBlockSize", margin: "margin", marginInline: "marginInline", marginBlock: "marginBlock", padding: "padding", paddingInline: "paddingInline", paddingBlock: "paddingBlock", alignSelf: "alignSelf", justifySelf: "justifySelf", placeSelf: "placeSelf", gridColumn: "gridColumn", gridRow: "gridRow", gridArea: "gridArea", flex: "flex", order: "order", position: "position", transform: "transform", inset: "inset", display: "display", level: "level", color: "color", background: "background", border: "border", borderColor: "borderColor", borderWidth: "borderWidth", borderStyle: "borderStyle", borderRadius: "borderRadius", boxShadow: "boxShadow", opacity: "opacity", overflow: "overflow", boxSizing: "boxSizing", zIndex: "zIndex", textAlign: "textAlign", textWrap: "textWrap", overflowWrap: "overflowWrap", whiteSpace: "whiteSpace", gap: "gap", alignItems: "alignItems", alignContent: "alignContent", justifyContent: "justifyContent", justifyItems: "justifyItems", flexDirection: "flexDirection", flexWrap: "flexWrap", placeItems: "placeItems", placeContent: "placeContent", aspectRatio: "aspectRatio", cursor: "cursor", pointerEvents: "pointerEvents" }, usesOnChanges: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6463
6467
|
};
|
|
6464
|
-
|
|
6465
|
-
ProxyInputs(['value', '
|
|
6468
|
+
GdsFormattedNumberComponent = __decorate([
|
|
6469
|
+
ProxyInputs(['value', 'locale', 'currency', 'decimals', 'tag', 'font', 'font-weight', 'text-transform', 'text-decoration', 'lines', 'width', 'min-width', 'max-width', 'inline-size', 'min-inline-size', 'max-inline-size', 'height', 'min-height', 'max-height', 'block-size', 'min-block-size', 'max-block-size', 'margin', 'margin-inline', 'margin-block', 'padding', 'padding-inline', 'padding-block', 'align-self', 'justify-self', 'place-self', 'grid-column', 'grid-row', 'grid-area', 'flex', 'order', 'position', 'transform', 'inset', 'display', 'level', 'color', 'background', 'border', 'border-color', 'border-width', 'border-style', 'border-radius', 'box-shadow', 'opacity', 'overflow', 'box-sizing', 'z-index', 'text-align', 'text-wrap', 'overflow-wrap', 'white-space', 'gap', 'align-items', 'align-content', 'justify-content', 'justify-items', 'flex-direction', 'flex-wrap', 'place-items', 'place-content', 'aspect-ratio', 'cursor', 'pointer-events']),
|
|
6466
6470
|
__metadata("design:paramtypes", [])
|
|
6467
|
-
],
|
|
6468
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
6471
|
+
], GdsFormattedNumberComponent);
|
|
6472
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsFormattedNumberComponent, decorators: [{
|
|
6469
6473
|
type: Component,
|
|
6470
6474
|
args: [{
|
|
6471
|
-
selector: 'gds-formatted-
|
|
6475
|
+
selector: 'gds-formatted-number',
|
|
6472
6476
|
standalone: true,
|
|
6473
6477
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6474
6478
|
template: `<ng-content></ng-content>`
|
|
6475
6479
|
}]
|
|
6476
6480
|
}], ctorParameters: () => [], propDecorators: { value: [{
|
|
6477
6481
|
type: Input
|
|
6478
|
-
}], format: [{
|
|
6479
|
-
type: Input
|
|
6480
6482
|
}], locale: [{
|
|
6481
6483
|
type: Input
|
|
6484
|
+
}], currency: [{
|
|
6485
|
+
type: Input
|
|
6486
|
+
}], decimals: [{
|
|
6487
|
+
type: Input
|
|
6482
6488
|
}], tag: [{
|
|
6483
6489
|
type: Input
|
|
6484
6490
|
}], font: [{
|
|
@@ -6612,17 +6618,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
6612
6618
|
}] } });
|
|
6613
6619
|
|
|
6614
6620
|
/**
|
|
6615
|
-
*
|
|
6621
|
+
* GdsFormattedNumberComponent - Angular wrapper for gds-formatted-number
|
|
6616
6622
|
*
|
|
6617
6623
|
*
|
|
6618
6624
|
* Auto-generated from Custom Elements Manifest
|
|
6619
6625
|
*/
|
|
6620
6626
|
|
|
6621
6627
|
/**
|
|
6622
|
-
* Angular wrapper for the gds-formatted-
|
|
6628
|
+
* Angular wrapper for the gds-formatted-account web component
|
|
6623
6629
|
*
|
|
6624
6630
|
*/
|
|
6625
|
-
let
|
|
6631
|
+
let GdsFormattedAccountComponent = class GdsFormattedAccountComponent {
|
|
6626
6632
|
get element() {
|
|
6627
6633
|
return this.elementRef.nativeElement;
|
|
6628
6634
|
}
|
|
@@ -6635,11 +6641,11 @@ let GdsFormattedNumberComponent = class GdsFormattedNumberComponent {
|
|
|
6635
6641
|
ngOnInit() {
|
|
6636
6642
|
// Define the custom element
|
|
6637
6643
|
try {
|
|
6638
|
-
|
|
6644
|
+
GdsFormattedAccount.define();
|
|
6639
6645
|
}
|
|
6640
6646
|
catch (e) {
|
|
6641
6647
|
// Component may not be available in this version of green-core
|
|
6642
|
-
console.warn('Failed to define gds-formatted-
|
|
6648
|
+
console.warn('Failed to define gds-formatted-account:', e);
|
|
6643
6649
|
}
|
|
6644
6650
|
}
|
|
6645
6651
|
ngOnChanges(changes) {
|
|
@@ -6648,28 +6654,22 @@ let GdsFormattedNumberComponent = class GdsFormattedNumberComponent {
|
|
|
6648
6654
|
ngAfterViewInit() {
|
|
6649
6655
|
// Implementation added by @ProxyInputs decorator
|
|
6650
6656
|
}
|
|
6651
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
6652
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type:
|
|
6657
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsFormattedAccountComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6658
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: GdsFormattedAccountComponent, isStandalone: true, selector: "gds-formatted-account", inputs: { account: "account", tag: "tag", font: "font", fontWeight: "fontWeight", textTransform: "textTransform", textDecoration: "textDecoration", lines: "lines", width: "width", minWidth: "minWidth", maxWidth: "maxWidth", inlineSize: "inlineSize", minInlineSize: "minInlineSize", maxInlineSize: "maxInlineSize", height: "height", minHeight: "minHeight", maxHeight: "maxHeight", blockSize: "blockSize", minBlockSize: "minBlockSize", maxBlockSize: "maxBlockSize", margin: "margin", marginInline: "marginInline", marginBlock: "marginBlock", padding: "padding", paddingInline: "paddingInline", paddingBlock: "paddingBlock", alignSelf: "alignSelf", justifySelf: "justifySelf", placeSelf: "placeSelf", gridColumn: "gridColumn", gridRow: "gridRow", gridArea: "gridArea", flex: "flex", order: "order", position: "position", transform: "transform", inset: "inset", display: "display", level: "level", color: "color", background: "background", border: "border", borderColor: "borderColor", borderWidth: "borderWidth", borderStyle: "borderStyle", borderRadius: "borderRadius", boxShadow: "boxShadow", opacity: "opacity", overflow: "overflow", boxSizing: "boxSizing", zIndex: "zIndex", textAlign: "textAlign", textWrap: "textWrap", overflowWrap: "overflowWrap", whiteSpace: "whiteSpace", gap: "gap", alignItems: "alignItems", alignContent: "alignContent", justifyContent: "justifyContent", justifyItems: "justifyItems", flexDirection: "flexDirection", flexWrap: "flexWrap", placeItems: "placeItems", placeContent: "placeContent", aspectRatio: "aspectRatio", cursor: "cursor", pointerEvents: "pointerEvents" }, usesOnChanges: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6653
6659
|
};
|
|
6654
|
-
|
|
6655
|
-
ProxyInputs(['
|
|
6660
|
+
GdsFormattedAccountComponent = __decorate([
|
|
6661
|
+
ProxyInputs(['account', 'tag', 'font', 'font-weight', 'text-transform', 'text-decoration', 'lines', 'width', 'min-width', 'max-width', 'inline-size', 'min-inline-size', 'max-inline-size', 'height', 'min-height', 'max-height', 'block-size', 'min-block-size', 'max-block-size', 'margin', 'margin-inline', 'margin-block', 'padding', 'padding-inline', 'padding-block', 'align-self', 'justify-self', 'place-self', 'grid-column', 'grid-row', 'grid-area', 'flex', 'order', 'position', 'transform', 'inset', 'display', 'level', 'color', 'background', 'border', 'border-color', 'border-width', 'border-style', 'border-radius', 'box-shadow', 'opacity', 'overflow', 'box-sizing', 'z-index', 'text-align', 'text-wrap', 'overflow-wrap', 'white-space', 'gap', 'align-items', 'align-content', 'justify-content', 'justify-items', 'flex-direction', 'flex-wrap', 'place-items', 'place-content', 'aspect-ratio', 'cursor', 'pointer-events']),
|
|
6656
6662
|
__metadata("design:paramtypes", [])
|
|
6657
|
-
],
|
|
6658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type:
|
|
6663
|
+
], GdsFormattedAccountComponent);
|
|
6664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GdsFormattedAccountComponent, decorators: [{
|
|
6659
6665
|
type: Component,
|
|
6660
6666
|
args: [{
|
|
6661
|
-
selector: 'gds-formatted-
|
|
6667
|
+
selector: 'gds-formatted-account',
|
|
6662
6668
|
standalone: true,
|
|
6663
6669
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6664
6670
|
template: `<ng-content></ng-content>`
|
|
6665
6671
|
}]
|
|
6666
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
6667
|
-
type: Input
|
|
6668
|
-
}], locale: [{
|
|
6669
|
-
type: Input
|
|
6670
|
-
}], currency: [{
|
|
6671
|
-
type: Input
|
|
6672
|
-
}], decimals: [{
|
|
6672
|
+
}], ctorParameters: () => [], propDecorators: { account: [{
|
|
6673
6673
|
type: Input
|
|
6674
6674
|
}], tag: [{
|
|
6675
6675
|
type: Input
|
|
@@ -6804,7 +6804,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
6804
6804
|
}] } });
|
|
6805
6805
|
|
|
6806
6806
|
/**
|
|
6807
|
-
*
|
|
6807
|
+
* GdsFormattedAccountComponent - Angular wrapper for gds-formatted-account
|
|
6808
6808
|
*
|
|
6809
6809
|
*
|
|
6810
6810
|
* Auto-generated from Custom Elements Manifest
|
|
@@ -37600,8 +37600,8 @@ class GreenCoreNgModule {
|
|
|
37600
37600
|
GdsBadgeComponent,
|
|
37601
37601
|
GdsBlurComponent,
|
|
37602
37602
|
GdsBreadcrumbsComponent,
|
|
37603
|
-
GdsButtonComponent,
|
|
37604
37603
|
GdsCalendarComponent,
|
|
37604
|
+
GdsButtonComponent,
|
|
37605
37605
|
GdsCardComponent,
|
|
37606
37606
|
GdsCardLinkedComponent,
|
|
37607
37607
|
GdsCheckboxComponent,
|
|
@@ -37609,13 +37609,13 @@ class GreenCoreNgModule {
|
|
|
37609
37609
|
GdsContextMenuComponent,
|
|
37610
37610
|
GdsDatepickerComponent,
|
|
37611
37611
|
GdsDetailsComponent,
|
|
37612
|
+
GdsDialogComponent,
|
|
37612
37613
|
GdsDivComponent,
|
|
37613
37614
|
GdsDividerComponent,
|
|
37614
|
-
GdsDialogComponent,
|
|
37615
37615
|
GdsDropdownComponent,
|
|
37616
37616
|
GdsFabComponent,
|
|
37617
|
-
GdsFlexComponent,
|
|
37618
37617
|
GdsFilterChipsComponent,
|
|
37618
|
+
GdsFlexComponent,
|
|
37619
37619
|
GdsFormSummaryComponent,
|
|
37620
37620
|
GdsGridComponent,
|
|
37621
37621
|
GdsGroupedListComponent,
|
|
@@ -37644,9 +37644,9 @@ class GreenCoreNgModule {
|
|
|
37644
37644
|
GdsCheckboxGroupComponent,
|
|
37645
37645
|
GdsIconDetailsComponent,
|
|
37646
37646
|
GdsFilterChipComponent,
|
|
37647
|
-
GdsFormattedAccountComponent,
|
|
37648
37647
|
GdsFormattedDateComponent,
|
|
37649
37648
|
GdsFormattedNumberComponent,
|
|
37649
|
+
GdsFormattedAccountComponent,
|
|
37650
37650
|
GdsRadioGroupComponent,
|
|
37651
37651
|
GdsSegmentComponent,
|
|
37652
37652
|
GdsSensitiveAccountComponent,
|
|
@@ -37993,8 +37993,8 @@ class GreenCoreNgModule {
|
|
|
37993
37993
|
GdsBadgeComponent,
|
|
37994
37994
|
GdsBlurComponent,
|
|
37995
37995
|
GdsBreadcrumbsComponent,
|
|
37996
|
-
GdsButtonComponent,
|
|
37997
37996
|
GdsCalendarComponent,
|
|
37997
|
+
GdsButtonComponent,
|
|
37998
37998
|
GdsCardComponent,
|
|
37999
37999
|
GdsCardLinkedComponent,
|
|
38000
38000
|
GdsCheckboxComponent,
|
|
@@ -38002,13 +38002,13 @@ class GreenCoreNgModule {
|
|
|
38002
38002
|
GdsContextMenuComponent,
|
|
38003
38003
|
GdsDatepickerComponent,
|
|
38004
38004
|
GdsDetailsComponent,
|
|
38005
|
+
GdsDialogComponent,
|
|
38005
38006
|
GdsDivComponent,
|
|
38006
38007
|
GdsDividerComponent,
|
|
38007
|
-
GdsDialogComponent,
|
|
38008
38008
|
GdsDropdownComponent,
|
|
38009
38009
|
GdsFabComponent,
|
|
38010
|
-
GdsFlexComponent,
|
|
38011
38010
|
GdsFilterChipsComponent,
|
|
38011
|
+
GdsFlexComponent,
|
|
38012
38012
|
GdsFormSummaryComponent,
|
|
38013
38013
|
GdsGridComponent,
|
|
38014
38014
|
GdsGroupedListComponent,
|
|
@@ -38037,9 +38037,9 @@ class GreenCoreNgModule {
|
|
|
38037
38037
|
GdsCheckboxGroupComponent,
|
|
38038
38038
|
GdsIconDetailsComponent,
|
|
38039
38039
|
GdsFilterChipComponent,
|
|
38040
|
-
GdsFormattedAccountComponent,
|
|
38041
38040
|
GdsFormattedDateComponent,
|
|
38042
38041
|
GdsFormattedNumberComponent,
|
|
38042
|
+
GdsFormattedAccountComponent,
|
|
38043
38043
|
GdsRadioGroupComponent,
|
|
38044
38044
|
GdsSegmentComponent,
|
|
38045
38045
|
GdsSensitiveAccountComponent,
|
|
@@ -38393,8 +38393,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
38393
38393
|
GdsBadgeComponent,
|
|
38394
38394
|
GdsBlurComponent,
|
|
38395
38395
|
GdsBreadcrumbsComponent,
|
|
38396
|
-
GdsButtonComponent,
|
|
38397
38396
|
GdsCalendarComponent,
|
|
38397
|
+
GdsButtonComponent,
|
|
38398
38398
|
GdsCardComponent,
|
|
38399
38399
|
GdsCardLinkedComponent,
|
|
38400
38400
|
GdsCheckboxComponent,
|
|
@@ -38402,13 +38402,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
38402
38402
|
GdsContextMenuComponent,
|
|
38403
38403
|
GdsDatepickerComponent,
|
|
38404
38404
|
GdsDetailsComponent,
|
|
38405
|
+
GdsDialogComponent,
|
|
38405
38406
|
GdsDivComponent,
|
|
38406
38407
|
GdsDividerComponent,
|
|
38407
|
-
GdsDialogComponent,
|
|
38408
38408
|
GdsDropdownComponent,
|
|
38409
38409
|
GdsFabComponent,
|
|
38410
|
-
GdsFlexComponent,
|
|
38411
38410
|
GdsFilterChipsComponent,
|
|
38411
|
+
GdsFlexComponent,
|
|
38412
38412
|
GdsFormSummaryComponent,
|
|
38413
38413
|
GdsGridComponent,
|
|
38414
38414
|
GdsGroupedListComponent,
|
|
@@ -38437,9 +38437,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
38437
38437
|
GdsCheckboxGroupComponent,
|
|
38438
38438
|
GdsIconDetailsComponent,
|
|
38439
38439
|
GdsFilterChipComponent,
|
|
38440
|
-
GdsFormattedAccountComponent,
|
|
38441
38440
|
GdsFormattedDateComponent,
|
|
38442
38441
|
GdsFormattedNumberComponent,
|
|
38442
|
+
GdsFormattedAccountComponent,
|
|
38443
38443
|
GdsRadioGroupComponent,
|
|
38444
38444
|
GdsSegmentComponent,
|
|
38445
38445
|
GdsSensitiveAccountComponent,
|
|
@@ -38789,8 +38789,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
38789
38789
|
GdsBadgeComponent,
|
|
38790
38790
|
GdsBlurComponent,
|
|
38791
38791
|
GdsBreadcrumbsComponent,
|
|
38792
|
-
GdsButtonComponent,
|
|
38793
38792
|
GdsCalendarComponent,
|
|
38793
|
+
GdsButtonComponent,
|
|
38794
38794
|
GdsCardComponent,
|
|
38795
38795
|
GdsCardLinkedComponent,
|
|
38796
38796
|
GdsCheckboxComponent,
|
|
@@ -38798,13 +38798,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
38798
38798
|
GdsContextMenuComponent,
|
|
38799
38799
|
GdsDatepickerComponent,
|
|
38800
38800
|
GdsDetailsComponent,
|
|
38801
|
+
GdsDialogComponent,
|
|
38801
38802
|
GdsDivComponent,
|
|
38802
38803
|
GdsDividerComponent,
|
|
38803
|
-
GdsDialogComponent,
|
|
38804
38804
|
GdsDropdownComponent,
|
|
38805
38805
|
GdsFabComponent,
|
|
38806
|
-
GdsFlexComponent,
|
|
38807
38806
|
GdsFilterChipsComponent,
|
|
38807
|
+
GdsFlexComponent,
|
|
38808
38808
|
GdsFormSummaryComponent,
|
|
38809
38809
|
GdsGridComponent,
|
|
38810
38810
|
GdsGroupedListComponent,
|
|
@@ -38833,9 +38833,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
38833
38833
|
GdsCheckboxGroupComponent,
|
|
38834
38834
|
GdsIconDetailsComponent,
|
|
38835
38835
|
GdsFilterChipComponent,
|
|
38836
|
-
GdsFormattedAccountComponent,
|
|
38837
38836
|
GdsFormattedDateComponent,
|
|
38838
38837
|
GdsFormattedNumberComponent,
|
|
38838
|
+
GdsFormattedAccountComponent,
|
|
38839
38839
|
GdsRadioGroupComponent,
|
|
38840
38840
|
GdsSegmentComponent,
|
|
38841
38841
|
GdsSensitiveAccountComponent,
|