@ng-nest/ui 21.0.3 → 21.0.5
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/fesm2022/ng-nest-ui-affix.mjs +12 -12
- package/fesm2022/ng-nest-ui-affix.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-alert.mjs +22 -24
- package/fesm2022/ng-nest-ui-alert.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-anchor.mjs +19 -19
- package/fesm2022/ng-nest-ui-anchor.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-api.mjs +7 -7
- package/fesm2022/ng-nest-ui-attachments.mjs +22 -22
- package/fesm2022/ng-nest-ui-attachments.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-auto-complete.mjs +26 -30
- package/fesm2022/ng-nest-ui-auto-complete.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-avatar.mjs +17 -17
- package/fesm2022/ng-nest-ui-avatar.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-back-top.mjs +13 -13
- package/fesm2022/ng-nest-ui-back-top.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-badge.mjs +16 -16
- package/fesm2022/ng-nest-ui-badge.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-base-form.mjs +15 -14
- package/fesm2022/ng-nest-ui-base-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-bubble.mjs +157 -145
- package/fesm2022/ng-nest-ui-bubble.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-button.mjs +31 -31
- package/fesm2022/ng-nest-ui-button.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-calendar.mjs +10 -10
- package/fesm2022/ng-nest-ui-card.mjs +11 -11
- package/fesm2022/ng-nest-ui-card.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-carousel.mjs +24 -24
- package/fesm2022/ng-nest-ui-carousel.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-cascade.mjs +25 -29
- package/fesm2022/ng-nest-ui-cascade.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-checkbox.mjs +22 -22
- package/fesm2022/ng-nest-ui-checkbox.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-collapse.mjs +22 -22
- package/fesm2022/ng-nest-ui-collapse.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color-picker.mjs +25 -25
- package/fesm2022/ng-nest-ui-color-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color.mjs +10 -10
- package/fesm2022/ng-nest-ui-comment.mjs +19 -19
- package/fesm2022/ng-nest-ui-comment.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-container.mjs +34 -34
- package/fesm2022/ng-nest-ui-container.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-core.mjs +18 -18
- package/fesm2022/ng-nest-ui-coversations.mjs +11 -11
- package/fesm2022/ng-nest-ui-coversations.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-crumb.mjs +11 -11
- package/fesm2022/ng-nest-ui-crumb.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-date-picker.mjs +87 -87
- package/fesm2022/ng-nest-ui-date-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-description.mjs +20 -20
- package/fesm2022/ng-nest-ui-description.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dialog.mjs +107 -103
- package/fesm2022/ng-nest-ui-dialog.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-doc.mjs +7 -7
- package/fesm2022/ng-nest-ui-drag.mjs +10 -10
- package/fesm2022/ng-nest-ui-drawer.mjs +34 -34
- package/fesm2022/ng-nest-ui-drawer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dropdown.mjs +23 -23
- package/fesm2022/ng-nest-ui-dropdown.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-empty.mjs +10 -10
- package/fesm2022/ng-nest-ui-examples.mjs +7 -7
- package/fesm2022/ng-nest-ui-find.mjs +31 -35
- package/fesm2022/ng-nest-ui-find.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-form.mjs +36 -24
- package/fesm2022/ng-nest-ui-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-highlight.mjs +14 -14
- package/fesm2022/ng-nest-ui-highlight.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-i18n.mjs +32 -31
- package/fesm2022/ng-nest-ui-i18n.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-icon.mjs +14 -14
- package/fesm2022/ng-nest-ui-icon.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-image.mjs +55 -43
- package/fesm2022/ng-nest-ui-image.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-inner.mjs +11 -11
- package/fesm2022/ng-nest-ui-inner.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input-number.mjs +21 -21
- package/fesm2022/ng-nest-ui-input-number.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input.mjs +48 -42
- package/fesm2022/ng-nest-ui-input.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-keyword.mjs +11 -11
- package/fesm2022/ng-nest-ui-keyword.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-layout.mjs +25 -25
- package/fesm2022/ng-nest-ui-layout.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-link.mjs +13 -13
- package/fesm2022/ng-nest-ui-link.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-list.mjs +44 -41
- package/fesm2022/ng-nest-ui-list.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-loading.mjs +14 -14
- package/fesm2022/ng-nest-ui-loading.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-menu.mjs +37 -25
- package/fesm2022/ng-nest-ui-menu.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-message-box.mjs +10 -10
- package/fesm2022/ng-nest-ui-message-box.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-message.mjs +10 -10
- package/fesm2022/ng-nest-ui-message.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-notification.mjs +10 -10
- package/fesm2022/ng-nest-ui-notification.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-outlet.mjs +7 -7
- package/fesm2022/ng-nest-ui-page-header.mjs +10 -10
- package/fesm2022/ng-nest-ui-pagination.mjs +27 -31
- package/fesm2022/ng-nest-ui-pagination.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-pattern.mjs +7 -7
- package/fesm2022/ng-nest-ui-popconfirm.mjs +14 -14
- package/fesm2022/ng-nest-ui-popconfirm.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-popover.mjs +19 -19
- package/fesm2022/ng-nest-ui-popover.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-portal.mjs +7 -7
- package/fesm2022/ng-nest-ui-progress.mjs +22 -22
- package/fesm2022/ng-nest-ui-progress.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-prompts.mjs +12 -12
- package/fesm2022/ng-nest-ui-prompts.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-radio.mjs +20 -20
- package/fesm2022/ng-nest-ui-radio.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-rate.mjs +15 -15
- package/fesm2022/ng-nest-ui-rate.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-resizable.mjs +14 -14
- package/fesm2022/ng-nest-ui-resizable.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-result.mjs +10 -10
- package/fesm2022/ng-nest-ui-ripple.mjs +12 -12
- package/fesm2022/ng-nest-ui-ripple.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-scrollable.mjs +32 -12
- package/fesm2022/ng-nest-ui-scrollable.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-select.mjs +35 -39
- package/fesm2022/ng-nest-ui-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-sender.mjs +19 -19
- package/fesm2022/ng-nest-ui-sender.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-skeleton.mjs +13 -13
- package/fesm2022/ng-nest-ui-skeleton.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider-select.mjs +21 -21
- package/fesm2022/ng-nest-ui-slider-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider.mjs +16 -18
- package/fesm2022/ng-nest-ui-slider.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-statistic.mjs +16 -16
- package/fesm2022/ng-nest-ui-steps.mjs +14 -14
- package/fesm2022/ng-nest-ui-steps.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-suggestion.mjs +17 -17
- package/fesm2022/ng-nest-ui-suggestion.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-switch.mjs +15 -15
- package/fesm2022/ng-nest-ui-switch.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table-view.mjs +311 -277
- package/fesm2022/ng-nest-ui-table-view.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table.mjs +107 -117
- package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tabs.mjs +38 -40
- package/fesm2022/ng-nest-ui-tabs.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tag.mjs +16 -16
- package/fesm2022/ng-nest-ui-tag.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-text-retract.mjs +11 -11
- package/fesm2022/ng-nest-ui-text-retract.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-textarea.mjs +19 -19
- package/fesm2022/ng-nest-ui-textarea.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-theme.mjs +12 -12
- package/fesm2022/ng-nest-ui-theme.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-thought-chain.mjs +12 -12
- package/fesm2022/ng-nest-ui-thought-chain.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-ago.mjs +7 -7
- package/fesm2022/ng-nest-ui-time-picker.mjs +28 -28
- package/fesm2022/ng-nest-ui-time-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-range.mjs +7 -7
- package/fesm2022/ng-nest-ui-timeline.mjs +12 -12
- package/fesm2022/ng-nest-ui-timeline.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tooltip.mjs +17 -17
- package/fesm2022/ng-nest-ui-tooltip.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-transfer.mjs +14 -14
- package/fesm2022/ng-nest-ui-transfer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-file.mjs +17 -17
- package/fesm2022/ng-nest-ui-tree-file.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-select.mjs +36 -42
- package/fesm2022/ng-nest-ui-tree-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree.mjs +80 -64
- package/fesm2022/ng-nest-ui-tree.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-typography.mjs +10 -10
- package/fesm2022/ng-nest-ui-upload.mjs +24 -24
- package/fesm2022/ng-nest-ui-upload.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-welcome.mjs +10 -10
- package/package.json +1 -1
- package/types/ng-nest-ui-bubble.d.ts +12 -7
- package/types/ng-nest-ui-dialog.d.ts +170 -102
- package/types/ng-nest-ui-form.d.ts +15 -3
- package/types/ng-nest-ui-i18n.d.ts +29 -28
- package/types/ng-nest-ui-image.d.ts +28 -13
- package/types/ng-nest-ui-input.d.ts +1 -0
- package/types/ng-nest-ui-list.d.ts +31 -20
- package/types/ng-nest-ui-menu.d.ts +15 -3
- package/types/ng-nest-ui-message-box.d.ts +16 -3
- package/types/ng-nest-ui-message.d.ts +15 -3
- package/types/ng-nest-ui-notification.d.ts +15 -3
- package/types/ng-nest-ui-scrollable.d.ts +10 -2
- package/types/ng-nest-ui-table-view.d.ts +99 -65
- package/types/ng-nest-ui-table.d.ts +60 -5
- package/types/ng-nest-ui-tree.d.ts +29 -3
|
@@ -50,7 +50,7 @@ class XDialogProperty extends XPropertyFunction(X_DIALOG_CONFIG_NAME) {
|
|
|
50
50
|
* @zh_CN 偏移距离
|
|
51
51
|
* @en_US Offset distance
|
|
52
52
|
*/
|
|
53
|
-
this.offset = input(this.config?.offset ?? '1rem', ...(ngDevMode ?
|
|
53
|
+
this.offset = input(this.config?.offset ?? '1rem', { ...(ngDevMode ? { debugName: "offset" } : {}), transform: XToCssPixelValue });
|
|
54
54
|
/**
|
|
55
55
|
* @zh_CN 类型
|
|
56
56
|
* @en_US Types of
|
|
@@ -60,7 +60,7 @@ class XDialogProperty extends XPropertyFunction(X_DIALOG_CONFIG_NAME) {
|
|
|
60
60
|
* @zh_CN 隐藏关闭按钮
|
|
61
61
|
* @en_US Hide close button
|
|
62
62
|
*/
|
|
63
|
-
this.hideClose = input(false, ...(ngDevMode ?
|
|
63
|
+
this.hideClose = input(false, { ...(ngDevMode ? { debugName: "hideClose" } : {}), transform: XToBoolean });
|
|
64
64
|
/**
|
|
65
65
|
* @zh_CN 使用文本关闭按钮
|
|
66
66
|
* @en_US Use the text to close button
|
|
@@ -71,39 +71,39 @@ class XDialogProperty extends XPropertyFunction(X_DIALOG_CONFIG_NAME) {
|
|
|
71
71
|
* @en_US Adjust the size of the box, Abandoned
|
|
72
72
|
* @deprecated abandoned
|
|
73
73
|
*/
|
|
74
|
-
this.resizable = input(this.config?.resizable ?? false, ...(ngDevMode ?
|
|
74
|
+
this.resizable = input(this.config?.resizable ?? false, { ...(ngDevMode ? { debugName: "resizable" } : {}), transform: XToBoolean });
|
|
75
75
|
/**
|
|
76
76
|
* @zh_CN 开启 resizable 调整大小,偏移屏幕左边(弃用)
|
|
77
77
|
* @en_US Open the resizable resize, offset screen left, Abandoned
|
|
78
78
|
* @deprecated abandoned
|
|
79
79
|
*/
|
|
80
|
-
this.offsetLeft = input(0, ...(ngDevMode ?
|
|
80
|
+
this.offsetLeft = input(0, { ...(ngDevMode ? { debugName: "offsetLeft" } : {}), transform: XToNumber });
|
|
81
81
|
/**
|
|
82
82
|
* @zh_CN 开启 resizable 调整大小,偏移屏幕顶部(弃用)
|
|
83
83
|
* @en_US Open the resizable resize, offset screen top, Abandoned
|
|
84
84
|
* @deprecated abandoned
|
|
85
85
|
*/
|
|
86
|
-
this.offsetTop = input(0, ...(ngDevMode ?
|
|
86
|
+
this.offsetTop = input(0, { ...(ngDevMode ? { debugName: "offsetTop" } : {}), transform: XToNumber });
|
|
87
87
|
/**
|
|
88
88
|
* @zh_CN 宽度
|
|
89
89
|
* @en_US Width
|
|
90
90
|
*/
|
|
91
|
-
this.width = input(this.config?.width ?? '32rem', ...(ngDevMode ?
|
|
91
|
+
this.width = input(this.config?.width ?? '32rem', { ...(ngDevMode ? { debugName: "width" } : {}), transform: XToCssPixelValue });
|
|
92
92
|
/**
|
|
93
93
|
* @zh_CN 高度
|
|
94
94
|
* @en_US Height
|
|
95
95
|
*/
|
|
96
|
-
this.height = input('', ...(ngDevMode ?
|
|
96
|
+
this.height = input('', { ...(ngDevMode ? { debugName: "height" } : {}), transform: XToCssPixelValue });
|
|
97
97
|
/**
|
|
98
98
|
* @zh_CN 最小宽度
|
|
99
99
|
* @en_US Min width
|
|
100
100
|
*/
|
|
101
|
-
this.minWidth = input(this.config?.minWidth ?? '18rem', ...(ngDevMode ?
|
|
101
|
+
this.minWidth = input(this.config?.minWidth ?? '18rem', { ...(ngDevMode ? { debugName: "minWidth" } : {}), transform: XToCssPixelValue });
|
|
102
102
|
/**
|
|
103
103
|
* @zh_CN 最小高度
|
|
104
104
|
* @en_US Min height
|
|
105
105
|
*/
|
|
106
|
-
this.minHeight = input(this.config?.minHeight ?? '8rem', ...(ngDevMode ?
|
|
106
|
+
this.minHeight = input(this.config?.minHeight ?? '8rem', { ...(ngDevMode ? { debugName: "minHeight" } : {}), transform: XToCssPixelValue });
|
|
107
107
|
/**
|
|
108
108
|
* @zh_CN 样式主题
|
|
109
109
|
* @en_US Style theme
|
|
@@ -118,7 +118,7 @@ class XDialogProperty extends XPropertyFunction(X_DIALOG_CONFIG_NAME) {
|
|
|
118
118
|
* @zh_CN 显示取消按钮
|
|
119
119
|
* @en_US Show cancel button
|
|
120
120
|
*/
|
|
121
|
-
this.showCancel = input(this.config?.showCancel ?? true, ...(ngDevMode ?
|
|
121
|
+
this.showCancel = input(this.config?.showCancel ?? true, { ...(ngDevMode ? { debugName: "showCancel" } : {}), transform: XToBoolean });
|
|
122
122
|
/**
|
|
123
123
|
* @zh_CN 取消按钮文字
|
|
124
124
|
* @en_US Cancel button text
|
|
@@ -129,7 +129,7 @@ class XDialogProperty extends XPropertyFunction(X_DIALOG_CONFIG_NAME) {
|
|
|
129
129
|
* @zh_CN 显示确认按钮
|
|
130
130
|
* @en_US Show confirmation button
|
|
131
131
|
*/
|
|
132
|
-
this.showConfirm = input(this.config?.showConfirm ?? true, ...(ngDevMode ?
|
|
132
|
+
this.showConfirm = input(this.config?.showConfirm ?? true, { ...(ngDevMode ? { debugName: "showConfirm" } : {}), transform: XToBoolean });
|
|
133
133
|
/**
|
|
134
134
|
* @zh_CN 确认按钮文字
|
|
135
135
|
* @en_US Confirm button text
|
|
@@ -140,17 +140,17 @@ class XDialogProperty extends XPropertyFunction(X_DIALOG_CONFIG_NAME) {
|
|
|
140
140
|
* @zh_CN 点击遮罩关闭
|
|
141
141
|
* @en_US Click the mask to close
|
|
142
142
|
*/
|
|
143
|
-
this.backdropClose = input(this.config?.backdropClose ?? true, ...(ngDevMode ?
|
|
143
|
+
this.backdropClose = input(this.config?.backdropClose ?? true, { ...(ngDevMode ? { debugName: "backdropClose" } : {}), transform: XToBoolean });
|
|
144
144
|
/**
|
|
145
145
|
* @zh_CN 是否显示背景遮罩
|
|
146
146
|
* @en_US Whether to display the background mask
|
|
147
147
|
*/
|
|
148
|
-
this.hasBackdrop = input(this.config?.hasBackdrop ?? true, ...(ngDevMode ?
|
|
148
|
+
this.hasBackdrop = input(this.config?.hasBackdrop ?? true, { ...(ngDevMode ? { debugName: "hasBackdrop" } : {}), transform: XToBoolean });
|
|
149
149
|
/**
|
|
150
150
|
* @zh_CN 是否支持键盘 esc 关闭
|
|
151
151
|
* @en_US Whether to support keyboard esc to close
|
|
152
152
|
*/
|
|
153
|
-
this.keyboard = input(this.config?.keyboard ?? true, ...(ngDevMode ?
|
|
153
|
+
this.keyboard = input(this.config?.keyboard ?? true, { ...(ngDevMode ? { debugName: "keyboard" } : {}), transform: XToBoolean });
|
|
154
154
|
/**
|
|
155
155
|
* @zh_CN 自定义样式名
|
|
156
156
|
* @en_US Custom style name
|
|
@@ -160,17 +160,17 @@ class XDialogProperty extends XPropertyFunction(X_DIALOG_CONFIG_NAME) {
|
|
|
160
160
|
* @zh_CN 按钮居中
|
|
161
161
|
* @en_US Button center
|
|
162
162
|
*/
|
|
163
|
-
this.buttonsCenter = input(this.config?.buttonsCenter ?? false, ...(ngDevMode ?
|
|
163
|
+
this.buttonsCenter = input(this.config?.buttonsCenter ?? false, { ...(ngDevMode ? { debugName: "buttonsCenter" } : {}), transform: XToBoolean });
|
|
164
164
|
/**
|
|
165
165
|
* @zh_CN 拖动对话框
|
|
166
166
|
* @en_US Drag dialog
|
|
167
167
|
*/
|
|
168
|
-
this.draggable = input(this.config?.draggable ?? false, ...(ngDevMode ?
|
|
168
|
+
this.draggable = input(this.config?.draggable ?? false, { ...(ngDevMode ? { debugName: "draggable" } : {}), transform: XToBoolean });
|
|
169
169
|
/**
|
|
170
170
|
* @zh_CN 最大化弹出框按钮,当启用 resizable 时也会显示
|
|
171
171
|
* @en_US Maximize the bullet box button, Will also display when resizable is enabled
|
|
172
172
|
*/
|
|
173
|
-
this.maximize = input(this.config?.maximize ?? false, ...(ngDevMode ?
|
|
173
|
+
this.maximize = input(this.config?.maximize ?? false, { ...(ngDevMode ? { debugName: "maximize" } : {}), transform: XToBoolean });
|
|
174
174
|
/**
|
|
175
175
|
* @zh_CN 关闭前处理函数
|
|
176
176
|
* @en_US Processing function before closing
|
|
@@ -202,10 +202,10 @@ class XDialogProperty extends XPropertyFunction(X_DIALOG_CONFIG_NAME) {
|
|
|
202
202
|
*/
|
|
203
203
|
this.closeDone = output();
|
|
204
204
|
}
|
|
205
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
206
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.
|
|
205
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
206
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.6", type: XDialogProperty, isStandalone: true, selector: "x-dialog-property", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, hideClose: { classPropertyName: "hideClose", publicName: "hideClose", isSignal: true, isRequired: false, transformFunction: null }, closeText: { classPropertyName: "closeText", publicName: "closeText", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, offsetLeft: { classPropertyName: "offsetLeft", publicName: "offsetLeft", isSignal: true, isRequired: false, transformFunction: null }, offsetTop: { classPropertyName: "offsetTop", publicName: "offsetTop", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null }, minHeight: { classPropertyName: "minHeight", publicName: "minHeight", isSignal: true, isRequired: false, transformFunction: null }, effect: { classPropertyName: "effect", publicName: "effect", isSignal: true, isRequired: false, transformFunction: null }, footer: { classPropertyName: "footer", publicName: "footer", isSignal: true, isRequired: false, transformFunction: null }, showCancel: { classPropertyName: "showCancel", publicName: "showCancel", isSignal: true, isRequired: false, transformFunction: null }, cancelText: { classPropertyName: "cancelText", publicName: "cancelText", isSignal: true, isRequired: false, transformFunction: null }, showConfirm: { classPropertyName: "showConfirm", publicName: "showConfirm", isSignal: true, isRequired: false, transformFunction: null }, confirmText: { classPropertyName: "confirmText", publicName: "confirmText", isSignal: true, isRequired: false, transformFunction: null }, backdropClose: { classPropertyName: "backdropClose", publicName: "backdropClose", isSignal: true, isRequired: false, transformFunction: null }, hasBackdrop: { classPropertyName: "hasBackdrop", publicName: "hasBackdrop", isSignal: true, isRequired: false, transformFunction: null }, keyboard: { classPropertyName: "keyboard", publicName: "keyboard", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, buttonsCenter: { classPropertyName: "buttonsCenter", publicName: "buttonsCenter", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, maximize: { classPropertyName: "maximize", publicName: "maximize", isSignal: true, isRequired: false, transformFunction: null }, beforeClose: { classPropertyName: "beforeClose", publicName: "beforeClose", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", cancel: "cancel", confirm: "confirm", close: "close", showDone: "showDone", closeDone: "closeDone" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
207
207
|
}
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogProperty, decorators: [{
|
|
209
209
|
type: Component,
|
|
210
210
|
args: [{ selector: `${XDialogPrefix}-property`, template: '' }]
|
|
211
211
|
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], offset: [{ type: i0.Input, args: [{ isSignal: true, alias: "offset", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], hideClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideClose", required: false }] }], closeText: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeText", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], offsetLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "offsetLeft", required: false }] }], offsetTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "offsetTop", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], minWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minWidth", required: false }] }], minHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "minHeight", required: false }] }], effect: [{ type: i0.Input, args: [{ isSignal: true, alias: "effect", required: false }] }], footer: [{ type: i0.Input, args: [{ isSignal: true, alias: "footer", required: false }] }], showCancel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCancel", required: false }] }], cancelText: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelText", required: false }] }], showConfirm: [{ type: i0.Input, args: [{ isSignal: true, alias: "showConfirm", required: false }] }], confirmText: [{ type: i0.Input, args: [{ isSignal: true, alias: "confirmText", required: false }] }], backdropClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "backdropClose", required: false }] }], hasBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasBackdrop", required: false }] }], keyboard: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyboard", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], buttonsCenter: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonsCenter", required: false }] }], draggable: [{ type: i0.Input, args: [{ isSignal: true, alias: "draggable", required: false }] }], maximize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximize", required: false }] }], beforeClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "beforeClose", required: false }] }], cancel: [{ type: i0.Output, args: ["cancel"] }], confirm: [{ type: i0.Output, args: ["confirm"] }], close: [{ type: i0.Output, args: ["close"] }], showDone: [{ type: i0.Output, args: ["showDone"] }], closeDone: [{ type: i0.Output, args: ["closeDone"] }] } });
|
|
@@ -220,10 +220,10 @@ const X_DIALOG_CONTAINER = new InjectionToken('X_DIALOG_CONTAINER');
|
|
|
220
220
|
* Dialog Container Property
|
|
221
221
|
*/
|
|
222
222
|
class XDialogContainerProperty extends XProperty {
|
|
223
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
224
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.
|
|
223
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogContainerProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
224
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: XDialogContainerProperty, isStandalone: true, selector: "x-dialog-container-property", usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
225
225
|
}
|
|
226
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogContainerProperty, decorators: [{
|
|
227
227
|
type: Component,
|
|
228
228
|
args: [{ selector: `${XDialogContainerPrefix}-property`, template: '' }]
|
|
229
229
|
}] });
|
|
@@ -370,7 +370,7 @@ class XDialogComponent extends XDialogProperty {
|
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
portalAttached() {
|
|
373
|
-
return this.dialogRef?.overlayRef?.hasAttached();
|
|
373
|
+
return !!this.dialogRef?.overlayRef?.hasAttached();
|
|
374
374
|
}
|
|
375
375
|
onClose(action, execFunction = true) {
|
|
376
376
|
if (!this.portalAttached() && !this.container)
|
|
@@ -455,10 +455,10 @@ class XDialogComponent extends XDialogProperty {
|
|
|
455
455
|
!this.destroy() && this.showDone.emit($event);
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
459
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.
|
|
458
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
459
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: XDialogComponent, isStandalone: true, selector: "x-dialog", host: { properties: { "class.x-dialog-visible": "this.getVisible", "class": "this.clsName" } }, viewQueries: [{ propertyName: "dialogTpl", first: true, predicate: ["dialogTpl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #dialogTpl>\r\n @if (visible()) {\r\n @if (container && hasBackdrop()) {\r\n <div\r\n class=\"x-dialog-backdrop\"\r\n animate.enter=\"x-opacity-enter\"\r\n animate.leave=\"x-opacity-leave\"\r\n (click)=\"onClose('close')\"\r\n ></div>\r\n }\r\n <div\r\n class=\"x-dialog\"\r\n [animate.enter]=\"`x-move-${placement()}-enter`\"\r\n [animate.leave]=\"`x-move-${placement()}-leave`\"\r\n (animationend)=\"moveDone($event)\"\r\n [class.x-dialog-maximize]=\"isMaximize()\"\r\n [class.x-dialog-default-maximize]=\"isDefaultMaximize()\"\r\n [ngStyle]=\"getStyle()\"\r\n >\r\n <x-alert\r\n [draggable]=\"draggableSignal() && dialogBox['draggable']\"\r\n [dragFreeDragPosition]=\"dialogBox['distance']\"\r\n [minWidth]=\"dialogBox['minWidth']\"\r\n [minHeight]=\"dialogBox['minHeight']\"\r\n [dragBoundary]=\"'.cdk-overlay-container'\"\r\n [title]=\"title()\"\r\n [content]=\"contentTpl\"\r\n [type]=\"type()\"\r\n [effect]=\"effect()\"\r\n [hideClose]=\"hideClose()\"\r\n [closeText]=\"closeText()\"\r\n [operationTpl]=\"operationTpl\"\r\n (close)=\"onClose('close')\"\r\n (dragEnded)=\"onDragEnded($event)\"\r\n [showIcon]=\"false\"\r\n [duration]=\"0\"\r\n manual\r\n disabledAnimation\r\n ></x-alert>\r\n </div>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #contentTpl>\r\n <div class=\"x-dialog-inner\">\r\n <div class=\"x-dialog-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"x-dialog-buttons\" [class.x-dialog-buttons-center]=\"buttonsCenter()\">\r\n <ng-container *xOutlet=\"footer()\">\r\n @if (showCancel() || showConfirm()) {\r\n <x-buttons space=\"0.5rem\">\r\n @if (showCancel()) {\r\n <x-button class=\"x-dialog-cancel\" (click)=\"onClose('cancel')\" flat plain>{{ getCancelText() }}</x-button>\r\n }\r\n @if (showConfirm()) {\r\n <x-button class=\"x-dialog-confirm\" type=\"primary\" flat (click)=\"onClose('confirm')\">{{\r\n getConfirmText()\r\n }}</x-button>\r\n }\r\n </x-buttons>\r\n }\r\n </ng-container>\r\n </div>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #operationTpl>\r\n @if (maximizeSignal()) {\r\n <x-button\r\n size=\"small\"\r\n flat\r\n [icon]=\"isMaximize() ? 'fto-minimize' : 'fto-maximize'\"\r\n [onlyIcon]=\"true\"\r\n (click)=\"onSize()\"\r\n class=\"x-dialog-maximize\"\r\n ></x-button>\r\n }\r\n</ng-template>\r\n\r\n@if (container) {\r\n <ng-container *ngTemplateOutlet=\"dialogTpl\"></ng-container>\r\n}\r\n", styles: [".x-dialog{margin:0;padding:0}.x-dialog{width:100%;height:100%}.x-dialog>x-alert{height:100%}.x-dialog>x-alert .x-alert{min-height:100%;height:fit-content;align-items:inherit;padding:0}.x-dialog>x-alert .x-alert-inner{min-height:100%;display:flex;flex-direction:column}.x-dialog>x-alert .x-alert-title{padding:1rem 1rem 0}.x-dialog>x-alert .x-alert-content{flex:1;display:flex;flex-direction:column;padding:0 1rem .5rem}.x-dialog-inner{display:flex;flex-direction:column;margin:.5rem 0;flex:1}.x-dialog-buttons{display:flex;justify-content:flex-end}.x-dialog-buttons>x-buttons{margin-top:1rem;align-self:flex-end}.x-dialog-buttons-center{justify-content:center}.x-dialog-content{display:inline-flex;flex-direction:column;flex:1;max-height:70vh;overflow:auto;min-height:2rem}.x-dialog-maximize>x-alert .x-alert{left:0!important;top:0!important;border-radius:0!important}.x-dialog-maximize .x-dialog-content{max-height:calc(100vh - 7.875rem)!important;height:calc(100vh - 7.875rem)!important}.x-dialog-default-maximize .x-dialog-content{max-height:calc(100vh - 7.875rem)!important;height:calc(100vh - 7.875rem)!important;flex:initial}.x-dialog-default-maximize>x-alert .x-alert{left:0!important;top:0!important;border-radius:0!important}\n"], dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: XAlertComponent, selector: "x-alert" }, { kind: "component", type: XButtonComponent, selector: "x-button" }, { kind: "component", type: XButtonsComponent, selector: "x-buttons" }, { kind: "directive", type: XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
460
460
|
}
|
|
461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogComponent, decorators: [{
|
|
462
462
|
type: Component,
|
|
463
463
|
args: [{ selector: `${XDialogPrefix}`, imports: [NgStyle, NgTemplateOutlet, XAlertComponent, XButtonComponent, XButtonsComponent, XOutletDirective], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #dialogTpl>\r\n @if (visible()) {\r\n @if (container && hasBackdrop()) {\r\n <div\r\n class=\"x-dialog-backdrop\"\r\n animate.enter=\"x-opacity-enter\"\r\n animate.leave=\"x-opacity-leave\"\r\n (click)=\"onClose('close')\"\r\n ></div>\r\n }\r\n <div\r\n class=\"x-dialog\"\r\n [animate.enter]=\"`x-move-${placement()}-enter`\"\r\n [animate.leave]=\"`x-move-${placement()}-leave`\"\r\n (animationend)=\"moveDone($event)\"\r\n [class.x-dialog-maximize]=\"isMaximize()\"\r\n [class.x-dialog-default-maximize]=\"isDefaultMaximize()\"\r\n [ngStyle]=\"getStyle()\"\r\n >\r\n <x-alert\r\n [draggable]=\"draggableSignal() && dialogBox['draggable']\"\r\n [dragFreeDragPosition]=\"dialogBox['distance']\"\r\n [minWidth]=\"dialogBox['minWidth']\"\r\n [minHeight]=\"dialogBox['minHeight']\"\r\n [dragBoundary]=\"'.cdk-overlay-container'\"\r\n [title]=\"title()\"\r\n [content]=\"contentTpl\"\r\n [type]=\"type()\"\r\n [effect]=\"effect()\"\r\n [hideClose]=\"hideClose()\"\r\n [closeText]=\"closeText()\"\r\n [operationTpl]=\"operationTpl\"\r\n (close)=\"onClose('close')\"\r\n (dragEnded)=\"onDragEnded($event)\"\r\n [showIcon]=\"false\"\r\n [duration]=\"0\"\r\n manual\r\n disabledAnimation\r\n ></x-alert>\r\n </div>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #contentTpl>\r\n <div class=\"x-dialog-inner\">\r\n <div class=\"x-dialog-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"x-dialog-buttons\" [class.x-dialog-buttons-center]=\"buttonsCenter()\">\r\n <ng-container *xOutlet=\"footer()\">\r\n @if (showCancel() || showConfirm()) {\r\n <x-buttons space=\"0.5rem\">\r\n @if (showCancel()) {\r\n <x-button class=\"x-dialog-cancel\" (click)=\"onClose('cancel')\" flat plain>{{ getCancelText() }}</x-button>\r\n }\r\n @if (showConfirm()) {\r\n <x-button class=\"x-dialog-confirm\" type=\"primary\" flat (click)=\"onClose('confirm')\">{{\r\n getConfirmText()\r\n }}</x-button>\r\n }\r\n </x-buttons>\r\n }\r\n </ng-container>\r\n </div>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #operationTpl>\r\n @if (maximizeSignal()) {\r\n <x-button\r\n size=\"small\"\r\n flat\r\n [icon]=\"isMaximize() ? 'fto-minimize' : 'fto-maximize'\"\r\n [onlyIcon]=\"true\"\r\n (click)=\"onSize()\"\r\n class=\"x-dialog-maximize\"\r\n ></x-button>\r\n }\r\n</ng-template>\r\n\r\n@if (container) {\r\n <ng-container *ngTemplateOutlet=\"dialogTpl\"></ng-container>\r\n}\r\n", styles: [".x-dialog{margin:0;padding:0}.x-dialog{width:100%;height:100%}.x-dialog>x-alert{height:100%}.x-dialog>x-alert .x-alert{min-height:100%;height:fit-content;align-items:inherit;padding:0}.x-dialog>x-alert .x-alert-inner{min-height:100%;display:flex;flex-direction:column}.x-dialog>x-alert .x-alert-title{padding:1rem 1rem 0}.x-dialog>x-alert .x-alert-content{flex:1;display:flex;flex-direction:column;padding:0 1rem .5rem}.x-dialog-inner{display:flex;flex-direction:column;margin:.5rem 0;flex:1}.x-dialog-buttons{display:flex;justify-content:flex-end}.x-dialog-buttons>x-buttons{margin-top:1rem;align-self:flex-end}.x-dialog-buttons-center{justify-content:center}.x-dialog-content{display:inline-flex;flex-direction:column;flex:1;max-height:70vh;overflow:auto;min-height:2rem}.x-dialog-maximize>x-alert .x-alert{left:0!important;top:0!important;border-radius:0!important}.x-dialog-maximize .x-dialog-content{max-height:calc(100vh - 7.875rem)!important;height:calc(100vh - 7.875rem)!important}.x-dialog-default-maximize .x-dialog-content{max-height:calc(100vh - 7.875rem)!important;height:calc(100vh - 7.875rem)!important;flex:initial}.x-dialog-default-maximize>x-alert .x-alert{left:0!important;top:0!important;border-radius:0!important}\n"] }]
|
|
464
464
|
}], ctorParameters: () => [], propDecorators: { getVisible: [{
|
|
@@ -474,15 +474,15 @@ class XDialogContainerComponent extends XDialogContainerProperty {
|
|
|
474
474
|
super(...arguments);
|
|
475
475
|
this._has = true;
|
|
476
476
|
}
|
|
477
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
478
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.
|
|
477
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogContainerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
478
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: XDialogContainerComponent, isStandalone: true, selector: "x-dialog-container", host: { properties: { "class.x-dialog-container": "this._has" } }, providers: [
|
|
479
479
|
{
|
|
480
480
|
provide: X_DIALOG_CONTAINER,
|
|
481
481
|
useExisting: XDialogContainerComponent
|
|
482
482
|
}
|
|
483
483
|
], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\r\n", styles: [".x-dialog-container{margin:0;padding:0}.x-dialog-container{position:relative;z-index:1;box-sizing:border-box;display:block;overflow:hidden}.x-dialog-container x-dialog{display:flex;position:absolute;width:100%;height:100%;z-index:-1;transition:z-index .4s;top:0;left:0}.x-dialog-container .x-dialog{position:absolute;display:block;outline:0;z-index:1001;width:initial;height:initial}.x-dialog-container .x-dialog-top,.x-dialog-container .x-dialog-bottom{justify-content:center}.x-dialog-container .x-dialog-center{justify-content:center;align-items:center}.x-dialog-container .x-dialog-left,.x-dialog-container .x-dialog-right{align-items:center}.x-dialog-container .x-dialog-visible{display:flex;z-index:1000}.x-dialog-container .x-dialog-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;background:#00000052}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
484
484
|
}
|
|
485
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogContainerComponent, decorators: [{
|
|
486
486
|
type: Component,
|
|
487
487
|
args: [{ selector: 'x-dialog-container', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
488
488
|
{
|
|
@@ -497,16 +497,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
497
497
|
|
|
498
498
|
// TODO: add more function
|
|
499
499
|
class XDialogRef {
|
|
500
|
-
constructor(
|
|
501
|
-
this.overlayRef = overlayRef;
|
|
502
|
-
this.containerInstance = containerInstance;
|
|
503
|
-
this.renderer = renderer;
|
|
504
|
-
this.portalService = portalService;
|
|
500
|
+
constructor(params) {
|
|
505
501
|
this.fullscreen = false;
|
|
506
|
-
this.dragHandleRefs = [];
|
|
507
502
|
this.afterClose = new Subject();
|
|
508
503
|
this.unsubject = new Subject();
|
|
509
504
|
this._isFristFullscreen = true;
|
|
505
|
+
this.overlayRef = params.overlayRef;
|
|
506
|
+
this.containerInstance = params.containerInstance;
|
|
507
|
+
this.renderer = params.renderer;
|
|
508
|
+
this.option = params.option;
|
|
509
|
+
this.fullscreen = params.fullscreen;
|
|
510
|
+
this.portalService = params.portalService;
|
|
510
511
|
}
|
|
511
512
|
close(result) {
|
|
512
513
|
this.containerInstance.animationChanged
|
|
@@ -522,65 +523,65 @@ class XDialogRef {
|
|
|
522
523
|
});
|
|
523
524
|
}
|
|
524
525
|
onFullscreen() {
|
|
525
|
-
let { dialogBox,
|
|
526
|
-
if (!
|
|
527
|
-
|
|
526
|
+
let { dialogBox, overlayElement, distance, hostElement, defaultMaximize } = this.containerInstance;
|
|
527
|
+
if (!this.fullscreen) {
|
|
528
|
+
this.overlayRef.updateSize({
|
|
528
529
|
width: '100%',
|
|
529
530
|
height: '100%',
|
|
530
531
|
minWidth: '100%',
|
|
531
532
|
minHeight: '100%'
|
|
532
533
|
});
|
|
533
|
-
|
|
534
|
-
dialogBox
|
|
535
|
-
dialogBox
|
|
536
|
-
dialogBox
|
|
537
|
-
dialogBox
|
|
534
|
+
this.fullscreen = true;
|
|
535
|
+
dialogBox.minWidth = '100%';
|
|
536
|
+
dialogBox.minHeight = '100%';
|
|
537
|
+
dialogBox.draggable = false;
|
|
538
|
+
dialogBox.resizable = false;
|
|
538
539
|
if (this.option.resizable) {
|
|
539
540
|
this.renderer.setStyle(overlayElement, 'margin', '0 0 0 0');
|
|
540
541
|
}
|
|
541
542
|
if (this.option.draggable) {
|
|
542
|
-
dialogBox
|
|
543
|
+
dialogBox.distance = { x: 0, y: 0 };
|
|
543
544
|
}
|
|
544
545
|
this.renderer.addClass(overlayElement, 'x-dialog-portal-fullscreen');
|
|
545
546
|
}
|
|
546
547
|
else {
|
|
547
|
-
dialogBox
|
|
548
|
-
dialogBox
|
|
548
|
+
dialogBox.minWidth = this.option.minWidth;
|
|
549
|
+
dialogBox.minHeight = this.option.minHeight;
|
|
549
550
|
if (this._isFristFullscreen && defaultMaximize) {
|
|
550
|
-
this.option.draggable = dialogBox
|
|
551
|
-
this.option.resizable = dialogBox
|
|
551
|
+
this.option.draggable = dialogBox.draggable;
|
|
552
|
+
this.option.resizable = dialogBox.resizable;
|
|
552
553
|
}
|
|
553
554
|
else {
|
|
554
|
-
dialogBox
|
|
555
|
-
dialogBox
|
|
555
|
+
dialogBox.draggable = this.option.draggable;
|
|
556
|
+
dialogBox.resizable = this.option.resizable;
|
|
556
557
|
}
|
|
557
|
-
|
|
558
|
+
this.overlayRef.updateSize({
|
|
558
559
|
width: dialogBox['width'],
|
|
559
560
|
height: dialogBox['height'],
|
|
560
561
|
minWidth: dialogBox['minWidth'],
|
|
561
562
|
minHeight: dialogBox['minHeight']
|
|
562
563
|
});
|
|
563
|
-
|
|
564
|
+
this.fullscreen = false;
|
|
564
565
|
if (this.option.draggable) {
|
|
565
|
-
dialogBox
|
|
566
|
+
dialogBox.distance = { ...distance };
|
|
566
567
|
}
|
|
567
568
|
if (this.option.resizable) {
|
|
568
|
-
if (dialogBox
|
|
569
|
-
this.renderer.setStyle(overlayElement, 'margin-top', `${dialogBox
|
|
569
|
+
if (dialogBox.marginTop) {
|
|
570
|
+
this.renderer.setStyle(overlayElement, 'margin-top', `${dialogBox.marginTop}`);
|
|
570
571
|
}
|
|
571
|
-
if (dialogBox
|
|
572
|
-
this.renderer.setStyle(overlayElement, 'margin-left', `${dialogBox
|
|
572
|
+
if (dialogBox.marginLeft) {
|
|
573
|
+
this.renderer.setStyle(overlayElement, 'margin-left', `${dialogBox.marginLeft}`);
|
|
573
574
|
}
|
|
574
|
-
if (dialogBox
|
|
575
|
-
this.renderer.setStyle(overlayElement, 'margin-right', `${dialogBox
|
|
575
|
+
if (dialogBox.marginRight) {
|
|
576
|
+
this.renderer.setStyle(overlayElement, 'margin-right', `${dialogBox.marginRight}`);
|
|
576
577
|
}
|
|
577
|
-
if (dialogBox
|
|
578
|
-
this.renderer.setStyle(overlayElement, 'margin-bottom', `${dialogBox
|
|
578
|
+
if (dialogBox.marginBottom) {
|
|
579
|
+
this.renderer.setStyle(overlayElement, 'margin-bottom', `${dialogBox.marginBottom}`);
|
|
579
580
|
}
|
|
580
581
|
}
|
|
581
582
|
this.renderer.removeClass(overlayElement, 'x-dialog-portal-fullscreen');
|
|
582
583
|
if (this._isFristFullscreen && defaultMaximize) {
|
|
583
|
-
|
|
584
|
+
this.overlayRef.updatePositionStrategy(this.portalService.setPlace(this.option.placement, this.option.offset));
|
|
584
585
|
this.renderer.addClass(hostElement, XPortalResizablePrefix);
|
|
585
586
|
setTimeout(() => {
|
|
586
587
|
Object.assign(dialogBox, this.portalService.setResizable(overlayElement, this.option.placement));
|
|
@@ -600,15 +601,15 @@ class XDialogRef {
|
|
|
600
601
|
|
|
601
602
|
class XDialogCloseDirective {
|
|
602
603
|
constructor() {
|
|
603
|
-
this.dialogRef = inject(
|
|
604
|
+
this.dialogRef = inject(XDialogRef, { optional: true });
|
|
604
605
|
}
|
|
605
606
|
onCloseClick() {
|
|
606
|
-
this.dialogRef
|
|
607
|
+
this.dialogRef?.close();
|
|
607
608
|
}
|
|
608
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
609
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.
|
|
609
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
610
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: XDialogCloseDirective, isStandalone: true, selector: "[x-dialog-close]", host: { listeners: { "click": "onCloseClick()" } }, ngImport: i0 }); }
|
|
610
611
|
}
|
|
611
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
612
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogCloseDirective, decorators: [{
|
|
612
613
|
type: Directive,
|
|
613
614
|
args: [{
|
|
614
615
|
selector: `[x-dialog-close]`
|
|
@@ -621,10 +622,10 @@ class XDialogTitleDirective {
|
|
|
621
622
|
constructor() {
|
|
622
623
|
this._has = true;
|
|
623
624
|
}
|
|
624
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
625
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.
|
|
625
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
626
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: XDialogTitleDirective, isStandalone: true, selector: "[x-dialog-title], x-dialog-title", host: { properties: { "class.x-dialog-portal-title": "this._has" } }, ngImport: i0 }); }
|
|
626
627
|
}
|
|
627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogTitleDirective, decorators: [{
|
|
628
629
|
type: Directive,
|
|
629
630
|
args: [{
|
|
630
631
|
selector: `[x-dialog-title], x-dialog-title`
|
|
@@ -637,10 +638,10 @@ class XDialogContentDirective {
|
|
|
637
638
|
constructor() {
|
|
638
639
|
this._has = true;
|
|
639
640
|
}
|
|
640
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
641
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.
|
|
641
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
642
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: XDialogContentDirective, isStandalone: true, selector: "[x-dialog-content], x-dialog-content", host: { properties: { "class.x-dialog-portal-content": "this._has" } }, ngImport: i0 }); }
|
|
642
643
|
}
|
|
643
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogContentDirective, decorators: [{
|
|
644
645
|
type: Directive,
|
|
645
646
|
args: [{
|
|
646
647
|
selector: `[x-dialog-content], x-dialog-content`
|
|
@@ -653,10 +654,10 @@ class XDialogActionsDirective {
|
|
|
653
654
|
constructor() {
|
|
654
655
|
this._has = true;
|
|
655
656
|
}
|
|
656
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
657
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.
|
|
657
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogActionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
658
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: XDialogActionsDirective, isStandalone: true, selector: "[x-dialog-actions], x-dialog-actions", host: { properties: { "class.x-dialog-portal-actions": "this._has" } }, ngImport: i0 }); }
|
|
658
659
|
}
|
|
659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
660
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogActionsDirective, decorators: [{
|
|
660
661
|
type: Directive,
|
|
661
662
|
args: [{
|
|
662
663
|
selector: `[x-dialog-actions], x-dialog-actions`
|
|
@@ -667,15 +668,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
667
668
|
}] } });
|
|
668
669
|
class XDialogDragHandleDirective {
|
|
669
670
|
constructor() {
|
|
670
|
-
this.dialogRef = inject(
|
|
671
|
+
this.dialogRef = inject(XDialogRef, { optional: true });
|
|
671
672
|
}
|
|
672
673
|
get getDraggable() {
|
|
673
674
|
return !this.dialogRef?.fullscreen && this.dialogRef?.option.draggable;
|
|
674
675
|
}
|
|
675
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
676
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.
|
|
676
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogDragHandleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
677
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: XDialogDragHandleDirective, isStandalone: true, selector: "[x-dialog-drag-handle], x-dialog-drag-handle", host: { properties: { "class.x-dialog-portal-drag-handle": "this.getDraggable" } }, hostDirectives: [{ directive: i1.CdkDragHandle, inputs: ["cdkDragHandleDisabled", "xDialogDragHandleDisabled"] }], ngImport: i0 }); }
|
|
677
678
|
}
|
|
678
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
679
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogDragHandleDirective, decorators: [{
|
|
679
680
|
type: Directive,
|
|
680
681
|
args: [{
|
|
681
682
|
selector: `[x-dialog-drag-handle], x-dialog-drag-handle`,
|
|
@@ -692,15 +693,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
692
693
|
}] } });
|
|
693
694
|
class XDialogFullscreenDirective {
|
|
694
695
|
constructor() {
|
|
695
|
-
this.dialogRef = inject(
|
|
696
|
+
this.dialogRef = inject(XDialogRef, { optional: true });
|
|
696
697
|
}
|
|
697
698
|
onFullscreenClick() {
|
|
698
|
-
this.dialogRef
|
|
699
|
+
this.dialogRef?.onFullscreen();
|
|
699
700
|
}
|
|
700
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
701
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.
|
|
701
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogFullscreenDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
702
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: XDialogFullscreenDirective, isStandalone: true, selector: "[x-dialog-fullscreen], x-dialog-fullscreen", host: { listeners: { "click": "onFullscreenClick()" } }, ngImport: i0 }); }
|
|
702
703
|
}
|
|
703
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
704
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogFullscreenDirective, decorators: [{
|
|
704
705
|
type: Directive,
|
|
705
706
|
args: [{
|
|
706
707
|
selector: `[x-dialog-fullscreen], x-dialog-fullscreen`
|
|
@@ -718,7 +719,7 @@ class XDialogPortalComponent extends BasePortalOutlet {
|
|
|
718
719
|
this.changeDetectorRef = inject(ChangeDetectorRef);
|
|
719
720
|
this.portalOutlet = viewChild.required(CdkPortalOutlet);
|
|
720
721
|
this.dragRef = viewChild.required(CdkDrag);
|
|
721
|
-
this.handles = contentChildren(XDialogDragHandleDirective, ...(ngDevMode ?
|
|
722
|
+
this.handles = contentChildren(XDialogDragHandleDirective, { ...(ngDevMode ? { debugName: "handles" } : {}), descendants: true });
|
|
722
723
|
this.animationChanged = new EventEmitter();
|
|
723
724
|
this.offsetLeft = 0;
|
|
724
725
|
this.offsetTop = 0;
|
|
@@ -766,10 +767,10 @@ class XDialogPortalComponent extends BasePortalOutlet {
|
|
|
766
767
|
y: this.distance.y + event.distance.y
|
|
767
768
|
};
|
|
768
769
|
}
|
|
769
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
770
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.0.
|
|
770
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogPortalComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
771
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.0.6", type: XDialogPortalComponent, isStandalone: true, selector: "x-dialog-portal", inputs: { placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { placement: "placementChange" }, host: { listeners: { "animationend": "done($event)", "animationstart": "start($event)" }, properties: { "animate.enter": "this.enimateEnter", "animate.leave": "this.enimateLeave" } }, queries: [{ propertyName: "handles", predicate: XDialogDragHandleDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, isSignal: true }, { propertyName: "dragRef", first: true, predicate: CdkDrag, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\r\n class=\"x-dialog-portal\"\r\n #dragRef\r\n cdkDrag\r\n [cdkDragBoundary]=\"'.cdk-overlay-container'\"\r\n [cdkDragDisabled]=\"!option.draggable && !dialogBox['draggable']\"\r\n [cdkDragRootElement]=\"'.cdk-overlay-pane'\"\r\n [cdkDragFreeDragPosition]=\"dialogBox['distance']\"\r\n (cdkDragEnded)=\"onDragEnded($event)\"\r\n [style.minWidth]=\"dialogBox['minWidth']\"\r\n [style.minHeight]=\"dialogBox['minHeight']\"\r\n [style.maxWidth]=\"dialogBox['maxWidth']\"\r\n [style.maxHeight]=\"dialogBox['maxHeight']\"\r\n>\r\n <ng-template cdkPortalOutlet></ng-template>\r\n</div>\r\n", styles: [".x-dialog-portal{margin:0;padding:0}.x-dialog-portal{width:100%;height:100%;display:block;padding:1rem;box-sizing:border-box;min-height:inherit;max-height:inherit;background-color:var(--x-background-100);box-shadow:var(--x-box-shadow);border-radius:var(--x-border-small-radius)}.x-dialog-portal-title{font-weight:600;color:var(--x-text-300);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:3rem;line-height:3rem;display:block;align-items:center;margin:-1rem -1rem 0;padding:0 1rem}.x-dialog-portal-content{display:block;margin:0 -1rem;padding:0 1rem;max-height:70vh;overflow:auto;color:var(--x-text-300);line-height:1.325rem}.x-dialog-portal-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;box-sizing:content-box;margin:0 -1rem -1rem;padding:0 1rem;height:4rem}.x-dialog-portal-actions[align=center]{justify-content:center}.x-dialog-portal-actions[align=start]{justify-content:flex-start}.x-dialog-portal-actions x-button:not(:first-child){margin-left:1rem}.x-dialog-portal-drag-handle{cursor:move}.x-dialog-portal-fullscreen{margin:0!important}.x-dialog-portal-fullscreen .x-dialog-portal{left:0!important;top:0!important;border-radius:0}.x-dialog-portal-fullscreen .x-dialog-portal-content{max-height:calc(100vh - 7rem)!important;height:calc(100vh - 7rem)!important}x-dialog-portal{width:100%;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
771
772
|
}
|
|
772
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogPortalComponent, decorators: [{
|
|
773
774
|
type: Component,
|
|
774
775
|
args: [{ selector: 'x-dialog-portal', imports: [DragDropModule, PortalModule], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\r\n class=\"x-dialog-portal\"\r\n #dragRef\r\n cdkDrag\r\n [cdkDragBoundary]=\"'.cdk-overlay-container'\"\r\n [cdkDragDisabled]=\"!option.draggable && !dialogBox['draggable']\"\r\n [cdkDragRootElement]=\"'.cdk-overlay-pane'\"\r\n [cdkDragFreeDragPosition]=\"dialogBox['distance']\"\r\n (cdkDragEnded)=\"onDragEnded($event)\"\r\n [style.minWidth]=\"dialogBox['minWidth']\"\r\n [style.minHeight]=\"dialogBox['minHeight']\"\r\n [style.maxWidth]=\"dialogBox['maxWidth']\"\r\n [style.maxHeight]=\"dialogBox['maxHeight']\"\r\n>\r\n <ng-template cdkPortalOutlet></ng-template>\r\n</div>\r\n", styles: [".x-dialog-portal{margin:0;padding:0}.x-dialog-portal{width:100%;height:100%;display:block;padding:1rem;box-sizing:border-box;min-height:inherit;max-height:inherit;background-color:var(--x-background-100);box-shadow:var(--x-box-shadow);border-radius:var(--x-border-small-radius)}.x-dialog-portal-title{font-weight:600;color:var(--x-text-300);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:3rem;line-height:3rem;display:block;align-items:center;margin:-1rem -1rem 0;padding:0 1rem}.x-dialog-portal-content{display:block;margin:0 -1rem;padding:0 1rem;max-height:70vh;overflow:auto;color:var(--x-text-300);line-height:1.325rem}.x-dialog-portal-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;box-sizing:content-box;margin:0 -1rem -1rem;padding:0 1rem;height:4rem}.x-dialog-portal-actions[align=center]{justify-content:center}.x-dialog-portal-actions[align=start]{justify-content:flex-start}.x-dialog-portal-actions x-button:not(:first-child){margin-left:1rem}.x-dialog-portal-drag-handle{cursor:move}.x-dialog-portal-fullscreen{margin:0!important}.x-dialog-portal-fullscreen .x-dialog-portal{left:0!important;top:0!important;border-radius:0}.x-dialog-portal-fullscreen .x-dialog-portal-content{max-height:calc(100vh - 7rem)!important;height:calc(100vh - 7rem)!important}x-dialog-portal{width:100%;height:100%}\n"] }]
|
|
775
776
|
}], propDecorators: { placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: true }] }, { type: i0.Output, args: ["placementChange"] }], enimateEnter: [{
|
|
@@ -787,8 +788,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
787
788
|
}], portalOutlet: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkPortalOutlet), { isSignal: true }] }], dragRef: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkDrag), { isSignal: true }] }], handles: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => XDialogDragHandleDirective), { ...{ descendants: true }, isSignal: true }] }] } });
|
|
788
789
|
|
|
789
790
|
class XDialogModule {
|
|
790
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
791
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.
|
|
791
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
792
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: XDialogModule, imports: [XDialogComponent,
|
|
792
793
|
XDialogContainerComponent,
|
|
793
794
|
XDialogCloseDirective,
|
|
794
795
|
XDialogTitleDirective,
|
|
@@ -803,9 +804,9 @@ class XDialogModule {
|
|
|
803
804
|
XDialogActionsDirective,
|
|
804
805
|
XDialogDragHandleDirective,
|
|
805
806
|
XDialogFullscreenDirective] }); }
|
|
806
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.
|
|
807
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogModule, imports: [XDialogComponent] }); }
|
|
807
808
|
}
|
|
808
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogModule, decorators: [{
|
|
809
810
|
type: NgModule,
|
|
810
811
|
args: [{
|
|
811
812
|
exports: [
|
|
@@ -873,27 +874,30 @@ class XDialogService {
|
|
|
873
874
|
const { overlayRef, componentRef } = portal || {};
|
|
874
875
|
const { instance } = componentRef || {};
|
|
875
876
|
const { hostElement, overlayElement } = overlayRef || {};
|
|
876
|
-
|
|
877
|
+
let defaultMaximize = this.setMaximize(option);
|
|
877
878
|
let dialogBox = {
|
|
878
879
|
draggable: option.draggable
|
|
879
880
|
};
|
|
880
|
-
let defaultMaximize = this.setMaximize(option);
|
|
881
881
|
Object.assign(dialogBox, {
|
|
882
882
|
width: defaultMaximize ? this.default.width : option.width,
|
|
883
883
|
height: defaultMaximize ? null : option.height,
|
|
884
884
|
minWidth: option.minWidth,
|
|
885
885
|
minHeight: option.minHeight
|
|
886
886
|
});
|
|
887
|
+
const dialogRef = new XDialogRef({
|
|
888
|
+
overlayRef: overlayRef,
|
|
889
|
+
containerInstance: instance,
|
|
890
|
+
renderer: this.renderer,
|
|
891
|
+
option,
|
|
892
|
+
fullscreen: defaultMaximize,
|
|
893
|
+
portalService: this.portalService
|
|
894
|
+
});
|
|
887
895
|
componentRef?.setInput('placement', option.placement);
|
|
888
896
|
instance.option = option;
|
|
889
|
-
instance.dialogRef = dialogRef;
|
|
890
897
|
instance.defaultMaximize = defaultMaximize;
|
|
891
898
|
instance.dialogBox = dialogBox;
|
|
892
899
|
instance.hostElement = hostElement;
|
|
893
900
|
instance.overlayElement = overlayElement;
|
|
894
|
-
dialogRef.option = option;
|
|
895
|
-
dialogRef.fullscreen = defaultMaximize;
|
|
896
|
-
dialogRef.unsubject = new Subject();
|
|
897
901
|
if (defaultMaximize) {
|
|
898
902
|
this.renderer.addClass(overlayElement, 'x-dialog-portal-fullscreen');
|
|
899
903
|
}
|
|
@@ -944,10 +948,10 @@ class XDialogService {
|
|
|
944
948
|
}
|
|
945
949
|
return false;
|
|
946
950
|
}
|
|
947
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
948
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.
|
|
951
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
952
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogService, providedIn: 'root' }); }
|
|
949
953
|
}
|
|
950
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: XDialogService, decorators: [{
|
|
951
955
|
type: Injectable,
|
|
952
956
|
args: [{ providedIn: 'root' }]
|
|
953
957
|
}], ctorParameters: () => [] });
|