@ni/nimble-components 20.2.15 → 20.2.16
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 +35 -19
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +30 -17
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/anchor/template.d.ts +1 -1
- package/dist/esm/anchor/template.js +34 -19
- package/dist/esm/anchor/template.js.map +1 -1
- package/dist/esm/src/anchor/template.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import { AnchorOptions, FoundationElementTemplate } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { AnchorOptions, FoundationElementTemplate } from '@microsoft/fast-foundation';
|
|
3
3
|
import type { Anchor } from '.';
|
|
4
4
|
export declare const template: FoundationElementTemplate<ViewTemplate<Anchor>, AnchorOptions>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { html, ref, slotted } from '@microsoft/fast-element';
|
|
2
|
-
import { startSlotTemplate } from '@microsoft/fast-foundation';
|
|
3
2
|
// prettier-ignore
|
|
4
|
-
export const template = (
|
|
5
|
-
<a
|
|
3
|
+
export const template = (_context, definition) => html `<a
|
|
6
4
|
class="control"
|
|
7
5
|
part="control"
|
|
8
6
|
download="${x => x.download}"
|
|
@@ -34,20 +32,37 @@ export const template = (context, definition) => html `
|
|
|
34
32
|
aria-relevant="${x => x.ariaRelevant}"
|
|
35
33
|
aria-roledescription="${x => x.ariaRoledescription}"
|
|
36
34
|
${ref('control')}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
35
|
+
>${
|
|
36
|
+
/* Start and End slot templates inlined to avoid extra whitespace.
|
|
37
|
+
See https://github.com/microsoft/fast/issues/6557
|
|
38
|
+
|
|
39
|
+
Whitespace intentionally avoided between tags for inline styles */ ''}<span
|
|
40
|
+
part="start"
|
|
41
|
+
${ref('startContainer')}
|
|
42
|
+
class="${_x => (definition.start ? 'start' : null)}"
|
|
43
|
+
><slot
|
|
44
|
+
name="start"
|
|
45
|
+
${ref('start')}
|
|
46
|
+
@slotchange="${x => x.handleStartContentChange()}">
|
|
47
|
+
${definition.start || ''}
|
|
48
|
+
</slot
|
|
49
|
+
></span
|
|
50
|
+
><span
|
|
51
|
+
class="content"
|
|
52
|
+
part="content"
|
|
53
|
+
><slot
|
|
54
|
+
${slotted('defaultSlottedContent')}
|
|
55
|
+
></slot
|
|
56
|
+
></span
|
|
57
|
+
><span
|
|
58
|
+
part="end"
|
|
59
|
+
${ref('endContainer')}
|
|
60
|
+
class=${_x => (definition.end ? 'end' : null)}
|
|
61
|
+
><slot
|
|
62
|
+
name="end"
|
|
63
|
+
${ref('end')}
|
|
64
|
+
@slotchange="${x => x.handleEndContentChange()}">
|
|
65
|
+
${definition.end || ''}
|
|
66
|
+
</slot
|
|
67
|
+
></span></a>`;
|
|
53
68
|
//# sourceMappingURL=template.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/anchor/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAgB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/anchor/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAgB,MAAM,yBAAyB,CAAC;AAO3E,kBAAkB;AAClB,MAAM,CAAC,MAAM,QAAQ,GAGjB,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,CAAC,IAAI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CAAC,QAAQ;qBACf,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;yBACX,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;gCACZ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAmB;UAChD,GAAG,CAAC,SAAS,CAAC;OACjB;AACH;;;qEAGqE,CAAC,EAC1E;;UAEU,GAAG,CAAC,gBAAgB,CAAC;iBACd,EAAE,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;;;cAG5C,GAAG,CAAC,OAAO,CAAC;2BACC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,wBAAwB,EAAE;cAC9C,UAAU,CAAC,KAAK,IAAI,EAAE;;;;;;;cAOtB,OAAO,CAAC,uBAAuB,CAAC;;;;;UAKpC,GAAG,CAAC,cAAc,CAAC;gBACb,EAAE,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;;;cAGvC,GAAG,CAAC,KAAK,CAAC;2BACG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,sBAAsB,EAAE;cAC5C,UAAU,CAAC,GAAG,IAAI,EAAE;;iBAEjB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import { AnchorOptions, FoundationElementTemplate } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { AnchorOptions, FoundationElementTemplate } from '@microsoft/fast-foundation';
|
|
3
3
|
import type { Anchor } from '.';
|
|
4
4
|
export declare const template: FoundationElementTemplate<ViewTemplate<Anchor>, AnchorOptions>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/nimble-components",
|
|
3
|
-
"version": "20.2.
|
|
3
|
+
"version": "20.2.16",
|
|
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",
|