@ni/nimble-components 22.0.0 → 22.1.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/dist/all-components-bundle.js +114 -45
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +2324 -2291
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/anchor/styles.js +4 -0
- package/dist/esm/anchor/styles.js.map +1 -1
- package/dist/esm/anchor-button/styles.js +12 -0
- package/dist/esm/anchor-button/styles.js.map +1 -1
- package/dist/esm/anchor-menu-item/styles.js +5 -0
- package/dist/esm/anchor-menu-item/styles.js.map +1 -1
- package/dist/esm/anchor-tab/styles.js +1 -0
- package/dist/esm/anchor-tab/styles.js.map +1 -1
- package/dist/esm/anchor-tree-item/styles.js +5 -0
- package/dist/esm/anchor-tree-item/styles.js.map +1 -1
- package/dist/esm/breadcrumb-item/styles.js +4 -0
- package/dist/esm/breadcrumb-item/styles.js.map +1 -1
- package/dist/esm/label-provider/table/index.d.ts +6 -0
- package/dist/esm/label-provider/table/index.js +10 -2
- package/dist/esm/label-provider/table/index.js.map +1 -1
- package/dist/esm/label-provider/table/label-token-defaults.js +3 -1
- package/dist/esm/label-provider/table/label-token-defaults.js.map +1 -1
- package/dist/esm/label-provider/table/label-tokens.d.ts +2 -0
- package/dist/esm/label-provider/table/label-tokens.js +8 -0
- package/dist/esm/label-provider/table/label-tokens.js.map +1 -1
- package/dist/esm/table-column/date-text/group-header-view/index.d.ts +1 -3
- package/dist/esm/table-column/date-text/group-header-view/index.js +0 -6
- package/dist/esm/table-column/date-text/group-header-view/index.js.map +1 -1
- package/dist/esm/table-column/duration-text/group-header-view/index.d.ts +1 -3
- package/dist/esm/table-column/duration-text/group-header-view/index.js +0 -6
- package/dist/esm/table-column/duration-text/group-header-view/index.js.map +1 -1
- package/dist/esm/table-column/enum-text/group-header-view/index.d.ts +1 -3
- package/dist/esm/table-column/enum-text/group-header-view/index.js +1 -12
- package/dist/esm/table-column/enum-text/group-header-view/index.js.map +1 -1
- package/dist/esm/table-column/icon/group-header-view/index.d.ts +1 -3
- package/dist/esm/table-column/icon/group-header-view/index.js +2 -10
- package/dist/esm/table-column/icon/group-header-view/index.js.map +1 -1
- package/dist/esm/table-column/icon/group-header-view/template.js +6 -0
- package/dist/esm/table-column/icon/group-header-view/template.js.map +1 -1
- package/dist/esm/table-column/number-text/group-header-view/index.d.ts +1 -3
- package/dist/esm/table-column/number-text/group-header-view/index.js +0 -6
- package/dist/esm/table-column/number-text/group-header-view/index.js.map +1 -1
- package/dist/esm/table-column/text/group-header-view/index.d.ts +1 -1
- package/dist/esm/table-column/text/group-header-view/index.js +1 -1
- package/dist/esm/table-column/text/group-header-view/index.js.map +1 -1
- package/dist/esm/table-column/text-base/group-header-view/index.d.ts +16 -0
- package/dist/esm/table-column/text-base/group-header-view/index.js +53 -1
- package/dist/esm/table-column/text-base/group-header-view/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/anchor/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EACH,2BAA2B,EAC3B,mBAAmB,EACnB,4BAA4B,EAC5B,qBAAqB,EACrB,QAAQ,EACR,aAAa,EACb,8BAA8B,EAC9B,sBAAsB,EACzB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,QAAQ,CAAC;;;;gBAIP,QAAQ;;;;;;;;;;;;iBAYP,aAAa;;;;cAIhB,YAAY;;;qCAGW,aAAa;;;;iBAIjC,mBAAmB;;;;cAItB,YAAY;qCACW,mBAAmB;;;;iBAIvC,qBAAqB;;;;;iBAKrB,2BAA2B;;;;;;;;;;;wCAWJ,YAAY;;;;;;;;;iBASnC,sBAAsB;;;;iBAItB,4BAA4B;;;8CAGC,YAAY;qCACrB,sBAAsB;;;8CAGb,YAAY;qCACrB,4BAA4B;;;;iBAIhD,8BAA8B
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/anchor/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EACH,2BAA2B,EAC3B,mBAAmB,EACnB,4BAA4B,EAC5B,qBAAqB,EACrB,QAAQ,EACR,aAAa,EACb,8BAA8B,EAC9B,sBAAsB,EACzB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,QAAQ,CAAC;;;;gBAIP,QAAQ;;;;;;;;;;;;iBAYP,aAAa;;;;cAIhB,YAAY;;;qCAGW,aAAa;;;;iBAIjC,mBAAmB;;;;cAItB,YAAY;qCACW,mBAAmB;;;;iBAIvC,qBAAqB;;;;;iBAKrB,2BAA2B;;;;;;;;;;;wCAWJ,YAAY;;;;;;;;;iBASnC,sBAAsB;;;;iBAItB,4BAA4B;;;8CAGC,YAAY;qCACrB,sBAAsB;;;8CAGb,YAAY;qCACrB,4BAA4B;;;;iBAIhD,8BAA8B;;;;;;;;;;CAU9C,CAAC","sourcesContent":["import { css } from '@microsoft/fast-element';\nimport { display } from '@microsoft/fast-foundation';\nimport { focusVisible } from '../utilities/style/focus';\nimport {\n linkActiveDisabledFontColor,\n linkActiveFontColor,\n linkActiveProminentFontColor,\n linkDisabledFontColor,\n linkFont,\n linkFontColor,\n linkProminentDisabledFontColor,\n linkProminentFontColor\n} from '../theme-provider/design-tokens';\n\nexport const styles = css`\n ${display('inline')}\n\n :host {\n box-sizing: border-box;\n font: ${linkFont};\n }\n\n .top-container {\n display: contents;\n }\n\n [part='start'] {\n display: none;\n }\n\n .control {\n color: ${linkFontColor};\n text-decoration: underline;\n }\n\n .control${focusVisible} {\n display: inline;\n outline: none;\n box-shadow: inset 0px -1px ${linkFontColor};\n }\n\n .control:active {\n color: ${linkActiveFontColor};\n text-decoration: underline;\n }\n\n .control${focusVisible}:active {\n box-shadow: inset 0px -1px ${linkActiveFontColor};\n }\n\n .control:not(:any-link) {\n color: ${linkDisabledFontColor};\n text-decoration: none;\n }\n\n .control:not(:any-link):active {\n color: ${linkActiveDisabledFontColor};\n }\n\n :host([underline-hidden]) .control {\n text-decoration: none;\n }\n\n :host([underline-hidden]) .control:hover {\n text-decoration: underline;\n }\n\n :host([underline-hidden]) .control${focusVisible} {\n text-decoration: underline;\n }\n\n :host([underline-hidden]) .control:not(:any-link) {\n text-decoration: none;\n }\n\n :host([appearance='prominent']) .control {\n color: ${linkProminentFontColor};\n }\n\n :host([appearance='prominent']) .control:active {\n color: ${linkActiveProminentFontColor};\n }\n\n :host([appearance='prominent']) .control${focusVisible} {\n box-shadow: inset 0px -1px ${linkProminentFontColor};\n }\n\n :host([appearance='prominent']) .control${focusVisible}:active {\n box-shadow: inset 0px -1px ${linkActiveProminentFontColor};\n }\n\n :host([appearance='prominent']) .control:not(:any-link) {\n color: ${linkProminentDisabledFontColor};\n }\n\n .content {\n pointer-events: none;\n }\n\n [part='end'] {\n display: none;\n }\n`;\n"]}
|
|
@@ -7,5 +7,17 @@ export const styles = css `
|
|
|
7
7
|
.control {
|
|
8
8
|
text-decoration: none;
|
|
9
9
|
}
|
|
10
|
+
|
|
11
|
+
[part='start'] {
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.content {
|
|
16
|
+
pointer-events: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[part='end'] {
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
}
|
|
10
22
|
`;
|
|
11
23
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/anchor-button/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EACH,6BAA6B,EAC7B,MAAM,IAAI,YAAY,EACzB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,YAAY;MACZ,6BAA6B
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/anchor-button/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EACH,6BAA6B,EAC7B,MAAM,IAAI,YAAY,EACzB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,YAAY;MACZ,6BAA6B;;;;;;;;;;;;;;;;;CAiBlC,CAAC","sourcesContent":["import { css } from '@microsoft/fast-element';\nimport {\n buttonAppearanceVariantStyles,\n styles as buttonStyles\n} from '../patterns/button/styles';\n\nexport const styles = css`\n ${buttonStyles}\n ${buttonAppearanceVariantStyles}\n\n .control {\n text-decoration: none;\n }\n\n [part='start'] {\n pointer-events: none;\n }\n\n .content {\n pointer-events: none;\n }\n\n [part='end'] {\n pointer-events: none;\n }\n`;\n"]}
|
|
@@ -57,6 +57,7 @@ export const styles = css `
|
|
|
57
57
|
|
|
58
58
|
[part='start'] {
|
|
59
59
|
display: contents;
|
|
60
|
+
pointer-events: none;
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
slot[name='start']::slotted(*) {
|
|
@@ -69,6 +70,10 @@ export const styles = css `
|
|
|
69
70
|
grid-column: 1;
|
|
70
71
|
}
|
|
71
72
|
|
|
73
|
+
.content {
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
72
77
|
:host(.indent-1) .content {
|
|
73
78
|
grid-column: 2;
|
|
74
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/anchor-menu-item/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,OAAO,EACH,qBAAqB,EACrB,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,QAAQ,EACX,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,MAAM,CAAC;;;gBAGL,QAAQ;;;;6BAIK,gBAAgB;;;;;sBAKvB,cAAc;;;;sBAId,iBAAiB;;;;;;;;;;;;kBAYrB,aAAa;;;;;;;;iBAQd,aAAa;;;;;;;;iBAQb,qBAAqB;;;;;;iCAML,QAAQ
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/anchor-menu-item/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,OAAO,EACH,qBAAqB,EACrB,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,QAAQ,EACX,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,MAAM,CAAC;;;gBAGL,QAAQ;;;;6BAIK,gBAAgB;;;;;sBAKvB,cAAc;;;;sBAId,iBAAiB;;;;;;;;;;;;kBAYrB,aAAa;;;;;;;;iBAQd,aAAa;;;;;;;;iBAQb,qBAAqB;;;;;;iCAML,QAAQ;;;;;;;;;UAS/B,SAAS,CAAC,iBAAiB;iBACpB,QAAQ;kBACP,QAAQ;;;;;;;;;;;;;;;;;;CAkBzB,CAAC","sourcesContent":["import { css } from '@microsoft/fast-element';\nimport { display } from '@microsoft/fast-foundation';\n\nimport {\n bodyDisabledFontColor,\n bodyFont,\n bodyFontColor,\n borderHoverColor,\n controlHeight,\n fillHoverColor,\n fillSelectedColor,\n iconColor,\n iconSize\n} from '../theme-provider/design-tokens';\n\nexport const styles = css`\n ${display('grid')}\n\n :host {\n font: ${bodyFont};\n }\n\n :host(:focus-within:not(:active)) {\n outline: 2px solid ${borderHoverColor};\n outline-offset: -2px;\n }\n\n :host(:hover) {\n background: ${fillHoverColor};\n }\n\n :host(:active) {\n background: ${fillSelectedColor};\n }\n\n :host([disabled]) {\n background: transparent;\n }\n\n a {\n display: grid;\n contain: layout;\n overflow: visible;\n box-sizing: border-box;\n height: ${controlHeight};\n grid-template-columns: 1fr;\n column-gap: 8px;\n grid-template-rows: 1fr;\n justify-items: start;\n align-items: center;\n margin: 0 0;\n white-space: nowrap;\n color: ${bodyFontColor};\n fill: currentcolor;\n cursor: pointer;\n text-decoration: none;\n outline: none;\n }\n\n :host([disabled]) a {\n color: ${bodyDisabledFontColor};\n fill: currentcolor;\n cursor: default;\n }\n\n :host(.indent-1) a {\n grid-template-columns: ${iconSize} 1fr;\n }\n\n [part='start'] {\n display: contents;\n pointer-events: none;\n }\n\n slot[name='start']::slotted(*) {\n ${iconColor.cssCustomProperty}: currentcolor;\n width: ${iconSize};\n height: ${iconSize};\n }\n\n :host(.indent-1) [part='start'] {\n grid-column: 1;\n }\n\n .content {\n pointer-events: none;\n }\n\n :host(.indent-1) .content {\n grid-column: 2;\n }\n\n [part='end'] {\n display: none;\n }\n`;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/anchor-tab/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EACH,qBAAqB,EACrB,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,UAAU,EACV,aAAa,EACb,eAAe,EAClB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,aAAa,CAAC;;;;;gBAKZ,eAAe;kBACb,aAAa;iBACd,aAAa;;;;;;;;;;;4BAWF,cAAc;;;;4BAId,sBAAsB;;;;;;;;;iBASjC,qBAAqB
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/anchor-tab/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EACH,qBAAqB,EACrB,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,UAAU,EACV,aAAa,EACb,eAAe,EAClB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,aAAa,CAAC;;;;;gBAKZ,eAAe;kBACb,aAAa;iBACd,aAAa;;;;;;;;;;;4BAWF,cAAc;;;;4BAId,sBAAsB;;;;;;;;;iBASjC,qBAAqB;;;;;;;mBAOnB,aAAa,IAAI,eAAe;mBAChC,aAAa,MAAM,WAAW;;;;;;;;;;;;yBAYxB,gBAAgB;;4BAEb,UAAU;;;;;;;;;OAS/B,YAAY;;;;;;;;;;;;;;;;;;;;yBAoBM,gBAAgB;;4BAEb,UAAU;;;;;;;;;OAS/B,YAAY;;;;;;;;;;;oCAWiB,gBAAgB;;;;;;;;;;CAUnD,CAAC","sourcesContent":["import { css } from '@microsoft/fast-element';\nimport { display } from '@microsoft/fast-foundation';\nimport { focusVisible } from '../utilities/style/focus';\nimport {\n bodyDisabledFontColor,\n bodyFontColor,\n borderHoverColor,\n borderWidth,\n buttonLabelFont,\n controlHeight,\n fillHoverColor,\n fillHoverSelectedColor,\n smallDelay,\n mediumPadding,\n standardPadding\n} from '../theme-provider/design-tokens';\n\nexport const styles = css`\n ${display('inline-flex')}\n\n :host {\n position: relative;\n box-sizing: border-box;\n font: ${buttonLabelFont};\n height: ${controlHeight};\n color: ${bodyFontColor};\n align-items: center;\n justify-content: center;\n cursor: pointer;\n --ni-private-active-indicator-width: 2px;\n --ni-private-focus-indicator-width: 1px;\n --ni-private-indicator-lines-gap: 1px;\n --ni-private-focus-indicator-inset-width: 3px;\n }\n\n :host(:hover) {\n background-color: ${fillHoverColor};\n }\n\n :host(:hover[aria-current]) {\n background-color: ${fillHoverSelectedColor};\n }\n\n :host(:active) {\n background: none;\n }\n\n :host([disabled]) {\n cursor: default;\n color: ${bodyDisabledFontColor};\n background: none;\n }\n\n slot:not([name]) {\n pointer-events: none;\n display: block;\n padding: ${mediumPadding} ${standardPadding}\n calc(${mediumPadding} - ${borderWidth});\n }\n\n a::before {\n content: '';\n position: absolute;\n bottom: calc(\n var(--ni-private-active-indicator-width) +\n var(--ni-private-indicator-lines-gap)\n );\n width: 0px;\n height: 0px;\n border-bottom: ${borderHoverColor}\n var(--ni-private-focus-indicator-width) solid;\n transition: width ${smallDelay} ease-in;\n }\n\n @media (prefers-reduced-motion) {\n a::before {\n transition-duration: 0s;\n }\n }\n\n a${focusVisible}::before {\n width: calc(100% - 2 * var(--ni-private-focus-indicator-inset-width));\n }\n\n a {\n display: inline-flex;\n text-decoration: none;\n color: inherit;\n cursor: inherit;\n outline: none;\n align-items: center;\n justify-content: center;\n }\n\n a::after {\n content: '';\n position: absolute;\n bottom: 0px;\n width: 0px;\n height: 0px;\n border-bottom: ${borderHoverColor}\n var(--ni-private-active-indicator-width) solid;\n transition: width ${smallDelay} ease-in;\n }\n\n @media (prefers-reduced-motion) {\n a::after {\n transition-duration: 0s;\n }\n }\n\n a${focusVisible}::after {\n width: 100%;\n border-bottom-width: var(--ni-private-focus-indicator-width);\n }\n\n :host([aria-current]) a::after {\n width: 100%;\n border-bottom-width: var(--ni-private-active-indicator-width);\n }\n\n :host([disabled][aria-current]) a::after {\n border-bottom-color: rgba(${borderHoverColor}, 0.3);\n }\n\n [part='start'] {\n display: none;\n }\n\n [part='end'] {\n display: none;\n }\n`;\n"]}
|
|
@@ -84,6 +84,7 @@ export const styles = css `
|
|
|
84
84
|
/* this rule keeps children without an icon text aligned with parents */ ''}
|
|
85
85
|
[part="start"] {
|
|
86
86
|
width: ${iconSize};
|
|
87
|
+
pointer-events: none;
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
${ /* the start class is applied when the corresponding slot is filled */''}
|
|
@@ -99,6 +100,10 @@ export const styles = css `
|
|
|
99
100
|
height: ${iconSize};
|
|
100
101
|
}
|
|
101
102
|
|
|
103
|
+
.content {
|
|
104
|
+
pointer-events: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
102
107
|
[part='end'] {
|
|
103
108
|
display: none;
|
|
104
109
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/anchor-tree-item/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,cAAc,EACd,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,cAAc,EACd,sBAAsB,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ACe,cAAc;uBACd,cAAc;;;;iBAIpB,aAAa;;;;;;iBAMb,qBAAqB;;;;;;;;;;cAUxB,YAAY;kCACQ,WAAW,IAAI,gBAAgB;mBAC9C,WAAW,UAAU,gBAAgB;;;;;;;;uBAQjC,QAAQ;;;;;sBAKT,cAAc;;;;;;;;sBAQd,iBAAiB;;;;sBAIjB,sBAAsB;;;;;;;;;;;;;;;;;qBAiBvB,YAAY;UACvB,cAAc;;+BAEO,QAAQ;;;MAGjC;AACE,wEAAwE,CAAC,EAC7E;;iBAEa,QAAQ;;;;MAInB,CAAA,sEAAuE,EAAE;;;+BAGhD,QAAQ;6BACV,QAAQ;;;;UAI3B,SAAS,CAAC,iBAAiB;iBACpB,QAAQ;kBACP,QAAQ;;;;;;;;;;CAUzB,CAAC","sourcesContent":["import { css } from '@microsoft/fast-element';\nimport { display } from '@microsoft/fast-foundation';\nimport {\n bodyFontFamily,\n bodyFontWeight,\n bodyFontColor,\n borderHoverColor,\n borderWidth,\n iconSize,\n fillHoverColor,\n fillHoverSelectedColor,\n fillSelectedColor,\n bodyFontSize,\n bodyDisabledFontColor,\n iconColor\n} from '../theme-provider/design-tokens';\nimport { focusVisible } from '../utilities/style/focus';\nimport { userSelectNone } from '../utilities/style/user-select';\n\nexport const styles = css`\n ${display('block')}\n\n :host {\n ${\n /* don't set font-size here or else it overrides what we set on .items */ ''\n }\n font-family: ${bodyFontFamily};\n font-weight: ${bodyFontWeight};\n contain: content;\n position: relative;\n outline: none;\n color: ${bodyFontColor};\n cursor: pointer;\n --ni-private-tree-item-nested-width: 0;\n }\n\n :host([disabled]) {\n color: ${bodyDisabledFontColor};\n cursor: default;\n }\n\n .control {\n display: flex;\n text-decoration: none;\n color: inherit;\n }\n\n .control${focusVisible} {\n box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;\n outline: ${borderWidth} solid ${borderHoverColor};\n outline-offset: -2px;\n }\n\n .positioning-region {\n display: flex;\n position: relative;\n box-sizing: border-box;\n height: calc(${iconSize} * 2);\n width: 100%;\n }\n\n .positioning-region:hover {\n background: ${fillHoverColor};\n }\n\n :host([disabled]) .positioning-region:hover {\n background: transparent;\n }\n\n :host([selected]) .positioning-region {\n background: ${fillSelectedColor};\n }\n\n :host([selected]) .positioning-region:hover {\n background: ${fillHoverSelectedColor};\n }\n\n .positioning-region::before {\n content: '';\n display: block;\n width: var(--ni-private-tree-item-nested-width);\n flex-shrink: 0;\n }\n\n .content-region {\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n width: 100%;\n padding-left: 10px;\n font: inherit;\n font-size: ${bodyFontSize};\n ${userSelectNone}\n position: relative;\n margin-inline-start: ${iconSize};\n }\n\n ${\n /* this rule keeps children without an icon text aligned with parents */ ''\n }\n [part=\"start\"] {\n width: ${iconSize};\n pointer-events: none;\n }\n\n ${/* the start class is applied when the corresponding slot is filled */ ''}\n .start {\n display: flex;\n margin-inline-start: ${iconSize};\n margin-inline-end: ${iconSize};\n }\n\n slot[name='start']::slotted(*) {\n ${iconColor.cssCustomProperty}: currentcolor;\n width: ${iconSize};\n height: ${iconSize};\n }\n\n .content {\n pointer-events: none;\n }\n\n [part='end'] {\n display: none;\n }\n`;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/breadcrumb-item/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,aAAa,CAAC;;;kBAGV,aAAa;;mCAEI,WAAW;;UAEpC;AACE;mDACmD,CAAC,EACxD;iBACS,aAAa;gBACd,QAAQ;;;;;;;;;;;;;kBAaN,WAAW;oCACO,WAAW;;;;;;;;cAQjC,YAAY;kBACR,WAAW,UAAU,gBAAgB;6BAC1B,gBAAgB
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/breadcrumb-item/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,aAAa,CAAC;;;kBAGV,aAAa;;mCAEI,WAAW;;UAEpC;AACE;mDACmD,CAAC,EACxD;iBACS,aAAa;gBACd,QAAQ;;;;;;;;;;;;;kBAaN,WAAW;oCACO,WAAW;;;;;;;;cAQjC,YAAY;kBACR,WAAW,UAAU,gBAAgB;6BAC1B,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2B5B,QAAQ;kBACP,QAAQ;gBACV,oBAAoB;;CAEnC,CAAC","sourcesContent":["import { css } from '@microsoft/fast-element';\nimport { display } from '@microsoft/fast-foundation';\nimport {\n bodyFontColor,\n borderHoverColor,\n borderWidth,\n controlHeight,\n iconSize,\n linkFont,\n placeholderFontColor\n} from '../theme-provider/design-tokens';\nimport { focusVisible } from '../utilities/style/focus';\n\nexport const styles = css`\n ${display('inline-flex')}\n\n :host {\n height: ${controlHeight};\n box-sizing: border-box;\n padding-left: calc(4px - ${borderWidth});\n\n ${\n /* When href removed the .control element is also removed\n so this becomes the fallback color for the slot */ ''\n }\n color: ${bodyFontColor};\n font: ${linkFont};\n }\n\n .listitem {\n display: flex;\n align-items: center;\n }\n\n .control {\n color: var(--ni-private-breadcrumb-link-font-color);\n display: flex;\n align-items: center;\n justify-content: center;\n border: ${borderWidth} solid transparent;\n padding-right: calc(4px - ${borderWidth});\n text-decoration: none;\n }\n\n .control:hover {\n text-decoration: underline;\n }\n\n .control${focusVisible} {\n border: ${borderWidth} solid ${borderHoverColor};\n outline: 2px solid ${borderHoverColor};\n outline-offset: 1px;\n }\n\n .control:active {\n color: var(--ni-private-breadcrumb-link-active-font-color);\n text-decoration: underline;\n }\n\n [part='start'] {\n display: none;\n }\n\n .content {\n pointer-events: none;\n }\n\n [part='end'] {\n display: none;\n }\n\n slot[name='separator'] {\n display: flex;\n align-items: center;\n }\n\n slot[name='separator'] svg {\n width: ${iconSize};\n height: ${iconSize};\n fill: ${placeholderFontColor};\n }\n`;\n"]}
|
|
@@ -19,6 +19,8 @@ declare const supportedLabels: {
|
|
|
19
19
|
readonly rowSelect: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
20
20
|
readonly rowOperationColumn: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
21
21
|
readonly rowLoading: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
22
|
+
readonly groupRowPlaceholderNoValue: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
23
|
+
readonly groupRowPlaceholderEmpty: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
22
24
|
};
|
|
23
25
|
/**
|
|
24
26
|
* Label provider for the Nimble table (and its sub-components and columns)
|
|
@@ -38,6 +40,8 @@ export declare class LabelProviderTable extends LabelProviderBase<typeof support
|
|
|
38
40
|
rowSelect: string | undefined;
|
|
39
41
|
rowOperationColumn: string | undefined;
|
|
40
42
|
rowLoading: string | undefined;
|
|
43
|
+
groupRowPlaceholderNoValue: string | undefined;
|
|
44
|
+
groupRowPlaceholderEmpty: string | undefined;
|
|
41
45
|
protected readonly supportedLabels: {
|
|
42
46
|
readonly groupCollapse: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
43
47
|
readonly groupExpand: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
@@ -53,6 +57,8 @@ export declare class LabelProviderTable extends LabelProviderBase<typeof support
|
|
|
53
57
|
readonly rowSelect: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
54
58
|
readonly rowOperationColumn: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
55
59
|
readonly rowLoading: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
60
|
+
readonly groupRowPlaceholderNoValue: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
61
|
+
readonly groupRowPlaceholderEmpty: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
56
62
|
};
|
|
57
63
|
}
|
|
58
64
|
export declare const labelProviderTableTag = "nimble-label-provider-table";
|
|
@@ -2,7 +2,7 @@ import { __decorate } from "tslib";
|
|
|
2
2
|
import { attr } from '@microsoft/fast-element';
|
|
3
3
|
import { DesignSystem } from '@microsoft/fast-foundation';
|
|
4
4
|
import { LabelProviderBase } from '../base';
|
|
5
|
-
import { tableCellActionMenuLabel, tableColumnHeaderGroupedLabel, tableColumnHeaderSortedAscendingLabel, tableColumnHeaderSortedDescendingLabel, tableGroupCollapseLabel, tableGroupExpandLabel, tableGroupSelectAllLabel, tableCollapseAllLabel, tableRowCollapseLabel, tableRowExpandLabel, tableRowOperationColumnLabel, tableRowSelectLabel, tableSelectAllLabel, tableRowLoadingLabel } from './label-tokens';
|
|
5
|
+
import { tableCellActionMenuLabel, tableColumnHeaderGroupedLabel, tableColumnHeaderSortedAscendingLabel, tableColumnHeaderSortedDescendingLabel, tableGroupCollapseLabel, tableGroupExpandLabel, tableGroupSelectAllLabel, tableCollapseAllLabel, tableRowCollapseLabel, tableRowExpandLabel, tableRowOperationColumnLabel, tableRowSelectLabel, tableSelectAllLabel, tableRowLoadingLabel, tableGroupRowPlaceholderEmptyLabel, tableGroupRowPlaceholderNoValueLabel } from './label-tokens';
|
|
6
6
|
const supportedLabels = {
|
|
7
7
|
groupCollapse: tableGroupCollapseLabel,
|
|
8
8
|
groupExpand: tableGroupExpandLabel,
|
|
@@ -17,7 +17,9 @@ const supportedLabels = {
|
|
|
17
17
|
groupSelectAll: tableGroupSelectAllLabel,
|
|
18
18
|
rowSelect: tableRowSelectLabel,
|
|
19
19
|
rowOperationColumn: tableRowOperationColumnLabel,
|
|
20
|
-
rowLoading: tableRowLoadingLabel
|
|
20
|
+
rowLoading: tableRowLoadingLabel,
|
|
21
|
+
groupRowPlaceholderNoValue: tableGroupRowPlaceholderNoValueLabel,
|
|
22
|
+
groupRowPlaceholderEmpty: tableGroupRowPlaceholderEmptyLabel
|
|
21
23
|
};
|
|
22
24
|
/**
|
|
23
25
|
* Label provider for the Nimble table (and its sub-components and columns)
|
|
@@ -70,6 +72,12 @@ __decorate([
|
|
|
70
72
|
__decorate([
|
|
71
73
|
attr({ attribute: 'row-loading' })
|
|
72
74
|
], LabelProviderTable.prototype, "rowLoading", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
attr({ attribute: 'group-row-placeholder-no-value' })
|
|
77
|
+
], LabelProviderTable.prototype, "groupRowPlaceholderNoValue", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
attr({ attribute: 'group-row-placeholder-empty' })
|
|
80
|
+
], LabelProviderTable.prototype, "groupRowPlaceholderEmpty", void 0);
|
|
73
81
|
const nimbleLabelProviderTable = LabelProviderTable.compose({
|
|
74
82
|
baseName: 'label-provider-table'
|
|
75
83
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/label-provider/table/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAmB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EACH,wBAAwB,EACxB,6BAA6B,EAC7B,qCAAqC,EACrC,sCAAsC,EACtC,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,4BAA4B,EAC5B,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/label-provider/table/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAmB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EACH,wBAAwB,EACxB,6BAA6B,EAC7B,qCAAqC,EACrC,sCAAsC,EACtC,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,4BAA4B,EAC5B,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,kCAAkC,EAClC,oCAAoC,EACvC,MAAM,gBAAgB,CAAC;AAQxB,MAAM,eAAe,GAAG;IACpB,aAAa,EAAE,uBAAuB;IACtC,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,qBAAqB;IAClC,SAAS,EAAE,mBAAmB;IAC9B,WAAW,EAAE,qBAAqB;IAClC,cAAc,EAAE,wBAAwB;IACxC,mBAAmB,EAAE,6BAA6B;IAClD,2BAA2B,EAAE,qCAAqC;IAClE,4BAA4B,EAAE,sCAAsC;IACpE,SAAS,EAAE,mBAAmB;IAC9B,cAAc,EAAE,wBAAwB;IACxC,SAAS,EAAE,mBAAmB;IAC9B,kBAAkB,EAAE,4BAA4B;IAChD,UAAU,EAAE,oBAAoB;IAChC,0BAA0B,EAAE,oCAAoC;IAChE,wBAAwB,EAAE,kCAAkC;CACtD,CAAC;AAEX;;GAEG;AACH,MAAM,OAAO,kBACT,SAAQ,iBAAyC;IADrD;;QAmDgC,oBAAe,GA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WAAW,EAAE;KACrB,UAAU,CAAC,QAAQ,CAAC;KACpB,QAAQ,CAAC,wBAAwB,EAAE,CAAC,CAAC;AAC1C,MAAM,CAAC,MAAM,qBAAqB,GAAG,6BAA6B,CAAC","sourcesContent":["import { attr } from '@microsoft/fast-element';\nimport { DesignSystem } from '@microsoft/fast-foundation';\nimport { DesignTokensFor, LabelProviderBase } from '../base';\nimport {\n tableCellActionMenuLabel,\n tableColumnHeaderGroupedLabel,\n tableColumnHeaderSortedAscendingLabel,\n tableColumnHeaderSortedDescendingLabel,\n tableGroupCollapseLabel,\n tableGroupExpandLabel,\n tableGroupSelectAllLabel,\n tableCollapseAllLabel,\n tableRowCollapseLabel,\n tableRowExpandLabel,\n tableRowOperationColumnLabel,\n tableRowSelectLabel,\n tableSelectAllLabel,\n tableRowLoadingLabel,\n tableGroupRowPlaceholderEmptyLabel,\n tableGroupRowPlaceholderNoValueLabel\n} from './label-tokens';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-label-provider-table': LabelProviderTable;\n }\n}\n\nconst supportedLabels = {\n groupCollapse: tableGroupCollapseLabel,\n groupExpand: tableGroupExpandLabel,\n rowCollapse: tableRowCollapseLabel,\n rowExpand: tableRowExpandLabel,\n collapseAll: tableCollapseAllLabel,\n cellActionMenu: tableCellActionMenuLabel,\n columnHeaderGrouped: tableColumnHeaderGroupedLabel,\n columnHeaderSortedAscending: tableColumnHeaderSortedAscendingLabel,\n columnHeaderSortedDescending: tableColumnHeaderSortedDescendingLabel,\n selectAll: tableSelectAllLabel,\n groupSelectAll: tableGroupSelectAllLabel,\n rowSelect: tableRowSelectLabel,\n rowOperationColumn: tableRowOperationColumnLabel,\n rowLoading: tableRowLoadingLabel,\n groupRowPlaceholderNoValue: tableGroupRowPlaceholderNoValueLabel,\n groupRowPlaceholderEmpty: tableGroupRowPlaceholderEmptyLabel\n} as const;\n\n/**\n * Label provider for the Nimble table (and its sub-components and columns)\n */\nexport class LabelProviderTable\n extends LabelProviderBase<typeof supportedLabels>\n implements DesignTokensFor<typeof supportedLabels> {\n @attr({ attribute: 'group-collapse' })\n public groupCollapse: string | undefined;\n\n @attr({ attribute: 'group-expand' })\n public groupExpand: string | undefined;\n\n @attr({ attribute: 'row-collapse' })\n public rowCollapse: string | undefined;\n\n @attr({ attribute: 'row-expand' })\n public rowExpand: string | undefined;\n\n @attr({ attribute: 'collapse-all' })\n public collapseAll: string | undefined;\n\n @attr({ attribute: 'cell-action-menu' })\n public cellActionMenu: string | undefined;\n\n @attr({ attribute: 'column-header-grouped' })\n public columnHeaderGrouped: string | undefined;\n\n @attr({ attribute: 'column-header-sorted-ascending' })\n public columnHeaderSortedAscending: string | undefined;\n\n @attr({ attribute: 'column-header-sorted-descending' })\n public columnHeaderSortedDescending: string | undefined;\n\n @attr({ attribute: 'select-all' })\n public selectAll: string | undefined;\n\n @attr({ attribute: 'group-select-all' })\n public groupSelectAll: string | undefined;\n\n @attr({ attribute: 'row-select' })\n public rowSelect: string | undefined;\n\n @attr({ attribute: 'row-operation-column' })\n public rowOperationColumn: string | undefined;\n\n @attr({ attribute: 'row-loading' })\n public rowLoading: string | undefined;\n\n @attr({ attribute: 'group-row-placeholder-no-value' })\n public groupRowPlaceholderNoValue: string | undefined;\n\n @attr({ attribute: 'group-row-placeholder-empty' })\n public groupRowPlaceholderEmpty: string | undefined;\n\n protected override readonly supportedLabels = supportedLabels;\n}\n\nconst nimbleLabelProviderTable = LabelProviderTable.compose({\n baseName: 'label-provider-table'\n});\n\nDesignSystem.getOrCreate()\n .withPrefix('nimble')\n .register(nimbleLabelProviderTable());\nexport const labelProviderTableTag = 'nimble-label-provider-table';\n"]}
|
|
@@ -12,6 +12,8 @@ export const tableLabelDefaults = {
|
|
|
12
12
|
tableGroupSelectAllLabel: 'Select all rows in group',
|
|
13
13
|
tableRowSelectLabel: 'Select row',
|
|
14
14
|
tableRowOperationColumnLabel: 'Row operations',
|
|
15
|
-
tableRowLoadingLabel: 'Loading'
|
|
15
|
+
tableRowLoadingLabel: 'Loading',
|
|
16
|
+
tableGroupRowPlaceholderNoValueLabel: 'No value',
|
|
17
|
+
tableGroupRowPlaceholderEmptyLabel: 'Empty'
|
|
16
18
|
};
|
|
17
19
|
//# sourceMappingURL=label-token-defaults.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label-token-defaults.js","sourceRoot":"","sources":["../../../../src/label-provider/table/label-token-defaults.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,kBAAkB,GAA4C;IACvE,uBAAuB,EAAE,gBAAgB;IACzC,qBAAqB,EAAE,cAAc;IACrC,qBAAqB,EAAE,cAAc;IACrC,mBAAmB,EAAE,YAAY;IACjC,qBAAqB,EAAE,cAAc;IACrC,wBAAwB,EAAE,SAAS;IACnC,6BAA6B,EAAE,SAAS;IACxC,qCAAqC,EAAE,kBAAkB;IACzD,sCAAsC,EAAE,mBAAmB;IAC3D,mBAAmB,EAAE,iBAAiB;IACtC,wBAAwB,EAAE,0BAA0B;IACpD,mBAAmB,EAAE,YAAY;IACjC,4BAA4B,EAAE,gBAAgB;IAC9C,oBAAoB,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"label-token-defaults.js","sourceRoot":"","sources":["../../../../src/label-provider/table/label-token-defaults.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,kBAAkB,GAA4C;IACvE,uBAAuB,EAAE,gBAAgB;IACzC,qBAAqB,EAAE,cAAc;IACrC,qBAAqB,EAAE,cAAc;IACrC,mBAAmB,EAAE,YAAY;IACjC,qBAAqB,EAAE,cAAc;IACrC,wBAAwB,EAAE,SAAS;IACnC,6BAA6B,EAAE,SAAS;IACxC,qCAAqC,EAAE,kBAAkB;IACzD,sCAAsC,EAAE,mBAAmB;IAC3D,mBAAmB,EAAE,iBAAiB;IACtC,wBAAwB,EAAE,0BAA0B;IACpD,mBAAmB,EAAE,YAAY;IACjC,4BAA4B,EAAE,gBAAgB;IAC9C,oBAAoB,EAAE,SAAS;IAC/B,oCAAoC,EAAE,UAAU;IAChD,kCAAkC,EAAE,OAAO;CAC9C,CAAC","sourcesContent":["import type * as TokensNamespace from './label-tokens';\n\ntype TokenName = keyof typeof TokensNamespace;\n\nexport const tableLabelDefaults: { readonly [key in TokenName]: string } = {\n tableGroupCollapseLabel: 'Collapse group',\n tableGroupExpandLabel: 'Expand group',\n tableRowCollapseLabel: 'Collapse row',\n tableRowExpandLabel: 'Expand row',\n tableCollapseAllLabel: 'Collapse all',\n tableCellActionMenuLabel: 'Options',\n tableColumnHeaderGroupedLabel: 'Grouped',\n tableColumnHeaderSortedAscendingLabel: 'Sorted ascending',\n tableColumnHeaderSortedDescendingLabel: 'Sorted descending',\n tableSelectAllLabel: 'Select all rows',\n tableGroupSelectAllLabel: 'Select all rows in group',\n tableRowSelectLabel: 'Select row',\n tableRowOperationColumnLabel: 'Row operations',\n tableRowLoadingLabel: 'Loading',\n tableGroupRowPlaceholderNoValueLabel: 'No value',\n tableGroupRowPlaceholderEmptyLabel: 'Empty'\n};\n"]}
|
|
@@ -13,3 +13,5 @@ export declare const tableGroupSelectAllLabel: DesignToken<string>;
|
|
|
13
13
|
export declare const tableRowSelectLabel: DesignToken<string>;
|
|
14
14
|
export declare const tableRowOperationColumnLabel: DesignToken<string>;
|
|
15
15
|
export declare const tableRowLoadingLabel: DesignToken<string>;
|
|
16
|
+
export declare const tableGroupRowPlaceholderNoValueLabel: DesignToken<string>;
|
|
17
|
+
export declare const tableGroupRowPlaceholderEmptyLabel: DesignToken<string>;
|
|
@@ -56,4 +56,12 @@ export const tableRowLoadingLabel = DesignToken.create({
|
|
|
56
56
|
name: 'table-row-loading-label',
|
|
57
57
|
cssCustomPropertyName: null
|
|
58
58
|
}).withDefault(tableLabelDefaults.tableRowLoadingLabel);
|
|
59
|
+
export const tableGroupRowPlaceholderNoValueLabel = DesignToken.create({
|
|
60
|
+
name: 'table-group-row-placeholder-no-value-label',
|
|
61
|
+
cssCustomPropertyName: null
|
|
62
|
+
}).withDefault(tableLabelDefaults.tableGroupRowPlaceholderNoValueLabel);
|
|
63
|
+
export const tableGroupRowPlaceholderEmptyLabel = DesignToken.create({
|
|
64
|
+
name: 'table-group-row-placeholder-empty-label',
|
|
65
|
+
cssCustomPropertyName: null
|
|
66
|
+
}).withDefault(tableLabelDefaults.tableGroupRowPlaceholderEmptyLabel);
|
|
59
67
|
//# sourceMappingURL=label-tokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label-tokens.js","sourceRoot":"","sources":["../../../../src/label-provider/table/label-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,CAAC,MAAM,uBAAuB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC9D,IAAI,EAAE,4BAA4B;IAClC,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;AAE3D,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC5D,IAAI,EAAE,0BAA0B;IAChC,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,CAAC;AAEzD,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC5D,IAAI,EAAE,0BAA0B;IAChC,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,CAAC;AAEzD,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC1D,IAAI,EAAE,wBAAwB;IAC9B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;AAEvD,MAAM,CAAC,MAAM,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,CAAC,wBAAwB,CAAC,CAAC;AAE5D,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC1D,IAAI,EAAE,wBAAwB;IAC9B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;AAEvD,MAAM,CAAC,MAAM,4BAA4B,GAAG,WAAW,CAAC,MAAM,CAAS;IACnE,IAAI,EAAE,kCAAkC;IACxC,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,4BAA4B,CAAC,CAAC;AAEhE,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC3D,IAAI,EAAE,yBAAyB;IAC/B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC","sourcesContent":["import { DesignToken } from '@microsoft/fast-foundation';\nimport { tableLabelDefaults } from './label-token-defaults';\n\nexport const tableGroupCollapseLabel = DesignToken.create<string>({\n name: 'table-group-collapse-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableGroupCollapseLabel);\n\nexport const tableGroupExpandLabel = DesignToken.create<string>({\n name: 'table-group-expand-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableGroupExpandLabel);\n\nexport const tableRowCollapseLabel = DesignToken.create<string>({\n name: 'table-row-collapse-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableRowCollapseLabel);\n\nexport const tableRowExpandLabel = DesignToken.create<string>({\n name: 'table-row-expand-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableRowExpandLabel);\n\nexport const tableCollapseAllLabel = DesignToken.create<string>({\n name: 'table-collapse-all-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableCollapseAllLabel);\n\nexport const tableCellActionMenuLabel = DesignToken.create<string>({\n name: 'table-cell-action-menu-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableCellActionMenuLabel);\n\nexport const tableColumnHeaderGroupedLabel = DesignToken.create<string>({\n name: 'table-column-header-grouped-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableColumnHeaderGroupedLabel);\n\nexport const tableColumnHeaderSortedAscendingLabel = DesignToken.create<string>(\n {\n name: 'table-column-header-sorted-ascending-label',\n cssCustomPropertyName: null\n }\n).withDefault(tableLabelDefaults.tableColumnHeaderSortedAscendingLabel);\n\nexport const tableColumnHeaderSortedDescendingLabel = DesignToken.create<string>({\n name: 'table-column-header-sorted-descending-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableColumnHeaderSortedDescendingLabel);\n\nexport const tableSelectAllLabel = DesignToken.create<string>({\n name: 'table-select-all-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableSelectAllLabel);\n\nexport const tableGroupSelectAllLabel = DesignToken.create<string>({\n name: 'table-group-select-all-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableGroupSelectAllLabel);\n\nexport const tableRowSelectLabel = DesignToken.create<string>({\n name: 'table-row-select-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableRowSelectLabel);\n\nexport const tableRowOperationColumnLabel = DesignToken.create<string>({\n name: 'table-row-operation-column-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableRowOperationColumnLabel);\n\nexport const tableRowLoadingLabel = DesignToken.create<string>({\n name: 'table-row-loading-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableRowLoadingLabel);\n"]}
|
|
1
|
+
{"version":3,"file":"label-tokens.js","sourceRoot":"","sources":["../../../../src/label-provider/table/label-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,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E,yBAAyB;IAC/B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,oCAAoC,GAAG,WAAW,CAAC,MAAM,CAAS;IAC3E,IAAI,EAAE,4CAA4C;IAClD,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,CAAC;AAExE,MAAM,CAAC,MAAM,kCAAkC,GAAG,WAAW,CAAC,MAAM,CAAS;IACzE,IAAI,EAAE,yCAAyC;IAC/C,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,kCAAkC,CAAC,CAAC","sourcesContent":["import { DesignToken } from '@microsoft/fast-foundation';\nimport { tableLabelDefaults } from './label-token-defaults';\n\nexport const tableGroupCollapseLabel = DesignToken.create<string>({\n name: 'table-group-collapse-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableGroupCollapseLabel);\n\nexport const tableGroupExpandLabel = DesignToken.create<string>({\n name: 'table-group-expand-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableGroupExpandLabel);\n\nexport const tableRowCollapseLabel = DesignToken.create<string>({\n name: 'table-row-collapse-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableRowCollapseLabel);\n\nexport const tableRowExpandLabel = DesignToken.create<string>({\n name: 'table-row-expand-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableRowExpandLabel);\n\nexport const tableCollapseAllLabel = DesignToken.create<string>({\n name: 'table-collapse-all-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableCollapseAllLabel);\n\nexport const tableCellActionMenuLabel = DesignToken.create<string>({\n name: 'table-cell-action-menu-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableCellActionMenuLabel);\n\nexport const tableColumnHeaderGroupedLabel = DesignToken.create<string>({\n name: 'table-column-header-grouped-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableColumnHeaderGroupedLabel);\n\nexport const tableColumnHeaderSortedAscendingLabel = DesignToken.create<string>(\n {\n name: 'table-column-header-sorted-ascending-label',\n cssCustomPropertyName: null\n }\n).withDefault(tableLabelDefaults.tableColumnHeaderSortedAscendingLabel);\n\nexport const tableColumnHeaderSortedDescendingLabel = DesignToken.create<string>({\n name: 'table-column-header-sorted-descending-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableColumnHeaderSortedDescendingLabel);\n\nexport const tableSelectAllLabel = DesignToken.create<string>({\n name: 'table-select-all-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableSelectAllLabel);\n\nexport const tableGroupSelectAllLabel = DesignToken.create<string>({\n name: 'table-group-select-all-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableGroupSelectAllLabel);\n\nexport const tableRowSelectLabel = DesignToken.create<string>({\n name: 'table-row-select-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableRowSelectLabel);\n\nexport const tableRowOperationColumnLabel = DesignToken.create<string>({\n name: 'table-row-operation-column-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableRowOperationColumnLabel);\n\nexport const tableRowLoadingLabel = DesignToken.create<string>({\n name: 'table-row-loading-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableRowLoadingLabel);\n\nexport const tableGroupRowPlaceholderNoValueLabel = DesignToken.create<string>({\n name: 'table-group-row-placeholder-no-value-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableGroupRowPlaceholderNoValueLabel);\n\nexport const tableGroupRowPlaceholderEmptyLabel = DesignToken.create<string>({\n name: 'table-group-row-placeholder-empty-label',\n cssCustomPropertyName: null\n}).withDefault(tableLabelDefaults.tableGroupRowPlaceholderEmptyLabel);\n"]}
|
|
@@ -10,8 +10,6 @@ declare global {
|
|
|
10
10
|
* The group header view for displaying date/time fields as text.
|
|
11
11
|
*/
|
|
12
12
|
export declare class TableColumnDateTextGroupHeaderView extends TableColumnTextGroupHeaderViewBase<TableNumberFieldValue, TableColumnDateTextColumnConfig> {
|
|
13
|
-
|
|
14
|
-
private groupHeaderValueChanged;
|
|
15
|
-
private updateText;
|
|
13
|
+
protected updateText(): void;
|
|
16
14
|
}
|
|
17
15
|
export declare const tableColumnDateTextGroupHeaderViewTag = "nimble-table-column-date-text-group-header-view";
|
|
@@ -7,12 +7,6 @@ import { formatNumericDate } from '../models/format-helper';
|
|
|
7
7
|
* The group header view for displaying date/time fields as text.
|
|
8
8
|
*/
|
|
9
9
|
export class TableColumnDateTextGroupHeaderView extends TableColumnTextGroupHeaderViewBase {
|
|
10
|
-
columnConfigChanged() {
|
|
11
|
-
this.updateText();
|
|
12
|
-
}
|
|
13
|
-
groupHeaderValueChanged() {
|
|
14
|
-
this.updateText();
|
|
15
|
-
}
|
|
16
10
|
updateText() {
|
|
17
11
|
if (this.columnConfig) {
|
|
18
12
|
this.text = formatNumericDate(this.columnConfig.formatter, this.groupHeaderValue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/table-column/date-text/group-header-view/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAO5D;;GAEG;AACH,MAAM,OAAO,kCAAmC,SAAQ,kCAGvD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/table-column/date-text/group-header-view/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAO5D;;GAEG;AACH,MAAM,OAAO,kCAAmC,SAAQ,kCAGvD;IACa,UAAU;QAChB,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,IAAI,GAAG,iBAAiB,CACzB,IAAI,CAAC,YAAY,CAAC,SAAS,EAC3B,IAAI,CAAC,gBAAgB,CACxB,CAAC;SACL;aAAM;YACH,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;SAClB;IACL,CAAC;CACJ;AAED,MAAM,kCAAkC,GAAG,kCAAkC,CAAC,OAAO,CAAC;IAClF,QAAQ,EAAE,0CAA0C;IACpD,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AACH,YAAY,CAAC,WAAW,EAAE;KACrB,UAAU,CAAC,QAAQ,CAAC;KACpB,QAAQ,CAAC,kCAAkC,EAAE,CAAC,CAAC;AACpD,MAAM,CAAC,MAAM,qCAAqC,GAAG,iDAAiD,CAAC","sourcesContent":["import { DesignSystem } from '@microsoft/fast-foundation';\nimport type { TableNumberFieldValue } from '../../../table/types';\nimport { TableColumnTextGroupHeaderViewBase } from '../../text-base/group-header-view';\nimport { template } from '../../text-base/group-header-view/template';\nimport { styles } from '../../text-base/group-header-view/styles';\nimport type { TableColumnDateTextColumnConfig } from '..';\nimport { formatNumericDate } from '../models/format-helper';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-table-column-date-text-group-header': TableColumnDateTextGroupHeaderView;\n }\n}\n/**\n * The group header view for displaying date/time fields as text.\n */\nexport class TableColumnDateTextGroupHeaderView extends TableColumnTextGroupHeaderViewBase<\nTableNumberFieldValue,\nTableColumnDateTextColumnConfig\n> {\n protected updateText(): void {\n if (this.columnConfig) {\n this.text = formatNumericDate(\n this.columnConfig.formatter,\n this.groupHeaderValue\n );\n } else {\n this.text = '';\n }\n }\n}\n\nconst tableColumnDateTextGroupHeaderView = TableColumnDateTextGroupHeaderView.compose({\n baseName: 'table-column-date-text-group-header-view',\n template,\n styles\n});\nDesignSystem.getOrCreate()\n .withPrefix('nimble')\n .register(tableColumnDateTextGroupHeaderView());\nexport const tableColumnDateTextGroupHeaderViewTag = 'nimble-table-column-date-text-group-header-view';\n"]}
|
|
@@ -10,8 +10,6 @@ declare global {
|
|
|
10
10
|
* The group header view for displaying duration fields as text.
|
|
11
11
|
*/
|
|
12
12
|
export declare class TableColumnDurationTextGroupHeaderView extends TableColumnTextGroupHeaderViewBase<TableNumberFieldValue, TableColumnDurationTextColumnConfig> {
|
|
13
|
-
|
|
14
|
-
private groupHeaderValueChanged;
|
|
15
|
-
private updateText;
|
|
13
|
+
protected updateText(): void;
|
|
16
14
|
}
|
|
17
15
|
export declare const tableColumnDurationTextGroupHeaderViewTag = "nimble-table-column-duration-text-group-header-view";
|
|
@@ -6,12 +6,6 @@ import { styles } from '../../text-base/group-header-view/styles';
|
|
|
6
6
|
* The group header view for displaying duration fields as text.
|
|
7
7
|
*/
|
|
8
8
|
export class TableColumnDurationTextGroupHeaderView extends TableColumnTextGroupHeaderViewBase {
|
|
9
|
-
columnConfigChanged() {
|
|
10
|
-
this.updateText();
|
|
11
|
-
}
|
|
12
|
-
groupHeaderValueChanged() {
|
|
13
|
-
this.updateText();
|
|
14
|
-
}
|
|
15
9
|
updateText() {
|
|
16
10
|
if (this.columnConfig) {
|
|
17
11
|
this.text = this.columnConfig.formatter.format(this.groupHeaderValue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/table-column/duration-text/group-header-view/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAQlE;;GAEG;AACH,MAAM,OAAO,sCAAuC,SAAQ,kCAG3D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/table-column/duration-text/group-header-view/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAQlE;;GAEG;AACH,MAAM,OAAO,sCAAuC,SAAQ,kCAG3D;IACa,UAAU;QAChB,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,MAAM,CAC1C,IAAI,CAAC,gBAAgB,CACxB,CAAC;SACL;aAAM;YACH,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;SAClB;IACL,CAAC;CACJ;AAED,MAAM,sCAAsC,GAAG,sCAAsC,CAAC,OAAO,CAAC;IAC1F,QAAQ,EAAE,8CAA8C;IACxD,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AACH,YAAY,CAAC,WAAW,EAAE;KACrB,UAAU,CAAC,QAAQ,CAAC;KACpB,QAAQ,CAAC,sCAAsC,EAAE,CAAC,CAAC;AACxD,MAAM,CAAC,MAAM,yCAAyC,GAAG,qDAAqD,CAAC","sourcesContent":["import { DesignSystem } from '@microsoft/fast-foundation';\nimport type { TableNumberFieldValue } from '../../../table/types';\nimport { TableColumnTextGroupHeaderViewBase } from '../../text-base/group-header-view';\nimport { template } from '../../text-base/group-header-view/template';\nimport { styles } from '../../text-base/group-header-view/styles';\nimport type { TableColumnDurationTextColumnConfig } from '..';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-table-duration-text-group-header': TableColumnDurationTextGroupHeaderView;\n }\n}\n/**\n * The group header view for displaying duration fields as text.\n */\nexport class TableColumnDurationTextGroupHeaderView extends TableColumnTextGroupHeaderViewBase<\nTableNumberFieldValue,\nTableColumnDurationTextColumnConfig\n> {\n protected updateText(): void {\n if (this.columnConfig) {\n this.text = this.columnConfig.formatter.format(\n this.groupHeaderValue\n );\n } else {\n this.text = '';\n }\n }\n}\n\nconst tableColumnDurationTextGroupHeaderView = TableColumnDurationTextGroupHeaderView.compose({\n baseName: 'table-column-duration-text-group-header-view',\n template,\n styles\n});\nDesignSystem.getOrCreate()\n .withPrefix('nimble')\n .register(tableColumnDurationTextGroupHeaderView());\nexport const tableColumnDurationTextGroupHeaderViewTag = 'nimble-table-column-duration-text-group-header-view';\n"]}
|
|
@@ -10,8 +10,6 @@ declare global {
|
|
|
10
10
|
* A group header view for enum columns
|
|
11
11
|
*/
|
|
12
12
|
export declare class TableColumnEnumTextGroupHeaderView extends TableColumnTextGroupHeaderViewBase<TableFieldValue, TableColumnEnumColumnConfig> {
|
|
13
|
-
|
|
14
|
-
private groupHeaderValueChanged;
|
|
15
|
-
private updateText;
|
|
13
|
+
protected updateText(): void;
|
|
16
14
|
}
|
|
17
15
|
export declare const tableColumnEnumTextGroupHeaderViewTag = "nimble-table-column-enum-text-group-header-view";
|
|
@@ -7,19 +7,8 @@ import { MappingTextConfig } from '../../enum-base/models/mapping-text-config';
|
|
|
7
7
|
* A group header view for enum columns
|
|
8
8
|
*/
|
|
9
9
|
export class TableColumnEnumTextGroupHeaderView extends TableColumnTextGroupHeaderViewBase {
|
|
10
|
-
columnConfigChanged() {
|
|
11
|
-
this.updateText();
|
|
12
|
-
}
|
|
13
|
-
groupHeaderValueChanged() {
|
|
14
|
-
this.updateText();
|
|
15
|
-
}
|
|
16
10
|
updateText() {
|
|
17
|
-
const
|
|
18
|
-
if (value === undefined || value === null) {
|
|
19
|
-
this.text = '';
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
const config = this.columnConfig?.mappingConfigs.get(value);
|
|
11
|
+
const config = this.columnConfig?.mappingConfigs.get(this.groupHeaderValue);
|
|
23
12
|
this.text = config instanceof MappingTextConfig && config.text
|
|
24
13
|
? config.text
|
|
25
14
|
: '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/table-column/enum-text/group-header-view/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAEtE,OAAO,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAC;AAEvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAQ/E;;GAEG;AACH,MAAM,OAAO,kCAAmC,SAAQ,kCAGvD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/table-column/enum-text/group-header-view/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAEtE,OAAO,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAC;AAEvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAQ/E;;GAEG;AACH,MAAM,OAAO,kCAAmC,SAAQ,kCAGvD;IACa,UAAU;QAChB,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,EAAE,cAAc,CAAC,GAAG,CAChD,IAAI,CAAC,gBAAiB,CACzB,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,MAAM,YAAY,iBAAiB,IAAI,MAAM,CAAC,IAAI;YAC1D,CAAC,CAAC,MAAM,CAAC,IAAI;YACb,CAAC,CAAC,EAAE,CAAC;IACb,CAAC;CACJ;AAED,MAAM,uBAAuB,GAAG,kCAAkC,CAAC,OAAO,CAAC;IACvE,QAAQ,EAAE,0CAA0C;IACpD,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AACH,YAAY,CAAC,WAAW,EAAE;KACrB,UAAU,CAAC,QAAQ,CAAC;KACpB,QAAQ,CAAC,uBAAuB,EAAE,CAAC,CAAC;AACzC,MAAM,CAAC,MAAM,qCAAqC,GAAG,iDAAiD,CAAC","sourcesContent":["import { DesignSystem } from '@microsoft/fast-foundation';\nimport { styles } from '../../text-base/group-header-view/styles';\nimport { template } from '../../text-base/group-header-view/template';\nimport type { TableColumnEnumColumnConfig } from '../../enum-base';\nimport { TableColumnTextGroupHeaderViewBase } from '../../text-base/group-header-view';\nimport type { TableFieldValue } from '../../../table/types';\nimport { MappingTextConfig } from '../../enum-base/models/mapping-text-config';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-table-column-enum-text-group-header-view': TableColumnEnumTextGroupHeaderView;\n }\n}\n\n/**\n * A group header view for enum columns\n */\nexport class TableColumnEnumTextGroupHeaderView extends TableColumnTextGroupHeaderViewBase<\nTableFieldValue,\nTableColumnEnumColumnConfig\n> {\n protected updateText(): void {\n const config = this.columnConfig?.mappingConfigs.get(\n this.groupHeaderValue!\n );\n this.text = config instanceof MappingTextConfig && config.text\n ? config.text\n : '';\n }\n}\n\nconst enumTextGroupHeaderView = TableColumnEnumTextGroupHeaderView.compose({\n baseName: 'table-column-enum-text-group-header-view',\n template,\n styles\n});\nDesignSystem.getOrCreate()\n .withPrefix('nimble')\n .register(enumTextGroupHeaderView());\nexport const tableColumnEnumTextGroupHeaderViewTag = 'nimble-table-column-enum-text-group-header-view';\n"]}
|
|
@@ -16,8 +16,6 @@ export declare class TableColumnIconGroupHeaderView extends TableColumnTextGroup
|
|
|
16
16
|
severity: IconSeverity;
|
|
17
17
|
iconTemplate?: ViewTemplate<IconView>;
|
|
18
18
|
visual?: 'spinner' | 'icon';
|
|
19
|
-
|
|
20
|
-
private groupHeaderValueChanged;
|
|
21
|
-
private updateState;
|
|
19
|
+
protected updateText(): void;
|
|
22
20
|
}
|
|
23
21
|
export declare const tableColumnIconGroupHeaderViewTag = "nimble-table-column-icon-group-header-view";
|
|
@@ -10,21 +10,13 @@ import { MappingSpinnerConfig } from '../../enum-base/models/mapping-spinner-con
|
|
|
10
10
|
* The group header view for the icon column
|
|
11
11
|
*/
|
|
12
12
|
export class TableColumnIconGroupHeaderView extends TableColumnTextGroupHeaderViewBase {
|
|
13
|
-
|
|
14
|
-
this.updateState();
|
|
15
|
-
}
|
|
16
|
-
groupHeaderValueChanged() {
|
|
17
|
-
this.updateState();
|
|
18
|
-
}
|
|
19
|
-
updateState() {
|
|
13
|
+
updateText() {
|
|
20
14
|
this.visual = undefined;
|
|
21
15
|
if (!this.columnConfig) {
|
|
16
|
+
this.text = '';
|
|
22
17
|
return;
|
|
23
18
|
}
|
|
24
19
|
const value = this.groupHeaderValue;
|
|
25
|
-
if (value === undefined || value === null) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
20
|
const mappingConfig = this.columnConfig.mappingConfigs.get(value);
|
|
29
21
|
if (mappingConfig instanceof MappingIconConfig) {
|
|
30
22
|
this.visual = 'icon';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/table-column/icon/group-header-view/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAgB,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC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C,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC;SAClD;aAAM,IAAI,aAAa,YAAY,oBAAoB,EAAE;YACtD,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;YACxB,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,IAAI,IAAI,EAAE,CAAC;SACxC;IACL,CAAC;CACJ;AA1BG;IADC,UAAU;gEACmB;AAG9B;IADC,UAAU;oEACkC;AAG7C;IADC,UAAU;8DACwB;AAsBvC,MAAM,mBAAmB,GAAG,8BAA8B,CAAC,OAAO,CAAC;IAC/D,QAAQ,EAAE,qCAAqC;IAC/C,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AACH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC,CAAC;AAChF,MAAM,CAAC,MAAM,iCAAiC,GAAG,4CAA4C,CAAC","sourcesContent":["import { DesignSystem } from '@microsoft/fast-foundation';\nimport { ViewTemplate, observable } from '@microsoft/fast-element';\nimport { styles } from './styles';\nimport { template } from './template';\nimport type { TableColumnEnumColumnConfig } from '../../enum-base';\nimport type { TableFieldValue } from '../../../table/types';\nimport { TableColumnTextGroupHeaderViewBase } from '../../text-base/group-header-view';\nimport type { IconSeverity } from '../../../icon-base/types';\nimport {\n MappingIconConfig,\n type IconView\n} from '../../enum-base/models/mapping-icon-config';\nimport { MappingSpinnerConfig } from '../../enum-base/models/mapping-spinner-config';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nimble-table-column-icon-group-header-view': TableColumnIconGroupHeaderView;\n }\n}\n\n/**\n * The group header view for the icon column\n */\nexport class TableColumnIconGroupHeaderView\n extends TableColumnTextGroupHeaderViewBase<\n TableFieldValue,\n TableColumnEnumColumnConfig\n >\n implements IconView {\n @observable\n public severity: IconSeverity;\n\n @observable\n public iconTemplate?: ViewTemplate<IconView>;\n\n @observable\n public visual?: 'spinner' | 'icon';\n\n protected updateText(): void {\n this.visual = undefined;\n if (!this.columnConfig) {\n this.text = '';\n return;\n }\n const value = this.groupHeaderValue;\n const mappingConfig = this.columnConfig.mappingConfigs.get(value!);\n if (mappingConfig instanceof MappingIconConfig) {\n this.visual = 'icon';\n this.severity = mappingConfig.severity;\n this.text = mappingConfig.text ?? '';\n this.iconTemplate = mappingConfig.iconTemplate;\n } else if (mappingConfig instanceof MappingSpinnerConfig) {\n this.visual = 'spinner';\n this.text = mappingConfig.text ?? '';\n }\n }\n}\n\nconst iconGroupHeaderView = TableColumnIconGroupHeaderView.compose({\n baseName: 'table-column-icon-group-header-view',\n template,\n styles\n});\nDesignSystem.getOrCreate().withPrefix('nimble').register(iconGroupHeaderView());\nexport const tableColumnIconGroupHeaderViewTag = 'nimble-table-column-icon-group-header-view';\n"]}
|
|
@@ -20,5 +20,11 @@ export const template = html `
|
|
|
20
20
|
title="${x => (x.hasOverflow && x.text ? x.text : null)}"
|
|
21
21
|
>${x => x.text}</span>
|
|
22
22
|
`)}
|
|
23
|
+
${when(x => x.visual === undefined, html `
|
|
24
|
+
<span
|
|
25
|
+
${overflow('hasOverflow')}
|
|
26
|
+
title="${x => (x.hasOverflow && x.text ? x.text : null)}"
|
|
27
|
+
>${x => x.text}</span>
|
|
28
|
+
`)}
|
|
23
29
|
`;
|
|
24
30
|
//# sourceMappingURL=template.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../../src/table-column/icon/group-header-view/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAEjE,kBAAkB;AAClB,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAgC;MACtD,IAAI,CACF,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,MAAM,EACxB,IAAI,CAAgC;cAC9B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAa;;kBAEhB,QAAQ,CAAC,aAAa,CAAC;yBAChB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;eACxD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,SAAS,CAC9B;MACC,IAAI,CACF,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,SAAS,EAC3B,IAAI,CAAgC;WACjC,UAAU;qBACA,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;0BACN,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;;YAEzB,UAAU;;cAER,QAAQ,CAAC,aAAa,CAAC;qBAChB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;WACxD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;KACjB,CACA;CACJ,CAAC","sourcesContent":["import { html, when } from '@microsoft/fast-element';\n\nimport type { TableColumnIconGroupHeaderView } from '.';\nimport { spinnerTag } from '../../../spinner';\nimport { overflow } from '../../../utilities/directive/overflow';\n\n// prettier-ignore\nexport const template = html<TableColumnIconGroupHeaderView>`\n ${when(\n x => x.visual === 'icon',\n html<TableColumnIconGroupHeaderView>`\n ${x => x.iconTemplate!}\n <span \n ${overflow('hasOverflow')}\n title=\"${x => (x.hasOverflow && x.text ? x.text : null)}\"\n >${x => x.text}</span>`\n )}\n ${when(\n x => x.visual === 'spinner',\n html<TableColumnIconGroupHeaderView>`\n <${spinnerTag}\n title=\"${x => x.text}\"\n aria-label=\"${x => x.text}\"\n class=\"no-shrink\">\n </${spinnerTag}>\n <span \n ${overflow('hasOverflow')}\n title=\"${x => (x.hasOverflow && x.text ? x.text : null)}\"\n >${x => x.text}</span>\n `\n )}\n`;\n"]}
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../../src/table-column/icon/group-header-view/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAEjE,kBAAkB;AAClB,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAgC;MACtD,IAAI,CACF,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,MAAM,EACxB,IAAI,CAAgC;cAC9B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAa;;kBAEhB,QAAQ,CAAC,aAAa,CAAC;yBAChB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;eACxD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,SAAS,CAC9B;MACC,IAAI,CACF,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,SAAS,EAC3B,IAAI,CAAgC;WACjC,UAAU;qBACA,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;0BACN,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;;YAEzB,UAAU;;cAER,QAAQ,CAAC,aAAa,CAAC;qBAChB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;WACxD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;KACjB,CACA;MACC,IAAI,CACF,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,SAAS,EAC3B,IAAI,CAAgC;;cAE9B,QAAQ,CAAC,aAAa,CAAC;qBAChB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;WACxD,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;KACjB,CACA;CACJ,CAAC","sourcesContent":["import { html, when } from '@microsoft/fast-element';\n\nimport type { TableColumnIconGroupHeaderView } from '.';\nimport { spinnerTag } from '../../../spinner';\nimport { overflow } from '../../../utilities/directive/overflow';\n\n// prettier-ignore\nexport const template = html<TableColumnIconGroupHeaderView>`\n ${when(\n x => x.visual === 'icon',\n html<TableColumnIconGroupHeaderView>`\n ${x => x.iconTemplate!}\n <span \n ${overflow('hasOverflow')}\n title=\"${x => (x.hasOverflow && x.text ? x.text : null)}\"\n >${x => x.text}</span>`\n )}\n ${when(\n x => x.visual === 'spinner',\n html<TableColumnIconGroupHeaderView>`\n <${spinnerTag}\n title=\"${x => x.text}\"\n aria-label=\"${x => x.text}\"\n class=\"no-shrink\">\n </${spinnerTag}>\n <span \n ${overflow('hasOverflow')}\n title=\"${x => (x.hasOverflow && x.text ? x.text : null)}\"\n >${x => x.text}</span>\n `\n )}\n ${when(\n x => x.visual === undefined,\n html<TableColumnIconGroupHeaderView>`\n <span \n ${overflow('hasOverflow')}\n title=\"${x => (x.hasOverflow && x.text ? x.text : null)}\"\n >${x => x.text}</span>\n `\n )}\n`;\n"]}
|
|
@@ -10,8 +10,6 @@ declare global {
|
|
|
10
10
|
* The group header view for displaying number fields as text.
|
|
11
11
|
*/
|
|
12
12
|
export declare class TableColumnNumberTextGroupHeaderView extends TableColumnTextGroupHeaderViewBase<TableNumberFieldValue, TableColumnNumberTextColumnConfig> {
|
|
13
|
-
|
|
14
|
-
private groupHeaderValueChanged;
|
|
15
|
-
private updateText;
|
|
13
|
+
protected updateText(): void;
|
|
16
14
|
}
|
|
17
15
|
export declare const tableColumnNumberTextGroupHeaderTag = "nimble-table-column-number-text-group-header-view";
|