@ng-nest/ui 20.1.6 → 20.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attachments/index.d.ts +277 -0
- package/auto-complete/index.d.ts +11 -2
- package/card/index.d.ts +12 -2
- package/cascade/index.d.ts +2 -1
- package/collapse/index.d.ts +0 -3
- package/color-picker/index.d.ts +2 -1
- package/core/index.d.ts +41 -43
- package/date-picker/index.d.ts +20 -4
- package/dialog/index.d.ts +8 -10
- package/drawer/index.d.ts +10 -12
- package/dropdown/index.d.ts +32 -9
- package/fesm2022/ng-nest-ui-affix.mjs +11 -11
- package/fesm2022/ng-nest-ui-alert.mjs +13 -13
- package/fesm2022/ng-nest-ui-alert.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-anchor.mjs +18 -18
- package/fesm2022/ng-nest-ui-anchor.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-api.mjs +7 -7
- package/fesm2022/ng-nest-ui-api.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-attachments.mjs +331 -0
- package/fesm2022/ng-nest-ui-attachments.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-auto-complete.mjs +36 -26
- package/fesm2022/ng-nest-ui-auto-complete.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-avatar.mjs +18 -18
- package/fesm2022/ng-nest-ui-avatar.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-back-top.mjs +12 -12
- package/fesm2022/ng-nest-ui-back-top.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-badge.mjs +13 -13
- package/fesm2022/ng-nest-ui-badge.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-base-form.mjs +8 -8
- package/fesm2022/ng-nest-ui-bubble.mjs +20 -20
- package/fesm2022/ng-nest-ui-bubble.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-button.mjs +19 -19
- package/fesm2022/ng-nest-ui-button.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-calendar.mjs +11 -11
- package/fesm2022/ng-nest-ui-card.mjs +20 -14
- package/fesm2022/ng-nest-ui-card.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-carousel.mjs +21 -21
- package/fesm2022/ng-nest-ui-carousel.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-cascade.mjs +27 -25
- package/fesm2022/ng-nest-ui-cascade.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-checkbox.mjs +12 -12
- package/fesm2022/ng-nest-ui-checkbox.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-collapse.mjs +20 -28
- package/fesm2022/ng-nest-ui-collapse.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color-picker.mjs +31 -29
- package/fesm2022/ng-nest-ui-color-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color.mjs +11 -11
- package/fesm2022/ng-nest-ui-color.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-comment.mjs +18 -18
- package/fesm2022/ng-nest-ui-container.mjs +35 -35
- package/fesm2022/ng-nest-ui-container.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-core.mjs +48 -148
- package/fesm2022/ng-nest-ui-core.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-coversations.mjs +11 -11
- package/fesm2022/ng-nest-ui-crumb.mjs +11 -11
- package/fesm2022/ng-nest-ui-date-picker.mjs +92 -78
- 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 +68 -67
- package/fesm2022/ng-nest-ui-dialog.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-doc.mjs +7 -7
- package/fesm2022/ng-nest-ui-doc.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-drag.mjs +11 -11
- package/fesm2022/ng-nest-ui-drawer.mjs +67 -84
- package/fesm2022/ng-nest-ui-drawer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dropdown.mjs +182 -58
- package/fesm2022/ng-nest-ui-dropdown.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-empty.mjs +11 -11
- package/fesm2022/ng-nest-ui-examples.mjs +7 -7
- package/fesm2022/ng-nest-ui-examples.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-find.mjs +12 -12
- package/fesm2022/ng-nest-ui-find.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-form.mjs +19 -19
- package/fesm2022/ng-nest-ui-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-highlight.mjs +15 -15
- package/fesm2022/ng-nest-ui-highlight.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-i18n.mjs +14 -14
- 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 +22 -22
- 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 +12 -12
- package/fesm2022/ng-nest-ui-input-number.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input.mjs +19 -19
- 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 +18 -18
- package/fesm2022/ng-nest-ui-layout.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-link.mjs +12 -12
- package/fesm2022/ng-nest-ui-link.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-list.mjs +52 -28
- package/fesm2022/ng-nest-ui-list.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-loading.mjs +12 -12
- package/fesm2022/ng-nest-ui-loading.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-menu.mjs +18 -18
- package/fesm2022/ng-nest-ui-message-box.mjs +10 -10
- package/fesm2022/ng-nest-ui-message.mjs +10 -10
- package/fesm2022/ng-nest-ui-notification.mjs +10 -10
- package/fesm2022/ng-nest-ui-outlet.mjs +8 -8
- package/fesm2022/ng-nest-ui-page-header.mjs +11 -11
- package/fesm2022/ng-nest-ui-pagination.mjs +11 -11
- package/fesm2022/ng-nest-ui-pagination.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-pattern.mjs +7 -7
- package/fesm2022/ng-nest-ui-pattern.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-popconfirm.mjs +11 -11
- package/fesm2022/ng-nest-ui-popover.mjs +25 -21
- 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 +11 -11
- package/fesm2022/ng-nest-ui-prompts.mjs +17 -12
- package/fesm2022/ng-nest-ui-prompts.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-radio.mjs +12 -12
- package/fesm2022/ng-nest-ui-radio.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-rate.mjs +12 -12
- package/fesm2022/ng-nest-ui-rate.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-resizable.mjs +11 -11
- package/fesm2022/ng-nest-ui-resizable.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-result.mjs +11 -11
- package/fesm2022/ng-nest-ui-ripple.mjs +11 -11
- package/fesm2022/ng-nest-ui-ripple.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-scrollable.mjs +8 -8
- package/fesm2022/ng-nest-ui-scrollable.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-select.mjs +37 -26
- package/fesm2022/ng-nest-ui-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-sender.mjs +19 -18
- package/fesm2022/ng-nest-ui-sender.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-skeleton.mjs +11 -11
- package/fesm2022/ng-nest-ui-slider-select.mjs +13 -13
- package/fesm2022/ng-nest-ui-slider-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider.mjs +12 -12
- package/fesm2022/ng-nest-ui-slider.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-statistic.mjs +18 -18
- package/fesm2022/ng-nest-ui-steps.mjs +11 -11
- package/fesm2022/ng-nest-ui-suggestion.mjs +110 -0
- package/fesm2022/ng-nest-ui-suggestion.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-switch.mjs +12 -12
- package/fesm2022/ng-nest-ui-switch.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table-view.mjs +60 -60
- package/fesm2022/ng-nest-ui-table-view.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table.mjs +58 -47
- package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tabs.mjs +30 -30
- package/fesm2022/ng-nest-ui-tabs.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tag.mjs +22 -18
- 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-textarea.mjs +12 -12
- package/fesm2022/ng-nest-ui-textarea.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-theme.mjs +11 -11
- package/fesm2022/ng-nest-ui-thought-chain.mjs +121 -0
- package/fesm2022/ng-nest-ui-thought-chain.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-time-ago.mjs +7 -7
- package/fesm2022/ng-nest-ui-time-picker.mjs +31 -29
- 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 +36 -14
- package/fesm2022/ng-nest-ui-timeline.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tooltip.mjs +27 -74
- package/fesm2022/ng-nest-ui-tooltip.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-transfer.mjs +12 -12
- package/fesm2022/ng-nest-ui-transfer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-file.mjs +11 -11
- package/fesm2022/ng-nest-ui-tree-select.mjs +27 -25
- package/fesm2022/ng-nest-ui-tree-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree.mjs +23 -23
- package/fesm2022/ng-nest-ui-tree.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-typography.mjs +11 -11
- package/fesm2022/ng-nest-ui-upload.mjs +221 -24
- package/fesm2022/ng-nest-ui-upload.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-welcome.mjs +11 -11
- package/fesm2022/ng-nest-ui.mjs +4 -0
- package/fesm2022/ng-nest-ui.mjs.map +1 -1
- package/index.d.ts +4 -0
- package/list/index.d.ts +30 -18
- package/package.json +44 -32
- package/popover/index.d.ts +2 -1
- package/prompts/index.d.ts +17 -2
- package/select/index.d.ts +12 -2
- package/sender/index.d.ts +1 -0
- package/style/animates/base.scss +32 -0
- package/style/animates/conect.scss +32 -0
- package/style/animates/fade.scss +32 -0
- package/style/animates/index.scss +11 -0
- package/style/animates/move.scss +129 -0
- package/style/animates/opacity.scss +26 -0
- package/style/animates/slide.scss +113 -0
- package/style/core/index.css +353 -0
- package/style/core/index.css.map +1 -1
- package/style/core/index.scss +1 -6
- package/suggestion/index.d.ts +96 -0
- package/table/index.d.ts +15 -4
- package/table-view/index.d.ts +1 -1
- package/tag/index.d.ts +2 -1
- package/thought-chain/index.d.ts +107 -0
- package/time-picker/index.d.ts +2 -1
- package/timeline/index.d.ts +35 -19
- package/tooltip/index.d.ts +2 -12
- package/tree-select/index.d.ts +2 -1
- package/upload/index.d.ts +39 -2
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, output, Component, ChangeDetectionStrategy, ViewEncapsulation, computed, NgModule } from '@angular/core';
|
|
3
|
+
import { XToBoolean, XToNumber, XPropertyFunction, XIsString, XFileSize, XIsEmpty } from '@ng-nest/ui/core';
|
|
4
|
+
import { XFormControlFunction, XValueAccessor } from '@ng-nest/ui/base-form';
|
|
5
|
+
import { XUploadComponent } from '@ng-nest/ui/upload';
|
|
6
|
+
import * as i1 from '@angular/forms';
|
|
7
|
+
import { FormsModule } from '@angular/forms';
|
|
8
|
+
import { XOutletDirective } from '@ng-nest/ui/outlet';
|
|
9
|
+
import { XIconComponent } from '@ng-nest/ui/icon';
|
|
10
|
+
import { NgClass } from '@angular/common';
|
|
11
|
+
import { XImageComponent } from '@ng-nest/ui/image';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Attachments
|
|
15
|
+
* @selector x-attachments
|
|
16
|
+
* @decorator component
|
|
17
|
+
*/
|
|
18
|
+
const XAttachmentsPrefix = 'x-attachments';
|
|
19
|
+
const X_ATTACHMENTS_CONFIG_NAME = 'attachments';
|
|
20
|
+
/**
|
|
21
|
+
* Attachments Property
|
|
22
|
+
*/
|
|
23
|
+
class XAttachmentsProperty extends XFormControlFunction(X_ATTACHMENTS_CONFIG_NAME) {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(...arguments);
|
|
26
|
+
/**
|
|
27
|
+
* @zh_CN 请求地址
|
|
28
|
+
* @en_US Request address
|
|
29
|
+
*/
|
|
30
|
+
this.action = input(...(ngDevMode ? [undefined, { debugName: "action" }] : []));
|
|
31
|
+
/**
|
|
32
|
+
* @zh_CN 可拖拽上传的区域
|
|
33
|
+
* @en_US Drag and drop upload area
|
|
34
|
+
*/
|
|
35
|
+
this.dropContainer = input(...(ngDevMode ? [undefined, { debugName: "dropContainer" }] : []));
|
|
36
|
+
/**
|
|
37
|
+
* @zh_CN 可拖拽上传的区域的图标
|
|
38
|
+
* @en_US Drag and drop upload area icon
|
|
39
|
+
*/
|
|
40
|
+
this.dropIcon = input(...(ngDevMode ? [undefined, { debugName: "dropIcon" }] : []));
|
|
41
|
+
/**
|
|
42
|
+
* @zh_CN 可拖拽上传的区域的标题
|
|
43
|
+
* @en_US Drag and drop upload area title
|
|
44
|
+
*/
|
|
45
|
+
this.dropTitle = input(...(ngDevMode ? [undefined, { debugName: "dropTitle" }] : []));
|
|
46
|
+
/**
|
|
47
|
+
* @zh_CN 可拖拽上传的区域的描述
|
|
48
|
+
* @en_US Drag and drop upload area description
|
|
49
|
+
*/
|
|
50
|
+
this.dropDescription = input(...(ngDevMode ? [undefined, { debugName: "dropDescription" }] : []));
|
|
51
|
+
/**
|
|
52
|
+
* @zh_CN 直接显示可拖拽上传的区域
|
|
53
|
+
* @en_US Show the drag and drop upload area directly
|
|
54
|
+
*/
|
|
55
|
+
this.showDrop = input(false, ...(ngDevMode ? [{ debugName: "showDrop", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
56
|
+
/**
|
|
57
|
+
* @zh_CN 上传文件类型,与原生的 input file 组件一致
|
|
58
|
+
* @en_US Upload file type, consistent with native input file component
|
|
59
|
+
*/
|
|
60
|
+
this.accept = input(...(ngDevMode ? [undefined, { debugName: "accept" }] : []));
|
|
61
|
+
/**
|
|
62
|
+
* @zh_CN 文件显示类型
|
|
63
|
+
* @en_US File display type
|
|
64
|
+
*/
|
|
65
|
+
this.type = input('list', ...(ngDevMode ? [{ debugName: "type" }] : []));
|
|
66
|
+
/**
|
|
67
|
+
* @zh_CN 图片类型下面加载失败显示
|
|
68
|
+
* @en_US Photo type below loading failed display
|
|
69
|
+
*/
|
|
70
|
+
this.imgFallback = input(...(ngDevMode ? [undefined, { debugName: "imgFallback" }] : []));
|
|
71
|
+
/**
|
|
72
|
+
* @zh_CN 图片剪裁
|
|
73
|
+
* @en_US Picture cropping
|
|
74
|
+
*/
|
|
75
|
+
this.imgCut = input(false, ...(ngDevMode ? [{ debugName: "imgCut", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
76
|
+
/**
|
|
77
|
+
* @zh_CN 多文件上传
|
|
78
|
+
* @en_US Multiple file upload
|
|
79
|
+
*/
|
|
80
|
+
this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
81
|
+
/**
|
|
82
|
+
* @zh_CN 点击下载
|
|
83
|
+
* @en_US click download
|
|
84
|
+
*/
|
|
85
|
+
this.download = input(this.config?.download ?? true, ...(ngDevMode ? [{ debugName: "download", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
86
|
+
/**
|
|
87
|
+
* @zh_CN 多次上传的模式,cover 覆盖现有, add 继续添加
|
|
88
|
+
* @en_US For many upload mode, 'cover' covers the existing, 'add' continue to add
|
|
89
|
+
*/
|
|
90
|
+
this.multipleModel = input(this.config?.multipleModel ?? 'cover', ...(ngDevMode ? [{ debugName: "multipleModel" }] : []));
|
|
91
|
+
/**
|
|
92
|
+
* @zh_CN 文件列表自定义显示模板
|
|
93
|
+
* @en_US File list custom display template
|
|
94
|
+
*/
|
|
95
|
+
this.filesTpl = input(...(ngDevMode ? [undefined, { debugName: "filesTpl" }] : []));
|
|
96
|
+
/**
|
|
97
|
+
* @zh_CN 限制单次上传文件个数,只有开启多文件上传 multiple 时生效,默认不做限制
|
|
98
|
+
* @en_US Limit the number of files uploaded files. Do not restrict the default
|
|
99
|
+
*/
|
|
100
|
+
this.maxLimit = input(-1, ...(ngDevMode ? [{ debugName: "maxLimit", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
101
|
+
/**
|
|
102
|
+
* @zh_CN 设置上传的请求头部
|
|
103
|
+
* @en_US Set the upload request header
|
|
104
|
+
*/
|
|
105
|
+
this.headers = input(...(ngDevMode ? [undefined, { debugName: "headers" }] : []));
|
|
106
|
+
/**
|
|
107
|
+
* @zh_CN 删除按钮的事件
|
|
108
|
+
* @en_US Delete button event
|
|
109
|
+
*/
|
|
110
|
+
this.removeClick = output();
|
|
111
|
+
/**
|
|
112
|
+
* @zh_CN 开始上传事件
|
|
113
|
+
* @en_US Start upload event
|
|
114
|
+
*/
|
|
115
|
+
this.uploadReady = output();
|
|
116
|
+
/**
|
|
117
|
+
* @zh_CN 正在上传事件
|
|
118
|
+
* @en_US Start upload event
|
|
119
|
+
*/
|
|
120
|
+
this.uploading = output();
|
|
121
|
+
/**
|
|
122
|
+
* @zh_CN 上传成功事件
|
|
123
|
+
* @en_US Start upload event
|
|
124
|
+
*/
|
|
125
|
+
this.uploadSuccess = output();
|
|
126
|
+
/**
|
|
127
|
+
* @zh_CN 上传失败事件
|
|
128
|
+
* @en_US Start upload event
|
|
129
|
+
*/
|
|
130
|
+
this.uploadError = output();
|
|
131
|
+
}
|
|
132
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.5", ngImport: i0, type: XAttachmentsProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
133
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.5", type: XAttachmentsProperty, isStandalone: true, selector: "x-attachments-property", inputs: { action: { classPropertyName: "action", publicName: "action", isSignal: true, isRequired: false, transformFunction: null }, dropContainer: { classPropertyName: "dropContainer", publicName: "dropContainer", isSignal: true, isRequired: false, transformFunction: null }, dropIcon: { classPropertyName: "dropIcon", publicName: "dropIcon", isSignal: true, isRequired: false, transformFunction: null }, dropTitle: { classPropertyName: "dropTitle", publicName: "dropTitle", isSignal: true, isRequired: false, transformFunction: null }, dropDescription: { classPropertyName: "dropDescription", publicName: "dropDescription", isSignal: true, isRequired: false, transformFunction: null }, showDrop: { classPropertyName: "showDrop", publicName: "showDrop", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, imgFallback: { classPropertyName: "imgFallback", publicName: "imgFallback", isSignal: true, isRequired: false, transformFunction: null }, imgCut: { classPropertyName: "imgCut", publicName: "imgCut", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, download: { classPropertyName: "download", publicName: "download", isSignal: true, isRequired: false, transformFunction: null }, multipleModel: { classPropertyName: "multipleModel", publicName: "multipleModel", isSignal: true, isRequired: false, transformFunction: null }, filesTpl: { classPropertyName: "filesTpl", publicName: "filesTpl", isSignal: true, isRequired: false, transformFunction: null }, maxLimit: { classPropertyName: "maxLimit", publicName: "maxLimit", isSignal: true, isRequired: false, transformFunction: null }, headers: { classPropertyName: "headers", publicName: "headers", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { removeClick: "removeClick", uploadReady: "uploadReady", uploading: "uploading", uploadSuccess: "uploadSuccess", uploadError: "uploadError" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
134
|
+
}
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.5", ngImport: i0, type: XAttachmentsProperty, decorators: [{
|
|
136
|
+
type: Component,
|
|
137
|
+
args: [{ selector: `${XAttachmentsPrefix}-property`, template: '' }]
|
|
138
|
+
}], propDecorators: { action: [{ type: i0.Input, args: [{ isSignal: true, alias: "action", required: false }] }], dropContainer: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropContainer", required: false }] }], dropIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropIcon", required: false }] }], dropTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropTitle", required: false }] }], dropDescription: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropDescription", required: false }] }], showDrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "showDrop", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], imgFallback: [{ type: i0.Input, args: [{ isSignal: true, alias: "imgFallback", required: false }] }], imgCut: [{ type: i0.Input, args: [{ isSignal: true, alias: "imgCut", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], download: [{ type: i0.Input, args: [{ isSignal: true, alias: "download", required: false }] }], multipleModel: [{ type: i0.Input, args: [{ isSignal: true, alias: "multipleModel", required: false }] }], filesTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "filesTpl", required: false }] }], maxLimit: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLimit", required: false }] }], headers: [{ type: i0.Input, args: [{ isSignal: true, alias: "headers", required: false }] }], removeClick: [{ type: i0.Output, args: ["removeClick"] }], uploadReady: [{ type: i0.Output, args: ["uploadReady"] }], uploading: [{ type: i0.Output, args: ["uploading"] }], uploadSuccess: [{ type: i0.Output, args: ["uploadSuccess"] }], uploadError: [{ type: i0.Output, args: ["uploadError"] }] } });
|
|
139
|
+
/**
|
|
140
|
+
* FileCard
|
|
141
|
+
* @selector x-file-card
|
|
142
|
+
* @decorator component
|
|
143
|
+
*/
|
|
144
|
+
const XFileCardPrefix = 'x-file-card';
|
|
145
|
+
const X_FILE_CARD_CONFIG_NAME = 'fileCard';
|
|
146
|
+
/**
|
|
147
|
+
* FileCard Property
|
|
148
|
+
*/
|
|
149
|
+
class XFileCardProperty extends XPropertyFunction(X_FILE_CARD_CONFIG_NAME) {
|
|
150
|
+
constructor() {
|
|
151
|
+
super(...arguments);
|
|
152
|
+
/**
|
|
153
|
+
* @zh_CN 图标
|
|
154
|
+
* @en_US Icon
|
|
155
|
+
*/
|
|
156
|
+
this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
157
|
+
/**
|
|
158
|
+
* @zh_CN 图标颜色
|
|
159
|
+
* @en_US Icon color
|
|
160
|
+
*/
|
|
161
|
+
this.iconColor = input(...(ngDevMode ? [undefined, { debugName: "iconColor" }] : []));
|
|
162
|
+
/**
|
|
163
|
+
* @zh_CN 文件名
|
|
164
|
+
* @en_US File name
|
|
165
|
+
*/
|
|
166
|
+
this.name = input(...(ngDevMode ? [undefined, { debugName: "name" }] : []));
|
|
167
|
+
/**
|
|
168
|
+
* @zh_CN 文件大小
|
|
169
|
+
* @en_US File size
|
|
170
|
+
*/
|
|
171
|
+
this.size = input(0, ...(ngDevMode ? [{ debugName: "size", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
172
|
+
/**
|
|
173
|
+
* @zh_CN 文件描述
|
|
174
|
+
* @en_US File description
|
|
175
|
+
*/
|
|
176
|
+
this.description = input(...(ngDevMode ? [undefined, { debugName: "description" }] : []));
|
|
177
|
+
/**
|
|
178
|
+
* @zh_CN 文件类型
|
|
179
|
+
* @en_US File type
|
|
180
|
+
*/
|
|
181
|
+
this.type = input('file', ...(ngDevMode ? [{ debugName: "type" }] : []));
|
|
182
|
+
/**
|
|
183
|
+
* @zh_CN 文件/图片链接地址
|
|
184
|
+
* @en_US File/image url
|
|
185
|
+
*/
|
|
186
|
+
this.url = input(...(ngDevMode ? [undefined, { debugName: "url" }] : []));
|
|
187
|
+
/**
|
|
188
|
+
* @zh_CN 形态变体
|
|
189
|
+
* @en_US Bubble variant
|
|
190
|
+
*/
|
|
191
|
+
this.variant = input(this.config?.variant ?? 'outlined', ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
192
|
+
}
|
|
193
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.5", ngImport: i0, type: XFileCardProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
194
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.5", type: XFileCardProperty, isStandalone: true, selector: "x-file-card-property", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconColor: { classPropertyName: "iconColor", publicName: "iconColor", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
195
|
+
}
|
|
196
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.5", ngImport: i0, type: XFileCardProperty, decorators: [{
|
|
197
|
+
type: Component,
|
|
198
|
+
args: [{ selector: `${XFileCardPrefix}-property`, template: '' }]
|
|
199
|
+
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconColor", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], url: [{ type: i0.Input, args: [{ isSignal: true, alias: "url", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }] } });
|
|
200
|
+
|
|
201
|
+
class XAttachmentsComponent extends XAttachmentsProperty {
|
|
202
|
+
valueChange(value) {
|
|
203
|
+
this.onChange && this.onChange(value);
|
|
204
|
+
}
|
|
205
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.5", ngImport: i0, type: XAttachmentsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
206
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.5", type: XAttachmentsComponent, isStandalone: true, selector: "x-attachments", providers: [XValueAccessor(XAttachmentsComponent)], usesInheritance: true, ngImport: i0, template: "<div class=\"x-attachments\">\r\n <x-upload\r\n [(ngModel)]=\"value\"\r\n (ngModelChange)=\"valueChange($event)\"\r\n [action]=\"action()\"\r\n [dropContainer]=\"dropContainer()\"\r\n [dropIcon]=\"dropIcon()\"\r\n [dropTitle]=\"dropTitle()\"\r\n [dropDescription]=\"dropDescription()\"\r\n [showDrop]=\"showDrop()\"\r\n [text]=\"textTpl\"\r\n [accept]=\"accept()\"\r\n [type]=\"type()\"\r\n [imgFallback]=\"imgFallback()\"\r\n [imgCut]=\"imgCut()\"\r\n [multiple]=\"multiple()\"\r\n [download]=\"download()\"\r\n [multipleModel]=\"multipleModel()\"\r\n [filesTpl]=\"filesTpl() ?? innerfilesTpl\"\r\n [maxLimit]=\"maxLimit()\"\r\n [headers]=\"headers()\"\r\n (removeClick)=\"removeClick.emit($event)\"\r\n (uploadReady)=\"uploadReady.emit($event)\"\r\n (uploading)=\"uploading.emit($event)\"\r\n (uploadSuccess)=\"uploadSuccess.emit($event)\"\r\n (uploadError)=\"uploadError.emit($event)\"\r\n ></x-upload>\r\n <ng-template #textTpl>\r\n <ng-content></ng-content>\r\n </ng-template>\r\n <ng-template #innerfilesTpl></ng-template>\r\n</div>\r\n", styles: [".x-attachments{margin:0;padding:0}.x-attachments{width:100%;height:100%}.x-attachments-title{color:var(--x-text-400);margin-bottom:.5rem}.x-attachments-list{display:flex;gap:.5rem;overflow-x:auto;scrollbar-width:none;list-style:none;padding-inline-start:0;margin-block:0;align-items:stretch}.x-attachments-vertical .x-attachments-list{flex-direction:column;align-items:flex-start}.x-attachments-wrap .x-attachments-list{flex-wrap:wrap}.x-attachments-item{flex:none;min-width:10rem;display:inline-flex;gap:.5rem;padding:.5rem 1rem;border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);transition:all var(--x-animation-duration-base);cursor:pointer}.x-attachments-item:hover:not(.x-disabled){background-color:var(--x-background-a200)}.x-attachments-item.x-disabled{cursor:default;background-color:var(--x-background-a300)}.x-attachments-item-content{flex:1;display:flex;flex-direction:column;gap:.25rem}.x-attachments-item-label{margin:0;font-weight:600}.x-attachments-item-description{color:var(--x-text-400)}.x-attachments-item-only-label{font-weight:500}.x-attachments-item-only-description{color:currentColor}x-attachments{display:block;width:100%;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: XUploadComponent, selector: "x-upload" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
207
|
+
}
|
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.5", ngImport: i0, type: XAttachmentsComponent, decorators: [{
|
|
209
|
+
type: Component,
|
|
210
|
+
args: [{ selector: 'x-attachments', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [FormsModule, XUploadComponent], providers: [XValueAccessor(XAttachmentsComponent)], template: "<div class=\"x-attachments\">\r\n <x-upload\r\n [(ngModel)]=\"value\"\r\n (ngModelChange)=\"valueChange($event)\"\r\n [action]=\"action()\"\r\n [dropContainer]=\"dropContainer()\"\r\n [dropIcon]=\"dropIcon()\"\r\n [dropTitle]=\"dropTitle()\"\r\n [dropDescription]=\"dropDescription()\"\r\n [showDrop]=\"showDrop()\"\r\n [text]=\"textTpl\"\r\n [accept]=\"accept()\"\r\n [type]=\"type()\"\r\n [imgFallback]=\"imgFallback()\"\r\n [imgCut]=\"imgCut()\"\r\n [multiple]=\"multiple()\"\r\n [download]=\"download()\"\r\n [multipleModel]=\"multipleModel()\"\r\n [filesTpl]=\"filesTpl() ?? innerfilesTpl\"\r\n [maxLimit]=\"maxLimit()\"\r\n [headers]=\"headers()\"\r\n (removeClick)=\"removeClick.emit($event)\"\r\n (uploadReady)=\"uploadReady.emit($event)\"\r\n (uploading)=\"uploading.emit($event)\"\r\n (uploadSuccess)=\"uploadSuccess.emit($event)\"\r\n (uploadError)=\"uploadError.emit($event)\"\r\n ></x-upload>\r\n <ng-template #textTpl>\r\n <ng-content></ng-content>\r\n </ng-template>\r\n <ng-template #innerfilesTpl></ng-template>\r\n</div>\r\n", styles: [".x-attachments{margin:0;padding:0}.x-attachments{width:100%;height:100%}.x-attachments-title{color:var(--x-text-400);margin-bottom:.5rem}.x-attachments-list{display:flex;gap:.5rem;overflow-x:auto;scrollbar-width:none;list-style:none;padding-inline-start:0;margin-block:0;align-items:stretch}.x-attachments-vertical .x-attachments-list{flex-direction:column;align-items:flex-start}.x-attachments-wrap .x-attachments-list{flex-wrap:wrap}.x-attachments-item{flex:none;min-width:10rem;display:inline-flex;gap:.5rem;padding:.5rem 1rem;border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);transition:all var(--x-animation-duration-base);cursor:pointer}.x-attachments-item:hover:not(.x-disabled){background-color:var(--x-background-a200)}.x-attachments-item.x-disabled{cursor:default;background-color:var(--x-background-a300)}.x-attachments-item-content{flex:1;display:flex;flex-direction:column;gap:.25rem}.x-attachments-item-label{margin:0;font-weight:600}.x-attachments-item-description{color:var(--x-text-400)}.x-attachments-item-only-label{font-weight:500}.x-attachments-item-only-description{color:currentColor}x-attachments{display:block;width:100%;height:100%}\n"] }]
|
|
211
|
+
}] });
|
|
212
|
+
|
|
213
|
+
const defaultIcon = {
|
|
214
|
+
xlsx: 'adf-file-excel',
|
|
215
|
+
xls: 'adf-file-excel',
|
|
216
|
+
docx: 'adf-file-word',
|
|
217
|
+
doc: 'adf-file-word',
|
|
218
|
+
ppt: 'adf-file-ppt',
|
|
219
|
+
pptx: 'adf-file-ppt',
|
|
220
|
+
pdf: 'adf-file-pdf',
|
|
221
|
+
zip: 'adf-file-zip',
|
|
222
|
+
rar: 'adf-file-zip',
|
|
223
|
+
'7z': 'adf-file-zip',
|
|
224
|
+
png: 'adf-file-image',
|
|
225
|
+
jpg: 'adf-file-image',
|
|
226
|
+
jpeg: 'adf-file-image',
|
|
227
|
+
gif: 'adf-file-image',
|
|
228
|
+
bmp: 'adf-file-image',
|
|
229
|
+
md: 'adf-file-markdown',
|
|
230
|
+
txt: 'adf-file-text',
|
|
231
|
+
mp4: 'adf-video-camera',
|
|
232
|
+
avi: 'adf-video-camera',
|
|
233
|
+
mkv: 'adf-video-camera',
|
|
234
|
+
mov: 'adf-video-camera',
|
|
235
|
+
mp3: 'adf-audio',
|
|
236
|
+
wav: 'adf-audio',
|
|
237
|
+
flac: 'adf-audio',
|
|
238
|
+
default: 'adf-file'
|
|
239
|
+
};
|
|
240
|
+
const defaultIconColors = {
|
|
241
|
+
'adf-file-excel': '#217346',
|
|
242
|
+
'adf-file-word': '#2b579a',
|
|
243
|
+
'adf-file-ppt': '#d24726',
|
|
244
|
+
'adf-file-pdf': '#dc3545',
|
|
245
|
+
'adf-file-zip': '#6c757d',
|
|
246
|
+
'adf-file-image': '#ffc107',
|
|
247
|
+
'adf-file-markdown': '#000000',
|
|
248
|
+
'adf-file-text': '#6c757d',
|
|
249
|
+
'adf-video-camera': '#ff6b6b',
|
|
250
|
+
'adf-audio': '#007bff',
|
|
251
|
+
'adf-file': '#6c757d'
|
|
252
|
+
};
|
|
253
|
+
class XFileCardComponent extends XFileCardProperty {
|
|
254
|
+
constructor() {
|
|
255
|
+
super(...arguments);
|
|
256
|
+
this.iconString = computed(() => {
|
|
257
|
+
if (XIsString(this.icon())) {
|
|
258
|
+
return this.icon();
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
return '';
|
|
262
|
+
}
|
|
263
|
+
}, ...(ngDevMode ? [{ debugName: "iconString" }] : []));
|
|
264
|
+
this.descriptionString = computed(() => {
|
|
265
|
+
if (XIsString(this.description())) {
|
|
266
|
+
return this.description();
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
return '';
|
|
270
|
+
}
|
|
271
|
+
}, ...(ngDevMode ? [{ debugName: "descriptionString" }] : []));
|
|
272
|
+
this.sizeTransform = computed(() => {
|
|
273
|
+
if (this.size() && this.size() !== 0) {
|
|
274
|
+
return XFileSize(this.size(), { precision: 0 });
|
|
275
|
+
}
|
|
276
|
+
else {
|
|
277
|
+
return '';
|
|
278
|
+
}
|
|
279
|
+
}, ...(ngDevMode ? [{ debugName: "sizeTransform" }] : []));
|
|
280
|
+
this.nameSubfix = computed(() => {
|
|
281
|
+
const name = this.name();
|
|
282
|
+
const index = name.lastIndexOf('.');
|
|
283
|
+
return index > -1 ? name.substring(index + 1).toLowerCase() : '';
|
|
284
|
+
}, ...(ngDevMode ? [{ debugName: "nameSubfix" }] : []));
|
|
285
|
+
this.defaultIcon = computed(() => {
|
|
286
|
+
console.log(this.nameSubfix());
|
|
287
|
+
if (Object.keys(defaultIcon).includes(this.nameSubfix())) {
|
|
288
|
+
return defaultIcon[this.nameSubfix()];
|
|
289
|
+
}
|
|
290
|
+
else {
|
|
291
|
+
return defaultIcon['default'];
|
|
292
|
+
}
|
|
293
|
+
}, ...(ngDevMode ? [{ debugName: "defaultIcon" }] : []));
|
|
294
|
+
this.defaultColor = computed(() => {
|
|
295
|
+
return defaultIconColors[this.defaultIcon()];
|
|
296
|
+
}, ...(ngDevMode ? [{ debugName: "defaultColor" }] : []));
|
|
297
|
+
this.classMap = computed(() => ({
|
|
298
|
+
[`${XFileCardPrefix}-${this.variant()}`]: !XIsEmpty(this.variant())
|
|
299
|
+
}), ...(ngDevMode ? [{ debugName: "classMap" }] : []));
|
|
300
|
+
this.isImage = computed(() => {
|
|
301
|
+
const imageExtensions = ['png', 'jpg', 'jpeg', 'gif', 'bmp'];
|
|
302
|
+
return imageExtensions.includes(this.nameSubfix().toLowerCase());
|
|
303
|
+
}, ...(ngDevMode ? [{ debugName: "isImage" }] : []));
|
|
304
|
+
}
|
|
305
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.5", ngImport: i0, type: XFileCardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
306
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.5", type: XFileCardComponent, isStandalone: true, selector: "x-file-card", usesInheritance: true, ngImport: i0, template: "<div class=\"x-file-card\" [ngClass]=\"classMap()\" [class.x-file-card-image]=\"isImage() && !!url()\">\r\n @if (isImage() && !!url()) {\r\n <x-image width=\"100px\" height=\"100px\" [src]=\"url()\" [alt]=\"descriptionString()\"></x-image>\r\n } @else {\r\n @if (icon()) {\r\n <div class=\"x-file-card-icon\">\r\n <ng-container *xOutlet=\"icon()\">\r\n <x-icon [type]=\"iconString()\" [style.color]=\"iconColor()\"></x-icon>\r\n </ng-container>\r\n </div>\r\n } @else {\r\n <div class=\"x-file-card-icon\">\r\n <x-icon [type]=\"defaultIcon()\" [style.color]=\"iconColor() ?? defaultColor()\"></x-icon>\r\n </div>\r\n }\r\n <div class=\"x-file-card-content\">\r\n @if (name()) {\r\n <div class=\"x-file-card-name\">\r\n <ng-container *xOutlet=\"name()\">{{ name() }}</ng-container>\r\n </div>\r\n }\r\n @if (size()) {\r\n <div class=\"x-file-card-size\">\r\n {{ sizeTransform() }}\r\n </div>\r\n }\r\n @if (description()) {\r\n <div class=\"x-file-card-description\">\r\n <ng-container *xOutlet=\"description()\">{{ description() }}</ng-container>\r\n </div>\r\n }\r\n </div>\r\n }\r\n</div>\r\n", styles: ["x-file-card{width:100%;height:100%}.x-file-card{margin:0;padding:0}.x-file-card{position:relative;box-sizing:border-box;display:inline-flex;flex-wrap:nowrap;gap:var(--x-padding-small);padding:var(--x-padding-mini) var(--x-padding-medium);align-items:center;border-radius:var(--x-border-radius);word-break:break-word;min-width:14rem}.x-file-card-image{padding:0;min-width:initial}.x-file-card-icon x-icon{font-size:2.5rem}.x-file-card-outlined{border:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-file-card-filled{background-color:var(--x-background-a200)}.x-file-card-shadow{box-shadow:var(--x-box-shadow)}.x-file-card-size,.x-file-card-description{color:var(--x-text-400)}\n"], dependencies: [{ kind: "directive", type: XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }, { kind: "component", type: XImageComponent, selector: "x-image" }, { kind: "component", type: XIconComponent, selector: "x-icon" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
307
|
+
}
|
|
308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.5", ngImport: i0, type: XFileCardComponent, decorators: [{
|
|
309
|
+
type: Component,
|
|
310
|
+
args: [{ selector: 'x-file-card', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [XOutletDirective, XImageComponent, XIconComponent, NgClass], template: "<div class=\"x-file-card\" [ngClass]=\"classMap()\" [class.x-file-card-image]=\"isImage() && !!url()\">\r\n @if (isImage() && !!url()) {\r\n <x-image width=\"100px\" height=\"100px\" [src]=\"url()\" [alt]=\"descriptionString()\"></x-image>\r\n } @else {\r\n @if (icon()) {\r\n <div class=\"x-file-card-icon\">\r\n <ng-container *xOutlet=\"icon()\">\r\n <x-icon [type]=\"iconString()\" [style.color]=\"iconColor()\"></x-icon>\r\n </ng-container>\r\n </div>\r\n } @else {\r\n <div class=\"x-file-card-icon\">\r\n <x-icon [type]=\"defaultIcon()\" [style.color]=\"iconColor() ?? defaultColor()\"></x-icon>\r\n </div>\r\n }\r\n <div class=\"x-file-card-content\">\r\n @if (name()) {\r\n <div class=\"x-file-card-name\">\r\n <ng-container *xOutlet=\"name()\">{{ name() }}</ng-container>\r\n </div>\r\n }\r\n @if (size()) {\r\n <div class=\"x-file-card-size\">\r\n {{ sizeTransform() }}\r\n </div>\r\n }\r\n @if (description()) {\r\n <div class=\"x-file-card-description\">\r\n <ng-container *xOutlet=\"description()\">{{ description() }}</ng-container>\r\n </div>\r\n }\r\n </div>\r\n }\r\n</div>\r\n", styles: ["x-file-card{width:100%;height:100%}.x-file-card{margin:0;padding:0}.x-file-card{position:relative;box-sizing:border-box;display:inline-flex;flex-wrap:nowrap;gap:var(--x-padding-small);padding:var(--x-padding-mini) var(--x-padding-medium);align-items:center;border-radius:var(--x-border-radius);word-break:break-word;min-width:14rem}.x-file-card-image{padding:0;min-width:initial}.x-file-card-icon x-icon{font-size:2.5rem}.x-file-card-outlined{border:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-file-card-filled{background-color:var(--x-background-a200)}.x-file-card-shadow{box-shadow:var(--x-box-shadow)}.x-file-card-size,.x-file-card-description{color:var(--x-text-400)}\n"] }]
|
|
311
|
+
}] });
|
|
312
|
+
|
|
313
|
+
class XAttachmentsModule {
|
|
314
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.5", ngImport: i0, type: XAttachmentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
315
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.5", ngImport: i0, type: XAttachmentsModule, imports: [XAttachmentsComponent, XFileCardComponent], exports: [XAttachmentsComponent, XFileCardComponent] }); }
|
|
316
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.5", ngImport: i0, type: XAttachmentsModule, imports: [XAttachmentsComponent, XFileCardComponent] }); }
|
|
317
|
+
}
|
|
318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.5", ngImport: i0, type: XAttachmentsModule, decorators: [{
|
|
319
|
+
type: NgModule,
|
|
320
|
+
args: [{
|
|
321
|
+
exports: [XAttachmentsComponent, XFileCardComponent],
|
|
322
|
+
imports: [XAttachmentsComponent, XFileCardComponent]
|
|
323
|
+
}]
|
|
324
|
+
}] });
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Generated bundle index. Do not edit.
|
|
328
|
+
*/
|
|
329
|
+
|
|
330
|
+
export { XAttachmentsComponent, XAttachmentsModule, XAttachmentsPrefix, XAttachmentsProperty, XFileCardComponent, XFileCardPrefix, XFileCardProperty, X_FILE_CARD_CONFIG_NAME };
|
|
331
|
+
//# sourceMappingURL=ng-nest-ui-attachments.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-nest-ui-attachments.mjs","sources":["../../../../lib/ng-nest/ui/attachments/attachments.property.ts","../../../../lib/ng-nest/ui/attachments/attachments.component.ts","../../../../lib/ng-nest/ui/attachments/attachments.component.html","../../../../lib/ng-nest/ui/attachments/file-card.component.ts","../../../../lib/ng-nest/ui/attachments/file-card.component.html","../../../../lib/ng-nest/ui/attachments/attachments.module.ts","../../../../lib/ng-nest/ui/attachments/ng-nest-ui-attachments.ts"],"sourcesContent":["import { Component, ElementRef, input, output } from '@angular/core';\r\nimport { XBoolean, XNumber, XPropertyFunction, XTemplate, XToBoolean, XToNumber } from '@ng-nest/ui/core';\r\nimport { XUploadMultipleModel, XUploadNode, XUploadType } from '@ng-nest/ui/upload';\r\nimport { XFormControlFunction } from '@ng-nest/ui/base-form';\r\n\r\n/**\r\n * Attachments\r\n * @selector x-attachments\r\n * @decorator component\r\n */\r\nexport const XAttachmentsPrefix = 'x-attachments';\r\nconst X_ATTACHMENTS_CONFIG_NAME = 'attachments';\r\n\r\n/**\r\n * Attachments Property\r\n */\r\n@Component({ selector: `${XAttachmentsPrefix}-property`, template: '' })\r\nexport class XAttachmentsProperty extends XFormControlFunction(X_ATTACHMENTS_CONFIG_NAME) {\r\n /**\r\n * @zh_CN 请求地址\r\n * @en_US Request address\r\n */\r\n readonly action = input<string>();\r\n /**\r\n * @zh_CN 可拖拽上传的区域\r\n * @en_US Drag and drop upload area\r\n */\r\n readonly dropContainer = input<ElementRef | HTMLElement>();\r\n /**\r\n * @zh_CN 可拖拽上传的区域的图标\r\n * @en_US Drag and drop upload area icon\r\n */\r\n readonly dropIcon = input<XTemplate>();\r\n /**\r\n * @zh_CN 可拖拽上传的区域的标题\r\n * @en_US Drag and drop upload area title\r\n */\r\n readonly dropTitle = input<XTemplate>();\r\n /**\r\n * @zh_CN 可拖拽上传的区域的描述\r\n * @en_US Drag and drop upload area description\r\n */\r\n readonly dropDescription = input<XTemplate>();\r\n /**\r\n * @zh_CN 直接显示可拖拽上传的区域\r\n * @en_US Show the drag and drop upload area directly\r\n */\r\n readonly showDrop = input<boolean, XBoolean>(false, { transform: XToBoolean });\r\n /**\r\n * @zh_CN 上传文件类型,与原生的 input file 组件一致\r\n * @en_US Upload file type, consistent with native input file component\r\n */\r\n readonly accept = input<string>();\r\n /**\r\n * @zh_CN 文件显示类型\r\n * @en_US File display type\r\n */\r\n readonly type = input<XUploadType>('list');\r\n /**\r\n * @zh_CN 图片类型下面加载失败显示\r\n * @en_US Photo type below loading failed display\r\n */\r\n readonly imgFallback = input<string>();\r\n /**\r\n * @zh_CN 图片剪裁\r\n * @en_US Picture cropping\r\n */\r\n readonly imgCut = input<boolean, XBoolean>(false, { transform: XToBoolean });\r\n /**\r\n * @zh_CN 多文件上传\r\n * @en_US Multiple file upload\r\n */\r\n readonly multiple = input<boolean, XBoolean>(false, { transform: XToBoolean });\r\n /**\r\n * @zh_CN 点击下载\r\n * @en_US click download\r\n */\r\n readonly download = input<boolean, XBoolean>(this.config?.download ?? true, { transform: XToBoolean });\r\n /**\r\n * @zh_CN 多次上传的模式,cover 覆盖现有, add 继续添加\r\n * @en_US For many upload mode, 'cover' covers the existing, 'add' continue to add\r\n */\r\n readonly multipleModel = input<XUploadMultipleModel>(this.config?.multipleModel ?? 'cover');\r\n /**\r\n * @zh_CN 文件列表自定义显示模板\r\n * @en_US File list custom display template\r\n */\r\n readonly filesTpl = input<XTemplate>();\r\n /**\r\n * @zh_CN 限制单次上传文件个数,只有开启多文件上传 multiple 时生效,默认不做限制\r\n * @en_US Limit the number of files uploaded files. Do not restrict the default\r\n */\r\n readonly maxLimit = input<number, XNumber>(-1, { transform: XToNumber });\r\n /**\r\n * @zh_CN 设置上传的请求头部\r\n * @en_US Set the upload request header\r\n */\r\n readonly headers = input<{ [key: string]: any }>();\r\n /**\r\n * @zh_CN 删除按钮的事件\r\n * @en_US Delete button event\r\n */\r\n readonly removeClick = output<{ file: XUploadNode; index: number }>();\r\n /**\r\n * @zh_CN 开始上传事件\r\n * @en_US Start upload event\r\n */\r\n readonly uploadReady = output<XUploadNode>();\r\n /**\r\n * @zh_CN 正在上传事件\r\n * @en_US Start upload event\r\n */\r\n readonly uploading = output<XUploadNode>();\r\n /**\r\n * @zh_CN 上传成功事件\r\n * @en_US Start upload event\r\n */\r\n readonly uploadSuccess = output<XUploadNode>();\r\n /**\r\n * @zh_CN 上传失败事件\r\n * @en_US Start upload event\r\n */\r\n readonly uploadError = output<XUploadNode>();\r\n}\r\n\r\n/**\r\n * FileCard\r\n * @selector x-file-card\r\n * @decorator component\r\n */\r\nexport const XFileCardPrefix = 'x-file-card';\r\nexport const X_FILE_CARD_CONFIG_NAME = 'fileCard';\r\n\r\n/**\r\n * FileCard Property\r\n */\r\n@Component({ selector: `${XFileCardPrefix}-property`, template: '' })\r\nexport class XFileCardProperty extends XPropertyFunction(X_FILE_CARD_CONFIG_NAME) {\r\n /**\r\n * @zh_CN 图标\r\n * @en_US Icon\r\n */\r\n readonly icon = input<XTemplate>();\r\n /**\r\n * @zh_CN 图标颜色\r\n * @en_US Icon color\r\n */\r\n readonly iconColor = input<string>();\r\n /**\r\n * @zh_CN 文件名\r\n * @en_US File name\r\n */\r\n readonly name = input<XTemplate>();\r\n /**\r\n * @zh_CN 文件大小\r\n * @en_US File size\r\n */\r\n readonly size = input<number, XNumber>(0, { transform: XToNumber });\r\n /**\r\n * @zh_CN 文件描述\r\n * @en_US File description\r\n */\r\n readonly description = input<XTemplate>();\r\n /**\r\n * @zh_CN 文件类型\r\n * @en_US File type\r\n */\r\n readonly type = input<XFileCard>('file');\r\n /**\r\n * @zh_CN 文件/图片链接地址\r\n * @en_US File/image url\r\n */\r\n readonly url = input<string>();\r\n /**\r\n * @zh_CN 形态变体\r\n * @en_US Bubble variant\r\n */\r\n readonly variant = input<XFileCardVariant>(this.config?.variant ?? 'outlined');\r\n}\r\n\r\n/**\r\n * @zh_CN 文件卡片类型\r\n * @en_US File card type\r\n */\r\nexport type XFileCard = 'file' | 'img';\r\n\r\n/**\r\n * @zh_CN 形态变体\r\n * @en_US Bubble variant\r\n */\r\nexport type XFileCardVariant = 'outlined' | 'filled' | 'shadow' | 'borderless';\r\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\r\nimport { XAttachmentsProperty } from './attachments.property';\r\nimport { XUploadComponent } from '@ng-nest/ui/upload';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { XValueAccessor } from '@ng-nest/ui/base-form';\r\n\r\n@Component({\r\n selector: 'x-attachments',\r\n templateUrl: './attachments.component.html',\r\n styleUrls: ['./attachments.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [FormsModule, XUploadComponent],\r\n providers: [XValueAccessor(XAttachmentsComponent)]\r\n})\r\nexport class XAttachmentsComponent extends XAttachmentsProperty {\r\n valueChange(value: any) {\r\n this.onChange && this.onChange(value);\r\n }\r\n}\r\n","<div class=\"x-attachments\">\r\n <x-upload\r\n [(ngModel)]=\"value\"\r\n (ngModelChange)=\"valueChange($event)\"\r\n [action]=\"action()\"\r\n [dropContainer]=\"dropContainer()\"\r\n [dropIcon]=\"dropIcon()\"\r\n [dropTitle]=\"dropTitle()\"\r\n [dropDescription]=\"dropDescription()\"\r\n [showDrop]=\"showDrop()\"\r\n [text]=\"textTpl\"\r\n [accept]=\"accept()\"\r\n [type]=\"type()\"\r\n [imgFallback]=\"imgFallback()\"\r\n [imgCut]=\"imgCut()\"\r\n [multiple]=\"multiple()\"\r\n [download]=\"download()\"\r\n [multipleModel]=\"multipleModel()\"\r\n [filesTpl]=\"filesTpl() ?? innerfilesTpl\"\r\n [maxLimit]=\"maxLimit()\"\r\n [headers]=\"headers()\"\r\n (removeClick)=\"removeClick.emit($event)\"\r\n (uploadReady)=\"uploadReady.emit($event)\"\r\n (uploading)=\"uploading.emit($event)\"\r\n (uploadSuccess)=\"uploadSuccess.emit($event)\"\r\n (uploadError)=\"uploadError.emit($event)\"\r\n ></x-upload>\r\n <ng-template #textTpl>\r\n <ng-content></ng-content>\r\n </ng-template>\r\n <ng-template #innerfilesTpl></ng-template>\r\n</div>\r\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed } from '@angular/core';\r\nimport { XOutletDirective } from '@ng-nest/ui/outlet';\r\nimport { XIconComponent } from '@ng-nest/ui/icon';\r\nimport { XFileCardPrefix, XFileCardProperty } from './attachments.property';\r\nimport { XFileSize, XIsEmpty, XIsString } from '@ng-nest/ui/core';\r\nimport { NgClass } from '@angular/common';\r\nimport { XImageComponent } from '@ng-nest/ui/image';\r\n\r\nconst defaultIcon: { [key: string]: string } = {\r\n xlsx: 'adf-file-excel',\r\n xls: 'adf-file-excel',\r\n docx: 'adf-file-word',\r\n doc: 'adf-file-word',\r\n ppt: 'adf-file-ppt',\r\n pptx: 'adf-file-ppt',\r\n pdf: 'adf-file-pdf',\r\n zip: 'adf-file-zip',\r\n rar: 'adf-file-zip',\r\n '7z': 'adf-file-zip',\r\n png: 'adf-file-image',\r\n jpg: 'adf-file-image',\r\n jpeg: 'adf-file-image',\r\n gif: 'adf-file-image',\r\n bmp: 'adf-file-image',\r\n md: 'adf-file-markdown',\r\n txt: 'adf-file-text',\r\n mp4: 'adf-video-camera',\r\n avi: 'adf-video-camera',\r\n mkv: 'adf-video-camera',\r\n mov: 'adf-video-camera',\r\n mp3: 'adf-audio',\r\n wav: 'adf-audio',\r\n flac: 'adf-audio',\r\n default: 'adf-file'\r\n};\r\n\r\nconst defaultIconColors: { [key: string]: string } = {\r\n 'adf-file-excel': '#217346',\r\n 'adf-file-word': '#2b579a',\r\n 'adf-file-ppt': '#d24726',\r\n 'adf-file-pdf': '#dc3545',\r\n 'adf-file-zip': '#6c757d',\r\n 'adf-file-image': '#ffc107',\r\n 'adf-file-markdown': '#000000',\r\n 'adf-file-text': '#6c757d',\r\n 'adf-video-camera': '#ff6b6b',\r\n 'adf-audio': '#007bff',\r\n 'adf-file': '#6c757d'\r\n};\r\n\r\n@Component({\r\n selector: 'x-file-card',\r\n templateUrl: './file-card.component.html',\r\n styleUrl: './file-card.component.scss',\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [XOutletDirective, XImageComponent, XIconComponent, NgClass]\r\n})\r\nexport class XFileCardComponent extends XFileCardProperty {\r\n iconString = computed(() => {\r\n if (XIsString(this.icon())) {\r\n return this.icon() as string;\r\n } else {\r\n return '';\r\n }\r\n });\r\n descriptionString = computed(() => {\r\n if (XIsString(this.description())) {\r\n return this.description() as string;\r\n } else {\r\n return '';\r\n }\r\n });\r\n sizeTransform = computed(() => {\r\n if (this.size() && this.size() !== 0) {\r\n return XFileSize(this.size(), { precision: 0 });\r\n } else {\r\n return '';\r\n }\r\n });\r\n nameSubfix = computed(() => {\r\n const name = this.name() as string;\r\n const index = name.lastIndexOf('.');\r\n return index > -1 ? name.substring(index + 1).toLowerCase() : '';\r\n });\r\n defaultIcon = computed(() => {\r\n console.log(this.nameSubfix());\r\n if (Object.keys(defaultIcon).includes(this.nameSubfix())) {\r\n return defaultIcon[this.nameSubfix()];\r\n } else {\r\n return defaultIcon['default'];\r\n }\r\n });\r\n defaultColor = computed(() => {\r\n return defaultIconColors[this.defaultIcon()];\r\n });\r\n classMap = computed(() => ({\r\n [`${XFileCardPrefix}-${this.variant()}`]: !XIsEmpty(this.variant())\r\n }));\r\n isImage = computed(() => {\r\n const imageExtensions = ['png', 'jpg', 'jpeg', 'gif', 'bmp'];\r\n return imageExtensions.includes(this.nameSubfix().toLowerCase());\r\n });\r\n}\r\n","<div class=\"x-file-card\" [ngClass]=\"classMap()\" [class.x-file-card-image]=\"isImage() && !!url()\">\r\n @if (isImage() && !!url()) {\r\n <x-image width=\"100px\" height=\"100px\" [src]=\"url()\" [alt]=\"descriptionString()\"></x-image>\r\n } @else {\r\n @if (icon()) {\r\n <div class=\"x-file-card-icon\">\r\n <ng-container *xOutlet=\"icon()\">\r\n <x-icon [type]=\"iconString()\" [style.color]=\"iconColor()\"></x-icon>\r\n </ng-container>\r\n </div>\r\n } @else {\r\n <div class=\"x-file-card-icon\">\r\n <x-icon [type]=\"defaultIcon()\" [style.color]=\"iconColor() ?? defaultColor()\"></x-icon>\r\n </div>\r\n }\r\n <div class=\"x-file-card-content\">\r\n @if (name()) {\r\n <div class=\"x-file-card-name\">\r\n <ng-container *xOutlet=\"name()\">{{ name() }}</ng-container>\r\n </div>\r\n }\r\n @if (size()) {\r\n <div class=\"x-file-card-size\">\r\n {{ sizeTransform() }}\r\n </div>\r\n }\r\n @if (description()) {\r\n <div class=\"x-file-card-description\">\r\n <ng-container *xOutlet=\"description()\">{{ description() }}</ng-container>\r\n </div>\r\n }\r\n </div>\r\n }\r\n</div>\r\n","import { NgModule } from '@angular/core';\r\nimport { XAttachmentsComponent } from './attachments.component';\r\nimport { XFileCardComponent } from './file-card.component';\r\n\r\n@NgModule({\r\n exports: [XAttachmentsComponent, XFileCardComponent],\r\n imports: [XAttachmentsComponent, XFileCardComponent]\r\n})\r\nexport class XAttachmentsModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAKA;;;;AAIG;AACI,MAAM,kBAAkB,GAAG;AAClC,MAAM,yBAAyB,GAAG,aAAa;AAE/C;;AAEG;MAEU,oBAAqB,SAAQ,oBAAoB,CAAC,yBAAyB,CAAC,CAAA;AADzF,IAAA,WAAA,GAAA;;AAEE;;;AAGG;QACM,IAAA,CAAA,MAAM,GAAG,KA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