@fluentui/web-components 3.1.4 → 3.2.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/CHANGELOG.md +19 -4
- package/custom-elements.json +1361 -2650
- package/dist/esm/accordion-item/accordion-item.d.ts +4 -25
- package/dist/esm/accordion-item/accordion-item.js +4 -22
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.styles.css +3 -11
- package/dist/esm/accordion-item/accordion-item.styles.js +3 -11
- package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.d.ts +5 -57
- package/dist/esm/anchor-button/anchor-button.js +5 -59
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/avatar/avatar.d.ts +5 -28
- package/dist/esm/avatar/avatar.js +4 -9
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/badge/badge.d.ts +5 -34
- package/dist/esm/badge/badge.js +6 -35
- package/dist/esm/badge/badge.js.map +1 -1
- package/dist/esm/button/button.d.ts +5 -33
- package/dist/esm/button/button.js +5 -25
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/checkbox/checkbox.d.ts +3 -17
- package/dist/esm/checkbox/checkbox.js +4 -7
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/divider/divider.d.ts +4 -19
- package/dist/esm/divider/divider.js +4 -11
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/drawer/drawer.d.ts +4 -16
- package/dist/esm/drawer/drawer.js +4 -22
- package/dist/esm/drawer/drawer.js.map +1 -1
- package/dist/esm/drawer/drawer.template.html +0 -2
- package/dist/esm/drawer/drawer.template.js +0 -2
- package/dist/esm/drawer/drawer.template.js.map +1 -1
- package/dist/esm/dropdown/dropdown.base.js +1 -1
- package/dist/esm/dropdown/dropdown.base.js.map +1 -1
- package/dist/esm/dropdown/dropdown.d.ts +3 -16
- package/dist/esm/dropdown/dropdown.js +3 -20
- package/dist/esm/dropdown/dropdown.js.map +1 -1
- package/dist/esm/dropdown/dropdown.options.d.ts +4 -4
- package/dist/esm/dropdown/dropdown.options.js.map +1 -1
- package/dist/esm/dropdown/dropdown.styles.css +28 -14
- package/dist/esm/dropdown/dropdown.styles.js +28 -14
- package/dist/esm/dropdown/dropdown.styles.js.map +1 -1
- package/dist/esm/field/field.d.ts +2 -9
- package/dist/esm/field/field.js +2 -17
- package/dist/esm/field/field.js.map +1 -1
- package/dist/esm/field/field.styles.css +3 -5
- package/dist/esm/field/field.styles.js +2 -5
- package/dist/esm/field/field.styles.js.map +1 -1
- package/dist/esm/image/image.d.ts +6 -41
- package/dist/esm/image/image.js +7 -17
- package/dist/esm/image/image.js.map +1 -1
- package/dist/esm/label/label.d.ts +4 -25
- package/dist/esm/label/label.js +4 -17
- package/dist/esm/label/label.js.map +1 -1
- package/dist/esm/link/link.d.ts +3 -20
- package/dist/esm/link/link.js +3 -22
- package/dist/esm/link/link.js.map +1 -1
- package/dist/esm/menu/menu.d.ts +1 -6
- package/dist/esm/menu/menu.js +1 -4
- package/dist/esm/menu/menu.js.map +1 -1
- package/dist/esm/menu-item/menu-item.styles.css +16 -2
- package/dist/esm/menu-item/menu-item.styles.js +17 -3
- package/dist/esm/menu-item/menu-item.styles.js.map +1 -1
- package/dist/esm/menu-list/menu-list.styles.css +1 -48
- package/dist/esm/menu-list/menu-list.styles.js +1 -48
- package/dist/esm/menu-list/menu-list.styles.js.map +1 -1
- package/dist/esm/message-bar/message-bar.d.ts +3 -25
- package/dist/esm/message-bar/message-bar.js +4 -11
- package/dist/esm/message-bar/message-bar.js.map +1 -1
- package/dist/esm/option/option.d.ts +2 -14
- package/dist/esm/option/option.js +2 -19
- package/dist/esm/option/option.js.map +1 -1
- package/dist/esm/option/option.styles.css +1 -1
- package/dist/esm/option/option.styles.js +2 -2
- package/dist/esm/option/option.styles.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.base.d.ts +2 -16
- package/dist/esm/progress-bar/progress-bar.base.js +2 -22
- package/dist/esm/progress-bar/progress-bar.base.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.d.ts +2 -20
- package/dist/esm/progress-bar/progress-bar.js +2 -8
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/rating-display/rating-display.d.ts +4 -27
- package/dist/esm/rating-display/rating-display.js +4 -22
- package/dist/esm/rating-display/rating-display.js.map +1 -1
- package/dist/esm/slider/slider.d.ts +2 -8
- package/dist/esm/slider/slider.js +1 -3
- package/dist/esm/slider/slider.js.map +1 -1
- package/dist/esm/spinner/spinner.d.ts +3 -16
- package/dist/esm/spinner/spinner.js +3 -8
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/tablist/tablist.base.js +10 -2
- package/dist/esm/tablist/tablist.base.js.map +1 -1
- package/dist/esm/tablist/tablist.d.ts +2 -12
- package/dist/esm/tablist/tablist.js +2 -17
- package/dist/esm/tablist/tablist.js.map +1 -1
- package/dist/esm/text/text.d.ts +10 -84
- package/dist/esm/text/text.js +11 -82
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/text-input/text-input.d.ts +2 -17
- package/dist/esm/text-input/text-input.js +2 -8
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/textarea/textarea.base.d.ts +3 -18
- package/dist/esm/textarea/textarea.base.js +5 -30
- package/dist/esm/textarea/textarea.base.js.map +1 -1
- package/dist/esm/textarea/textarea.d.ts +3 -17
- package/dist/esm/textarea/textarea.js +14 -28
- package/dist/esm/textarea/textarea.js.map +1 -1
- package/dist/web-components-all.js +425 -892
- package/dist/web-components-all.min.js +15 -15
- package/dist/web-components.d.ts +91 -600
- package/dist/web-components.js +428 -971
- package/dist/web-components.min.js +15 -15
- package/package.json +2 -2
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { StaticallyComposableHTML } from '../utils/template-helpers.js';
|
|
2
2
|
import { StartEnd, type StartEndOptions } from '../patterns/start-end.js';
|
|
3
3
|
import { BaseAccordionItem } from './accordion-item.base.js';
|
|
4
|
-
import { AccordionItemMarkerPosition, AccordionItemSize } from './accordion-item.options.js';
|
|
5
4
|
/**
|
|
6
5
|
* Accordion Item configuration options
|
|
7
6
|
*
|
|
@@ -17,33 +16,13 @@ export type AccordionItemOptions = StartEndOptions<AccordionItem> & {
|
|
|
17
16
|
*
|
|
18
17
|
* @tag fluent-accordion-item
|
|
19
18
|
*
|
|
19
|
+
* @presentational {AccordionItemSize | undefined} size - Defines accordion header font size.
|
|
20
|
+
* @presentational {AccordionItemMarkerPosition | undefined} marker-position - Sets expand and collapsed icon position.
|
|
21
|
+
* @presentational {boolean} block - Sets the width of the focus state.
|
|
22
|
+
*
|
|
20
23
|
* @public
|
|
21
24
|
*/
|
|
22
25
|
export declare class AccordionItem extends BaseAccordionItem {
|
|
23
|
-
/**
|
|
24
|
-
* Defines accordion header font size.
|
|
25
|
-
*
|
|
26
|
-
* @public
|
|
27
|
-
* @remarks
|
|
28
|
-
* HTML Attribute: size
|
|
29
|
-
*/
|
|
30
|
-
size?: AccordionItemSize;
|
|
31
|
-
/**
|
|
32
|
-
* Sets expand and collapsed icon position.
|
|
33
|
-
*
|
|
34
|
-
* @public
|
|
35
|
-
* @remarks
|
|
36
|
-
* HTML Attribute: marker-position
|
|
37
|
-
*/
|
|
38
|
-
markerPosition?: AccordionItemMarkerPosition;
|
|
39
|
-
/**
|
|
40
|
-
* Sets the width of the focus state.
|
|
41
|
-
*
|
|
42
|
-
* @public
|
|
43
|
-
* @remarks
|
|
44
|
-
* HTML Attribute: block
|
|
45
|
-
*/
|
|
46
|
-
block: boolean;
|
|
47
26
|
}
|
|
48
27
|
/**
|
|
49
28
|
* Mark internal because exporting class and interface of the same name
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { attr } from '@microsoft/fast-element';
|
|
3
1
|
import { StartEnd } from '../patterns/start-end.js';
|
|
4
2
|
import { applyMixins } from '../utils/apply-mixins.js';
|
|
5
3
|
import { BaseAccordionItem } from './accordion-item.base.js';
|
|
@@ -9,29 +7,13 @@ import { BaseAccordionItem } from './accordion-item.base.js';
|
|
|
9
7
|
*
|
|
10
8
|
* @tag fluent-accordion-item
|
|
11
9
|
*
|
|
10
|
+
* @presentational {AccordionItemSize | undefined} size - Defines accordion header font size.
|
|
11
|
+
* @presentational {AccordionItemMarkerPosition | undefined} marker-position - Sets expand and collapsed icon position.
|
|
12
|
+
* @presentational {boolean} block - Sets the width of the focus state.
|
|
13
|
+
*
|
|
12
14
|
* @public
|
|
13
15
|
*/
|
|
14
16
|
export class AccordionItem extends BaseAccordionItem {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
/**
|
|
18
|
-
* Sets the width of the focus state.
|
|
19
|
-
*
|
|
20
|
-
* @public
|
|
21
|
-
* @remarks
|
|
22
|
-
* HTML Attribute: block
|
|
23
|
-
*/
|
|
24
|
-
this.block = false;
|
|
25
|
-
}
|
|
26
17
|
}
|
|
27
|
-
__decorate([
|
|
28
|
-
attr
|
|
29
|
-
], AccordionItem.prototype, "size", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
attr({ attribute: 'marker-position' })
|
|
32
|
-
], AccordionItem.prototype, "markerPosition", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
attr({ mode: 'boolean' })
|
|
35
|
-
], AccordionItem.prototype, "block", void 0);
|
|
36
18
|
applyMixins(AccordionItem, StartEnd);
|
|
37
19
|
//# sourceMappingURL=accordion-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-item.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accordion-item.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAwB,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAa7D;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,aAAc,SAAQ,iBAAiB;CAAG;AAUvD,WAAW,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -143,13 +143,13 @@ button:focus-visible::after {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
:host([marker-position='end']) :is(.default-marker-collapsed, .default-marker-expanded) {
|
|
146
|
-
grid-column:
|
|
146
|
+
grid-column: 3;
|
|
147
147
|
padding-inline-start: var(--spacingHorizontalS);
|
|
148
148
|
padding-inline-end: 0;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
:host([marker-position='end']) .button {
|
|
152
|
-
grid-column: 2
|
|
152
|
+
grid-column: 2;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
/* --- Block attr styles --- */
|
|
@@ -159,18 +159,10 @@ button:focus-visible::after {
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
:host([marker-position='end']) .heading {
|
|
162
|
-
grid-template-columns: auto auto
|
|
162
|
+
grid-template-columns: auto 1fr auto;
|
|
163
163
|
padding-inline: var(--spacingHorizontalM);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
:host([marker-position='end']:has([slot='start'])) .heading {
|
|
167
167
|
padding-inline: var(--spacingHorizontalMNudge) var(--spacingHorizontalM);
|
|
168
168
|
}
|
|
169
|
-
|
|
170
|
-
:host([block][marker-position='end']) .heading {
|
|
171
|
-
grid-template-columns: auto 1fr;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
:host([marker-position='end']) :is(.default-marker-collapsed, .default-marker-expanded) {
|
|
175
|
-
grid-column: 5 / span 1;
|
|
176
|
-
}
|
|
@@ -142,13 +142,13 @@ export const styles = css `
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
:host([marker-position='end']) :is(.default-marker-collapsed, .default-marker-expanded) {
|
|
145
|
-
grid-column:
|
|
145
|
+
grid-column: 3;
|
|
146
146
|
padding-inline-start: ${spacingHorizontalS};
|
|
147
147
|
padding-inline-end: 0;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
:host([marker-position='end']) .button {
|
|
151
|
-
grid-column: 2
|
|
151
|
+
grid-column: 2;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
/* --- Block attr styles --- */
|
|
@@ -158,20 +158,12 @@ export const styles = css `
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
:host([marker-position='end']) .heading {
|
|
161
|
-
grid-template-columns: auto auto
|
|
161
|
+
grid-template-columns: auto 1fr auto;
|
|
162
162
|
padding-inline: ${spacingHorizontalM};
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
:host([marker-position='end']:has([slot='start'])) .heading {
|
|
166
166
|
padding-inline: ${spacingHorizontalMNudge} ${spacingHorizontalM};
|
|
167
167
|
}
|
|
168
|
-
|
|
169
|
-
:host([block][marker-position='end']) .heading {
|
|
170
|
-
grid-template-columns: auto 1fr;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
:host([marker-position='end']) :is(.default-marker-collapsed, .default-marker-expanded) {
|
|
174
|
-
grid-column: 5 / span 1;
|
|
175
|
-
}
|
|
176
168
|
`;
|
|
177
169
|
//# sourceMappingURL=accordion-item.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-item.styles.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,8BAA8B,EAC9B,iBAAiB,EACjB,iBAAiB,EACjB,0BAA0B,EAC1B,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,OAAO,CAAC;;;;;aAKP,uBAAuB;;;;;;;sBAOd,kBAAkB,IAAI,uBAAuB;qBAC9C,kBAAkB;mBACpB,cAAc;iBAChB,eAAe;mBACb,iBAAiB;mBACjB,iBAAiB;;;;;;kBAMlB,0BAA0B;;;;;;;;;;;;;;;;;;;qBAmBvB,iBAAiB;;;;;;;;;;;0BAWZ,kBAAkB;;;;;;gBAM5B,kBAAkB;;;;;;;qBAOb,kBAAkB;;;;;;;;;;qBAUlB,iBAAiB;;wBAEd,iBAAiB;kCACP,iBAAiB;;;;;;aAMtC,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4B1B,eAAe;mBACb,iBAAiB;;;;iBAInB,eAAe;mBACb,iBAAiB;;;;iBAInB,eAAe;mBACb,iBAAiB;;;;iBAInB,eAAe;mBACb,iBAAiB;;;;;;;;;;;;4BAYR,kBAAkB;;;;;;;;;;;;;;;;sBAgBxB,kBAAkB;;;;sBAIlB,uBAAuB,IAAI,kBAAkB
|
|
1
|
+
{"version":3,"file":"accordion-item.styles.js","sourceRoot":"","sources":["../../../src/accordion-item/accordion-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,8BAA8B,EAC9B,iBAAiB,EACjB,iBAAiB,EACjB,0BAA0B,EAC1B,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,OAAO,CAAC;;;;;aAKP,uBAAuB;;;;;;;sBAOd,kBAAkB,IAAI,uBAAuB;qBAC9C,kBAAkB;mBACpB,cAAc;iBAChB,eAAe;mBACb,iBAAiB;mBACjB,iBAAiB;;;;;;kBAMlB,0BAA0B;;;;;;;;;;;;;;;;;;;qBAmBvB,iBAAiB;;;;;;;;;;;0BAWZ,kBAAkB;;;;;;gBAM5B,kBAAkB;;;;;;;qBAOb,kBAAkB;;;;;;;;;;qBAUlB,iBAAiB;;wBAEd,iBAAiB;kCACP,iBAAiB;;;;;;aAMtC,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4B1B,eAAe;mBACb,iBAAiB;;;;iBAInB,eAAe;mBACb,iBAAiB;;;;iBAInB,eAAe;mBACb,iBAAiB;;;;iBAInB,eAAe;mBACb,iBAAiB;;;;;;;;;;;;4BAYR,kBAAkB;;;;;;;;;;;;;;;;sBAgBxB,kBAAkB;;;;sBAIlB,uBAAuB,IAAI,kBAAkB;;CAElE,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StartEnd, type StartEndOptions } from '../patterns/start-end.js';
|
|
2
2
|
import { BaseAnchor } from './anchor-button.base.js';
|
|
3
|
-
import { AnchorButtonAppearance, AnchorButtonShape, AnchorButtonSize } from './anchor-button.options.js';
|
|
4
3
|
/**
|
|
5
4
|
* Anchor configuration options
|
|
6
5
|
*
|
|
@@ -13,65 +12,14 @@ export type AnchorOptions = StartEndOptions<AnchorButton>;
|
|
|
13
12
|
*
|
|
14
13
|
* @tag fluent-anchor-button
|
|
15
14
|
*
|
|
15
|
+
* @presentational {AnchorButtonAppearance | undefined} appearance - The appearance the anchor button should have.
|
|
16
|
+
* @presentational {AnchorButtonShape | undefined} shape - The shape the anchor button should have.
|
|
17
|
+
* @presentational {AnchorButtonSize | undefined} size - The size the anchor button should have.
|
|
18
|
+
* @presentational {boolean} icon-only - The anchor button has an icon only, no text content.
|
|
19
|
+
*
|
|
16
20
|
* @public
|
|
17
21
|
*/
|
|
18
22
|
export declare class AnchorButton extends BaseAnchor {
|
|
19
|
-
/**
|
|
20
|
-
* The appearance the anchor button should have.
|
|
21
|
-
*
|
|
22
|
-
* @public
|
|
23
|
-
* @remarks
|
|
24
|
-
* HTML Attribute: `appearance`
|
|
25
|
-
*/
|
|
26
|
-
appearance?: AnchorButtonAppearance | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Handles changes to appearance attribute custom states
|
|
29
|
-
* @param prev - the previous state
|
|
30
|
-
* @param next - the next state
|
|
31
|
-
*/
|
|
32
|
-
appearanceChanged(prev: AnchorButtonAppearance | undefined, next: AnchorButtonAppearance | undefined): void;
|
|
33
|
-
/**
|
|
34
|
-
* The shape the anchor button should have.
|
|
35
|
-
*
|
|
36
|
-
* @public
|
|
37
|
-
* @remarks
|
|
38
|
-
* HTML Attribute: `shape`
|
|
39
|
-
*/
|
|
40
|
-
shape?: AnchorButtonShape | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* Handles changes to shape attribute custom states
|
|
43
|
-
* @param prev - the previous state
|
|
44
|
-
* @param next - the next state
|
|
45
|
-
*/
|
|
46
|
-
shapeChanged(prev: AnchorButtonShape | undefined, next: AnchorButtonShape | undefined): void;
|
|
47
|
-
/**
|
|
48
|
-
* The size the anchor button should have.
|
|
49
|
-
*
|
|
50
|
-
* @public
|
|
51
|
-
* @remarks
|
|
52
|
-
* HTML Attribute: `size`
|
|
53
|
-
*/
|
|
54
|
-
size?: AnchorButtonSize;
|
|
55
|
-
/**
|
|
56
|
-
* Handles changes to size attribute custom states
|
|
57
|
-
* @param prev - the previous state
|
|
58
|
-
* @param next - the next state
|
|
59
|
-
*/
|
|
60
|
-
sizeChanged(prev: AnchorButtonSize | undefined, next: AnchorButtonSize | undefined): void;
|
|
61
|
-
/**
|
|
62
|
-
* The anchor button has an icon only, no text content
|
|
63
|
-
*
|
|
64
|
-
* @public
|
|
65
|
-
* @remarks
|
|
66
|
-
* HTML Attribute: `icon-only`
|
|
67
|
-
*/
|
|
68
|
-
iconOnly: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Handles changes to icon only custom states
|
|
71
|
-
* @param prev - the previous state
|
|
72
|
-
* @param next - the next state
|
|
73
|
-
*/
|
|
74
|
-
iconOnlyChanged(prev: boolean, next: boolean): void;
|
|
75
23
|
}
|
|
76
24
|
/**
|
|
77
25
|
* Mark internal because exporting class and interface of the same name
|
|
@@ -1,74 +1,20 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { attr } from '@microsoft/fast-element';
|
|
3
1
|
import { StartEnd } from '../patterns/start-end.js';
|
|
4
2
|
import { applyMixins } from '../utils/apply-mixins.js';
|
|
5
|
-
import { swapStates, toggleState } from '../utils/element-internals.js';
|
|
6
3
|
import { BaseAnchor } from './anchor-button.base.js';
|
|
7
|
-
import { AnchorButtonAppearance, AnchorButtonShape, AnchorButtonSize } from './anchor-button.options.js';
|
|
8
4
|
/**
|
|
9
5
|
* An Anchor Custom HTML Element.
|
|
10
6
|
* Based on BaseAnchor and includes style and layout specific attributes
|
|
11
7
|
*
|
|
12
8
|
* @tag fluent-anchor-button
|
|
13
9
|
*
|
|
10
|
+
* @presentational {AnchorButtonAppearance | undefined} appearance - The appearance the anchor button should have.
|
|
11
|
+
* @presentational {AnchorButtonShape | undefined} shape - The shape the anchor button should have.
|
|
12
|
+
* @presentational {AnchorButtonSize | undefined} size - The size the anchor button should have.
|
|
13
|
+
* @presentational {boolean} icon-only - The anchor button has an icon only, no text content.
|
|
14
|
+
*
|
|
14
15
|
* @public
|
|
15
16
|
*/
|
|
16
17
|
export class AnchorButton extends BaseAnchor {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
/**
|
|
20
|
-
* The anchor button has an icon only, no text content
|
|
21
|
-
*
|
|
22
|
-
* @public
|
|
23
|
-
* @remarks
|
|
24
|
-
* HTML Attribute: `icon-only`
|
|
25
|
-
*/
|
|
26
|
-
this.iconOnly = false;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Handles changes to appearance attribute custom states
|
|
30
|
-
* @param prev - the previous state
|
|
31
|
-
* @param next - the next state
|
|
32
|
-
*/
|
|
33
|
-
appearanceChanged(prev, next) {
|
|
34
|
-
swapStates(this.elementInternals, prev, next, AnchorButtonAppearance);
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Handles changes to shape attribute custom states
|
|
38
|
-
* @param prev - the previous state
|
|
39
|
-
* @param next - the next state
|
|
40
|
-
*/
|
|
41
|
-
shapeChanged(prev, next) {
|
|
42
|
-
swapStates(this.elementInternals, prev, next, AnchorButtonShape);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Handles changes to size attribute custom states
|
|
46
|
-
* @param prev - the previous state
|
|
47
|
-
* @param next - the next state
|
|
48
|
-
*/
|
|
49
|
-
sizeChanged(prev, next) {
|
|
50
|
-
swapStates(this.elementInternals, prev, next, AnchorButtonSize);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Handles changes to icon only custom states
|
|
54
|
-
* @param prev - the previous state
|
|
55
|
-
* @param next - the next state
|
|
56
|
-
*/
|
|
57
|
-
iconOnlyChanged(prev, next) {
|
|
58
|
-
toggleState(this.elementInternals, 'icon', !!next);
|
|
59
|
-
}
|
|
60
18
|
}
|
|
61
|
-
__decorate([
|
|
62
|
-
attr
|
|
63
|
-
], AnchorButton.prototype, "appearance", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
attr
|
|
66
|
-
], AnchorButton.prototype, "shape", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
attr
|
|
69
|
-
], AnchorButton.prototype, "size", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
attr({ attribute: 'icon-only', mode: 'boolean' })
|
|
72
|
-
], AnchorButton.prototype, "iconOnly", void 0);
|
|
73
19
|
applyMixins(AnchorButton, StartEnd);
|
|
74
20
|
//# sourceMappingURL=anchor-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anchor-button.js","sourceRoot":"","sources":["../../../src/anchor-button/anchor-button.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"anchor-button.js","sourceRoot":"","sources":["../../../src/anchor-button/anchor-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAwB,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAUrD;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,YAAa,SAAQ,UAAU;CAAG;AAU/C,WAAW,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseAvatar } from './avatar.base.js';
|
|
2
|
-
import {
|
|
2
|
+
import { AvatarColor, AvatarNamedColor, type AvatarSize } from './avatar.options.js';
|
|
3
3
|
/**
|
|
4
4
|
* An Avatar Custom HTML Element.
|
|
5
5
|
* Based on BaseAvatar and includes style and layout specific attributes
|
|
@@ -8,36 +8,13 @@ import { type AvatarActive, type AvatarAppearance, AvatarColor, AvatarNamedColor
|
|
|
8
8
|
*
|
|
9
9
|
* @slot badge - Optional badge content displayed with the avatar.
|
|
10
10
|
*
|
|
11
|
+
* @presentational {AvatarActive | undefined} active - Optional activity indicator.
|
|
12
|
+
* @presentational {AvatarShape | undefined} shape - The avatar can have a circular or square shape.
|
|
13
|
+
* @presentational {AvatarAppearance | undefined} appearance - The appearance when `active="active"`.
|
|
14
|
+
*
|
|
11
15
|
* @public
|
|
12
16
|
*/
|
|
13
17
|
export declare class Avatar extends BaseAvatar {
|
|
14
|
-
/**
|
|
15
|
-
* Optional activity indicator
|
|
16
|
-
* * active: the avatar will be decorated according to activeAppearance
|
|
17
|
-
* * inactive: the avatar will be reduced in size and partially transparent
|
|
18
|
-
* * undefined: normal display
|
|
19
|
-
*
|
|
20
|
-
* @public
|
|
21
|
-
* @remarks
|
|
22
|
-
* HTML Attribute: active
|
|
23
|
-
*/
|
|
24
|
-
active?: AvatarActive | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* The avatar can have a circular or square shape.
|
|
27
|
-
*
|
|
28
|
-
* @public
|
|
29
|
-
* @remarks
|
|
30
|
-
* HTML Attribute: shape
|
|
31
|
-
*/
|
|
32
|
-
shape?: AvatarShape | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* The appearance when `active="active"`
|
|
35
|
-
*
|
|
36
|
-
* @public
|
|
37
|
-
* @remarks
|
|
38
|
-
* HTML Attribute: appearance
|
|
39
|
-
*/
|
|
40
|
-
appearance?: AvatarAppearance | undefined;
|
|
41
18
|
/**
|
|
42
19
|
* Size of the avatar in pixels.
|
|
43
20
|
*
|
|
@@ -11,6 +11,10 @@ import { AvatarColor, AvatarNamedColor, } from './avatar.options.js';
|
|
|
11
11
|
*
|
|
12
12
|
* @slot badge - Optional badge content displayed with the avatar.
|
|
13
13
|
*
|
|
14
|
+
* @presentational {AvatarActive | undefined} active - Optional activity indicator.
|
|
15
|
+
* @presentational {AvatarShape | undefined} shape - The avatar can have a circular or square shape.
|
|
16
|
+
* @presentational {AvatarAppearance | undefined} appearance - The appearance when `active="active"`.
|
|
17
|
+
*
|
|
14
18
|
* @public
|
|
15
19
|
*/
|
|
16
20
|
export class Avatar extends BaseAvatar {
|
|
@@ -74,15 +78,6 @@ export class Avatar extends BaseAvatar {
|
|
|
74
78
|
Observable.getNotifier(this).unsubscribe(this);
|
|
75
79
|
}
|
|
76
80
|
}
|
|
77
|
-
__decorate([
|
|
78
|
-
attr
|
|
79
|
-
], Avatar.prototype, "active", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
attr
|
|
82
|
-
], Avatar.prototype, "shape", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
attr
|
|
85
|
-
], Avatar.prototype, "appearance", void 0);
|
|
86
81
|
__decorate([
|
|
87
82
|
attr({ converter: nullableNumberConverter })
|
|
88
83
|
], Avatar.prototype, "size", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../../src/avatar/avatar.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAGL,WAAW,EACX,gBAAgB,GAGjB,MAAM,qBAAqB,CAAC;AAE7B
|
|
1
|
+
{"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../../src/avatar/avatar.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FASTElement } from '@microsoft/fast-element';
|
|
2
2
|
import { StartEnd } from '../patterns/start-end.js';
|
|
3
|
-
import { BadgeAppearance, BadgeColor, BadgeShape, BadgeSize } from './badge.options.js';
|
|
4
3
|
/**
|
|
5
4
|
* The base class used for constructing a fluent-badge custom element
|
|
6
5
|
* @tag fluent-badge
|
|
@@ -9,42 +8,14 @@ import { BadgeAppearance, BadgeColor, BadgeShape, BadgeSize } from './badge.opti
|
|
|
9
8
|
* @slot start - Content which can be provided before the badge content.
|
|
10
9
|
* @slot end - Content which can be provided after the badge content.
|
|
11
10
|
*
|
|
11
|
+
* @presentational {BadgeAppearance} [appearance=filled] - The appearance the badge should have.
|
|
12
|
+
* @presentational {BadgeColor} [color=brand] - The color the badge should have.
|
|
13
|
+
* @presentational {BadgeShape | undefined} shape - The shape the badge should have.
|
|
14
|
+
* @presentational {BadgeSize | undefined} size - The size the badge should have.
|
|
15
|
+
*
|
|
12
16
|
* @public
|
|
13
17
|
*/
|
|
14
18
|
export declare class Badge extends FASTElement {
|
|
15
|
-
/**
|
|
16
|
-
* The appearance the badge should have.
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* @public
|
|
20
|
-
* @remarks
|
|
21
|
-
* HTML Attribute: appearance
|
|
22
|
-
*/
|
|
23
|
-
appearance: BadgeAppearance;
|
|
24
|
-
/**
|
|
25
|
-
* The color the badge should have.
|
|
26
|
-
*
|
|
27
|
-
* @public
|
|
28
|
-
* @remarks
|
|
29
|
-
* HTML Attribute: color
|
|
30
|
-
*/
|
|
31
|
-
color: BadgeColor;
|
|
32
|
-
/**
|
|
33
|
-
* The shape the badge should have.
|
|
34
|
-
*
|
|
35
|
-
* @public
|
|
36
|
-
* @remarks
|
|
37
|
-
* HTML Attribute: shape
|
|
38
|
-
*/
|
|
39
|
-
shape?: BadgeShape;
|
|
40
|
-
/**
|
|
41
|
-
* The size the badge should have.
|
|
42
|
-
*
|
|
43
|
-
* @public
|
|
44
|
-
* @remarks
|
|
45
|
-
* HTML Attribute: size
|
|
46
|
-
*/
|
|
47
|
-
size?: BadgeSize;
|
|
48
19
|
}
|
|
49
20
|
/**
|
|
50
21
|
* Mark internal because exporting class and interface of the same name
|
package/dist/esm/badge/badge.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { attr, FASTElement } from '@microsoft/fast-element';
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
3
2
|
import { applyMixins } from '../utils/apply-mixins.js';
|
|
4
3
|
import { StartEnd } from '../patterns/start-end.js';
|
|
5
|
-
import { BadgeAppearance, BadgeColor } from './badge.options.js';
|
|
6
4
|
/**
|
|
7
5
|
* The base class used for constructing a fluent-badge custom element
|
|
8
6
|
* @tag fluent-badge
|
|
@@ -11,41 +9,14 @@ import { BadgeAppearance, BadgeColor } from './badge.options.js';
|
|
|
11
9
|
* @slot start - Content which can be provided before the badge content.
|
|
12
10
|
* @slot end - Content which can be provided after the badge content.
|
|
13
11
|
*
|
|
12
|
+
* @presentational {BadgeAppearance} [appearance=filled] - The appearance the badge should have.
|
|
13
|
+
* @presentational {BadgeColor} [color=brand] - The color the badge should have.
|
|
14
|
+
* @presentational {BadgeShape | undefined} shape - The shape the badge should have.
|
|
15
|
+
* @presentational {BadgeSize | undefined} size - The size the badge should have.
|
|
16
|
+
*
|
|
14
17
|
* @public
|
|
15
18
|
*/
|
|
16
19
|
export class Badge extends FASTElement {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
/**
|
|
20
|
-
* The appearance the badge should have.
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* @public
|
|
24
|
-
* @remarks
|
|
25
|
-
* HTML Attribute: appearance
|
|
26
|
-
*/
|
|
27
|
-
this.appearance = BadgeAppearance.filled;
|
|
28
|
-
/**
|
|
29
|
-
* The color the badge should have.
|
|
30
|
-
*
|
|
31
|
-
* @public
|
|
32
|
-
* @remarks
|
|
33
|
-
* HTML Attribute: color
|
|
34
|
-
*/
|
|
35
|
-
this.color = BadgeColor.brand;
|
|
36
|
-
}
|
|
37
20
|
}
|
|
38
|
-
__decorate([
|
|
39
|
-
attr
|
|
40
|
-
], Badge.prototype, "appearance", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
attr
|
|
43
|
-
], Badge.prototype, "color", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
attr
|
|
46
|
-
], Badge.prototype, "shape", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
attr
|
|
49
|
-
], Badge.prototype, "size", void 0);
|
|
50
21
|
applyMixins(Badge, StartEnd);
|
|
51
22
|
//# sourceMappingURL=badge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/badge/badge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/badge/badge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGpD;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;CAAG;AAUzC,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -1,47 +1,19 @@
|
|
|
1
1
|
import { StartEnd } from '../patterns/start-end.js';
|
|
2
2
|
import { BaseButton } from './button.base.js';
|
|
3
|
-
import { ButtonAppearance, ButtonShape, ButtonSize } from './button.options.js';
|
|
4
3
|
/**
|
|
5
4
|
* A Button Custom HTML Element.
|
|
6
5
|
* Based on BaseButton and includes style and layout specific attributes
|
|
7
6
|
*
|
|
8
7
|
* @tag fluent-button
|
|
9
8
|
*
|
|
9
|
+
* @presentational {ButtonAppearance | undefined} appearance - Indicates the styled appearance of the button.
|
|
10
|
+
* @presentational {ButtonShape | undefined} shape - The shape of the button.
|
|
11
|
+
* @presentational {ButtonSize | undefined} size - The size of the button.
|
|
12
|
+
* @presentational {boolean} icon-only - Indicates that the button should only display as an icon with no text content.
|
|
13
|
+
*
|
|
10
14
|
* @public
|
|
11
15
|
*/
|
|
12
16
|
export declare class Button extends BaseButton {
|
|
13
|
-
/**
|
|
14
|
-
* Indicates the styled appearance of the button.
|
|
15
|
-
*
|
|
16
|
-
* @public
|
|
17
|
-
* @remarks
|
|
18
|
-
* HTML Attribute: `appearance`
|
|
19
|
-
*/
|
|
20
|
-
appearance?: ButtonAppearance;
|
|
21
|
-
/**
|
|
22
|
-
* The shape of the button.
|
|
23
|
-
*
|
|
24
|
-
* @public
|
|
25
|
-
* @remarks
|
|
26
|
-
* HTML Attribute: `shape`
|
|
27
|
-
*/
|
|
28
|
-
shape?: ButtonShape;
|
|
29
|
-
/**
|
|
30
|
-
* The size of the button.
|
|
31
|
-
*
|
|
32
|
-
* @public
|
|
33
|
-
* @remarks
|
|
34
|
-
* HTML Attribute: `size`
|
|
35
|
-
*/
|
|
36
|
-
size?: ButtonSize;
|
|
37
|
-
/**
|
|
38
|
-
* Indicates that the button should only display as an icon with no text content.
|
|
39
|
-
*
|
|
40
|
-
* @public
|
|
41
|
-
* @remarks
|
|
42
|
-
* HTML Attribute: `icon-only`
|
|
43
|
-
*/
|
|
44
|
-
iconOnly: boolean;
|
|
45
17
|
}
|
|
46
18
|
/**
|
|
47
19
|
* @internal
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { attr } from '@microsoft/fast-element';
|
|
3
1
|
import { StartEnd } from '../patterns/start-end.js';
|
|
4
2
|
import { applyMixins } from '../utils/apply-mixins.js';
|
|
5
3
|
import { BaseButton } from './button.base.js';
|
|
@@ -9,32 +7,14 @@ import { BaseButton } from './button.base.js';
|
|
|
9
7
|
*
|
|
10
8
|
* @tag fluent-button
|
|
11
9
|
*
|
|
10
|
+
* @presentational {ButtonAppearance | undefined} appearance - Indicates the styled appearance of the button.
|
|
11
|
+
* @presentational {ButtonShape | undefined} shape - The shape of the button.
|
|
12
|
+
* @presentational {ButtonSize | undefined} size - The size of the button.
|
|
13
|
+
* @presentational {boolean} icon-only - Indicates that the button should only display as an icon with no text content.
|
|
14
|
+
*
|
|
12
15
|
* @public
|
|
13
16
|
*/
|
|
14
17
|
export class Button extends BaseButton {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
/**
|
|
18
|
-
* Indicates that the button should only display as an icon with no text content.
|
|
19
|
-
*
|
|
20
|
-
* @public
|
|
21
|
-
* @remarks
|
|
22
|
-
* HTML Attribute: `icon-only`
|
|
23
|
-
*/
|
|
24
|
-
this.iconOnly = false;
|
|
25
|
-
}
|
|
26
18
|
}
|
|
27
|
-
__decorate([
|
|
28
|
-
attr
|
|
29
|
-
], Button.prototype, "appearance", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
attr
|
|
32
|
-
], Button.prototype, "shape", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
attr
|
|
35
|
-
], Button.prototype, "size", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
attr({ attribute: 'icon-only', mode: 'boolean' })
|
|
38
|
-
], Button.prototype, "iconOnly", void 0);
|
|
39
19
|
applyMixins(Button, StartEnd);
|
|
40
20
|
//# sourceMappingURL=button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/button/button.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/button/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,MAAO,SAAQ,UAAU;CAAG;AAUzC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC"}
|