@type-dom/ui 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -44
- package/package.json +1 -1
- package/src/components/basic/td-button/td-button.abstract.js +2 -2
- package/src/components/basic/td-button/td-button.class.js +1 -1
- package/src/components/basic/td-container/td-aside/td-aside.class.js +1 -1
- package/src/components/basic/td-container/td-container.class.js +1 -1
- package/src/components/basic/td-container/td-footer/td-footer.class.js +2 -2
- package/src/components/basic/td-container/td-header/td-header.class.js +6 -5
- package/src/components/basic/td-container/td-main/td-main.class.js +1 -1
- package/src/components/basic/td-icon/td-icon.class.js +12 -12
- package/src/components/basic/td-layout/td-col/td-col.class.js +1 -1
- package/src/components/basic/td-layout/td-row/td-row.class.js +1 -1
- package/src/components/basic/td-scrollbar/bar/bar.class.js +1 -1
- package/src/components/basic/td-scrollbar/bar/bar.interface.d.ts +1 -1
- package/src/components/basic/td-scrollbar/td-scrollbar.class.js +1 -1
- package/src/components/basic/td-scrollbar/thumb/thumb.class.js +1 -1
- package/src/components/basic/td-scrollbar/thumb/thumb.interface.d.ts +1 -1
- package/src/components/basic/td-space/td-space.class.js +1 -1
- package/src/components/basic/td-text/td-text.class.js +1 -1
- package/src/components/data/td-avatar/td-avatar.class.js +1 -1
- package/src/components/data/td-badge/td-badge.class.js +1 -1
- package/src/components/data/td-card/td-card.class.js +1 -1
- package/src/components/data/td-check-tag/td-check-tag.class.js +1 -1
- package/src/components/data/td-collapse/td-collapse.class.js +2 -4
- package/src/components/data/td-collapse-item/td-collapse-item.class.js +1 -1
- package/src/components/data/td-collapse-transition/td-collapse-transition.class.js +1 -1
- package/src/components/data/td-count-down/td-count-down.class.js +1 -3
- package/src/components/data/td-descriptions/td-descriptions-row.d.ts +1 -1
- package/src/components/data/td-descriptions/td-descriptions-row.js +1 -1
- package/src/components/data/td-descriptions/td-descritions-cell.js +1 -1
- package/src/components/data/td-descriptions-item/td-descriptions-item.class.js +2 -4
- package/src/components/data/td-empty/img-empty.class.js +1 -1
- package/src/components/data/td-empty/td-empty.class.js +1 -1
- package/src/components/data/td-image/td-image.class.js +1 -1
- package/src/components/data/td-image-viewer/td-image-viewer.class.js +1 -1
- package/src/components/data/td-result/td-result.class.js +4 -8
- package/src/components/data/td-segmented/td-segmented.class.js +1 -1
- package/src/components/data/td-statistic/td-statistic.abstract.d.ts +1 -1
- package/src/components/data/td-statistic/td-statistic.abstract.js +1 -1
- package/src/components/data/td-tag/td-tag.class.js +1 -1
- package/src/components/feedback/dialog/dialog.class.js +1 -1
- package/src/components/feedback/message-box/message-box.js +1 -1
- package/src/components/feedback/td-alert/td-alert.class.js +1 -1
- package/src/components/feedback/td-dialog/td-dialog.class.d.ts +3 -0
- package/src/components/feedback/td-dialog/td-dialog.class.js +18 -1
- package/src/components/feedback/td-dialog/td-dialog.interface.d.ts +19 -0
- package/src/components/feedback/td-dialog/td-dialog.interface.js +12 -0
- package/src/components/feedback/td-dialog-content/td-dialog-content.class.js +1 -1
- package/src/components/feedback/td-drawer/td-drawer.class.js +1 -1
- package/src/components/feedback/td-drawer/td-drawer.interface.d.ts +5 -5
- package/src/components/feedback/td-focus-trap/td-focus-trap.class.js +1 -1
- package/src/components/feedback/td-focus-trap/td-focus-trap.interface.d.ts +5 -5
- package/src/components/feedback/td-loading/td-loading.class.js +1 -1
- package/src/components/feedback/td-message/td-message.class.js +2 -2
- package/src/components/feedback/td-message-box/td-message-box.class.js +2 -2
- package/src/components/feedback/td-notification/td-notification.class.js +2 -2
- package/src/components/feedback/td-overlay/td-overlay.class.js +1 -1
- package/src/components/feedback/td-popper/arrow/arrow.class.js +1 -1
- package/src/components/feedback/td-popper/content/content.class.js +1 -1
- package/src/components/feedback/td-popper/td-popper.class.js +1 -1
- package/src/components/feedback/td-popper/trigger/trigger.class.js +1 -1
- package/src/components/feedback/td-tooltip/content/content.class.js +1 -1
- package/src/components/feedback/td-tooltip/td-tooltip.class.js +1 -1
- package/src/components/feedback/td-tooltip/trigger/trigger.class.js +1 -1
- package/src/components/form/radio-group/radio-group.class.js +1 -1
- package/src/components/form/radio-group/radio-group.interface.d.ts +2 -2
- package/src/components/form/radio-group/radio-option/radio-option.class.js +1 -1
- package/src/components/form/td-checkbox/td-checkbox.class.js +1 -1
- package/src/components/form/td-checkbox/td-checkbox.style.js +2 -2
- package/src/components/form/td-checkbox-button/td-checkbox-button.class.js +1 -1
- package/src/components/form/td-checkbox-group/td-checkbox-group.class.js +1 -1
- package/src/components/form/td-form/td-form.class.js +1 -1
- package/src/components/form/td-form-item/td-form-item.class.js +1 -1
- package/src/components/form/td-input/td-input.class.js +1 -1
- package/src/components/form/td-input/widget/td-input-wrapper.class.js +1 -1
- package/src/components/form/td-input/widget/td-textarea-wrapper.js +1 -1
- package/src/components/form/td-input/widget/utils.js +8 -8
- package/src/components/form/td-option/td-option.class.js +1 -1
- package/src/components/form/td-option/td-option.interface.d.ts +1 -1
- package/src/components/form/td-option-group/td-option-group.class.js +1 -1
- package/src/components/form/td-radio/td-radio.class.js +1 -1
- package/src/components/form/td-radio-button/td-radio-button.class.js +1 -1
- package/src/components/form/td-radio-group/td-radio-group.class.js +1 -1
- package/src/components/form/td-select/dropdown/dropdown.class.js +1 -1
- package/src/components/form/td-select/td-select.class.js +1 -1
- package/src/components/form/td-switch/td-switch.class.js +1 -1
- package/src/components/form/td-switch/widget/td-switch-core.js +1 -1
- package/src/components/form/td-switch/widget/td-switch-left.js +1 -1
- package/src/components/form/td-switch/widget/td-switch-right.js +1 -1
- package/src/components/navigation/td-affix/td-affix.class.js +1 -1
- package/src/components/navigation/td-anchor/td-anchor-link/td-anchor-link.class.js +1 -1
- package/src/components/navigation/td-anchor/td-anchor.class.d.ts +1 -1
- package/src/components/navigation/td-anchor/td-anchor.class.js +1 -1
- package/src/components/navigation/td-backtop/td-backtop.class.js +1 -1
- package/src/components/navigation/td-breadcrumb/td-breadcrumb.class.js +2 -4
- package/src/components/navigation/td-breadcrumb-item/td-breadcrumb-item.class.js +1 -1
- package/src/components/navigation/td-menu/td-menu.class.js +1 -1
- package/src/components/navigation/td-tabs/td-tab-bar.class.d.ts +1 -1
- package/src/components/navigation/td-tabs/td-tab-bar.class.js +6 -6
- package/src/components/navigation/td-tabs/td-tab-bar.interface.d.ts +2 -2
- package/src/components/navigation/td-tabs/td-tab-nav.class.d.ts +2 -2
- package/src/components/navigation/td-tabs/td-tab-nav.class.js +12 -12
- package/src/components/navigation/td-tabs/td-tab-nav.interface.d.ts +1 -1
- package/src/components/navigation/td-tabs/td-tab-pane.class.js +1 -1
- package/src/components/navigation/td-tabs/td-tabs.class.js +1 -1
- package/src/components/others/td-divider/td-divider.class.js +1 -1
package/README.md
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
## 项目说明
|
|
2
|
-
|
|
3
|
-
> 这是一个基于自建前端框架TypeDom创建的ui组件库。
|
|
4
|
-
|
|
5
|
-
## 安装
|
|
6
|
-
|
|
7
|
-
> npm install @type-dom/ui
|
|
8
|
-
|
|
9
|
-
## 框架介绍
|
|
10
|
-
|
|
11
|
-
1、技术栈
|
|
12
|
-
– type-dom框架
|
|
13
|
-
– webpack
|
|
14
|
-
– typescript
|
|
15
|
-
– 抽象类
|
|
16
|
-
– 实体类
|
|
17
|
-
2、项目结构
|
|
18
|
-
– src
|
|
19
|
-
– lib
|
|
20
|
-
- basic
|
|
21
|
-
- data
|
|
22
|
-
- feedback
|
|
23
|
-
- form
|
|
24
|
-
- navigation
|
|
25
|
-
- other
|
|
26
|
-
- styles
|
|
27
|
-
–
|
|
28
|
-
- test
|
|
29
|
-
|
|
30
|
-
# type-dom 自定义组件
|
|
31
|
-
|
|
32
|
-
## basic 基础组件
|
|
33
|
-
|
|
34
|
-
### button 按钮组件
|
|
35
|
-
|
|
36
|
-
## data 数据组件
|
|
37
|
-
|
|
38
|
-
## form 表单组件
|
|
39
|
-
|
|
40
|
-
## feedback 反馈组件
|
|
41
|
-
|
|
42
|
-
## navigation 导航组件
|
|
43
|
-
|
|
44
|
-
## other 其它组件
|
|
1
|
+
## 项目说明
|
|
2
|
+
|
|
3
|
+
> 这是一个基于自建前端框架TypeDom创建的ui组件库。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
> npm install @type-dom/ui
|
|
8
|
+
|
|
9
|
+
## 框架介绍
|
|
10
|
+
|
|
11
|
+
1、技术栈
|
|
12
|
+
– type-dom框架
|
|
13
|
+
– webpack
|
|
14
|
+
– typescript
|
|
15
|
+
– 抽象类
|
|
16
|
+
– 实体类
|
|
17
|
+
2、项目结构
|
|
18
|
+
– src
|
|
19
|
+
– lib
|
|
20
|
+
- basic
|
|
21
|
+
- data
|
|
22
|
+
- feedback
|
|
23
|
+
- form
|
|
24
|
+
- navigation
|
|
25
|
+
- other
|
|
26
|
+
- styles
|
|
27
|
+
–
|
|
28
|
+
- test
|
|
29
|
+
|
|
30
|
+
# type-dom 自定义组件
|
|
31
|
+
|
|
32
|
+
## basic 基础组件
|
|
33
|
+
|
|
34
|
+
### button 按钮组件
|
|
35
|
+
|
|
36
|
+
## data 数据组件
|
|
37
|
+
|
|
38
|
+
## form 表单组件
|
|
39
|
+
|
|
40
|
+
## feedback 反馈组件
|
|
41
|
+
|
|
42
|
+
## navigation 导航组件
|
|
43
|
+
|
|
44
|
+
## other 其它组件
|
package/package.json
CHANGED
|
@@ -10,8 +10,8 @@ const td_icon_class_1 = require("../td-icon/td-icon.class");
|
|
|
10
10
|
const td_button_style_1 = require("./td-button.style");
|
|
11
11
|
// import '../../styles/style.css';
|
|
12
12
|
class TdButtonAbstract extends ui_abstract_1.UI {
|
|
13
|
-
constructor(params) {
|
|
14
|
-
super(params,
|
|
13
|
+
constructor(params = {}) {
|
|
14
|
+
super(params, params.tag || 'button');
|
|
15
15
|
this.ctrl.addAttrObj({
|
|
16
16
|
type: 'button' // 默认
|
|
17
17
|
});
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TdButton = void 0;
|
|
4
4
|
const td_button_abstract_1 = require("./td-button.abstract");
|
|
5
5
|
class TdButton extends td_button_abstract_1.TdButtonAbstract {
|
|
6
|
-
constructor(params) {
|
|
6
|
+
constructor(params = {}) {
|
|
7
7
|
super(params);
|
|
8
8
|
this.className = 'TdButton';
|
|
9
9
|
}
|
|
@@ -4,7 +4,7 @@ exports.TdAside = void 0;
|
|
|
4
4
|
const utils_1 = require("@type-dom/utils");
|
|
5
5
|
const ui_abstract_1 = require("../../../../ui/ui.abstract");
|
|
6
6
|
class TdAside extends ui_abstract_1.UI {
|
|
7
|
-
constructor(params) {
|
|
7
|
+
constructor(params = {}) {
|
|
8
8
|
super(params);
|
|
9
9
|
this.className = 'TdAside';
|
|
10
10
|
this.ctrl.addStyleObj({
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TdContainer = void 0;
|
|
4
4
|
const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
5
5
|
class TdContainer extends ui_abstract_1.UI {
|
|
6
|
-
constructor(params) {
|
|
6
|
+
constructor(params = {}) {
|
|
7
7
|
super(params, 'section');
|
|
8
8
|
this.className = 'TdContainer';
|
|
9
9
|
this.ctrl.addAttrName('td-container');
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TdFooter = void 0;
|
|
4
4
|
const ui_abstract_1 = require("../../../../ui/ui.abstract");
|
|
5
5
|
class TdFooter extends ui_abstract_1.UI {
|
|
6
|
-
constructor(params) {
|
|
6
|
+
constructor(params = {}) {
|
|
7
7
|
super(params, 'footer');
|
|
8
8
|
this.className = 'TdFooter';
|
|
9
9
|
this.ctrl.addStyleObj({
|
|
@@ -14,7 +14,7 @@ class TdFooter extends ui_abstract_1.UI {
|
|
|
14
14
|
backgroundColor: (params === null || params === void 0 ? void 0 : params.backgroundColor) || 'fff' // '#a0cfff'
|
|
15
15
|
});
|
|
16
16
|
if (params === null || params === void 0 ? void 0 : params.slot) {
|
|
17
|
-
this.slotChild(params
|
|
17
|
+
this.slotChild(params.slot);
|
|
18
18
|
}
|
|
19
19
|
this.props = this.setParams(params);
|
|
20
20
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TdHeader = void 0;
|
|
4
4
|
const ui_abstract_1 = require("../../../../ui/ui.abstract");
|
|
5
5
|
class TdHeader extends ui_abstract_1.UI {
|
|
6
|
-
constructor(params) {
|
|
6
|
+
constructor(params = {}) {
|
|
7
7
|
super(params, 'header');
|
|
8
8
|
this.className = 'TdHeader';
|
|
9
9
|
this.ctrl.addAttrName('td-header');
|
|
@@ -12,14 +12,15 @@ class TdHeader extends ui_abstract_1.UI {
|
|
|
12
12
|
alignItems: 'center',
|
|
13
13
|
padding: '0 20px',
|
|
14
14
|
boxSizing: 'border-box',
|
|
15
|
-
flexShrink: 0
|
|
15
|
+
flexShrink: 0,
|
|
16
|
+
height: 60,
|
|
17
|
+
backgroundColor: '#fff'
|
|
16
18
|
});
|
|
19
|
+
this.addChild(this.getSlotNode());
|
|
17
20
|
if (params === null || params === void 0 ? void 0 : params.slot) {
|
|
18
|
-
this.slotChild(params
|
|
21
|
+
this.slotChild(params.slot);
|
|
19
22
|
}
|
|
20
23
|
this.props = this.setParams(params);
|
|
21
|
-
this.ctrl.addHeight((params === null || params === void 0 ? void 0 : params.height) || '60px');
|
|
22
|
-
this.ctrl.addBackgroundColor((params === null || params === void 0 ? void 0 : params.backgroundColor) || 'fff');
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
exports.TdHeader = TdHeader;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TdMain = void 0;
|
|
4
4
|
const ui_abstract_1 = require("../../../../ui/ui.abstract");
|
|
5
5
|
class TdMain extends ui_abstract_1.UI {
|
|
6
|
-
constructor(params) {
|
|
6
|
+
constructor(params = {}) {
|
|
7
7
|
super(params, (params === null || params === void 0 ? void 0 : params.tag) || 'main');
|
|
8
8
|
this.className = 'TdMain';
|
|
9
9
|
this.ctrl.addStyleObj({
|
|
@@ -14,7 +14,7 @@ class TdIcon extends ui_abstract_1.UI {
|
|
|
14
14
|
* TdIcon 类的构造函数。
|
|
15
15
|
* @param config 图标配置对象,可选参数。
|
|
16
16
|
*/
|
|
17
|
-
constructor(params) {
|
|
17
|
+
constructor(params = {}) {
|
|
18
18
|
super(params, 'i');
|
|
19
19
|
this.className = 'TdIcon';
|
|
20
20
|
this.ctrl.addStyleObj(td_icon_style_1.$tdIcon);
|
|
@@ -24,17 +24,17 @@ class TdIcon extends ui_abstract_1.UI {
|
|
|
24
24
|
// 首次创建时,添加style标签;避免重复创建
|
|
25
25
|
if (!TdIcon.initCalled) {
|
|
26
26
|
TdIcon.initCalled = true;
|
|
27
|
-
const cssText = `
|
|
28
|
-
/* 选择所有带有 data-v-366071 属性的元素 */
|
|
29
|
-
/* 在这里添加您的样式规则 */
|
|
30
|
-
@keyframes rotating-${framework_1.vHash} {
|
|
31
|
-
0% {
|
|
32
|
-
transform: rotateZ(0deg);
|
|
33
|
-
}
|
|
34
|
-
100% {
|
|
35
|
-
transform: rotateZ(360deg);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
27
|
+
const cssText = `
|
|
28
|
+
/* 选择所有带有 data-v-366071 属性的元素 */
|
|
29
|
+
/* 在这里添加您的样式规则 */
|
|
30
|
+
@keyframes rotating-${framework_1.vHash} {
|
|
31
|
+
0% {
|
|
32
|
+
transform: rotateZ(0deg);
|
|
33
|
+
}
|
|
34
|
+
100% {
|
|
35
|
+
transform: rotateZ(360deg);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
38
|
`;
|
|
39
39
|
(0, framework_1.createStyle)(cssText);
|
|
40
40
|
// createClass('td-icon', $tdIcon);
|
|
@@ -5,7 +5,7 @@ const rxjs_1 = require("rxjs");
|
|
|
5
5
|
const utils_1 = require("@type-dom/utils");
|
|
6
6
|
const ui_abstract_1 = require("../../../../ui/ui.abstract");
|
|
7
7
|
class TdCol extends ui_abstract_1.UI {
|
|
8
|
-
constructor(params) {
|
|
8
|
+
constructor(params = {}) {
|
|
9
9
|
super(params);
|
|
10
10
|
this.className = 'TdCol';
|
|
11
11
|
this.addChild(this.getSlotNode());
|
|
@@ -4,7 +4,7 @@ exports.TdScrollbarBar = void 0;
|
|
|
4
4
|
const ui_abstract_1 = require("../../../../ui/ui.abstract");
|
|
5
5
|
const thumb_class_1 = require("../thumb/thumb.class");
|
|
6
6
|
class TdScrollbarBar extends ui_abstract_1.UI {
|
|
7
|
-
constructor(params) {
|
|
7
|
+
constructor(params = {}) {
|
|
8
8
|
super(params);
|
|
9
9
|
this.className = 'TdScrollbarBar';
|
|
10
10
|
this.ctrl.addAttrName('td-scrollbar-bar');
|
|
@@ -5,7 +5,7 @@ const framework_1 = require("@type-dom/framework");
|
|
|
5
5
|
const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
6
6
|
const bar_class_1 = require("./bar/bar.class");
|
|
7
7
|
class TdScrollbar extends ui_abstract_1.UI {
|
|
8
|
-
constructor(params) {
|
|
8
|
+
constructor(params = {}) {
|
|
9
9
|
super(params, params === null || params === void 0 ? void 0 : params.tag);
|
|
10
10
|
this.className = 'TdScrollbar';
|
|
11
11
|
this.ctrl.addAttrName('td-scrollbar');
|
|
@@ -5,7 +5,7 @@ const framework_1 = require("@type-dom/framework");
|
|
|
5
5
|
const ui_abstract_1 = require("../../../../ui/ui.abstract");
|
|
6
6
|
const var_1 = require("../../../../styles/var");
|
|
7
7
|
class TdScrollbarThumb extends ui_abstract_1.UI {
|
|
8
|
-
constructor(params) {
|
|
8
|
+
constructor(params = {}) {
|
|
9
9
|
super(params);
|
|
10
10
|
this.className = 'TdScrollbarThumb';
|
|
11
11
|
this.ctrl.addAttrName('td-scrollbar-thumb');
|
|
@@ -6,7 +6,7 @@ const framework_1 = require("@type-dom/framework");
|
|
|
6
6
|
const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
7
7
|
const td_space_const_1 = require("./td-space.const");
|
|
8
8
|
class TdSpace extends ui_abstract_1.UI {
|
|
9
|
-
constructor(params) {
|
|
9
|
+
constructor(params = {}) {
|
|
10
10
|
super(params);
|
|
11
11
|
this.className = 'TdSpace';
|
|
12
12
|
this.ctrl.addStyleObj({
|
|
@@ -4,7 +4,7 @@ exports.TdText = void 0;
|
|
|
4
4
|
const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
5
5
|
const td_text_style_1 = require("./td-text.style");
|
|
6
6
|
class TdText extends ui_abstract_1.UI {
|
|
7
|
-
constructor(params) {
|
|
7
|
+
constructor(params = {}) {
|
|
8
8
|
super(params, (params === null || params === void 0 ? void 0 : params.tag) || 'span');
|
|
9
9
|
this.className = 'TdText';
|
|
10
10
|
this.ctrl.addStyleObj(td_text_style_1.$baseText);
|
|
@@ -6,7 +6,7 @@ const framework_1 = require("@type-dom/framework");
|
|
|
6
6
|
const td_avatar_style_1 = require("./td-avatar.style");
|
|
7
7
|
const utils_1 = require("@type-dom/utils");
|
|
8
8
|
class TdAvatar extends ui_abstract_1.UI {
|
|
9
|
-
constructor(params) {
|
|
9
|
+
constructor(params = {}) {
|
|
10
10
|
super(params, 'span');
|
|
11
11
|
this.className = 'TdAvatar';
|
|
12
12
|
this.ctrl.addAttrName('td-avatar');
|
|
@@ -7,7 +7,7 @@ const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
|
7
7
|
const var_1 = require("../../../styles/var");
|
|
8
8
|
const td_badge_style_1 = require("./td-badge.style");
|
|
9
9
|
class TdBadge extends ui_abstract_1.UI {
|
|
10
|
-
constructor(params) {
|
|
10
|
+
constructor(params = {}) {
|
|
11
11
|
var _a, _b, _c, _d;
|
|
12
12
|
super(params);
|
|
13
13
|
console.log('TdBadge constructor . ');
|
|
@@ -7,7 +7,7 @@ const transition_1 = require("../../../styles/transition");
|
|
|
7
7
|
const var_1 = require("../../../styles/var");
|
|
8
8
|
const td_card_style_1 = require("./td-card.style");
|
|
9
9
|
class TdCard extends ui_abstract_1.UI {
|
|
10
|
-
constructor(params) {
|
|
10
|
+
constructor(params = {}) {
|
|
11
11
|
super(params);
|
|
12
12
|
this.className = 'TdCard';
|
|
13
13
|
this.ctrl.addAttrName('td-card');
|
|
@@ -6,7 +6,7 @@ const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
|
6
6
|
const event_1 = require("../../../constants/event");
|
|
7
7
|
const td_check_tag_style_1 = require("./td-check-tag.style");
|
|
8
8
|
class TdCheckTag extends ui_abstract_1.UI {
|
|
9
|
-
constructor(params) {
|
|
9
|
+
constructor(params = {}) {
|
|
10
10
|
super(params, 'span');
|
|
11
11
|
this.className = 'TdCheckTag';
|
|
12
12
|
this.ctrl.addAttrName('td-check-tag');
|
|
@@ -5,7 +5,7 @@ const utils_1 = require("@type-dom/utils");
|
|
|
5
5
|
const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
6
6
|
const td_collapse_style_1 = require("./td-collapse.style");
|
|
7
7
|
class TdCollapse extends ui_abstract_1.UI {
|
|
8
|
-
constructor(params) {
|
|
8
|
+
constructor(params = {}) {
|
|
9
9
|
var _a;
|
|
10
10
|
super(params);
|
|
11
11
|
this.className = 'TdCollapse';
|
|
@@ -19,9 +19,7 @@ class TdCollapse extends ui_abstract_1.UI {
|
|
|
19
19
|
this.activeNames = (0, utils_1.isArray)(params === null || params === void 0 ? void 0 : params.modelValue)
|
|
20
20
|
? params.modelValue
|
|
21
21
|
: [(_a = params === null || params === void 0 ? void 0 : params.modelValue) !== null && _a !== void 0 ? _a : ''];
|
|
22
|
-
|
|
23
|
-
this.slotChild(params === null || params === void 0 ? void 0 : params.slot);
|
|
24
|
-
}
|
|
22
|
+
this.addChild(this.getSlotNode());
|
|
25
23
|
this.props = this.setParams(params);
|
|
26
24
|
}
|
|
27
25
|
mounted() {
|
|
@@ -10,7 +10,7 @@ const td_icon_class_1 = require("../../basic/td-icon/td-icon.class");
|
|
|
10
10
|
const td_collapse_style_1 = require("../td-collapse/td-collapse.style");
|
|
11
11
|
const td_collapse_transition_class_1 = require("../td-collapse-transition/td-collapse-transition.class");
|
|
12
12
|
class TdCollapseItem extends ui_abstract_1.UI {
|
|
13
|
-
constructor(params) {
|
|
13
|
+
constructor(params = {}) {
|
|
14
14
|
var _a;
|
|
15
15
|
super(params, 'fragment');
|
|
16
16
|
this.className = 'TdCollapseItem';
|
|
@@ -4,7 +4,7 @@ exports.TdCollapseTransition = void 0;
|
|
|
4
4
|
const framework_1 = require("@type-dom/framework");
|
|
5
5
|
const td_collapse_transition_util_1 = require("./td-collapse-transition.util");
|
|
6
6
|
class TdCollapseTransition extends framework_1.TypeTransition {
|
|
7
|
-
constructor(params) {
|
|
7
|
+
constructor(params = {}) {
|
|
8
8
|
super(Object.assign(td_collapse_transition_util_1.collapseTransitionConfig, params));
|
|
9
9
|
this.className = 'TdCollapseTransition';
|
|
10
10
|
}
|
|
@@ -13,9 +13,7 @@ class TdCountDown extends td_statistic_abstract_1.TdStatisticAbstract {
|
|
|
13
13
|
this.className = 'TdCountDown';
|
|
14
14
|
this.rawValue = (0, utils_2.getTime)((params === null || params === void 0 ? void 0 : params.value) || 0) - Date.now();
|
|
15
15
|
this.setNumber(this.rawValue);
|
|
16
|
-
|
|
17
|
-
this.slotChild(params.slot);
|
|
18
|
-
}
|
|
16
|
+
this.addChild(this.getSlotNode());
|
|
19
17
|
this.props = this.setParams(params);
|
|
20
18
|
}
|
|
21
19
|
mounted() {
|
|
@@ -9,7 +9,7 @@ const td_descritions_cell_1 = require("./td-descritions-cell");
|
|
|
9
9
|
* @author darcrand
|
|
10
10
|
*/
|
|
11
11
|
class TdDescriptionsRow extends framework_1.TypeFragment {
|
|
12
|
-
constructor(params) {
|
|
12
|
+
constructor(params = {}) {
|
|
13
13
|
super();
|
|
14
14
|
this.className = 'TdDescriptionsRow';
|
|
15
15
|
this.childNodes = [];
|
|
@@ -5,7 +5,7 @@ const framework_1 = require("@type-dom/framework");
|
|
|
5
5
|
const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
6
6
|
const td_descriptions_style_1 = require("./td-descriptions.style");
|
|
7
7
|
class TdDescriptionsCell extends ui_abstract_1.UI {
|
|
8
|
-
constructor(params) {
|
|
8
|
+
constructor(params = {}) {
|
|
9
9
|
super(params, (params === null || params === void 0 ? void 0 : params.tag) || 'td');
|
|
10
10
|
this.className = 'TdDescriptionsCell';
|
|
11
11
|
this.props = this.setParams(params);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TdDescriptionsItem = void 0;
|
|
4
4
|
const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
5
5
|
class TdDescriptionsItem extends ui_abstract_1.UI {
|
|
6
|
-
constructor(params) {
|
|
6
|
+
constructor(params = {}) {
|
|
7
7
|
super(params);
|
|
8
8
|
this.className = 'TdDescriptionsItem';
|
|
9
9
|
// if (config?.slots?.label) {
|
|
@@ -11,9 +11,7 @@ class TdDescriptionsItem extends ui_abstract_1.UI {
|
|
|
11
11
|
// } else if (config?.label) {
|
|
12
12
|
// this.label = new TextNode(config.label);
|
|
13
13
|
// }
|
|
14
|
-
|
|
15
|
-
this.slotChild(params === null || params === void 0 ? void 0 : params.slot);
|
|
16
|
-
}
|
|
14
|
+
this.addChild(this.getSlotNode());
|
|
17
15
|
this.props = this.setParams(params);
|
|
18
16
|
}
|
|
19
17
|
}
|
|
@@ -4,7 +4,7 @@ exports.ImgEmpty = void 0;
|
|
|
4
4
|
const framework_1 = require("@type-dom/framework");
|
|
5
5
|
const td_empty_style_1 = require("./td-empty.style");
|
|
6
6
|
class ImgEmpty extends framework_1.TypeSvgSvg {
|
|
7
|
-
constructor(params) {
|
|
7
|
+
constructor(params = {}) {
|
|
8
8
|
super();
|
|
9
9
|
this.className = 'ImgEmpty';
|
|
10
10
|
this.ctrl.addAttrObj({
|
|
@@ -7,7 +7,7 @@ const framework_1 = require("@type-dom/framework");
|
|
|
7
7
|
const td_empty_style_1 = require("./td-empty.style");
|
|
8
8
|
const img_empty_class_1 = require("./img-empty.class");
|
|
9
9
|
class TdEmpty extends ui_abstract_1.UI {
|
|
10
|
-
constructor(params) {
|
|
10
|
+
constructor(params = {}) {
|
|
11
11
|
var _a, _b;
|
|
12
12
|
super(params);
|
|
13
13
|
this.className = 'TdEmpty';
|
|
@@ -5,7 +5,7 @@ const framework_1 = require("@type-dom/framework");
|
|
|
5
5
|
const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
6
6
|
const td_image_style_1 = require("./td-image.style");
|
|
7
7
|
class TdImage extends ui_abstract_1.UI {
|
|
8
|
-
constructor(params) {
|
|
8
|
+
constructor(params = {}) {
|
|
9
9
|
super(params);
|
|
10
10
|
this.className = 'TdImage';
|
|
11
11
|
this.ctrl.addAttrName('td-image');
|
|
@@ -8,7 +8,7 @@ const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
|
8
8
|
const td_icon_class_1 = require("../../basic/td-icon/td-icon.class");
|
|
9
9
|
const td_image_viewer_style_1 = require("./td-image-viewer.style");
|
|
10
10
|
class TdImageViewer extends ui_abstract_1.UI {
|
|
11
|
-
constructor(params) {
|
|
11
|
+
constructor(params = {}) {
|
|
12
12
|
super(params, 'fragment');
|
|
13
13
|
this.loading = false;
|
|
14
14
|
this.className = 'TdImageViewer';
|
|
@@ -8,7 +8,7 @@ const td_result_constant_1 = require("./td-result.constant");
|
|
|
8
8
|
class TdResult extends ui_abstract_1.UI {
|
|
9
9
|
// private iconSlot?: SlotNode;
|
|
10
10
|
// private titleSlot?: SlotNode;
|
|
11
|
-
constructor(params) {
|
|
11
|
+
constructor(params = {}) {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f;
|
|
13
13
|
super(params);
|
|
14
14
|
this.className = 'TdResult';
|
|
@@ -28,9 +28,7 @@ class TdResult extends ui_abstract_1.UI {
|
|
|
28
28
|
name: 'icon',
|
|
29
29
|
childNodes: [this.getSlotNode('icon')]
|
|
30
30
|
}));
|
|
31
|
-
if ((_a = params === null || params === void 0 ? void 0 : params.slots) === null || _a === void 0 ? void 0 : _a.icon) {
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
31
|
+
if (!((_a = params === null || params === void 0 ? void 0 : params.slots) === null || _a === void 0 ? void 0 : _a.icon)) {
|
|
34
32
|
const resultIcon = this.resultIcon(params);
|
|
35
33
|
this.getSlotNode('icon').addSlot(resultIcon);
|
|
36
34
|
}
|
|
@@ -41,9 +39,7 @@ class TdResult extends ui_abstract_1.UI {
|
|
|
41
39
|
styleObj: td_result_style_1.$titleStyle,
|
|
42
40
|
childNodes: [this.getSlotNode('title')]
|
|
43
41
|
}));
|
|
44
|
-
if ((_c = params.slots) === null || _c === void 0 ? void 0 : _c.title) {
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
42
|
+
if (!((_c = params.slots) === null || _c === void 0 ? void 0 : _c.title)) {
|
|
47
43
|
this.getSlotNode('title').addSlot(new framework_1.P({
|
|
48
44
|
name: 'title',
|
|
49
45
|
text: params.title,
|
|
@@ -74,7 +70,7 @@ class TdResult extends ui_abstract_1.UI {
|
|
|
74
70
|
styleObj: td_result_style_1.$extraStyle,
|
|
75
71
|
childNodes: [this.getSlotNode('extra')]
|
|
76
72
|
}));
|
|
77
|
-
this.getSlotNode('extra').addSlot(params.slots.extra);
|
|
73
|
+
// this.getSlotNode('extra').addSlot(params.slots.extra);
|
|
78
74
|
}
|
|
79
75
|
this.props = this.setParams(params);
|
|
80
76
|
}
|
|
@@ -6,7 +6,7 @@ const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
|
6
6
|
const event_1 = require("../../../constants/event");
|
|
7
7
|
const td_segmented_style_1 = require("./td-segmented.style");
|
|
8
8
|
class TdSegmented extends ui_abstract_1.UI {
|
|
9
|
-
constructor(params) {
|
|
9
|
+
constructor(params = {}) {
|
|
10
10
|
super(params);
|
|
11
11
|
this.className = 'TdSegmented';
|
|
12
12
|
(0, td_segmented_style_1.useStyle)(params);
|
|
@@ -10,6 +10,6 @@ export declare abstract class TdStatisticAbstract extends UI implements ITdStati
|
|
|
10
10
|
number: Span;
|
|
11
11
|
suffix?: TypeElement;
|
|
12
12
|
props: ITdStatisticConfig;
|
|
13
|
-
protected constructor(params
|
|
13
|
+
protected constructor(params?: ITdStatisticConfig);
|
|
14
14
|
formatValue(value: number | string | Dayjs): string;
|
|
15
15
|
}
|
|
@@ -6,7 +6,7 @@ const utils_1 = require("@type-dom/utils");
|
|
|
6
6
|
const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
7
7
|
const td_statistic_style_1 = require("./td-statistic.style");
|
|
8
8
|
class TdStatisticAbstract extends ui_abstract_1.UI {
|
|
9
|
-
constructor(params) {
|
|
9
|
+
constructor(params = {}) {
|
|
10
10
|
var _a, _b, _c, _d;
|
|
11
11
|
super(params);
|
|
12
12
|
if (params === null || params === void 0 ? void 0 : params.title) {
|
|
@@ -8,7 +8,7 @@ const td_icon_class_1 = require("../../basic/td-icon/td-icon.class");
|
|
|
8
8
|
const var_1 = require("../../../styles/var");
|
|
9
9
|
const td_tag_style_1 = require("./td-tag.style");
|
|
10
10
|
class TdTag extends ui_abstract_1.UI {
|
|
11
|
-
constructor(params) {
|
|
11
|
+
constructor(params = {}) {
|
|
12
12
|
super(params, 'span');
|
|
13
13
|
this.className = 'TdTag';
|
|
14
14
|
this.ctrl.addAttrName('td-tag');
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Dialog = void 0;
|
|
4
4
|
const overlay_abstract_1 = require("../overlay/overlay.abstract");
|
|
5
5
|
class Dialog extends overlay_abstract_1.Overlay {
|
|
6
|
-
constructor(params) {
|
|
6
|
+
constructor(params = {}) {
|
|
7
7
|
super();
|
|
8
8
|
this.className = 'Dialog';
|
|
9
9
|
this.ctrl.addAttrObj({
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MessageBox = void 0;
|
|
4
4
|
const overlay_abstract_1 = require("../overlay/overlay.abstract");
|
|
5
5
|
class MessageBox extends overlay_abstract_1.Overlay {
|
|
6
|
-
constructor(params) {
|
|
6
|
+
constructor(params = {}) {
|
|
7
7
|
super();
|
|
8
8
|
this.className = 'MessageBox';
|
|
9
9
|
this.ctrl.addAttrObj({
|
|
@@ -7,7 +7,7 @@ const ui_abstract_1 = require("../../../ui/ui.abstract");
|
|
|
7
7
|
const td_icon_class_1 = require("../../basic/td-icon/td-icon.class");
|
|
8
8
|
const td_alert_style_1 = require("./td-alert.style");
|
|
9
9
|
class TdAlert extends ui_abstract_1.UI {
|
|
10
|
-
constructor(params) {
|
|
10
|
+
constructor(params = {}) {
|
|
11
11
|
super(params, 'fragment');
|
|
12
12
|
this.className = 'TdAlert';
|
|
13
13
|
this.transition = new framework_1.Transition({
|