@magic-xpa/angular 4.1300.0-dev4130.304 → 4.1300.0-dev4130.307
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/fesm2022/magic-xpa-angular.mjs +187 -105
- package/fesm2022/magic-xpa-angular.mjs.map +1 -1
- package/package.json +3 -3
- package/types/magic-xpa-angular.d.ts +64 -20
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magic-xpa/angular",
|
|
3
|
-
"version": "4.1300.0-dev4130.
|
|
3
|
+
"version": "4.1300.0-dev4130.307",
|
|
4
4
|
"license": "SEE LICENSE IN EULA.pdf",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@magic-xpa/engine": "4.1300.0-dev4130.
|
|
7
|
-
"@magic-xpa/angular-material-core": "4.1300.0-dev4130.
|
|
6
|
+
"@magic-xpa/engine": "4.1300.0-dev4130.307",
|
|
7
|
+
"@magic-xpa/angular-material-core": "4.1300.0-dev4130.307",
|
|
8
8
|
"ng-dynamic-component": "^11.0.0",
|
|
9
9
|
"@maskito/angular": "^5.3.1",
|
|
10
10
|
"@maskito/core": "^5.3.1",
|
|
@@ -1784,6 +1784,39 @@ declare class MagicAlertComponent extends BaseMagicAlertComponent {
|
|
|
1784
1784
|
static ɵcmp: i0.ɵɵComponentDeclaration<MagicAlertComponent, "sample-magic-alert-component", never, {}, {}, never, never, false, never>;
|
|
1785
1785
|
}
|
|
1786
1786
|
|
|
1787
|
+
/**
|
|
1788
|
+
* Sets of buttons that can be displayed in the confirmation box.
|
|
1789
|
+
* Values match the button codes received from the server (Styles.MSGBOX_BUTTON_xxx)
|
|
1790
|
+
*/
|
|
1791
|
+
declare enum MagicConfirmationButtons {
|
|
1792
|
+
Ok = 0,
|
|
1793
|
+
OkCancel = 1,
|
|
1794
|
+
AbortRetryIgnore = 2,
|
|
1795
|
+
YesNoCancel = 3,
|
|
1796
|
+
YesNo = 4,
|
|
1797
|
+
RetryCancel = 5
|
|
1798
|
+
}
|
|
1799
|
+
/**
|
|
1800
|
+
* Button pressed in the confirmation box.
|
|
1801
|
+
* Values match the result codes returned to the server (Styles.MSGBOX_RESULT_xxx)
|
|
1802
|
+
*/
|
|
1803
|
+
declare enum MagicConfirmationResult {
|
|
1804
|
+
Ok = 1,
|
|
1805
|
+
Cancel = 2,
|
|
1806
|
+
Abort = 3,
|
|
1807
|
+
Retry = 4,
|
|
1808
|
+
Ignore = 5,
|
|
1809
|
+
Yes = 6,
|
|
1810
|
+
No = 7
|
|
1811
|
+
}
|
|
1812
|
+
/**
|
|
1813
|
+
* Buttons displayed for each set of buttons, in display order
|
|
1814
|
+
*/
|
|
1815
|
+
declare const ButtonSets: Record<MagicConfirmationButtons, MagicConfirmationResult[]>;
|
|
1816
|
+
/**
|
|
1817
|
+
* Text of each button
|
|
1818
|
+
*/
|
|
1819
|
+
declare const ButtonTexts: Record<MagicConfirmationResult, string>;
|
|
1787
1820
|
/**
|
|
1788
1821
|
* This is a base class for the magic confirm components
|
|
1789
1822
|
*/
|
|
@@ -1796,25 +1829,40 @@ declare class BaseMagicConfirmComponent {
|
|
|
1796
1829
|
* message of the component
|
|
1797
1830
|
*/
|
|
1798
1831
|
message: string;
|
|
1832
|
+
/**
|
|
1833
|
+
* set of buttons to display
|
|
1834
|
+
*/
|
|
1835
|
+
buttons: MagicConfirmationButtons;
|
|
1799
1836
|
/**
|
|
1800
1837
|
* onClose Event - to be raised when the component is closed
|
|
1801
|
-
*
|
|
1838
|
+
* passes the button that was pressed
|
|
1802
1839
|
*/
|
|
1803
|
-
onClose: EventEmitter<
|
|
1840
|
+
onClose: EventEmitter<MagicConfirmationResult>;
|
|
1804
1841
|
/**
|
|
1805
1842
|
* raises close Event
|
|
1806
|
-
* @param result
|
|
1807
|
-
*
|
|
1843
|
+
* @param result the button that was pressed.
|
|
1808
1844
|
*/
|
|
1809
|
-
OnClose(result:
|
|
1845
|
+
OnClose(result: MagicConfirmationResult): void;
|
|
1810
1846
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseMagicConfirmComponent, never>;
|
|
1811
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaseMagicConfirmComponent, "mg-base-confirm", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, { "onClose": "onClose"; }, never, never, false, never>;
|
|
1847
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseMagicConfirmComponent, "mg-base-confirm", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, { "onClose": "onClose"; }, never, never, false, never>;
|
|
1812
1848
|
}
|
|
1813
1849
|
|
|
1814
1850
|
/***
|
|
1815
|
-
* This is
|
|
1851
|
+
* This is the default confirmation box of Magic.
|
|
1852
|
+
* It masks the application behind it until one of the buttons is pressed
|
|
1816
1853
|
*/
|
|
1817
1854
|
declare class MagicConfirmationBoxComponent extends BaseMagicConfirmComponent {
|
|
1855
|
+
protected readonly Result: typeof MagicConfirmationResult;
|
|
1856
|
+
protected readonly buttonTexts: Record<MagicConfirmationResult, string>;
|
|
1857
|
+
private buttonElements;
|
|
1858
|
+
/**
|
|
1859
|
+
* buttons to display for the current set of buttons
|
|
1860
|
+
*/
|
|
1861
|
+
get buttonResults(): MagicConfirmationResult[];
|
|
1862
|
+
/**
|
|
1863
|
+
* focus the first button, so it can be pressed with Enter
|
|
1864
|
+
*/
|
|
1865
|
+
ngAfterViewInit(): void;
|
|
1818
1866
|
static ɵfac: i0.ɵɵFactoryDeclaration<MagicConfirmationBoxComponent, never>;
|
|
1819
1867
|
static ɵcmp: i0.ɵɵComponentDeclaration<MagicConfirmationBoxComponent, "sample-magic-confirmation-box", never, {}, {}, never, never, false, never>;
|
|
1820
1868
|
}
|
|
@@ -2302,18 +2350,9 @@ declare class MagicModule {
|
|
|
2302
2350
|
*/
|
|
2303
2351
|
declare class ConfirmationComponentsMagicProvider {
|
|
2304
2352
|
/**
|
|
2305
|
-
*
|
|
2306
|
-
*
|
|
2307
|
-
|
|
2308
|
-
showDefaultConfirmations(): boolean;
|
|
2309
|
-
/**
|
|
2310
|
-
* Returns component that will replace javascript alert. The component will be used only if showDefaultConfirmations = false
|
|
2311
|
-
* @returns component that will replace javascript Alert
|
|
2312
|
-
*/
|
|
2313
|
-
getAlertComponent(): any;
|
|
2314
|
-
/**
|
|
2315
|
-
* Returns component that will replace javascript confirmation box. The component will be used only if showDefaultConfirmations = false
|
|
2316
|
-
* @returns component that will replace javascript confirmation box
|
|
2353
|
+
* Returns the component used to display the confirmation box, for all sets of buttons.
|
|
2354
|
+
* Override it to provide a custom component that extends BaseMagicConfirmComponent
|
|
2355
|
+
* @returns component used to display the confirmation box
|
|
2317
2356
|
*/
|
|
2318
2357
|
getConfirmtionComponent(): any;
|
|
2319
2358
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationComponentsMagicProvider, never>;
|
|
@@ -2551,6 +2590,11 @@ declare class OverlayWindowService {
|
|
|
2551
2590
|
* @param result
|
|
2552
2591
|
*/
|
|
2553
2592
|
finishConfirmation(style: Styles, result: boolean): void;
|
|
2593
|
+
/**
|
|
2594
|
+
* Sends the button pressed in the confirmation to the engine
|
|
2595
|
+
* @param result the button pressed
|
|
2596
|
+
*/
|
|
2597
|
+
private sendConfirmationResult;
|
|
2554
2598
|
/**
|
|
2555
2599
|
* creates a modal component. Can be used for overlay, message box or confirmation box
|
|
2556
2600
|
* @param parameters component's parameters
|
|
@@ -2707,5 +2751,5 @@ declare class MagicModalProperties implements MagicModalInterface {
|
|
|
2707
2751
|
IsMovable(): boolean;
|
|
2708
2752
|
}
|
|
2709
2753
|
|
|
2710
|
-
export { AccessorMagicService, BaseMagicAlertComponent, BaseMagicConfirmComponent, BaseMagicOverlayContainer, CHECKBOX_VALUE_ACCESSOR, COLOR_FILE_NAME, CheckboxMagicDirective, CheckboxNoFormControlMagicDirective, ComboboxMagicDirective, CommandsCollectorMagicService, ComponentListMagicService, ConfirmationComponentsMagicProvider, Constants, ControlMetadata, ControlsMetadata, DATE_VALUE_ACCESSOR, DateMagicPipe, DateValueAccessor, EngineMagicService, ErrorMagicComponent, ExitMagicService, GuiInteractiveExecutor, HtmlClasses, InputNoFormControlMagicDirective, MAGIC_BG_COLOR, MAGIC_DEFAULT_VALUE_ACCESSOR, MAGIC_FG_COLOR, MG_FORMATS, MagicAlertComponent, MagicChangeDetectionService, MagicCheckboxControlValueAccessor, MagicColorService, MagicConfirmationBoxComponent, MagicDefaultValueAccessor, MagicDirective, MagicFocusDirective, MagicLazyLoaderService, MagicModalProperties, MagicModule, MagicOverlayContainer, MagicOverlayContainerWrapper, MagicServices, MagicShellComponent, MagicViewContainerRef, MgDateAdapter, MgDateFormatter, MgformatMagicDirective, ModalFormDefinition, NoControlMagicDirective, NonMagicControlDirective, OverlayContainerMagicProvider, OverlayWindowService, RangeValidatorMagicDirective, Records, RouteCommand, RouterCommandsMagicService, RouterContainerMagicComponent, RowMagicDirective, StylesMapManager, SubformMagicComponent, SubformMagicService, SubscriberService, TableMagicService, TaskBaseMagicComponent, TaskMagicService, Time24MagicPipe, TimeMagicPipe, TitleMagicService, basicMagicProviders, confirmationBox, magicProviders, matDateProviders, utils };
|
|
2754
|
+
export { AccessorMagicService, BaseMagicAlertComponent, BaseMagicConfirmComponent, BaseMagicOverlayContainer, ButtonSets, ButtonTexts, CHECKBOX_VALUE_ACCESSOR, COLOR_FILE_NAME, CheckboxMagicDirective, CheckboxNoFormControlMagicDirective, ComboboxMagicDirective, CommandsCollectorMagicService, ComponentListMagicService, ConfirmationComponentsMagicProvider, Constants, ControlMetadata, ControlsMetadata, DATE_VALUE_ACCESSOR, DateMagicPipe, DateValueAccessor, EngineMagicService, ErrorMagicComponent, ExitMagicService, GuiInteractiveExecutor, HtmlClasses, InputNoFormControlMagicDirective, MAGIC_BG_COLOR, MAGIC_DEFAULT_VALUE_ACCESSOR, MAGIC_FG_COLOR, MG_FORMATS, MagicAlertComponent, MagicChangeDetectionService, MagicCheckboxControlValueAccessor, MagicColorService, MagicConfirmationBoxComponent, MagicConfirmationButtons, MagicConfirmationResult, MagicDefaultValueAccessor, MagicDirective, MagicFocusDirective, MagicLazyLoaderService, MagicModalProperties, MagicModule, MagicOverlayContainer, MagicOverlayContainerWrapper, MagicServices, MagicShellComponent, MagicViewContainerRef, MgDateAdapter, MgDateFormatter, MgformatMagicDirective, ModalFormDefinition, NoControlMagicDirective, NonMagicControlDirective, OverlayContainerMagicProvider, OverlayWindowService, RangeValidatorMagicDirective, Records, RouteCommand, RouterCommandsMagicService, RouterContainerMagicComponent, RowMagicDirective, StylesMapManager, SubformMagicComponent, SubformMagicService, SubscriberService, TableMagicService, TaskBaseMagicComponent, TaskMagicService, Time24MagicPipe, TimeMagicPipe, TitleMagicService, basicMagicProviders, confirmationBox, magicProviders, matDateProviders, utils };
|
|
2711
2755
|
export type { ComponentData, IMagicViewContainerRef, ISubformMagicService, MagicModalInterface, ModuleData, RouteDefinition, SubformDefinition };
|