@ng-nest/ui 20.2.9 → 20.3.1
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/attachments/index.d.ts +4 -5
- package/auto-complete/index.d.ts +11 -12
- package/base-form/index.d.ts +8 -9
- package/bubble/index.d.ts +12 -7
- package/cascade/index.d.ts +12 -13
- package/checkbox/index.d.ts +5 -6
- package/color-picker/index.d.ts +12 -13
- package/contextmenu/index.d.ts +176 -0
- package/core/index.d.ts +36 -1
- package/coversations/index.d.ts +4 -5
- package/date-picker/index.d.ts +23 -25
- package/dialog/index.d.ts +182 -102
- package/divider/index.d.ts +113 -0
- package/dropdown/index.d.ts +12 -2
- package/fesm2022/ng-nest-ui-auto-complete.mjs +11 -3
- package/fesm2022/ng-nest-ui-auto-complete.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-base-form.mjs +27 -46
- package/fesm2022/ng-nest-ui-base-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-bubble.mjs +141 -129
- package/fesm2022/ng-nest-ui-bubble.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-cascade.mjs +10 -2
- package/fesm2022/ng-nest-ui-cascade.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color-picker.mjs +10 -2
- package/fesm2022/ng-nest-ui-color-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-contextmenu.mjs +445 -0
- package/fesm2022/ng-nest-ui-contextmenu.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-core.mjs +2 -2
- package/fesm2022/ng-nest-ui-core.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-date-picker.mjs +20 -4
- package/fesm2022/ng-nest-ui-date-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dialog.mjs +51 -46
- package/fesm2022/ng-nest-ui-dialog.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-divider.mjs +124 -0
- package/fesm2022/ng-nest-ui-divider.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-dropdown.mjs +17 -5
- package/fesm2022/ng-nest-ui-dropdown.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-find.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-form.mjs +26 -20
- package/fesm2022/ng-nest-ui-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-i18n.mjs +19 -18
- package/fesm2022/ng-nest-ui-i18n.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-image.mjs +108 -69
- package/fesm2022/ng-nest-ui-image.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input-number.mjs +1 -1
- package/fesm2022/ng-nest-ui-input-number.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input.mjs +80 -12
- package/fesm2022/ng-nest-ui-input.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-list.mjs +3 -0
- package/fesm2022/ng-nest-ui-list.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-menu.mjs +16 -4
- package/fesm2022/ng-nest-ui-menu.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-message-box.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-message.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-notification.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-scrollable.mjs +81 -9
- package/fesm2022/ng-nest-ui-scrollable.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-select.mjs +67 -17
- package/fesm2022/ng-nest-ui-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-sender.mjs +1 -1
- package/fesm2022/ng-nest-ui-sender.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider-select.mjs +0 -1
- package/fesm2022/ng-nest-ui-slider-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-splitter.mjs +407 -0
- package/fesm2022/ng-nest-ui-splitter.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-table-view.mjs +277 -248
- package/fesm2022/ng-nest-ui-table-view.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table.mjs +18 -6
- package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-textarea.mjs +1 -1
- package/fesm2022/ng-nest-ui-textarea.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-picker.mjs +40 -21
- package/fesm2022/ng-nest-ui-time-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-select.mjs +12 -4
- package/fesm2022/ng-nest-ui-tree-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree.mjs +16 -4
- package/fesm2022/ng-nest-ui-tree.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-watermark.mjs +378 -0
- package/fesm2022/ng-nest-ui-watermark.mjs.map +1 -0
- package/fesm2022/ng-nest-ui.mjs +4 -0
- package/fesm2022/ng-nest-ui.mjs.map +1 -1
- package/find/index.d.ts +6 -7
- package/form/index.d.ts +24 -13
- package/i18n/index.d.ts +29 -28
- package/image/index.d.ts +30 -14
- package/index.d.ts +4 -0
- package/input/index.d.ts +37 -10
- package/input-number/index.d.ts +8 -9
- package/list/index.d.ts +35 -25
- package/menu/index.d.ts +15 -3
- package/message/index.d.ts +15 -3
- package/message-box/index.d.ts +18 -5
- package/notification/index.d.ts +15 -3
- package/package.json +65 -49
- package/radio/index.d.ts +5 -6
- package/rate/index.d.ts +4 -5
- package/scrollable/index.d.ts +14 -2
- package/select/index.d.ts +51 -12
- package/sender/index.d.ts +6 -7
- package/slider-select/index.d.ts +4 -6
- package/splitter/index.d.ts +163 -0
- package/switch/index.d.ts +4 -5
- package/table/index.d.ts +60 -5
- package/table-view/index.d.ts +99 -65
- package/textarea/index.d.ts +8 -9
- package/theme/index.d.ts +4 -5
- package/time-picker/index.d.ts +15 -14
- package/transfer/index.d.ts +4 -5
- package/tree/index.d.ts +29 -3
- package/tree-select/index.d.ts +12 -13
- package/upload/index.d.ts +4 -5
- package/watermark/index.d.ts +267 -0
package/core/index.d.ts
CHANGED
|
@@ -1150,6 +1150,7 @@ interface XComponentConfig {
|
|
|
1150
1150
|
colorPicker?: XColorPickerConfig;
|
|
1151
1151
|
comment?: XCommentConfig;
|
|
1152
1152
|
container?: XContainerConfig;
|
|
1153
|
+
contextmenu?: XContextmenuConfig;
|
|
1153
1154
|
coversations?: XCoversationsConfig;
|
|
1154
1155
|
header?: XHeaderConfig;
|
|
1155
1156
|
aside?: XAsideConfig;
|
|
@@ -1159,6 +1160,7 @@ interface XComponentConfig {
|
|
|
1159
1160
|
datePicker?: XDatePickerConfig;
|
|
1160
1161
|
dateRange?: XDateRangeConfig;
|
|
1161
1162
|
dialog?: XDialogConfig;
|
|
1163
|
+
divider?: XDividerConfig;
|
|
1162
1164
|
drawer?: XDrawerConfig;
|
|
1163
1165
|
dropdown?: XDropdownConfig;
|
|
1164
1166
|
description?: XDescriptionConfig;
|
|
@@ -1225,6 +1227,8 @@ interface XComponentConfig {
|
|
|
1225
1227
|
upload?: XUploadConfig;
|
|
1226
1228
|
keyword?: XKeywordConfig;
|
|
1227
1229
|
welcome?: XWelcomeConfig;
|
|
1230
|
+
watermark?: XWatermarkConfig;
|
|
1231
|
+
splitter?: XSplitterConfig;
|
|
1228
1232
|
}
|
|
1229
1233
|
interface XAffixConfig {
|
|
1230
1234
|
top?: string;
|
|
@@ -1423,6 +1427,12 @@ interface XDialogConfig {
|
|
|
1423
1427
|
className?: string;
|
|
1424
1428
|
buttonsCenter?: boolean;
|
|
1425
1429
|
}
|
|
1430
|
+
interface XDividerConfig {
|
|
1431
|
+
direction?: 'horizontal' | 'vertical';
|
|
1432
|
+
position?: 'left' | 'center' | 'right';
|
|
1433
|
+
variant?: 'solid' | 'dashed' | 'dotted';
|
|
1434
|
+
size?: XSize;
|
|
1435
|
+
}
|
|
1426
1436
|
interface XDrawerConfig {
|
|
1427
1437
|
placement?: XPosition;
|
|
1428
1438
|
size?: string;
|
|
@@ -1435,6 +1445,11 @@ interface XDropdownConfig {
|
|
|
1435
1445
|
placement?: XPlacement;
|
|
1436
1446
|
size?: XSize;
|
|
1437
1447
|
}
|
|
1448
|
+
interface XContextmenuConfig {
|
|
1449
|
+
placement?: XPlacement;
|
|
1450
|
+
size?: XSize;
|
|
1451
|
+
portalMaxHeight?: string;
|
|
1452
|
+
}
|
|
1438
1453
|
interface XDescriptionConfig {
|
|
1439
1454
|
bordered?: boolean;
|
|
1440
1455
|
size?: XSize;
|
|
@@ -1833,6 +1848,26 @@ interface XKeywordConfig {
|
|
|
1833
1848
|
interface XWelcomeConfig {
|
|
1834
1849
|
variant?: 'outlined' | 'filled' | 'borderless';
|
|
1835
1850
|
}
|
|
1851
|
+
interface XSplitterConfig {
|
|
1852
|
+
direction?: 'horizontal' | 'vertical';
|
|
1853
|
+
}
|
|
1854
|
+
interface XWatermarkConfig {
|
|
1855
|
+
content?: string;
|
|
1856
|
+
width?: number;
|
|
1857
|
+
height?: number;
|
|
1858
|
+
rotate?: number;
|
|
1859
|
+
fontSize?: number;
|
|
1860
|
+
fontFamily?: string;
|
|
1861
|
+
color?: string;
|
|
1862
|
+
zIndex?: number;
|
|
1863
|
+
alpha?: number;
|
|
1864
|
+
gapX?: number;
|
|
1865
|
+
gapY?: number;
|
|
1866
|
+
offsetLeft?: number;
|
|
1867
|
+
offsetTop?: number;
|
|
1868
|
+
striped?: boolean;
|
|
1869
|
+
disabled?: boolean;
|
|
1870
|
+
}
|
|
1836
1871
|
|
|
1837
1872
|
declare class XConfigService {
|
|
1838
1873
|
private componentConfigUpdated$;
|
|
@@ -1992,4 +2027,4 @@ declare class XInnerHTMLComponent {
|
|
|
1992
2027
|
}
|
|
1993
2028
|
|
|
1994
2029
|
export { XAddDays, XAddHours, XAddMilliseconds, XAddMinutes, XAddMonths, XAddSeconds, XAddYears, XCamelToKebab, XChunk, XClamp, XClearClass, XClearClassSignal, XCloneDeep, XComputed, XComputedStyle, XConfigService, XDataConvert, XDateQuarter, XDateWeek, XDateWeekYear, XDateYearQuarter, XDateYearWeek, XDrop, XFileSize, XFillDefault, XGetChildren, XGroupBy, XGuid, XHasChildren, XHasIn, XHttpService, XIdentity, XInnerHTMLComponent, XInputBoolean, XInputCssPixelValue, XInputNumber, XInvertKeyValues, XIsArray, XIsBoolean, XIsChange, XIsDate, XIsEmpty, XIsFunction, XIsInputSignal, XIsNil, XIsNotNil, XIsNull, XIsNumber, XIsObject, XIsObjectArray, XIsObservable, XIsRegExp, XIsString, XIsTemplateRef, XIsType, XIsUndefined, XIsValue, XIsValueArray, XIsXTemplate, XKebabToCamel, XMixColors, XOrderBy, XParentPath, XParents, XPreloadingStrategyService, XProperty, XPropertyFunction, XRemove, XRemoveNgTag, XRepositoryAbstract, XRepositoryService, XRequestAnimationFrame, XResize, XReuseStrategyService, XSetData, XSetFlex, XSleep, XStorageService, XStripTags, XThemeService, XToBoolean, XToCssPixelValue, XToCssPx, XToCssRem, XToDataArray, XToDataConvert, XToDate, XToHex, XToNumber, XToRgb, XToString, XWarnIconTypeNotFound, XWarnSVGTagNotFound, X_CONFIG, X_THEME, X_THEME_AMOUNTS, X_THEME_BACKGROUNDS, X_THEME_BLACK_MERGE, X_THEME_BORDERS, X_THEME_COLORS, X_THEME_COLOR_KEYS, X_THEME_DARK_COLORS, X_THEME_EXCHANGES, X_THEME_LIGHT_COLORS, X_THEME_MERGE, X_THEME_PREFIX, X_THEME_TEXTS, X_THEME_VARS, X_THEME_VARS_KEYS };
|
|
1995
|
-
export type { XAffixConfig, XAlertConfig, XAlign, XAnchorConfig, XAsideConfig, XAttachmentsConfig, XAutoCompleteConfig, XAvatarConfig, XBackTopConfig, XBadgeConfgig, XBoolean, XBubbleConfig, XBubblesConfig, XButtonConfig, XButtonsConfig, XCalendarConfig, XCardConfig, XCarouselConfig, XCascadeConfig, XCheckboxConfig, XClassMap, XColConfig, XCollapseConfig, XColorConfig, XColorPickerConfig, XColors, XColorsTheme, XCommentConfig, XComponentConfig, XComponentConfigKey, XConfig, XConfigKey, XContainerConfig, XController, XCorner, XCountdownConfig, XCoversationsConfig, XCrumbComfig, XData, XDataArray, XDate, XDatePickerConfig, XDateRangeConfig, XDescriptionConfig, XDialogConfig, XDirection, XDisplayDirection, XDrawerConfig, XDropdownConfig, XEffect, XEmptyConfig, XFileCardConfig, XFilter, XFindConfig, XFit, XFloatLabel, XFooterConfig, XFormConfig, XGroupItem, XHeaderConfig, XHighlightConfig, XIconConfig, XId, XIdentityProperty, XImageConfig, XInnerConfig, XInputConfig, XInputGroupConfig, XInputNumberConfig, XJustify, XKeywordConfig, XLinkConfig, XListConfig, XListOptionConfig, XLoadingConfig, XMenuConfig, XMessageBoxConfig, XMessageConfig, XNotificationConfig, XNumber, XOperation, XOutletConfig, XPageHeaderConfig, XPaginationConfig, XParentIdentityProperty, XPatternConfig, XPlace, XPlacement, XPopconfirmConfig, XPopoverConfig, XPortalConfig, XPosition, XPositionLeftRight, XPositionTopBottom, XProgressConfing, XPromptsConfig, XPropDecorator, XQuery, XRGBColor, XRadioConfig, XRateConfig, XRepositoryInput, XResizeObserver, XResizeObserverEntry, XResponseSize, XResultConfig, XResultList, XRippleConfig, XRouteReuseStorage, XRowConfig, XSelectConfig, XSenderConfig, XShadow, XShape, XSize, XSkeletonConfig, XSliderConfig, XSliderSelectConfig, XSort, XStatisticConfig, XStatus, XStepsConfig, XStyle, XStyleMap, XSuggestionConfig, XSwitchConfig, XTableConfig, XTableViewConfig, XTabsConfig, XTagConfig, XTemplate, XTextAlign, XTextRetractConfig, XTextareaConfig, XTheme, XThemeConfig, XThemeKey, XThoughtChainConfig, XTimeAgoConfig, XTimePickerConfig, XTimeRangeConfig, XTimelineConfig, XTooltipConfig, XTransferConfig, XTreeConfig, XTreeFileConfig, XTreeSelectConfig, XTrigger, XType, XTypeFunc, XUploadConfig, XVariant, XVarsTheme, XWelcomeConfig };
|
|
2030
|
+
export type { XAffixConfig, XAlertConfig, XAlign, XAnchorConfig, XAsideConfig, XAttachmentsConfig, XAutoCompleteConfig, XAvatarConfig, XBackTopConfig, XBadgeConfgig, XBoolean, XBubbleConfig, XBubblesConfig, XButtonConfig, XButtonsConfig, XCalendarConfig, XCardConfig, XCarouselConfig, XCascadeConfig, XCheckboxConfig, XClassMap, XColConfig, XCollapseConfig, XColorConfig, XColorPickerConfig, XColors, XColorsTheme, XCommentConfig, XComponentConfig, XComponentConfigKey, XConfig, XConfigKey, XContainerConfig, XContextmenuConfig, XController, XCorner, XCountdownConfig, XCoversationsConfig, XCrumbComfig, XData, XDataArray, XDate, XDatePickerConfig, XDateRangeConfig, XDescriptionConfig, XDialogConfig, XDirection, XDisplayDirection, XDividerConfig, XDrawerConfig, XDropdownConfig, XEffect, XEmptyConfig, XFileCardConfig, XFilter, XFindConfig, XFit, XFloatLabel, XFooterConfig, XFormConfig, XGroupItem, XHeaderConfig, XHighlightConfig, XIconConfig, XId, XIdentityProperty, XImageConfig, XInnerConfig, XInputConfig, XInputGroupConfig, XInputNumberConfig, XJustify, XKeywordConfig, XLinkConfig, XListConfig, XListOptionConfig, XLoadingConfig, XMenuConfig, XMessageBoxConfig, XMessageConfig, XNotificationConfig, XNumber, XOperation, XOutletConfig, XPageHeaderConfig, XPaginationConfig, XParentIdentityProperty, XPatternConfig, XPlace, XPlacement, XPopconfirmConfig, XPopoverConfig, XPortalConfig, XPosition, XPositionLeftRight, XPositionTopBottom, XProgressConfing, XPromptsConfig, XPropDecorator, XQuery, XRGBColor, XRadioConfig, XRateConfig, XRepositoryInput, XResizeObserver, XResizeObserverEntry, XResponseSize, XResultConfig, XResultList, XRippleConfig, XRouteReuseStorage, XRowConfig, XSelectConfig, XSenderConfig, XShadow, XShape, XSize, XSkeletonConfig, XSliderConfig, XSliderSelectConfig, XSort, XSplitterConfig, XStatisticConfig, XStatus, XStepsConfig, XStyle, XStyleMap, XSuggestionConfig, XSwitchConfig, XTableConfig, XTableViewConfig, XTabsConfig, XTagConfig, XTemplate, XTextAlign, XTextRetractConfig, XTextareaConfig, XTheme, XThemeConfig, XThemeKey, XThoughtChainConfig, XTimeAgoConfig, XTimePickerConfig, XTimeRangeConfig, XTimelineConfig, XTooltipConfig, XTransferConfig, XTreeConfig, XTreeFileConfig, XTreeSelectConfig, XTrigger, XType, XTypeFunc, XUploadConfig, XVariant, XVarsTheme, XWatermarkConfig, XWelcomeConfig };
|
package/coversations/index.d.ts
CHANGED
|
@@ -18,19 +18,18 @@ declare const XCoversationsProperty_base: new () => {
|
|
|
18
18
|
invalidPattern: _angular_core.Signal<boolean>;
|
|
19
19
|
requiredIsEmpty: _angular_core.Signal<boolean>;
|
|
20
20
|
invalidMessage: _angular_core.Signal<string>;
|
|
21
|
-
invalidIndex: _angular_core.Signal<number>;
|
|
22
21
|
value: _angular_core.WritableSignal<any>;
|
|
23
22
|
valueObservable: rxjs.Observable<any>;
|
|
24
23
|
validatorSignal: _angular_core.WritableSignal<boolean>;
|
|
25
24
|
disabledSignal: _angular_core.WritableSignal<boolean>;
|
|
26
25
|
requiredSignal: _angular_core.WritableSignal<boolean>;
|
|
27
26
|
patternSignal: _angular_core.WritableSignal<any>;
|
|
28
|
-
messageSignal: _angular_core.WritableSignal<string
|
|
27
|
+
messageSignal: _angular_core.WritableSignal<string>;
|
|
29
28
|
requiredComputed: _angular_core.Signal<boolean>;
|
|
30
29
|
disabledComputed: _angular_core.Signal<boolean>;
|
|
31
30
|
validatorComputed: _angular_core.Signal<boolean>;
|
|
32
31
|
patternComputed: _angular_core.Signal<any>;
|
|
33
|
-
messageComputed: _angular_core.Signal<string
|
|
32
|
+
messageComputed: _angular_core.Signal<string>;
|
|
34
33
|
invalidInputValidator: _angular_core.WritableSignal<boolean>;
|
|
35
34
|
onChange: (value: any) => void;
|
|
36
35
|
onTouched: () => void;
|
|
@@ -55,8 +54,8 @@ declare const XCoversationsProperty_base: new () => {
|
|
|
55
54
|
readonly valueTplContext: _angular_core.InputSignal<unknown>;
|
|
56
55
|
readonly before: _angular_core.InputSignal<_ng_nest_ui_core.XTemplate | undefined>;
|
|
57
56
|
readonly after: _angular_core.InputSignal<_ng_nest_ui_core.XTemplate | undefined>;
|
|
58
|
-
readonly pattern: _angular_core.InputSignal<RegExp |
|
|
59
|
-
readonly message: _angular_core.InputSignal<string
|
|
57
|
+
readonly pattern: _angular_core.InputSignal<RegExp | null>;
|
|
58
|
+
readonly message: _angular_core.InputSignal<string>;
|
|
60
59
|
readonly active: _angular_core.ModelSignal<boolean>;
|
|
61
60
|
readonly pointer: _angular_core.InputSignalWithTransform<boolean, XBoolean>;
|
|
62
61
|
readonly inputValidator: _angular_core.InputSignal<((value: any) => boolean) | undefined>;
|
package/date-picker/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { TemplateRef, AfterViewInit, OnInit, OnChanges, ComponentRef, SimpleChan
|
|
|
5
5
|
import * as rxjs from 'rxjs';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
7
7
|
import * as _ng_nest_ui_core from '@ng-nest/ui/core';
|
|
8
|
-
import { XBoolean, XTemplate, XNumber, XAlign, XJustify, XDirection, XSize, XVariant,
|
|
8
|
+
import { XBoolean, XTemplate, XNumber, XAlign, XJustify, XDirection, XSize, XVariant, XPlacement, XData, XIdentityProperty, XFloatLabel, XProperty, XDate } from '@ng-nest/ui/core';
|
|
9
9
|
import { XFormOption } from '@ng-nest/ui/base-form';
|
|
10
10
|
import { XI18nDatePicker, XI18nService } from '@ng-nest/ui/i18n';
|
|
11
11
|
import { XInputComponent, XInputGroupComponent } from '@ng-nest/ui/input';
|
|
@@ -26,19 +26,18 @@ declare const XDatePickerProperty_base: new () => {
|
|
|
26
26
|
invalidPattern: _angular_core.Signal<boolean>;
|
|
27
27
|
requiredIsEmpty: _angular_core.Signal<boolean>;
|
|
28
28
|
invalidMessage: _angular_core.Signal<string>;
|
|
29
|
-
invalidIndex: _angular_core.Signal<number>;
|
|
30
29
|
value: _angular_core.WritableSignal<any>;
|
|
31
30
|
valueObservable: rxjs.Observable<any>;
|
|
32
31
|
validatorSignal: _angular_core.WritableSignal<boolean>;
|
|
33
32
|
disabledSignal: _angular_core.WritableSignal<boolean>;
|
|
34
33
|
requiredSignal: _angular_core.WritableSignal<boolean>;
|
|
35
34
|
patternSignal: _angular_core.WritableSignal<any>;
|
|
36
|
-
messageSignal: _angular_core.WritableSignal<string
|
|
35
|
+
messageSignal: _angular_core.WritableSignal<string>;
|
|
37
36
|
requiredComputed: _angular_core.Signal<boolean>;
|
|
38
37
|
disabledComputed: _angular_core.Signal<boolean>;
|
|
39
38
|
validatorComputed: _angular_core.Signal<boolean>;
|
|
40
39
|
patternComputed: _angular_core.Signal<any>;
|
|
41
|
-
messageComputed: _angular_core.Signal<string
|
|
40
|
+
messageComputed: _angular_core.Signal<string>;
|
|
42
41
|
invalidInputValidator: _angular_core.WritableSignal<boolean>;
|
|
43
42
|
onChange: (value: any) => void;
|
|
44
43
|
onTouched: () => void;
|
|
@@ -63,8 +62,8 @@ declare const XDatePickerProperty_base: new () => {
|
|
|
63
62
|
readonly valueTplContext: _angular_core.InputSignal<unknown>;
|
|
64
63
|
readonly before: _angular_core.InputSignal<XTemplate | undefined>;
|
|
65
64
|
readonly after: _angular_core.InputSignal<XTemplate | undefined>;
|
|
66
|
-
readonly pattern: _angular_core.InputSignal<RegExp |
|
|
67
|
-
readonly message: _angular_core.InputSignal<string
|
|
65
|
+
readonly pattern: _angular_core.InputSignal<RegExp | null>;
|
|
66
|
+
readonly message: _angular_core.InputSignal<string>;
|
|
68
67
|
readonly active: _angular_core.ModelSignal<boolean>;
|
|
69
68
|
readonly pointer: _angular_core.InputSignalWithTransform<boolean, XBoolean>;
|
|
70
69
|
readonly inputValidator: _angular_core.InputSignal<((value: any) => boolean) | undefined>;
|
|
@@ -97,7 +96,7 @@ declare class XDatePickerProperty extends XDatePickerProperty_base {
|
|
|
97
96
|
* @zh_CN 展示方位
|
|
98
97
|
* @en_US Display position
|
|
99
98
|
*/
|
|
100
|
-
readonly placement: _angular_core.InputSignal<
|
|
99
|
+
readonly placement: _angular_core.InputSignal<XPlacement>;
|
|
101
100
|
/**
|
|
102
101
|
* @zh_CN 显示边框
|
|
103
102
|
* @en_US Display Border
|
|
@@ -224,12 +223,12 @@ declare class XDatePickerProperty extends XDatePickerProperty_base {
|
|
|
224
223
|
* @zh_CN 正则验证规则
|
|
225
224
|
* @en_US Regular verification rules
|
|
226
225
|
*/
|
|
227
|
-
readonly pattern: _angular_core.InputSignal<
|
|
226
|
+
readonly pattern: _angular_core.InputSignal<RegExp | null>;
|
|
228
227
|
/**
|
|
229
228
|
* @zh_CN 验证不通过提示文字
|
|
230
229
|
* @en_US Verify not pass the prompt text
|
|
231
230
|
*/
|
|
232
|
-
readonly message: _angular_core.InputSignal<string
|
|
231
|
+
readonly message: _angular_core.InputSignal<string>;
|
|
233
232
|
/**
|
|
234
233
|
* @zh_CN 激活状态
|
|
235
234
|
* @en_US Activation state
|
|
@@ -286,7 +285,7 @@ interface XDatePickerOption extends XFormOption {
|
|
|
286
285
|
* @zh_CN 展示方位
|
|
287
286
|
* @en_US Display position
|
|
288
287
|
*/
|
|
289
|
-
placement?:
|
|
288
|
+
placement?: XPlacement;
|
|
290
289
|
/**
|
|
291
290
|
* @zh_CN 显示边框
|
|
292
291
|
* @en_US Display Border
|
|
@@ -396,12 +395,12 @@ interface XDatePickerOption extends XFormOption {
|
|
|
396
395
|
* @zh_CN 正则验证规则
|
|
397
396
|
* @en_US Regular verification rules
|
|
398
397
|
*/
|
|
399
|
-
pattern?: RegExp
|
|
398
|
+
pattern?: RegExp;
|
|
400
399
|
/**
|
|
401
400
|
* @zh_CN 验证不通过提示文字
|
|
402
401
|
* @en_US Verify not pass the prompt text
|
|
403
402
|
*/
|
|
404
|
-
message?: string
|
|
403
|
+
message?: string;
|
|
405
404
|
/**
|
|
406
405
|
* @zh_CN 激活状态
|
|
407
406
|
* @en_US Activation state
|
|
@@ -431,19 +430,18 @@ declare const XDateRangeProperty_base: new () => {
|
|
|
431
430
|
invalidPattern: _angular_core.Signal<boolean>;
|
|
432
431
|
requiredIsEmpty: _angular_core.Signal<boolean>;
|
|
433
432
|
invalidMessage: _angular_core.Signal<string>;
|
|
434
|
-
invalidIndex: _angular_core.Signal<number>;
|
|
435
433
|
value: _angular_core.WritableSignal<any>;
|
|
436
434
|
valueObservable: rxjs.Observable<any>;
|
|
437
435
|
validatorSignal: _angular_core.WritableSignal<boolean>;
|
|
438
436
|
disabledSignal: _angular_core.WritableSignal<boolean>;
|
|
439
437
|
requiredSignal: _angular_core.WritableSignal<boolean>;
|
|
440
438
|
patternSignal: _angular_core.WritableSignal<any>;
|
|
441
|
-
messageSignal: _angular_core.WritableSignal<string
|
|
439
|
+
messageSignal: _angular_core.WritableSignal<string>;
|
|
442
440
|
requiredComputed: _angular_core.Signal<boolean>;
|
|
443
441
|
disabledComputed: _angular_core.Signal<boolean>;
|
|
444
442
|
validatorComputed: _angular_core.Signal<boolean>;
|
|
445
443
|
patternComputed: _angular_core.Signal<any>;
|
|
446
|
-
messageComputed: _angular_core.Signal<string
|
|
444
|
+
messageComputed: _angular_core.Signal<string>;
|
|
447
445
|
invalidInputValidator: _angular_core.WritableSignal<boolean>;
|
|
448
446
|
onChange: (value: any) => void;
|
|
449
447
|
onTouched: () => void;
|
|
@@ -468,8 +466,8 @@ declare const XDateRangeProperty_base: new () => {
|
|
|
468
466
|
readonly valueTplContext: _angular_core.InputSignal<unknown>;
|
|
469
467
|
readonly before: _angular_core.InputSignal<XTemplate | undefined>;
|
|
470
468
|
readonly after: _angular_core.InputSignal<XTemplate | undefined>;
|
|
471
|
-
readonly pattern: _angular_core.InputSignal<RegExp |
|
|
472
|
-
readonly message: _angular_core.InputSignal<string
|
|
469
|
+
readonly pattern: _angular_core.InputSignal<RegExp | null>;
|
|
470
|
+
readonly message: _angular_core.InputSignal<string>;
|
|
473
471
|
readonly active: _angular_core.ModelSignal<boolean>;
|
|
474
472
|
readonly pointer: _angular_core.InputSignalWithTransform<boolean, XBoolean>;
|
|
475
473
|
readonly inputValidator: _angular_core.InputSignal<((value: any) => boolean) | undefined>;
|
|
@@ -502,7 +500,7 @@ declare class XDateRangeProperty extends XDateRangeProperty_base {
|
|
|
502
500
|
* @zh_CN 展示方位
|
|
503
501
|
* @en_US Display position
|
|
504
502
|
*/
|
|
505
|
-
readonly placement: _angular_core.InputSignal<
|
|
503
|
+
readonly placement: _angular_core.InputSignal<XPlacement>;
|
|
506
504
|
/**
|
|
507
505
|
* @zh_CN 显示边框
|
|
508
506
|
* @en_US Display Border
|
|
@@ -619,12 +617,12 @@ declare class XDateRangeProperty extends XDateRangeProperty_base {
|
|
|
619
617
|
* @zh_CN 正则验证规则
|
|
620
618
|
* @en_US Regular verification rules
|
|
621
619
|
*/
|
|
622
|
-
readonly pattern: _angular_core.InputSignal<
|
|
620
|
+
readonly pattern: _angular_core.InputSignal<RegExp | null>;
|
|
623
621
|
/**
|
|
624
622
|
* @zh_CN 验证不通过提示文字
|
|
625
623
|
* @en_US Verify not pass the prompt text
|
|
626
624
|
*/
|
|
627
|
-
readonly message: _angular_core.InputSignal<string
|
|
625
|
+
readonly message: _angular_core.InputSignal<string>;
|
|
628
626
|
/**
|
|
629
627
|
* @zh_CN 输入验证函数
|
|
630
628
|
* @en_US Enter the verification function
|
|
@@ -676,7 +674,7 @@ interface XDateRangeOption extends XFormOption {
|
|
|
676
674
|
* @zh_CN 展示方位
|
|
677
675
|
* @en_US Display position
|
|
678
676
|
*/
|
|
679
|
-
placement?:
|
|
677
|
+
placement?: XPlacement;
|
|
680
678
|
/**
|
|
681
679
|
* @zh_CN 显示边框
|
|
682
680
|
* @en_US Display Border
|
|
@@ -776,12 +774,12 @@ interface XDateRangeOption extends XFormOption {
|
|
|
776
774
|
* @zh_CN 正则验证规则
|
|
777
775
|
* @en_US Regular verification rules
|
|
778
776
|
*/
|
|
779
|
-
pattern?: RegExp
|
|
777
|
+
pattern?: RegExp;
|
|
780
778
|
/**
|
|
781
779
|
* @zh_CN 验证不通过提示文字
|
|
782
780
|
* @en_US Verify not pass the prompt text
|
|
783
781
|
*/
|
|
784
|
-
message?: string
|
|
782
|
+
message?: string;
|
|
785
783
|
/**
|
|
786
784
|
* @zh_CN 输入验证函数
|
|
787
785
|
* @en_US Enter the verification function
|
|
@@ -1422,7 +1420,7 @@ declare class XDatePickerPortalComponent implements AfterViewInit {
|
|
|
1422
1420
|
type: _angular_core.ModelSignal<XDatePickerType>;
|
|
1423
1421
|
preset: _angular_core.InputSignal<XDatePickerPreset[]>;
|
|
1424
1422
|
extraFooter: _angular_core.InputSignal<XTemplate | undefined>;
|
|
1425
|
-
placement: _angular_core.InputSignal<
|
|
1423
|
+
placement: _angular_core.InputSignal<XPlacement | undefined>;
|
|
1426
1424
|
inputCom: _angular_core.InputSignal<XInputComponent | undefined>;
|
|
1427
1425
|
disabledDate: _angular_core.InputSignal<XDatePickerDisabledDate | undefined>;
|
|
1428
1426
|
disabledTime: _angular_core.InputSignal<XDatePickerDisabledTime | undefined>;
|
|
@@ -1831,7 +1829,7 @@ declare class XDateRangePortalComponent implements AfterViewInit {
|
|
|
1831
1829
|
endPicker: _angular_core.Signal<XPickerDateComponent | XPickerMonthComponent | XPickerYearComponent | undefined>;
|
|
1832
1830
|
timePickerFrame: _angular_core.Signal<XTimePickerFrameComponent | undefined>;
|
|
1833
1831
|
value: _angular_core.ModelSignal<(number | null)[]>;
|
|
1834
|
-
placement: _angular_core.InputSignal<
|
|
1832
|
+
placement: _angular_core.InputSignal<XPlacement | undefined>;
|
|
1835
1833
|
type: _angular_core.ModelSignal<XDatePickerType>;
|
|
1836
1834
|
preset: _angular_core.InputSignal<XDateRangePreset[]>;
|
|
1837
1835
|
extraFooter: _angular_core.InputSignal<XTemplate | undefined>;
|
package/dialog/index.d.ts
CHANGED
|
@@ -1,107 +1,16 @@
|
|
|
1
1
|
import * as rxjs from 'rxjs';
|
|
2
|
-
import {
|
|
2
|
+
import { Subscription, Subject } from 'rxjs';
|
|
3
3
|
import * as _angular_core from '@angular/core';
|
|
4
|
-
import {
|
|
4
|
+
import { ViewContainerRef, ComponentRef, EmbeddedViewRef, EventEmitter, InjectionToken, OnInit, AfterViewInit, TemplateRef, Renderer2, ChangeDetectorRef } from '@angular/core';
|
|
5
5
|
import * as _ng_nest_ui_core from '@ng-nest/ui/core';
|
|
6
6
|
import { XTemplate, XPlace, XNumber, XStatus, XBoolean, XEffect, XProperty, XConfigService, XDialogConfig } from '@ng-nest/ui/core';
|
|
7
|
-
import {
|
|
8
|
-
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, ComponentType } from '@angular/cdk/portal';
|
|
7
|
+
import { XPortalOverlayRef, XPortalService } from '@ng-nest/ui/portal';
|
|
9
8
|
import * as i1 from '@angular/cdk/drag-drop';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import { CdkDragEnd, CdkDrag } from '@angular/cdk/drag-drop';
|
|
10
|
+
import { ComponentPortal, TemplatePortal, BasePortalOutlet, CdkPortalOutlet, ComponentType } from '@angular/cdk/portal';
|
|
11
|
+
import { BlockScrollStrategy, OverlayRef } from '@angular/cdk/overlay';
|
|
12
12
|
import { XI18nDialog } from '@ng-nest/ui/i18n';
|
|
13
13
|
|
|
14
|
-
declare class XDialogCloseDirective {
|
|
15
|
-
onCloseClick(): void;
|
|
16
|
-
dialogRef: XDialogRef<any> | null;
|
|
17
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogCloseDirective, never>;
|
|
18
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogCloseDirective, "[x-dialog-close]", never, {}, {}, never, never, true, never>;
|
|
19
|
-
}
|
|
20
|
-
declare class XDialogTitleDirective {
|
|
21
|
-
_has: boolean;
|
|
22
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogTitleDirective, never>;
|
|
23
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogTitleDirective, "[x-dialog-title], x-dialog-title", never, {}, {}, never, never, true, never>;
|
|
24
|
-
}
|
|
25
|
-
declare class XDialogContentDirective {
|
|
26
|
-
_has: boolean;
|
|
27
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogContentDirective, never>;
|
|
28
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogContentDirective, "[x-dialog-content], x-dialog-content", never, {}, {}, never, never, true, never>;
|
|
29
|
-
}
|
|
30
|
-
declare class XDialogActionsDirective {
|
|
31
|
-
_has: boolean;
|
|
32
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogActionsDirective, never>;
|
|
33
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogActionsDirective, "[x-dialog-actions], x-dialog-actions", never, {}, {}, never, never, true, never>;
|
|
34
|
-
}
|
|
35
|
-
declare class XDialogDragHandleDirective {
|
|
36
|
-
get getDraggable(): boolean | undefined;
|
|
37
|
-
dialogRef: XDialogRef<any> | null;
|
|
38
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogDragHandleDirective, never>;
|
|
39
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogDragHandleDirective, "[x-dialog-drag-handle], x-dialog-drag-handle", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkDragHandle; inputs: { "cdkDragHandleDisabled": "xDialogDragHandleDisabled"; }; outputs: {}; }]>;
|
|
40
|
-
}
|
|
41
|
-
declare class XDialogFullscreenDirective {
|
|
42
|
-
onFullscreenClick(): void;
|
|
43
|
-
dialogRef: XDialogRef<any> | null;
|
|
44
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogFullscreenDirective, never>;
|
|
45
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogFullscreenDirective, "[x-dialog-fullscreen], x-dialog-fullscreen", never, {}, {}, never, never, true, never>;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
declare class XDialogRef<C> {
|
|
49
|
-
overlayRef: OverlayRef;
|
|
50
|
-
containerInstance: XDialogPortalComponent;
|
|
51
|
-
renderer: Renderer2;
|
|
52
|
-
portalService: XPortalService;
|
|
53
|
-
componentInstance: C;
|
|
54
|
-
option: XDialogRefOption;
|
|
55
|
-
fullscreen: boolean;
|
|
56
|
-
dragHandleRefs: (XDialogDragHandleDirective | CdkDragHandle)[];
|
|
57
|
-
afterClose: Subject<any>;
|
|
58
|
-
unsubject: Subject<void>;
|
|
59
|
-
private _isFristFullscreen;
|
|
60
|
-
constructor(overlayRef: OverlayRef, containerInstance: XDialogPortalComponent, renderer: Renderer2, portalService: XPortalService);
|
|
61
|
-
close(result?: any): void;
|
|
62
|
-
onFullscreen(): void;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
declare class XDialogPortalComponent extends BasePortalOutlet {
|
|
66
|
-
placement: _angular_core.ModelSignal<XDialogAnimationState>;
|
|
67
|
-
get enimateEnter(): string;
|
|
68
|
-
get enimateLeave(): string;
|
|
69
|
-
done(event: AnimationEvent): void;
|
|
70
|
-
start(event: AnimationEvent): void;
|
|
71
|
-
renderer: Renderer2;
|
|
72
|
-
changeDetectorRef: ChangeDetectorRef;
|
|
73
|
-
portalOutlet: _angular_core.Signal<CdkPortalOutlet>;
|
|
74
|
-
dragRef: _angular_core.Signal<CdkDrag<any>>;
|
|
75
|
-
handles: _angular_core.Signal<readonly XDialogDragHandleDirective[]>;
|
|
76
|
-
animationChanged: EventEmitter<XDialogAnimationEvent>;
|
|
77
|
-
option: XDialogRefOption;
|
|
78
|
-
dialogRef: XDialogRef<any>;
|
|
79
|
-
offsetLeft: number;
|
|
80
|
-
offsetTop: number;
|
|
81
|
-
minWidth: string;
|
|
82
|
-
minHeight: string;
|
|
83
|
-
initHeight: number;
|
|
84
|
-
initContentHeight: number;
|
|
85
|
-
dialogContent?: HTMLElement;
|
|
86
|
-
defaultMaximize: boolean;
|
|
87
|
-
overlayElement?: HTMLElement;
|
|
88
|
-
hostElement?: HTMLElement;
|
|
89
|
-
distance: {
|
|
90
|
-
x: number;
|
|
91
|
-
y: number;
|
|
92
|
-
};
|
|
93
|
-
dialogBox: {
|
|
94
|
-
[key: string]: any;
|
|
95
|
-
};
|
|
96
|
-
ngOnInit(): void;
|
|
97
|
-
ngAfterViewInit(): void;
|
|
98
|
-
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
99
|
-
attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
100
|
-
onDragEnded(event: CdkDragEnd): void;
|
|
101
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogPortalComponent, never>;
|
|
102
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XDialogPortalComponent, "x-dialog-portal", never, { "placement": { "alias": "placement"; "required": true; "isSignal": true; }; }, { "placement": "placementChange"; }, ["handles"], never, true, never>;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
14
|
/**
|
|
106
15
|
* Dialog
|
|
107
16
|
* @selector x-dialog
|
|
@@ -383,6 +292,18 @@ interface XDialogRefOption {
|
|
|
383
292
|
* @withConfig true
|
|
384
293
|
*/
|
|
385
294
|
minHeight?: string;
|
|
295
|
+
/**
|
|
296
|
+
* @zh_CN 最大宽度
|
|
297
|
+
* @en_US max width
|
|
298
|
+
* @withConfig true
|
|
299
|
+
*/
|
|
300
|
+
maxWidth?: string;
|
|
301
|
+
/**
|
|
302
|
+
* @zh_CN 最大高度
|
|
303
|
+
* @en_US Max height
|
|
304
|
+
* @withConfig true
|
|
305
|
+
*/
|
|
306
|
+
maxHeight?: string;
|
|
386
307
|
/**
|
|
387
308
|
* @zh_CN 是否支持键盘 esc 关闭
|
|
388
309
|
* @en_US Whether to support keyboard esc to close
|
|
@@ -430,13 +351,67 @@ type XDialogAction = 'confirm' | 'cancel' | 'close';
|
|
|
430
351
|
* @zh_CN 创建的弹框对象
|
|
431
352
|
* @en_US Dialog object created
|
|
432
353
|
*/
|
|
433
|
-
interface XDialogOverlayRef extends XPortalOverlayRef<
|
|
354
|
+
interface XDialogOverlayRef extends XPortalOverlayRef<XDialogHandle> {
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* @zh_CN 创建的弹框组件定义
|
|
358
|
+
* @en_US Dialog object created
|
|
359
|
+
*/
|
|
360
|
+
interface XDialogHandle {
|
|
361
|
+
create(): void;
|
|
362
|
+
onClose(action: XDialogAction, execFunction?: boolean): void;
|
|
363
|
+
onDragEnded(event: CdkDragEnd): void;
|
|
364
|
+
onSize(): void;
|
|
365
|
+
onMaximize(): void;
|
|
366
|
+
onMinimize(): void;
|
|
367
|
+
moveDone(event: AnimationEvent): void;
|
|
368
|
+
portalAttached(): boolean;
|
|
369
|
+
setVisible(): void;
|
|
370
|
+
setWidthHeight(): void;
|
|
434
371
|
}
|
|
435
372
|
/**
|
|
436
373
|
* @zh_CN 创建的弹框对象,通过服务
|
|
437
374
|
* @en_US Dialog object created by service
|
|
438
375
|
*/
|
|
439
|
-
interface XDialogPortalOverlayRef extends XPortalOverlayRef<
|
|
376
|
+
interface XDialogPortalOverlayRef extends XPortalOverlayRef<XDialogPortalHandle> {
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* @zh_CN 创建的弹框对象定义
|
|
380
|
+
* @en_US Dialog object created definition
|
|
381
|
+
*/
|
|
382
|
+
interface XDialogPortalHandle {
|
|
383
|
+
option: XDialogRefOption;
|
|
384
|
+
defaultMaximize: boolean;
|
|
385
|
+
dialogBox: {
|
|
386
|
+
draggable?: boolean;
|
|
387
|
+
resizable?: boolean;
|
|
388
|
+
width?: string;
|
|
389
|
+
height?: string;
|
|
390
|
+
minWidth?: string;
|
|
391
|
+
minHeight?: string;
|
|
392
|
+
distance?: {
|
|
393
|
+
x: number;
|
|
394
|
+
y: number;
|
|
395
|
+
};
|
|
396
|
+
marginTop?: string;
|
|
397
|
+
marginLeft?: string;
|
|
398
|
+
marginRight?: string;
|
|
399
|
+
marginBottom?: string;
|
|
400
|
+
};
|
|
401
|
+
hostElement?: HTMLElement;
|
|
402
|
+
overlayElement?: HTMLElement;
|
|
403
|
+
distance: {
|
|
404
|
+
x: number;
|
|
405
|
+
y: number;
|
|
406
|
+
};
|
|
407
|
+
offsetLeft: number;
|
|
408
|
+
offsetTop: number;
|
|
409
|
+
initHeight: number;
|
|
410
|
+
dialogContent?: HTMLElement;
|
|
411
|
+
initContentHeight: number;
|
|
412
|
+
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
413
|
+
attachTemplatePortal<T>(portal: TemplatePortal<T>): EmbeddedViewRef<T>;
|
|
414
|
+
animationChanged: EventEmitter<XDialogAnimationEvent>;
|
|
440
415
|
}
|
|
441
416
|
/**
|
|
442
417
|
* @zh_CN 类型
|
|
@@ -450,7 +425,7 @@ declare class XDialogContainerComponent extends XDialogContainerProperty {
|
|
|
450
425
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XDialogContainerComponent, "x-dialog-container", never, {}, {}, never, ["*"], true, never>;
|
|
451
426
|
}
|
|
452
427
|
|
|
453
|
-
declare class XDialogComponent extends XDialogProperty implements OnInit, AfterViewInit {
|
|
428
|
+
declare class XDialogComponent extends XDialogProperty implements OnInit, AfterViewInit, XDialogHandle {
|
|
454
429
|
private static dialogOverlayRefs;
|
|
455
430
|
private viewContainerRef;
|
|
456
431
|
private protalService;
|
|
@@ -504,7 +479,7 @@ declare class XDialogComponent extends XDialogProperty implements OnInit, AfterV
|
|
|
504
479
|
setVisible(): void;
|
|
505
480
|
create(): void;
|
|
506
481
|
setWidthHeight(): void;
|
|
507
|
-
portalAttached(): boolean
|
|
482
|
+
portalAttached(): boolean;
|
|
508
483
|
onClose(action: XDialogAction, execFunction?: boolean): void;
|
|
509
484
|
onDragEnded($event: CdkDragEnd): void;
|
|
510
485
|
onSize(): void;
|
|
@@ -515,6 +490,111 @@ declare class XDialogComponent extends XDialogProperty implements OnInit, AfterV
|
|
|
515
490
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XDialogComponent, "x-dialog", never, {}, {}, never, ["*"], true, never>;
|
|
516
491
|
}
|
|
517
492
|
|
|
493
|
+
interface XDialogRefHandle {
|
|
494
|
+
fullscreen: boolean;
|
|
495
|
+
option: {
|
|
496
|
+
draggable?: boolean;
|
|
497
|
+
};
|
|
498
|
+
close(result?: any): void;
|
|
499
|
+
onFullscreen(): void;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
declare class XDialogRef<C> implements XDialogRefHandle {
|
|
503
|
+
componentInstance: C;
|
|
504
|
+
option: XDialogRefOption;
|
|
505
|
+
fullscreen: boolean;
|
|
506
|
+
afterClose: Subject<any>;
|
|
507
|
+
unsubject: Subject<void>;
|
|
508
|
+
private _isFristFullscreen;
|
|
509
|
+
overlayRef: OverlayRef;
|
|
510
|
+
containerInstance: XDialogPortalHandle;
|
|
511
|
+
renderer: Renderer2;
|
|
512
|
+
portalService: XPortalService;
|
|
513
|
+
constructor(params: {
|
|
514
|
+
overlayRef: OverlayRef;
|
|
515
|
+
containerInstance: XDialogPortalHandle;
|
|
516
|
+
renderer: Renderer2;
|
|
517
|
+
option: XDialogRefOption;
|
|
518
|
+
fullscreen: boolean;
|
|
519
|
+
portalService: XPortalService;
|
|
520
|
+
});
|
|
521
|
+
close(result?: any): void;
|
|
522
|
+
onFullscreen(): void;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
declare class XDialogCloseDirective {
|
|
526
|
+
onCloseClick(): void;
|
|
527
|
+
dialogRef: XDialogRef<any> | null;
|
|
528
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogCloseDirective, never>;
|
|
529
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogCloseDirective, "[x-dialog-close]", never, {}, {}, never, never, true, never>;
|
|
530
|
+
}
|
|
531
|
+
declare class XDialogTitleDirective {
|
|
532
|
+
_has: boolean;
|
|
533
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogTitleDirective, never>;
|
|
534
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogTitleDirective, "[x-dialog-title], x-dialog-title", never, {}, {}, never, never, true, never>;
|
|
535
|
+
}
|
|
536
|
+
declare class XDialogContentDirective {
|
|
537
|
+
_has: boolean;
|
|
538
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogContentDirective, never>;
|
|
539
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogContentDirective, "[x-dialog-content], x-dialog-content", never, {}, {}, never, never, true, never>;
|
|
540
|
+
}
|
|
541
|
+
declare class XDialogActionsDirective {
|
|
542
|
+
_has: boolean;
|
|
543
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogActionsDirective, never>;
|
|
544
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogActionsDirective, "[x-dialog-actions], x-dialog-actions", never, {}, {}, never, never, true, never>;
|
|
545
|
+
}
|
|
546
|
+
declare class XDialogDragHandleDirective {
|
|
547
|
+
get getDraggable(): boolean | undefined;
|
|
548
|
+
dialogRef: XDialogRef<any> | null;
|
|
549
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogDragHandleDirective, never>;
|
|
550
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogDragHandleDirective, "[x-dialog-drag-handle], x-dialog-drag-handle", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkDragHandle; inputs: { "cdkDragHandleDisabled": "xDialogDragHandleDisabled"; }; outputs: {}; }]>;
|
|
551
|
+
}
|
|
552
|
+
declare class XDialogFullscreenDirective {
|
|
553
|
+
onFullscreenClick(): void;
|
|
554
|
+
dialogRef: XDialogRef<any> | null;
|
|
555
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogFullscreenDirective, never>;
|
|
556
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogFullscreenDirective, "[x-dialog-fullscreen], x-dialog-fullscreen", never, {}, {}, never, never, true, never>;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
declare class XDialogPortalComponent extends BasePortalOutlet implements XDialogPortalHandle {
|
|
560
|
+
placement: _angular_core.ModelSignal<XDialogAnimationState>;
|
|
561
|
+
get enimateEnter(): string;
|
|
562
|
+
get enimateLeave(): string;
|
|
563
|
+
done(event: AnimationEvent): void;
|
|
564
|
+
start(event: AnimationEvent): void;
|
|
565
|
+
renderer: Renderer2;
|
|
566
|
+
changeDetectorRef: ChangeDetectorRef;
|
|
567
|
+
portalOutlet: _angular_core.Signal<CdkPortalOutlet>;
|
|
568
|
+
dragRef: _angular_core.Signal<CdkDrag<any>>;
|
|
569
|
+
handles: _angular_core.Signal<readonly XDialogDragHandleDirective[]>;
|
|
570
|
+
animationChanged: EventEmitter<XDialogAnimationEvent>;
|
|
571
|
+
option: XDialogRefOption;
|
|
572
|
+
offsetLeft: number;
|
|
573
|
+
offsetTop: number;
|
|
574
|
+
minWidth: string;
|
|
575
|
+
minHeight: string;
|
|
576
|
+
initHeight: number;
|
|
577
|
+
initContentHeight: number;
|
|
578
|
+
dialogContent?: HTMLElement;
|
|
579
|
+
defaultMaximize: boolean;
|
|
580
|
+
overlayElement?: HTMLElement;
|
|
581
|
+
hostElement?: HTMLElement;
|
|
582
|
+
distance: {
|
|
583
|
+
x: number;
|
|
584
|
+
y: number;
|
|
585
|
+
};
|
|
586
|
+
dialogBox: {
|
|
587
|
+
[key: string]: any;
|
|
588
|
+
};
|
|
589
|
+
ngOnInit(): void;
|
|
590
|
+
ngAfterViewInit(): void;
|
|
591
|
+
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
592
|
+
attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
593
|
+
onDragEnded(event: CdkDragEnd): void;
|
|
594
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogPortalComponent, never>;
|
|
595
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XDialogPortalComponent, "x-dialog-portal", never, { "placement": { "alias": "placement"; "required": true; "isSignal": true; }; }, { "placement": "placementChange"; }, ["handles"], never, true, never>;
|
|
596
|
+
}
|
|
597
|
+
|
|
518
598
|
declare class XDialogModule {
|
|
519
599
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogModule, never>;
|
|
520
600
|
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<XDialogModule, never, [typeof XDialogComponent, typeof XDialogContainerComponent, typeof XDialogCloseDirective, typeof XDialogTitleDirective, typeof XDialogContentDirective, typeof XDialogActionsDirective, typeof XDialogDragHandleDirective, typeof XDialogFullscreenDirective], [typeof XDialogComponent, typeof XDialogContainerComponent, typeof XDialogCloseDirective, typeof XDialogTitleDirective, typeof XDialogContentDirective, typeof XDialogActionsDirective, typeof XDialogDragHandleDirective, typeof XDialogFullscreenDirective]>;
|
|
@@ -539,4 +619,4 @@ declare class XDialogService {
|
|
|
539
619
|
}
|
|
540
620
|
|
|
541
621
|
export { XDialogActionsDirective, XDialogCloseDirective, XDialogComponent, XDialogContainer, XDialogContainerComponent, XDialogContainerPrefix, XDialogContainerProperty, XDialogContentDirective, XDialogDragHandleDirective, XDialogFullscreenDirective, XDialogModule, XDialogPortalComponent, XDialogPrefix, XDialogProperty, XDialogRef, XDialogService, XDialogTitleDirective, X_DIALOG_CONFIG_NAME, X_DIALOG_CONTAINER, X_DIALOG_DATA };
|
|
542
|
-
export type { XDialogAction, XDialogAnimationEvent, XDialogAnimationState, XDialogCallback, XDialogOverlayRef, XDialogPortalOverlayRef, XDialogRefOption, XDialogType };
|
|
622
|
+
export type { XDialogAction, XDialogAnimationEvent, XDialogAnimationState, XDialogCallback, XDialogHandle, XDialogOverlayRef, XDialogPortalHandle, XDialogPortalOverlayRef, XDialogRefOption, XDialogType };
|