@alauda/ui 6.0.4-beta.17 → 6.0.4-beta.18

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.
Files changed (55) hide show
  1. package/accordion/accordion-item/accordion-item.component.d.ts +5 -1
  2. package/accordion/accordion.component.d.ts +0 -1
  3. package/alauda-ui.d.ts +19 -19
  4. package/alauda-ui.metadata.json +1 -1
  5. package/bundles/alauda-ui.umd.js +375 -403
  6. package/bundles/alauda-ui.umd.js.map +1 -1
  7. package/bundles/alauda-ui.umd.min.js +1 -1
  8. package/bundles/alauda-ui.umd.min.js.map +1 -1
  9. package/esm2015/accordion/accordion-item/accordion-item.component.js +14 -12
  10. package/esm2015/accordion/accordion-item/accordion-item.component.ngfactory.js +10 -10
  11. package/esm2015/accordion/accordion-item/accordion-item.component.ngsummary.json +1 -1
  12. package/esm2015/accordion/accordion-item/accordion-item.component.scss.ngstyle.js +1 -1
  13. package/esm2015/accordion/accordion.component.js +4 -7
  14. package/esm2015/accordion/accordion.component.ngfactory.js +8 -9
  15. package/esm2015/accordion/accordion.component.ngsummary.json +1 -1
  16. package/esm2015/accordion/accordion.module.ngfactory.js +1 -1
  17. package/esm2015/alauda-ui.js +20 -20
  18. package/esm2015/alauda-ui.ngsummary.json +1 -1
  19. package/esm2015/date-picker/calendar/header/component.js +3 -3
  20. package/esm2015/date-picker/calendar/header/component.ngfactory.js +13 -15
  21. package/esm2015/date-picker/calendar/header/style.scss.ngstyle.js +1 -1
  22. package/esm2015/date-picker/calendar/panel/picker-panel.js +3 -3
  23. package/esm2015/date-picker/calendar/panel/picker-panel.ngfactory.js +4 -4
  24. package/esm2015/date-picker/calendar/panel/picker-panel.style.scss.ngstyle.js +1 -1
  25. package/esm2015/date-picker/calendar/range-picker-panel/component.js +3 -3
  26. package/esm2015/date-picker/calendar/range-picker-panel/component.ngfactory.js +3 -3
  27. package/esm2015/date-picker/calendar/range-picker-panel/style.scss.ngstyle.js +1 -1
  28. package/esm2015/date-picker/trigger/trigger.component.js +3 -3
  29. package/esm2015/date-picker/trigger/trigger.component.ngfactory.js +3 -3
  30. package/esm2015/date-picker/trigger/trigger.style.scss.shim.ngstyle.js +1 -1
  31. package/esm2015/input/tags-input/tags-input.component.js +1 -1
  32. package/esm2015/select/multi-select/multi-select.component.js +1 -1
  33. package/esm2015/table/table-cell.component.js +34 -48
  34. package/esm2015/table/table-cell.component.ngfactory.js +20 -23
  35. package/esm2015/table/table-cell.component.ngsummary.json +1 -1
  36. package/esm2015/table/table.component.js +1 -1
  37. package/esm2015/table/table.component.scss.ngstyle.js +1 -1
  38. package/esm2015/table/table.module.js +6 -7
  39. package/esm2015/table/table.module.ngfactory.js +7 -6
  40. package/esm2015/table/table.module.ngsummary.json +1 -1
  41. package/esm2015/tag/check-tag/check-tag.component.js +1 -1
  42. package/esm2015/tag/check-tag/check-tag.component.scss.ngstyle.js +1 -1
  43. package/esm2015/tag/tag.component.js +1 -1
  44. package/esm2015/tag/tag.component.scss.ngstyle.js +1 -1
  45. package/esm2015/time-picker/panel/panel.component.js +1 -1
  46. package/esm2015/time-picker/panel/panel.style.scss.ngstyle.js +1 -1
  47. package/fesm2015/alauda-ui.js +334 -350
  48. package/fesm2015/alauda-ui.js.map +1 -1
  49. package/package.json +1 -1
  50. package/table/table-cell.component.d.ts +2 -5
  51. package/theme/_mixin.scss +0 -51
  52. package/theme/_pattern.scss +60 -1
  53. package/theme/_var.scss +6 -4
  54. package/accordion/accordion.component.scss.ngstyle.d.ts +0 -1
  55. package/esm2015/accordion/accordion.component.scss.ngstyle.js +0 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/ui",
3
- "version": "6.0.4-beta.17",
3
+ "version": "6.0.4-beta.18",
4
4
  "description": "Angular UI components by Alauda Frontend Team.",
5
5
  "repository": "git+https://github.com/alauda/alauda-ui.git",
6
6
  "author": "Alauda Frontend",
@@ -1,12 +1,9 @@
1
1
  import { CdkCell } from '@angular/cdk/table';
2
2
  import { EventEmitter } from '@angular/core';
3
- export declare class TableExpandButtonCellComponent extends CdkCell {
3
+ export declare class TableCellComponent extends CdkCell {
4
4
  expand: boolean;
5
5
  disabled: boolean;
6
+ template: boolean;
6
7
  expandChange: EventEmitter<any>;
7
8
  get expanded(): string;
8
9
  }
9
- export declare class TableExpandPanelCellComponent extends CdkCell {
10
- expand: boolean;
11
- get expanded(): string;
12
- }
package/theme/_mixin.scss CHANGED
@@ -98,57 +98,6 @@
98
98
  }
99
99
  }
100
100
 
