@coolon/angular-ui-powerups 14.39.2 → 14.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/assets/table.scss
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
--resolved-row-hover-background-color: var(--row-hover-background-color, var(--aup-table-row-hover-background-color, rgba(0, 0, 0, 0.05)));
|
|
5
5
|
--resolved-first-column-padding-left: var(--first-column-padding-left, var(--aup-table-first-column-padding-left, var(--resolved-column-gap)));
|
|
6
6
|
--resolved-last-column-padding-right: var(--last-column-padding-right, var(--aup-table-last-column-padding-right, var(--resolved-column-gap)));
|
|
7
|
+
--resolved-header-row-height: var(--aup-table-header-row-height, 48px);
|
|
8
|
+
--resolved-row-height: var(--aup-table-row-height, 48px);
|
|
7
9
|
|
|
8
10
|
&.hide-header {
|
|
9
11
|
.mat-table thead {
|
|
@@ -18,6 +20,10 @@
|
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
|
|
23
|
+
tr.mat-header-row {
|
|
24
|
+
height: auto;
|
|
25
|
+
}
|
|
26
|
+
|
|
21
27
|
th.mat-header-cell:first-of-type,
|
|
22
28
|
td.mat-cell:first-of-type,
|
|
23
29
|
td.mat-footer-cell:first-of-type {
|
|
@@ -64,7 +70,6 @@
|
|
|
64
70
|
align-items: stretch;
|
|
65
71
|
justify-content: center;
|
|
66
72
|
height: 100%;
|
|
67
|
-
min-height: 47px; // same as mat table row height - border bottom.
|
|
68
73
|
|
|
69
74
|
padding-left: var(--resolved-column-gap);
|
|
70
75
|
|
|
@@ -90,4 +95,13 @@
|
|
|
90
95
|
}
|
|
91
96
|
}
|
|
92
97
|
}
|
|
98
|
+
|
|
99
|
+
aup-table-header-cell {
|
|
100
|
+
min-height: calc(var(--resolved-header-row-height) - 1px); // subtracting the bottom border width.
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
aup-table-cell {
|
|
104
|
+
min-height: var(--resolved-row-height); // same as mat table row height - border bottom.
|
|
105
|
+
}
|
|
106
|
+
|
|
93
107
|
}
|
package/package.json
CHANGED
|
@@ -18,11 +18,12 @@ function addActivity(_options) {
|
|
|
18
18
|
project: _options.project,
|
|
19
19
|
name: _options.name
|
|
20
20
|
});
|
|
21
|
-
const i18nNamespace =
|
|
21
|
+
const i18nNamespace = componentPathParts.concat(componentName).map(p => stringy_1.Stringy.from(p).camelizeLower().toString()).join('.');
|
|
22
22
|
const componentFiles = (0, template_utilities_1.applyTemplatesWithOverwrite)(tree, 'templates/component', {
|
|
23
23
|
name: componentName,
|
|
24
24
|
selectorPrefix: buildContext.selectorPrefix,
|
|
25
25
|
pathToRoot: pathToSourceRoot.map(p => '..').join('/'),
|
|
26
|
+
i18nClassName: buildContext.getI18nClasName(),
|
|
26
27
|
i18nNamespace
|
|
27
28
|
}, `${(pathToSourceRoot.join('/'))}/${componentName}`);
|
|
28
29
|
return (0, schematics_1.chain)([updateModule, componentFiles])(tree, context);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/activity/index.ts"],"names":[],"mappings":";;;AAAA,2DAAoG;AACpG,8CAA2C;AAC3C,oEAA0E;AAC1E,kDAA+C;AAI/C,SAAgB,WAAW,CAAC,QAAgB;IAE1C,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAE/C,MAAM,SAAS,GAAG,qBAAS,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEhD,MAAM,YAAY,GAAG,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE5D,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC3C,MAAM,aAAa,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACtD,MAAM,kBAAkB,GAAG,SAAS,CAAC,KAAK,C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AAC,OAAO;YACzB,IAAI,EAAE,QAAQ,CAAC,IAAI;SACpB,CAAC,CAAC;QAEH,MAAM,aAAa,GAAG,kBAAkB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,iBAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAE9H,MAAM,cAAc,GAAG,IAAA,gDAA2B,EAChD,IAAI,EACJ,qBAAqB,EACrB;YACE,IAAI,EAAE,aAAa;YACnB,cAAc,EAAE,YAAY,CAAC,cAAc;YAC3C,UAAU,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;YACrD,aAAa,EAAE,YAAY,CAAC,eAAe,EAAE;YAC7C,aAAa;SACd,EACD,GAAG,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,aAAa,EAAE,CACnD,CAAC;QAGF,OAAO,IAAA,kBAAK,EAAC,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE9D,CAAC,CAAC;AAEJ,CAAC;AAvCD,kCAuCC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {Component, Inject, OnInit} from '@angular/core';
|
|
2
2
|
import { Dsl, Command } from '@coolon/pectin';
|
|
3
3
|
import {Activity} from "@coolon/angular-ui-powerups";
|
|
4
|
-
import {
|
|
4
|
+
import { <%=i18nClassName%> } from '<%=pathToRoot%>/<%=dasherize(i18nClassName)%>';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
7
7
|
selector: '<%=selectorPrefix%>-<%=dasherize(name)%>',
|
|
8
8
|
templateUrl: './<%=dasherize(name)%>.component.html',
|
|
9
9
|
styleUrls: ['./<%=dasherize(name)%>.component.scss'],
|
|
10
10
|
})
|
|
11
|
-
export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capitalize(camelize(name))%>Component.Data, void>
|
|
11
|
+
export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capitalize(camelize(name))%>Component.Data, void> {
|
|
12
12
|
|
|
13
|
-
readonly i18n = <%=i18nNamespace%>;
|
|
13
|
+
readonly i18n = <%=i18nClassName%>.<%=i18nNamespace%>;
|
|
14
14
|
|
|
15
15
|
constructor() {
|
|
16
16
|
super();
|
|
@@ -29,12 +29,11 @@ export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capita
|
|
|
29
29
|
this.busyWhile(this.confirmCommand.busy);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
ngOnInit() {
|
|
33
|
-
}
|
|
34
32
|
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
export namespace <%=capitalize(camelize(name))%>Component {
|
|
38
36
|
export interface Data {
|
|
37
|
+
// add activity inputs here
|
|
39
38
|
}
|
|
40
39
|
}
|