@fundamental-ngx/ui5-webcomponents-ai 0.58.0-rc.74 → 0.58.0-rc.76

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.
@@ -0,0 +1,94 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { AfterViewInit, ElementRef, Injector } from '@angular/core';
3
+ import _Button, { AIButtonAccessibilityAttributes } from '@ui5/webcomponents-ai/dist/Button.js';
4
+ export { AIButtonAccessibilityAttributes } from '@ui5/webcomponents-ai/dist/Button.js';
5
+ import { UI5CustomEvent } from '@ui5/webcomponents-base';
6
+
7
+ declare class Button implements AfterViewInit {
8
+ /**
9
+ * Defines the component design.
10
+ */
11
+ design: _angular_core.InputSignal<"Default" | "Positive" | "Negative" | "Transparent" | "Emphasized" | "Attention" | undefined>;
12
+ /**
13
+ * Defines whether the component is disabled.
14
+ A disabled component can't be pressed or
15
+ focused, and it is not in the tab chain.
16
+ */
17
+ disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
18
+ /**
19
+ * Defines the current state of the component.
20
+ */
21
+ state: _angular_core.InputSignal<string | undefined>;
22
+ /**
23
+ * Defines the active state of the arrow button in split mode.
24
+ Set to true when the button is in split mode and a menu with additional options
25
+ is opened by the arrow button. Set back to false when the menu is closed.
26
+ */
27
+ arrowButtonPressed: _angular_core.InputSignalWithTransform<boolean, unknown>;
28
+ /**
29
+ * Defines the additional accessibility attributes that will be applied to the component.
30
+
31
+ This property allows for fine-tuned control of ARIA attributes for screen reader support.
32
+ It accepts an object with the following optional fields:
33
+
34
+ - **root**: Accessibility attributes that will be applied to the root element.
35
+ - **hasPopup**: Indicates the availability and type of interactive popup element (such as a menu or dialog).
36
+ Accepts string values: `"dialog"`, `"grid"`, `"listbox"`, `"menu"`, or `"tree"`.
37
+ - **roleDescription**: Defines a human-readable description for the button's role.
38
+ Accepts any string value.
39
+ - **title**: Specifies a tooltip or description for screen readers.
40
+ Accepts any string value.
41
+ - **ariaKeyShortcuts**: Defines keyboard shortcuts that activate or focus the button.
42
+
43
+ - **arrowButton**: Accessibility attributes that will be applied to the arrow (split) button element.
44
+ - **hasPopup**: Indicates the type of popup triggered by the arrow button.
45
+ Accepts string values: `"dialog"`, `"grid"`, `"listbox"`, `"menu"`, or `"tree"`.
46
+ - **expanded**: Indicates whether the popup controlled by the arrow button is currently expanded.
47
+ Accepts boolean values: `true` or `false`.
48
+ */
49
+ accessibilityAttributes: _angular_core.InputSignal<AIButtonAccessibilityAttributes | undefined>;
50
+ /**
51
+ * Fired when the component is activated either with a
52
+ mouse/tap or by using the Enter or Space key.
53
+ */
54
+ ui5Click: _angular_core.OutputEmitterRef<UI5CustomEvent<_Button, "click">>;
55
+ /**
56
+ * Fired when the component is in split mode and after the arrow button
57
+ is activated either by clicking or tapping it or by using the [Arrow Up] / [Arrow Down],
58
+ [Alt] + [Arrow Up]/ [Arrow Down], or [F4] keyboard keys.
59
+ */
60
+ ui5ArrowButtonClick: _angular_core.OutputEmitterRef<UI5CustomEvent<_Button, "arrow-button-click">>;
61
+ /**
62
+ * Available slots for content projection in this component.
63
+ *
64
+ * Slots allow you to insert custom content into predefined areas of the web component.
65
+ * Use the `slot` attribute on child elements to target specific slots.
66
+ *
67
+ * - **(default)**: Defines the available states of the component.
68
+ **Note:** Although this slot accepts HTML Elements, it is strongly recommended that
69
+ you only use `ui5-ai-button-state` components in order to preserve the intended design.
70
+ *
71
+ * @example
72
+ * ```html
73
+ * <ui5-ai-button>
74
+ * <div slot="header">Custom header content</div>
75
+ * <p>Default slot content</p>
76
+ * </ui5-ai-button>
77
+ * ```
78
+ *
79
+ * @readonly
80
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots | MDN Web Components Slots}
81
+ */
82
+ readonly slots: {
83
+ name: string;
84
+ description: string;
85
+ }[];
86
+ elementRef: ElementRef<_Button>;
87
+ injector: Injector;
88
+ get element(): _Button;
89
+ ngAfterViewInit(): void;
90
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<Button, never>;
91
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<Button, "ui5-ai-button, [ui5-ai-button]", ["ui5Button"], { "design": { "alias": "design"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "arrowButtonPressed": { "alias": "arrowButtonPressed"; "required": false; "isSignal": true; }; "accessibilityAttributes": { "alias": "accessibilityAttributes"; "required": false; "isSignal": true; }; }, { "ui5Click": "ui5Click"; "ui5ArrowButtonClick": "ui5ArrowButtonClick"; }, never, ["*"], true, never>;
92
+ }
93
+
94
+ export { Button };
@@ -0,0 +1,44 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { AfterViewInit, ElementRef, Injector } from '@angular/core';
3
+ import _ButtonState from '@ui5/webcomponents-ai/dist/ButtonState.js';
4
+
5
+ declare class ButtonState implements AfterViewInit {
6
+ /**
7
+ * Defines the name of the button state.
8
+ */
9
+ name: _angular_core.InputSignal<string | undefined>;
10
+ /**
11
+ * Defines the text of the button in this state.
12
+ */
13
+ text: _angular_core.InputSignal<string | undefined>;
14
+ /**
15
+ * Defines the icon to be displayed as graphical element within the component before the text.
16
+ The SAP-icons font provides numerous options.
17
+
18
+ **Example:**
19
+
20
+ See all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).
21
+ */
22
+ icon: _angular_core.InputSignal<string | undefined>;
23
+ /**
24
+ * Defines the icon to be displayed as graphical element within the component after the text.
25
+ The SAP-icons font provides numerous options.
26
+
27
+ **Example:**
28
+
29
+ See all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).
30
+ */
31
+ endIcon: _angular_core.InputSignal<string | undefined>;
32
+ /**
33
+ * Defines if the component is in split button mode.
34
+ */
35
+ showArrowButton: _angular_core.InputSignalWithTransform<boolean, unknown>;
36
+ elementRef: ElementRef<_ButtonState>;
37
+ injector: Injector;
38
+ get element(): _ButtonState;
39
+ ngAfterViewInit(): void;
40
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonState, never>;
41
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonState, "ui5-ai-button-state, [ui5-ai-button-state]", ["ui5ButtonState"], { "name": { "alias": "name"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "endIcon": { "alias": "endIcon"; "required": false; "isSignal": true; }; "showArrowButton": { "alias": "showArrowButton"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
42
+ }
43
+
44
+ export { ButtonState };
@@ -0,0 +1,90 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, booleanAttribute, inject, ElementRef, Injector, runInInjectionContext, effect, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import '@ui5/webcomponents-ai/dist/ButtonState.js';
4
+
5
+ class ButtonState {
6
+ constructor() {
7
+ /**
8
+ * Defines the name of the button state.
9
+ */
10
+ this.name = input(...(ngDevMode ? [undefined, { debugName: "name" }] : []));
11
+ /**
12
+ * Defines the text of the button in this state.
13
+ */
14
+ this.text = input(...(ngDevMode ? [undefined, { debugName: "text" }] : []));
15
+ /**
16
+ * Defines the icon to be displayed as graphical element within the component before the text.
17
+ The SAP-icons font provides numerous options.
18
+
19
+ **Example:**
20
+
21
+ See all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).
22
+ */
23
+ this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
24
+ /**
25
+ * Defines the icon to be displayed as graphical element within the component after the text.
26
+ The SAP-icons font provides numerous options.
27
+
28
+ **Example:**
29
+
30
+ See all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).
31
+ */
32
+ this.endIcon = input(...(ngDevMode ? [undefined, { debugName: "endIcon" }] : []));
33
+ /**
34
+ * Defines if the component is in split button mode.
35
+ */
36
+ this.showArrowButton = input(false, ...(ngDevMode ? [{ debugName: "showArrowButton", transform: booleanAttribute }] : [{ transform: booleanAttribute }])); // className is now passed
37
+ this.elementRef = inject(ElementRef);
38
+ this.injector = inject(Injector);
39
+ }
40
+ get element() {
41
+ return this.elementRef.nativeElement;
42
+ }
43
+ ngAfterViewInit() {
44
+ const wcElement = this.element;
45
+ const inputsToSync = [
46
+ 'name',
47
+ 'text',
48
+ 'icon',
49
+ 'endIcon',
50
+ 'showArrowButton',
51
+ ];
52
+ // Synchronize inputs (properties)
53
+ for (const inputName of inputsToSync) {
54
+ // Find the corresponding camelCase signal property on the Angular component
55
+ const signalName = inputName.replace(/-./g, (x) => x[1].toUpperCase());
56
+ // Use the Injector to run the effect in the correct context
57
+ if (this[signalName] && typeof this[signalName] === 'function') {
58
+ runInInjectionContext(this.injector, () => {
59
+ effect(() => {
60
+ // Read the signal value
61
+ const value = this[signalName]();
62
+ if (wcElement) {
63
+ // Write the value to the Web Component's property
64
+ wcElement[inputName] = value;
65
+ }
66
+ });
67
+ });
68
+ }
69
+ }
70
+ }
71
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: ButtonState, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
72
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.4", type: ButtonState, isStandalone: true, selector: "ui5-ai-button-state, [ui5-ai-button-state]", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, endIcon: { classPropertyName: "endIcon", publicName: "endIcon", isSignal: true, isRequired: false, transformFunction: null }, showArrowButton: { classPropertyName: "showArrowButton", publicName: "showArrowButton", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["ui5ButtonState"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
73
+ }
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: ButtonState, decorators: [{
75
+ type: Component,
76
+ args: [{
77
+ standalone: true,
78
+ selector: 'ui5-ai-button-state, [ui5-ai-button-state]',
79
+ template: '<ng-content></ng-content>',
80
+ exportAs: 'ui5ButtonState',
81
+ changeDetection: ChangeDetectionStrategy.OnPush,
82
+ }]
83
+ }] });
84
+
85
+ /**
86
+ * Generated bundle index. Do not edit.
87
+ */
88
+
89
+ export { ButtonState };
90
+ //# sourceMappingURL=fundamental-ngx-ui5-webcomponents-ai-button-state.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fundamental-ngx-ui5-webcomponents-ai-button-state.mjs","sources":["../tmp-esm2022/button-state/index.js","../tmp-esm2022/button-state/fundamental-ngx-ui5-webcomponents-ai-button-state.js"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, input, effect, runInInjectionContext, inject, Injector, booleanAttribute } from '@angular/core';\nimport '@ui5/webcomponents-ai/dist/ButtonState.js';\nimport * as i0 from \"@angular/core\";\nexport class ButtonState {\n constructor() {\n /**\n * Defines the name of the button state.\n */\n this.name = input(...(ngDevMode ? [undefined, { debugName: \"name\" }] : []));\n /**\n * Defines the text of the button in this state.\n */\n this.text = input(...(ngDevMode ? [undefined, { debugName: \"text\" }] : []));\n /**\n * Defines the icon to be displayed as graphical element within the component before the text.\n The SAP-icons font provides numerous options.\n \n **Example:**\n \n See all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).\n */\n this.icon = input(...(ngDevMode ? [undefined, { debugName: \"icon\" }] : []));\n /**\n * Defines the icon to be displayed as graphical element within the component after the text.\n The SAP-icons font provides numerous options.\n \n **Example:**\n \n See all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).\n */\n this.endIcon = input(...(ngDevMode ? [undefined, { debugName: \"endIcon\" }] : []));\n /**\n * Defines if the component is in split button mode.\n */\n this.showArrowButton = input(false, ...(ngDevMode ? [{ debugName: \"showArrowButton\", transform: booleanAttribute }] : [{ transform: booleanAttribute }])); // className is now passed\n this.elementRef = inject(ElementRef);\n this.injector = inject(Injector);\n }\n get element() {\n return this.elementRef.nativeElement;\n }\n ngAfterViewInit() {\n const wcElement = this.element;\n const inputsToSync = [\n 'name',\n 'text',\n 'icon',\n 'endIcon',\n 'showArrowButton',\n ];\n // Synchronize inputs (properties)\n for (const inputName of inputsToSync) {\n // Find the corresponding camelCase signal property on the Angular component\n const signalName = inputName.replace(/-./g, (x) => x[1].toUpperCase());\n // Use the Injector to run the effect in the correct context\n if (this[signalName] && typeof this[signalName] === 'function') {\n runInInjectionContext(this.injector, () => {\n effect(() => {\n // Read the signal value\n const value = this[signalName]();\n if (wcElement) {\n // Write the value to the Web Component's property\n wcElement[inputName] = value;\n }\n });\n });\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.1.4\", ngImport: i0, type: ButtonState, deps: [], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.1.0\", version: \"20.1.4\", type: ButtonState, isStandalone: true, selector: \"ui5-ai-button-state, [ui5-ai-button-state]\", inputs: { name: { classPropertyName: \"name\", publicName: \"name\", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: \"text\", publicName: \"text\", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: \"icon\", publicName: \"icon\", isSignal: true, isRequired: false, transformFunction: null }, endIcon: { classPropertyName: \"endIcon\", publicName: \"endIcon\", isSignal: true, isRequired: false, transformFunction: null }, showArrowButton: { classPropertyName: \"showArrowButton\", publicName: \"showArrowButton\", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: [\"ui5ButtonState\"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.1.4\", ngImport: i0, type: ButtonState, decorators: [{\n type: Component,\n args: [{\n standalone: true,\n selector: 'ui5-ai-button-state, [ui5-ai-button-state]',\n template: '<ng-content></ng-content>',\n exportAs: 'ui5ButtonState',\n changeDetection: ChangeDetectionStrategy.OnPush,\n }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL3VpNS13ZWJjb21wb25lbnRzLWFpL2J1dHRvbi1zdGF0ZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxVQUFVLEVBQ1YsS0FBSyxFQUdMLE1BQU0sRUFDTixxQkFBcUIsRUFDckIsTUFBTSxFQUNOLFFBQVEsRUFDUixnQkFBZ0IsRUFHakIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTywyQ0FBMkMsQ0FBQzs7QUFjbkQsTUFBTSxPQUFPLFdBQVc7SUFSeEI7UUFVRTs7V0FFRztRQUNILFNBQUksR0FBRyxLQUFLLDBEQUFrRCxDQUFDO1FBRS9EOztXQUVHO1FBQ0gsU0FBSSxHQUFHLEtBQUssMERBQWtELENBQUM7UUFFL0Q7Ozs7Ozs7V0FPRztRQUNILFNBQUksR0FBRyxLQUFLLDBEQUFrRCxDQUFDO1FBRS9EOzs7Ozs7O1dBT0c7UUFDSCxZQUFPLEdBQUcsS0FBSyw2REFBcUQsQ0FBQztRQUVyRTs7V0FFRztRQUNILG9CQUFlLEdBQUcsS0FBSy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hZCB0aGUgc2lnbmFsIHZhbHVlXG4gICAgICAgICAgICBjb25zdCB2YWx1ZSA9IHRoaXNbc2lnbmFsTmFtZV0oKTtcbiAgICAgICAgICAgIGlmICh3Y0VsZW1lbnQpIHtcbiAgICAgICAgICAgICAgLy8gV3JpdGUgdGhlIHZhbHVlIHRvIHRoZSBXZWIgQ29tcG9uZW50J3MgcHJvcGVydHlcbiAgICAgICAgICAgICAgd2NFbGVtZW50W2lucHV0TmFtZV0gPSB2YWx1ZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgfVxuICBcbiAgICBcbiAgICBcblxuICB9XG59XG5cbiJdfQ==","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './index';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVuZGFtZW50YWwtbmd4LXVpNS13ZWJjb21wb25lbnRzLWFpLWJ1dHRvbi1zdGF0ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvdWk1LXdlYmNvbXBvbmVudHMtYWkvYnV0dG9uLXN0YXRlL2Z1bmRhbWVudGFsLW5neC11aTUtd2ViY29tcG9uZW50cy1haS1idXR0b24tc3RhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0="],"names":[],"mappings":";;;;AAGO,MAAM,WAAW,CAAC;AACzB,IAAI,WAAW,GAAG;AAClB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,SAAS,GAAG,CAAC,SAAS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,gBAAgB;AAC9C,oBAAoB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AACnE,iBAAiB;AACjB,SAAS,CAAC,EAAE,CAAC;;ACjFb;AACA;AACA;;;;"}
@@ -0,0 +1,156 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, booleanAttribute, output, inject, ElementRef, Injector, runInInjectionContext, effect, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import '@ui5/webcomponents-ai/dist/Button.js';
4
+
5
+ class Button {
6
+ constructor() {
7
+ /**
8
+ * Defines the component design.
9
+ */
10
+ this.design = input("Default", ...(ngDevMode ? [{ debugName: "design" }] : []));
11
+ /**
12
+ * Defines whether the component is disabled.
13
+ A disabled component can't be pressed or
14
+ focused, and it is not in the tab chain.
15
+ */
16
+ this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
17
+ /**
18
+ * Defines the current state of the component.
19
+ */
20
+ this.state = input(...(ngDevMode ? [undefined, { debugName: "state" }] : []));
21
+ /**
22
+ * Defines the active state of the arrow button in split mode.
23
+ Set to true when the button is in split mode and a menu with additional options
24
+ is opened by the arrow button. Set back to false when the menu is closed.
25
+ */
26
+ this.arrowButtonPressed = input(false, ...(ngDevMode ? [{ debugName: "arrowButtonPressed", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
27
+ /**
28
+ * Defines the additional accessibility attributes that will be applied to the component.
29
+
30
+ This property allows for fine-tuned control of ARIA attributes for screen reader support.
31
+ It accepts an object with the following optional fields:
32
+
33
+ - **root**: Accessibility attributes that will be applied to the root element.
34
+ - **hasPopup**: Indicates the availability and type of interactive popup element (such as a menu or dialog).
35
+ Accepts string values: `"dialog"`, `"grid"`, `"listbox"`, `"menu"`, or `"tree"`.
36
+ - **roleDescription**: Defines a human-readable description for the button's role.
37
+ Accepts any string value.
38
+ - **title**: Specifies a tooltip or description for screen readers.
39
+ Accepts any string value.
40
+ - **ariaKeyShortcuts**: Defines keyboard shortcuts that activate or focus the button.
41
+
42
+ - **arrowButton**: Accessibility attributes that will be applied to the arrow (split) button element.
43
+ - **hasPopup**: Indicates the type of popup triggered by the arrow button.
44
+ Accepts string values: `"dialog"`, `"grid"`, `"listbox"`, `"menu"`, or `"tree"`.
45
+ - **expanded**: Indicates whether the popup controlled by the arrow button is currently expanded.
46
+ Accepts boolean values: `true` or `false`.
47
+ */
48
+ this.accessibilityAttributes = input({}, ...(ngDevMode ? [{ debugName: "accessibilityAttributes" }] : [])); // className is now passed
49
+ /**
50
+ * Fired when the component is activated either with a
51
+ mouse/tap or by using the Enter or Space key.
52
+ */
53
+ this.ui5Click = output();
54
+ /**
55
+ * Fired when the component is in split mode and after the arrow button
56
+ is activated either by clicking or tapping it or by using the [Arrow Up] / [Arrow Down],
57
+ [Alt] + [Arrow Up]/ [Arrow Down], or [F4] keyboard keys.
58
+ */
59
+ this.ui5ArrowButtonClick = output();
60
+ /**
61
+ * Available slots for content projection in this component.
62
+ *
63
+ * Slots allow you to insert custom content into predefined areas of the web component.
64
+ * Use the `slot` attribute on child elements to target specific slots.
65
+ *
66
+ * - **(default)**: Defines the available states of the component.
67
+ **Note:** Although this slot accepts HTML Elements, it is strongly recommended that
68
+ you only use `ui5-ai-button-state` components in order to preserve the intended design.
69
+ *
70
+ * @example
71
+ * ```html
72
+ * <ui5-ai-button>
73
+ * <div slot="header">Custom header content</div>
74
+ * <p>Default slot content</p>
75
+ * </ui5-ai-button>
76
+ * ```
77
+ *
78
+ * @readonly
79
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots | MDN Web Components Slots}
80
+ */
81
+ this.slots = [
82
+ {
83
+ "name": "default",
84
+ "description": "Defines the available states of the component.\n**Note:** Although this slot accepts HTML Elements, it is strongly recommended that\nyou only use `ui5-ai-button-state` components in order to preserve the intended design."
85
+ }
86
+ ];
87
+ this.elementRef = inject(ElementRef);
88
+ this.injector = inject(Injector);
89
+ }
90
+ get element() {
91
+ return this.elementRef.nativeElement;
92
+ }
93
+ ngAfterViewInit() {
94
+ const wcElement = this.element;
95
+ const inputsToSync = [
96
+ 'design',
97
+ 'disabled',
98
+ 'state',
99
+ 'arrowButtonPressed',
100
+ 'accessibilityAttributes',
101
+ ];
102
+ // Synchronize inputs (properties)
103
+ for (const inputName of inputsToSync) {
104
+ // Find the corresponding camelCase signal property on the Angular component
105
+ const signalName = inputName.replace(/-./g, (x) => x[1].toUpperCase());
106
+ // Use the Injector to run the effect in the correct context
107
+ if (this[signalName] && typeof this[signalName] === 'function') {
108
+ runInInjectionContext(this.injector, () => {
109
+ effect(() => {
110
+ // Read the signal value
111
+ const value = this[signalName]();
112
+ if (wcElement) {
113
+ // Write the value to the Web Component's property
114
+ wcElement[inputName] = value;
115
+ }
116
+ });
117
+ });
118
+ }
119
+ }
120
+ const outputsToSync = [
121
+ 'ui5Click',
122
+ 'ui5ArrowButtonClick',
123
+ ];
124
+ // Synchronize outputs (events)
125
+ for (const outputName of outputsToSync) {
126
+ // Map Angular output name to UI5 web component event name
127
+ const eventName = outputName.replace('ui5', '').replace(/([A-Z])/g, '-$1').toLowerCase().substring(1);
128
+ // Ensure the output property exists and has an emit function before adding listener
129
+ if (this[outputName] && typeof this[outputName].emit === 'function' && wcElement.addEventListener) {
130
+ // Cast the listener to the correct type to satisfy TypeScript
131
+ wcElement.addEventListener(eventName, (e) => {
132
+ this[outputName].emit(e);
133
+ });
134
+ }
135
+ }
136
+ }
137
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: Button, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
138
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.4", type: Button, isStandalone: true, selector: "ui5-ai-button, [ui5-ai-button]", inputs: { design: { classPropertyName: "design", publicName: "design", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, arrowButtonPressed: { classPropertyName: "arrowButtonPressed", publicName: "arrowButtonPressed", isSignal: true, isRequired: false, transformFunction: null }, accessibilityAttributes: { classPropertyName: "accessibilityAttributes", publicName: "accessibilityAttributes", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { ui5Click: "ui5Click", ui5ArrowButtonClick: "ui5ArrowButtonClick" }, exportAs: ["ui5Button"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
139
+ }
140
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: Button, decorators: [{
141
+ type: Component,
142
+ args: [{
143
+ standalone: true,
144
+ selector: 'ui5-ai-button, [ui5-ai-button]',
145
+ template: '<ng-content></ng-content>',
146
+ exportAs: 'ui5Button',
147
+ changeDetection: ChangeDetectionStrategy.OnPush,
148
+ }]
149
+ }] });
150
+
151
+ /**
152
+ * Generated bundle index. Do not edit.
153
+ */
154
+
155
+ export { Button };
156
+ //# sourceMappingURL=fundamental-ngx-ui5-webcomponents-ai-button.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fundamental-ngx-ui5-webcomponents-ai-button.mjs","sources":["../tmp-esm2022/button/index.js","../tmp-esm2022/button/fundamental-ngx-ui5-webcomponents-ai-button.js"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, input, output, effect, runInInjectionContext, inject, Injector, booleanAttribute } from '@angular/core';\nimport '@ui5/webcomponents-ai/dist/Button.js';\nimport * as i0 from \"@angular/core\";\nexport class Button {\n constructor() {\n /**\n * Defines the component design.\n */\n this.design = input(\"Default\", ...(ngDevMode ? [{ debugName: \"design\" }] : []));\n /**\n * Defines whether the component is disabled.\n A disabled component can't be pressed or\n focused, and it is not in the tab chain.\n */\n this.disabled = input(false, ...(ngDevMode ? [{ debugName: \"disabled\", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));\n /**\n * Defines the current state of the component.\n */\n this.state = input(...(ngDevMode ? [undefined, { debugName: \"state\" }] : []));\n /**\n * Defines the active state of the arrow button in split mode.\n Set to true when the button is in split mode and a menu with additional options\n is opened by the arrow button. Set back to false when the menu is closed.\n */\n this.arrowButtonPressed = input(false, ...(ngDevMode ? [{ debugName: \"arrowButtonPressed\", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));\n /**\n * Defines the additional accessibility attributes that will be applied to the component.\n \n This property allows for fine-tuned control of ARIA attributes for screen reader support.\n It accepts an object with the following optional fields:\n \n - **root**: Accessibility attributes that will be applied to the root element.\n - **hasPopup**: Indicates the availability and type of interactive popup element (such as a menu or dialog).\n Accepts string values: `\"dialog\"`, `\"grid\"`, `\"listbox\"`, `\"menu\"`, or `\"tree\"`.\n - **roleDescription**: Defines a human-readable description for the button's role.\n Accepts any string value.\n - **title**: Specifies a tooltip or description for screen readers.\n Accepts any string value.\n - **ariaKeyShortcuts**: Defines keyboard shortcuts that activate or focus the button.\n \n - **arrowButton**: Accessibility attributes that will be applied to the arrow (split) button element.\n - **hasPopup**: Indicates the type of popup triggered by the arrow button.\n Accepts string values: `\"dialog\"`, `\"grid\"`, `\"listbox\"`, `\"menu\"`, or `\"tree\"`.\n - **expanded**: Indicates whether the popup controlled by the arrow button is currently expanded.\n Accepts boolean values: `true` or `false`.\n */\n this.accessibilityAttributes = input({}, ...(ngDevMode ? [{ debugName: \"accessibilityAttributes\" }] : [])); // className is now passed\n /**\n * Fired when the component is activated either with a\n mouse/tap or by using the Enter or Space key.\n */\n this.ui5Click = output();\n /**\n * Fired when the component is in split mode and after the arrow button\n is activated either by clicking or tapping it or by using the [Arrow Up] / [Arrow Down],\n [Alt] + [Arrow Up]/ [Arrow Down], or [F4] keyboard keys.\n */\n this.ui5ArrowButtonClick = output();\n /**\n * Available slots for content projection in this component.\n *\n * Slots allow you to insert custom content into predefined areas of the web component.\n * Use the `slot` attribute on child elements to target specific slots.\n *\n * - **(default)**: Defines the available states of the component.\n **Note:** Although this slot accepts HTML Elements, it is strongly recommended that\n you only use `ui5-ai-button-state` components in order to preserve the intended design.\n *\n * @example\n * ```html\n * <ui5-ai-button>\n * <div slot=\"header\">Custom header content</div>\n * <p>Default slot content</p>\n * </ui5-ai-button>\n * ```\n *\n * @readonly\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots | MDN Web Components Slots}\n */\n this.slots = [\n {\n \"name\": \"default\",\n \"description\": \"Defines the available states of the component.\\n**Note:** Although this slot accepts HTML Elements, it is strongly recommended that\\nyou only use `ui5-ai-button-state` components in order to preserve the intended design.\"\n }\n ];\n this.elementRef = inject(ElementRef);\n this.injector = inject(Injector);\n }\n get element() {\n return this.elementRef.nativeElement;\n }\n ngAfterViewInit() {\n const wcElement = this.element;\n const inputsToSync = [\n 'design',\n 'disabled',\n 'state',\n 'arrowButtonPressed',\n 'accessibilityAttributes',\n ];\n // Synchronize inputs (properties)\n for (const inputName of inputsToSync) {\n // Find the corresponding camelCase signal property on the Angular component\n const signalName = inputName.replace(/-./g, (x) => x[1].toUpperCase());\n // Use the Injector to run the effect in the correct context\n if (this[signalName] && typeof this[signalName] === 'function') {\n runInInjectionContext(this.injector, () => {\n effect(() => {\n // Read the signal value\n const value = this[signalName]();\n if (wcElement) {\n // Write the value to the Web Component's property\n wcElement[inputName] = value;\n }\n });\n });\n }\n }\n const outputsToSync = [\n 'ui5Click',\n 'ui5ArrowButtonClick',\n ];\n // Synchronize outputs (events)\n for (const outputName of outputsToSync) {\n // Map Angular output name to UI5 web component event name\n const eventName = outputName.replace('ui5', '').replace(/([A-Z])/g, '-$1').toLowerCase().substring(1);\n // Ensure the output property exists and has an emit function before adding listener\n if (this[outputName] && typeof this[outputName].emit === 'function' && wcElement.addEventListener) {\n // Cast the listener to the correct type to satisfy TypeScript\n wcElement.addEventListener(eventName, (e) => {\n this[outputName].emit(e);\n });\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.1.4\", ngImport: i0, type: Button, deps: [], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.1.0\", version: \"20.1.4\", type: Button, isStandalone: true, selector: \"ui5-ai-button, [ui5-ai-button]\", inputs: { design: { classPropertyName: \"design\", publicName: \"design\", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: \"disabled\", publicName: \"disabled\", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: \"state\", publicName: \"state\", isSignal: true, isRequired: false, transformFunction: null }, arrowButtonPressed: { classPropertyName: \"arrowButtonPressed\", publicName: \"arrowButtonPressed\", isSignal: true, isRequired: false, transformFunction: null }, accessibilityAttributes: { classPropertyName: \"accessibilityAttributes\", publicName: \"accessibilityAttributes\", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { ui5Click: \"ui5Click\", ui5ArrowButtonClick: \"ui5ArrowButtonClick\" }, exportAs: [\"ui5Button\"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.1.4\", ngImport: i0, type: Button, decorators: [{\n type: Component,\n args: [{\n standalone: true,\n selector: 'ui5-ai-button, [ui5-ai-button]',\n template: '<ng-content></ng-content>',\n exportAs: 'ui5Button',\n changeDetection: ChangeDetectionStrategy.OnPush,\n }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL3VpNS13ZWJjb21wb25lbnRzLWFpL2J1dHRvbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCx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2YgdGhpc1tvdXRwdXROYW1lXS5lbWl0ID09PSAnZnVuY3Rpb24nICYmIHdjRWxlbWVudC5hZGRFdmVudExpc3RlbmVyKSB7XG4gICAgICAgIC8vIENhc3QgdGhlIGxpc3RlbmVyIHRvIHRoZSBjb3JyZWN0IHR5cGUgdG8gc2F0aXNmeSBUeXBlU2NyaXB0XG4gICAgICAgIHdjRWxlbWVudC5hZGRFdmVudExpc3RlbmVyKGV2ZW50TmFtZSwgKGUpID0+IHtcblxuICAgICAgICAgIHRoaXNbb3V0cHV0TmFtZV0uZW1pdChlIGFzIEN1c3RvbUV2ZW50PGFueT4pO1xuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9XG4gIFxuXG4gIH1cbn1cblxuLy8gUmUtZXhwb3J0IHR5cGVzIGZvciBjb252ZW5pZW5jZVxuZXhwb3J0IHsgQUlCdXR0b25BY2Nlc3NpYmlsaXR5QXR0cmlidXRlcyB9IGZyb20gJ0B1aTUvd2ViY29tcG9uZW50cy1haS9kaXN0L0J1dHRvbi5qcyc7XG4iXX0=","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './index';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVuZGFtZW50YWwtbmd4LXVpNS13ZWJjb21wb25lbnRzLWFpLWJ1dHRvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvdWk1LXdlYmNvbXBvbmVudHMtYWkvYnV0dG9uL2Z1bmRhbWVudGFsLW5neC11aTUtd2ViY29tcG9uZW50cy1haS1idXR0b24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJv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CAAC;AAChH,YAAY,IAAI,EAAE,SAAS;AAC3B,YAAY,IAAI,EAAE,CAAC;AACnB,oBAAoB,UAAU,EAAE,IAAI;AACpC,oBAAoB,QAAQ,EAAE,gCAAgC;AAC9D,oBAAoB,QAAQ,EAAE,2BAA2B;AACzD,oBAAoB,QAAQ,EAAE,WAAW;AACzC,oBAAoB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AACnE,iBAAiB;AACjB,SAAS,CAAC,EAAE,CAAC;;ACnJb;AACA;AACA;;;;"}
@@ -0,0 +1,133 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, booleanAttribute, output, inject, ElementRef, Injector, runInInjectionContext, effect, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import '@ui5/webcomponents-ai/dist/Input.js';
4
+
5
+ class Input {
6
+ constructor() {
7
+ /**
8
+ * Indicates the index of the currently displayed version.
9
+ */
10
+ this.currentVersion = input(0, ...(ngDevMode ? [{ debugName: "currentVersion" }] : []));
11
+ /**
12
+ * Indicates the total number of result versions available.
13
+
14
+ When not set or set to 0, the versioning will be hidden.
15
+ */
16
+ this.totalVersions = input(0, ...(ngDevMode ? [{ debugName: "totalVersions" }] : []));
17
+ /**
18
+ * Defines whether the AI Writing Assistant is currently loading.
19
+
20
+ When `true`, indicates that an AI action is in progress.
21
+ */
22
+ this.loading = input(false, ...(ngDevMode ? [{ debugName: "loading", transform: booleanAttribute }] : [{ transform: booleanAttribute }])); // className is now passed
23
+ /**
24
+ * Fired when the user selects the AI button.
25
+ */
26
+ this.ui5ButtonClick = output();
27
+ /**
28
+ * Fired when an item from the AI actions menu is clicked.
29
+ */
30
+ this.ui5ItemClick = output();
31
+ /**
32
+ * Fired when the user selects the "Stop" button to stop ongoing AI text generation.
33
+ */
34
+ this.ui5StopGeneration = output();
35
+ /**
36
+ * Fired when the user selects the version navigation buttons.
37
+ */
38
+ this.ui5VersionChange = output();
39
+ /**
40
+ * Available slots for content projection in this component.
41
+ *
42
+ * Slots allow you to insert custom content into predefined areas of the web component.
43
+ * Use the `slot` attribute on child elements to target specific slots.
44
+ *
45
+ * - **actions**: Defines the items of the menu for the component.
46
+ *
47
+ * @example
48
+ * ```html
49
+ * <ui5-ai-input>
50
+ * <div slot="header">Custom header content</div>
51
+ * <p>Default slot content</p>
52
+ * </ui5-ai-input>
53
+ * ```
54
+ *
55
+ * @readonly
56
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots | MDN Web Components Slots}
57
+ */
58
+ this.slots = [
59
+ {
60
+ "name": "actions",
61
+ "description": "Defines the items of the menu for the component."
62
+ }
63
+ ];
64
+ this.elementRef = inject(ElementRef);
65
+ this.injector = inject(Injector);
66
+ }
67
+ get element() {
68
+ return this.elementRef.nativeElement;
69
+ }
70
+ ngAfterViewInit() {
71
+ const wcElement = this.element;
72
+ const inputsToSync = [
73
+ 'currentVersion',
74
+ 'totalVersions',
75
+ 'loading',
76
+ ];
77
+ // Synchronize inputs (properties)
78
+ for (const inputName of inputsToSync) {
79
+ // Find the corresponding camelCase signal property on the Angular component
80
+ const signalName = inputName.replace(/-./g, (x) => x[1].toUpperCase());
81
+ // Use the Injector to run the effect in the correct context
82
+ if (this[signalName] && typeof this[signalName] === 'function') {
83
+ runInInjectionContext(this.injector, () => {
84
+ effect(() => {
85
+ // Read the signal value
86
+ const value = this[signalName]();
87
+ if (wcElement) {
88
+ // Write the value to the Web Component's property
89
+ wcElement[inputName] = value;
90
+ }
91
+ });
92
+ });
93
+ }
94
+ }
95
+ const outputsToSync = [
96
+ 'ui5ButtonClick',
97
+ 'ui5ItemClick',
98
+ 'ui5StopGeneration',
99
+ 'ui5VersionChange',
100
+ ];
101
+ // Synchronize outputs (events)
102
+ for (const outputName of outputsToSync) {
103
+ // Map Angular output name to UI5 web component event name
104
+ const eventName = outputName.replace('ui5', '').replace(/([A-Z])/g, '-$1').toLowerCase().substring(1);
105
+ // Ensure the output property exists and has an emit function before adding listener
106
+ if (this[outputName] && typeof this[outputName].emit === 'function' && wcElement.addEventListener) {
107
+ // Cast the listener to the correct type to satisfy TypeScript
108
+ wcElement.addEventListener(eventName, (e) => {
109
+ this[outputName].emit(e);
110
+ });
111
+ }
112
+ }
113
+ }
114
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: Input, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
115
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.4", type: Input, isStandalone: true, selector: "ui5-ai-input, [ui5-ai-input]", inputs: { currentVersion: { classPropertyName: "currentVersion", publicName: "currentVersion", isSignal: true, isRequired: false, transformFunction: null }, totalVersions: { classPropertyName: "totalVersions", publicName: "totalVersions", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { ui5ButtonClick: "ui5ButtonClick", ui5ItemClick: "ui5ItemClick", ui5StopGeneration: "ui5StopGeneration", ui5VersionChange: "ui5VersionChange" }, exportAs: ["ui5Input"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
116
+ }
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: Input, decorators: [{
118
+ type: Component,
119
+ args: [{
120
+ standalone: true,
121
+ selector: 'ui5-ai-input, [ui5-ai-input]',
122
+ template: '<ng-content></ng-content>',
123
+ exportAs: 'ui5Input',
124
+ changeDetection: ChangeDetectionStrategy.OnPush,
125
+ }]
126
+ }] });
127
+
128
+ /**
129
+ * Generated bundle index. Do not edit.
130
+ */
131
+
132
+ export { Input };
133
+ //# sourceMappingURL=fundamental-ngx-ui5-webcomponents-ai-input.mjs.map