@ni/nimble-components 19.8.3 → 19.8.4
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/dist/all-components-bundle.js +21 -107
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +270 -285
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/src/table-column/anchor/cell-view/index.d.ts +1 -1
- package/dist/esm/src/table-column/anchor/index.d.ts +0 -3
- package/dist/esm/src/table-column/base/types.d.ts +0 -3
- package/dist/esm/src/table-column/text/cell-view/index.d.ts +0 -1
- package/dist/esm/src/table-column/text/group-header-view/index.d.ts +0 -1
- package/dist/esm/src/table-column/text/index.d.ts +1 -2
- package/dist/esm/src/table-column/text-base/cell-view/index.d.ts +1 -10
- package/dist/esm/src/table-column/text-base/group-header-view/index.d.ts +2 -12
- package/dist/esm/src/table-column/text-base/group-header-view/template.d.ts +1 -1
- package/dist/esm/src/table-column/text-base/index.d.ts +1 -11
- package/dist/esm/table-column/anchor/cell-view/index.d.ts +1 -1
- package/dist/esm/table-column/anchor/cell-view/index.js +3 -3
- package/dist/esm/table-column/anchor/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/anchor/cell-view/styles.js +1 -5
- package/dist/esm/table-column/anchor/cell-view/styles.js.map +1 -1
- package/dist/esm/table-column/anchor/cell-view/template.js +4 -5
- package/dist/esm/table-column/anchor/cell-view/template.js.map +1 -1
- package/dist/esm/table-column/anchor/index.d.ts +0 -3
- package/dist/esm/table-column/anchor/index.js +0 -7
- package/dist/esm/table-column/anchor/index.js.map +1 -1
- package/dist/esm/table-column/base/types.d.ts +0 -3
- package/dist/esm/table-column/base/types.js.map +1 -1
- package/dist/esm/table-column/text/cell-view/index.d.ts +0 -1
- package/dist/esm/table-column/text/cell-view/index.js +3 -11
- package/dist/esm/table-column/text/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/text/group-header-view/index.d.ts +0 -1
- package/dist/esm/table-column/text/group-header-view/index.js +3 -11
- package/dist/esm/table-column/text/group-header-view/index.js.map +1 -1
- package/dist/esm/table-column/text/index.d.ts +1 -2
- package/dist/esm/table-column/text/index.js.map +1 -1
- package/dist/esm/table-column/text-base/cell-view/index.d.ts +1 -10
- package/dist/esm/table-column/text-base/cell-view/index.js +2 -22
- package/dist/esm/table-column/text-base/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/text-base/cell-view/styles.js +1 -5
- package/dist/esm/table-column/text-base/cell-view/styles.js.map +1 -1
- package/dist/esm/table-column/text-base/cell-view/template.js +2 -3
- package/dist/esm/table-column/text-base/cell-view/template.js.map +1 -1
- package/dist/esm/table-column/text-base/group-header-view/index.d.ts +2 -12
- package/dist/esm/table-column/text-base/group-header-view/index.js +2 -22
- package/dist/esm/table-column/text-base/group-header-view/index.js.map +1 -1
- package/dist/esm/table-column/text-base/group-header-view/styles.js +1 -5
- package/dist/esm/table-column/text-base/group-header-view/styles.js.map +1 -1
- package/dist/esm/table-column/text-base/group-header-view/template.d.ts +1 -1
- package/dist/esm/table-column/text-base/group-header-view/template.js +2 -3
- package/dist/esm/table-column/text-base/group-header-view/template.js.map +1 -1
- package/dist/esm/table-column/text-base/index.d.ts +1 -11
- package/dist/esm/table-column/text-base/index.js +1 -9
- package/dist/esm/table-column/text-base/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { observable
|
|
2
|
+
import { observable } from '@microsoft/fast-element';
|
|
3
3
|
import { TableGroupHeaderView } from '../../base/group-header-view';
|
|
4
4
|
/**
|
|
5
5
|
* The group header view base class for displaying fields of any type as text.
|
|
@@ -10,20 +10,9 @@ export class TableColumnTextGroupHeaderViewBase extends TableGroupHeaderView {
|
|
|
10
10
|
/** @internal */
|
|
11
11
|
this.hasOverflow = false;
|
|
12
12
|
/**
|
|
13
|
-
* Text to render in the cell
|
|
13
|
+
* Text to render in the cell.
|
|
14
14
|
*/
|
|
15
15
|
this.text = '';
|
|
16
|
-
/**
|
|
17
|
-
* Text to render in the cell when it contains an invalid value (i.e. when shouldUsePlaceholder is true).
|
|
18
|
-
*/
|
|
19
|
-
this.placeholder = '';
|
|
20
|
-
/**
|
|
21
|
-
* Returns whether to display the placeholder value or the text value
|
|
22
|
-
*/
|
|
23
|
-
this.shouldUsePlaceholder = true;
|
|
24
|
-
}
|
|
25
|
-
get content() {
|
|
26
|
-
return this.shouldUsePlaceholder ? this.placeholder : this.text;
|
|
27
16
|
}
|
|
28
17
|
}
|
|
29
18
|
__decorate([
|
|
@@ -32,13 +21,4 @@ __decorate([
|
|
|
32
21
|
__decorate([
|
|
33
22
|
observable
|
|
34
23
|
], TableColumnTextGroupHeaderViewBase.prototype, "text", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
observable
|
|
37
|
-
], TableColumnTextGroupHeaderViewBase.prototype, "placeholder", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
observable
|
|
40
|
-
], TableColumnTextGroupHeaderViewBase.prototype, "shouldUsePlaceholder", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
volatile
|
|
43
|
-
], TableColumnTextGroupHeaderViewBase.prototype, "content", null);
|
|
44
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/table-column/text-base/group-header-view/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/table-column/text-base/group-header-view/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGpE;;GAEG;AACH,MAAM,OAAgB,kCAGpB,SAAQ,oBAAgD;IAH1D;;QAII,gBAAgB;QAET,gBAAW,GAAG,KAAK,CAAC;QAE3B;;WAEG;QAEI,SAAI,GAAG,EAAE,CAAC;IACrB,CAAC;CAAA;AAPG;IADC,UAAU;uEACgB;AAM3B;IADC,UAAU;gEACM"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
|
-
import { bodyFont, bodyFontColor
|
|
2
|
+
import { bodyFont, bodyFontColor } from '../../../theme-provider/design-tokens';
|
|
3
3
|
export const styles = css `
|
|
4
4
|
span {
|
|
5
5
|
font: ${bodyFont};
|
|
@@ -8,9 +8,5 @@ export const styles = css `
|
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
text-overflow: ellipsis;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
.placeholder {
|
|
13
|
-
color: ${controlLabelFontColor};
|
|
14
|
-
}
|
|
15
11
|
`;
|
|
16
12
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/table-column/text-base/group-header-view/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/table-column/text-base/group-header-view/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEhF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;gBAET,QAAQ;iBACP,aAAa;;;;;CAK7B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { TableColumnTextGroupHeaderViewBase } from '.';
|
|
2
|
-
export declare const template: import("@microsoft/fast-element").ViewTemplate<TableColumnTextGroupHeaderViewBase<import("../../../table/types").TableFieldValue,
|
|
2
|
+
export declare const template: import("@microsoft/fast-element").ViewTemplate<TableColumnTextGroupHeaderViewBase<import("../../../table/types").TableFieldValue, unknown>, any>;
|
|
@@ -3,10 +3,9 @@ import { overflow } from '../../../utilities/directive/overflow';
|
|
|
3
3
|
export const template = html `
|
|
4
4
|
<span
|
|
5
5
|
${overflow('hasOverflow')}
|
|
6
|
-
|
|
7
|
-
title="${x => (x.hasOverflow && x.content ? x.content : undefined)}"
|
|
6
|
+
title="${x => (x.hasOverflow && x.text ? x.text : null)}"
|
|
8
7
|
>
|
|
9
|
-
${x => x.
|
|
8
|
+
${x => x.text}
|
|
10
9
|
</span>
|
|
11
10
|
`;
|
|
12
11
|
//# sourceMappingURL=template.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../../src/table-column/text-base/group-header-view/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAEjE,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAoC;;UAEtD,QAAQ,CAAC,aAAa,CAAC;iBAChB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../../src/table-column/text-base/group-header-view/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAEjE,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAoC;;UAEtD,QAAQ,CAAC,aAAa,CAAC;iBAChB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;;UAErD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;;CAEpB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TableColumn } from '../base';
|
|
2
|
-
import type { TableColumnWithPlaceholderColumnConfig } from '../base/types';
|
|
3
2
|
declare const TableColumnTextBase_base: (abstract new (...args: any[]) => {
|
|
4
3
|
groupingDisabled: boolean;
|
|
5
4
|
groupIndex?: number | null | undefined;
|
|
@@ -12,21 +11,12 @@ declare const TableColumnTextBase_base: (abstract new (...args: any[]) => {
|
|
|
12
11
|
fractionalWidthChanged(): void;
|
|
13
12
|
minPixelWidthChanged(): void;
|
|
14
13
|
readonly columnInternals: import("../base/models/column-internals").ColumnInternals<unknown>;
|
|
15
|
-
}) &
|
|
16
|
-
compose<T extends import("@microsoft/fast-foundation").FoundationElementDefinition = import("@microsoft/fast-foundation").FoundationElementDefinition, K extends import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement> = import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>(this: K, elementDefinition: T): (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<T> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<T, K>;
|
|
17
|
-
from<TBase extends {
|
|
18
|
-
new (): HTMLElement;
|
|
19
|
-
prototype: HTMLElement;
|
|
20
|
-
}>(BaseType: TBase): new () => InstanceType<TBase> & import("@microsoft/fast-element").FASTElement;
|
|
21
|
-
define<TType extends Function>(type: TType, nameOrDef?: string | import("@microsoft/fast-element").PartialFASTElementDefinition | undefined): TType;
|
|
22
|
-
});
|
|
14
|
+
}) & typeof TableColumn;
|
|
23
15
|
/**
|
|
24
16
|
* The base class for table columns that display fields of any type as text.
|
|
25
17
|
*/
|
|
26
18
|
export declare abstract class TableColumnTextBase extends TableColumnTextBase_base {
|
|
27
19
|
fieldName?: string;
|
|
28
|
-
placeholder?: string;
|
|
29
20
|
protected fieldNameChanged(): void;
|
|
30
|
-
protected placeholderChanged(): void;
|
|
31
21
|
}
|
|
32
22
|
export {};
|
|
@@ -6,21 +6,13 @@ import { mixinGroupableColumnAPI } from '../mixins/groupable-column';
|
|
|
6
6
|
/**
|
|
7
7
|
* The base class for table columns that display fields of any type as text.
|
|
8
8
|
*/
|
|
9
|
-
export class TableColumnTextBase extends mixinGroupableColumnAPI(mixinFractionalWidthColumnAPI(
|
|
9
|
+
export class TableColumnTextBase extends mixinGroupableColumnAPI(mixinFractionalWidthColumnAPI(TableColumn)) {
|
|
10
10
|
fieldNameChanged() {
|
|
11
11
|
this.columnInternals.dataRecordFieldNames = [this.fieldName];
|
|
12
12
|
this.columnInternals.operandDataRecordFieldName = this.fieldName;
|
|
13
13
|
}
|
|
14
|
-
placeholderChanged() {
|
|
15
|
-
this.columnInternals.columnConfig = {
|
|
16
|
-
placeholder: this.placeholder ?? ''
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
14
|
}
|
|
20
15
|
__decorate([
|
|
21
16
|
attr({ attribute: 'field-name' })
|
|
22
17
|
], TableColumnTextBase.prototype, "fieldName", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
attr
|
|
25
|
-
], TableColumnTextBase.prototype, "placeholder", void 0);
|
|
26
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/table-column/text-base/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/table-column/text-base/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAErE;;GAEG;AACH,MAAM,OAAgB,mBAAoB,SAAQ,uBAAuB,CACrE,6BAA6B,CAAC,WAAW,CAAC,CAC7C;IAIa,gBAAgB;QACtB,IAAI,CAAC,eAAe,CAAC,oBAAoB,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC7D,IAAI,CAAC,eAAe,CAAC,0BAA0B,GAAG,IAAI,CAAC,SAAS,CAAC;IACrE,CAAC;CACJ;AANG;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;sDACR"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/nimble-components",
|
|
3
|
-
"version": "19.8.
|
|
3
|
+
"version": "19.8.4",
|
|
4
4
|
"description": "Styled web components for the NI Nimble Design System",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run generate-icons && npm run build-components && npm run bundle-components && npm run generate-scss && npm run build-storybook",
|