101
- @mixin expand-button() {
102
- display: inline-flex;
103
- justify-content: center;
104
- align-items: center;
105
- width: get-size(icon-size-m);
106
- height: get-size(icon-size-m);
107
- font-size: get-size(icon-size-m);
108
- line-height: get-size(icon-size-m);
109
- color: get-color(primary);
110
- background-color: get-color(p-6);
111
- border-radius: 50%;
112
- border: none;
113
- cursor: pointer;
114
- transition: transform 0.1s ease-in-out;
115
-
116
- aui-icon {
117
- display: block;
118
- width: get-size(icon-size-m);
119
- height: get-size(icon-size-m);
120
- }
121
-
122
- &:hover {
123
- background-color: get-color(p-7);
124
- }
125
-
126
- &:active {
127
- background-color: get-color(p-5);
128
- }
129
-
130
- &.isExpanded {
131
- transform: rotate(90deg);
132
- color: get-color(n-10);
133
- background-color: get-color(primary);
134
-
135
- &:hover {
136
- background-color: get-color(p-1);
137
- }
138
-
139
- &:active {
140
- background-color: get-color(p-0);
141
- }
142
- }
143
-
144
- &[disabled],
145
- &.isExpanded[disabled] {
146
- background-color: get-color(n-8);
147
- color: get-color(n-6);
148
- cursor: not-allowed;
149
- }
150
- }
151
-
152
101
  @mixin text-overflow {
153
102
  white-space: nowrap;
154
103
  overflow: hidden;
@@ -43,7 +43,7 @@
43
43
  justify-content: center;
44
44
  align-items: center;
45
45
  padding: $table-cell-padding-v $table-cell-padding-h;
46
- min-height: $table-row-min-height + 2px;
46
+ min-height: $table-row-min-height;
47
47
  @include text-set(m, placeholder);
48
48
 
49
49
  background-color: get-color(n-10);
@@ -60,3 +60,62 @@
60
60
  border-top-right-radius: 0;
61
61
  }
62
62
  }
63
+
64
+ @mixin table-with-detail($detailColumn: 'detail') {
65
+ .aui-table {
66
+ &__row {
67
+ flex-wrap: wrap;
68
+ }
69
+
70
+ &__column-#{$detailColumn} {
71
+ &.aui-table__header-cell {
72
+ display: none;
73
+ }
74
+
75
+ &.aui-table__cell {
76
+ width: 100%;
77
+ flex-shrink: 0;
78
+ flex-basis: 100%;
79
+ padding: 0 $table-cell-padding-h;
80
+ overflow: hidden;
81
+
82
+ .aui-table__cell-expand-detail {
83
+ border-radius: get-size(border-radius-l);
84
+ background-color: get-color(n-9);
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+
91
+ @mixin table-with-expand($expandColumn: 'expand') {
92
+ .aui-table {
93
+ &__cell,
94
+ &__header-cell {
95
+ &.aui-table__column-#{$expandColumn} {
96
+ display: flex;
97
+ align-items: center;
98
+ height: $table-row-min-height - 2px;
99
+ max-width: calc(#{$table-cell-padding-h} + #{get-size(icon-size-m)});
100
+ margin-right: -2px;
101
+
102
+ .aui-table__cell-expand-button {
103
+ width: get-size(icon-size-m);
104
+ height: get-size(icon-size-m);
105
+
106
+ &.collapsed {
107
+ background-color: get-color(p-6);
108
+ border-color: get-color(p-6);
109
+ color: get-color(primary);
110
+ }
111
+
112
+ &[disabled] {
113
+ background-color: get-color(n-8);
114
+ border-color: get-color(n-8);
115
+ color: get-color(n-6);
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
121
+ }
package/theme/_var.scss CHANGED
@@ -37,7 +37,7 @@ $text-button-mini-font-size: 12px;
37
37
  // Table
38
38
  $table-padding: 12px;
39
39
  $table-row-min-height: 60px;
40
- $table-cell-padding-v: 16px;
40
+ $table-cell-padding-v: 15px;
41
41
  $table-cell-padding-h: 10px;
42
42
 
43
43
  // Sort
@@ -212,7 +212,6 @@ $tag-large-font-size: $font-size-regular;
212
212
  $tag-large-padding: 16px - $tag-border-width;
213
213
 
214
214
  $tag-medium-height: $height-small;
215
- $tag-medium-font-size: $font-size-regular;
216
215
  $tag-medium-padding: 12px - $tag-border-width;
217
216
 
218
217
  $tag-small-height: $height-mini;
@@ -323,5 +322,8 @@ $date-picker-body-size: 216px;
323
322
  $date-picker-seprator-gap: 20px;
324
323
  $date-picker-row-gap: 8px;
325
324
  $date-picker-cell-size: 24px;
326
- $range-picker-body-width: 552px;
327
- $range-picker-header-width: 275px;
325
+ $range-picker-body-width: 524px;
326
+ $range-picker-panel-spacing: 32px;
327
+ $range-picker-header-width: (
328
+ $range-picker-body-width - $range-picker-panel-spacing
329
+ ) / 2;
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- /**
2
- * @fileoverview This file was generated by the Angular template compiler. Do not edit.
3
- *
4
- * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes,extraRequire}
5
- * tslint:disable
6
- */
7
- var styles = [".aui-accordion.hasBg{padding:12px;border-radius:var(--aui-border-radius-l);background-color:rgb(var(--aui-color-n-9))}aui-accordion+aui-accordion .aui-accordion{margin-top:var(--aui-spacing-xl)}"];
8
- export { styles as styles };
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLmNvbXBvbmVudC5zY3NzLm5nc3R5bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYWNjb3JkaW9uL2FjY29yZGlvbi5jb21wb25lbnQuc2Nzcy5uZ3N0eWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBpMCBmcm9tICdAYW5ndWxhci9jb3JlJztcbmkwLkNvbXBvbmVudEZhY3Rvcnk7XG4iXX0=