@fluentui/web-components 3.0.0-beta.60 → 3.0.0-beta.61
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 +11 -2
- package/dist/dts/divider/divider.options.d.ts +0 -1
- package/dist/dts/image/image.options.d.ts +0 -1
- package/dist/dts/index.d.ts +2 -1
- package/dist/dts/link/index.d.ts +1 -0
- package/dist/esm/divider/divider.js +0 -9
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/divider/divider.options.js +0 -1
- package/dist/esm/divider/divider.options.js.map +1 -1
- package/dist/esm/image/image.js +0 -8
- package/dist/esm/image/image.js.map +1 -1
- package/dist/esm/image/image.options.js +0 -1
- package/dist/esm/image/image.options.js.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/link/index.js +1 -0
- package/dist/esm/link/index.js.map +1 -1
- package/dist/esm/link/link.styles.js +1 -3
- package/dist/esm/link/link.styles.js.map +1 -1
- package/dist/esm/menu/menu.js +0 -20
- package/dist/esm/menu/menu.js.map +1 -1
- package/dist/web-components.d.ts +124 -2
- package/dist/web-components.js +1 -10
- package/dist/web-components.min.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @fluentui/web-components
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 29 Aug 2024 04:06:58 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [3.0.0-beta.61](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.61)
|
|
8
|
+
|
|
9
|
+
Thu, 29 Aug 2024 04:06:58 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.60..@fluentui/web-components_v3.0.0-beta.61)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- chore: add missing exports for LinkStyles and MessageBar and remove default option from DividerApperance and ImageFit ([PR #32405](https://github.com/microsoft/fluentui/pull/32405) by rupertdavid@microsoft.com)
|
|
15
|
+
|
|
7
16
|
## [3.0.0-beta.60](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.60)
|
|
8
17
|
|
|
9
|
-
Wed, 28 Aug 2024 04:06:
|
|
18
|
+
Wed, 28 Aug 2024 04:06:49 GMT
|
|
10
19
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.59..@fluentui/web-components_v3.0.0-beta.60)
|
|
11
20
|
|
|
12
21
|
### Changes
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AccordionItem, accordionItemDefinition, AccordionItemMarkerPosition, AccordionItemSize, accordionItemStyles, accordionItemTemplate, BaseAccordionItem, } from './accordion-item/index.js';
|
|
2
2
|
export type { AccordionItemOptions } from './accordion-item/index.js';
|
|
3
3
|
export { Accordion, accordionDefinition, AccordionExpandMode, accordionStyles, accordionTemplate, } from './accordion/index.js';
|
|
4
|
-
export { Link, LinkAppearance, LinkDefinition, LinkTemplate, LinkTarget } from './link/index.js';
|
|
4
|
+
export { Link, LinkAppearance, LinkDefinition, LinkTemplate, LinkStyles, LinkTarget } from './link/index.js';
|
|
5
5
|
export { Avatar, AvatarActive, AvatarAppearance, AvatarColor, AvatarDefinition, AvatarNamedColor, AvatarShape, AvatarSize, AvatarStyles, AvatarTemplate, BaseAvatar, } from './avatar/index.js';
|
|
6
6
|
export { Badge, BadgeAppearance, BadgeColor, BadgeDefinition, BadgeShape, BadgeSize, BadgeStyles, BadgeTemplate, } from './badge/index.js';
|
|
7
7
|
export { BaseButton, Button, ButtonAppearance, ButtonDefinition, ButtonFormTarget, ButtonShape, ButtonSize, ButtonStyles, ButtonTemplate, ButtonType, } from './button/index.js';
|
|
@@ -21,6 +21,7 @@ export { FluentDesignSystem } from './fluent-design-system.js';
|
|
|
21
21
|
export { Image, ImageDefinition, ImageFit, ImageShape, ImageStyles, ImageTemplate } from './image/index.js';
|
|
22
22
|
export { Label, LabelDefinition, LabelSize, LabelStyles, LabelTemplate, LabelWeight } from './label/index.js';
|
|
23
23
|
export { BaseAnchor, AnchorButton, AnchorButtonAppearance, AnchorButtonDefinition, AnchorButtonShape, AnchorButtonSize, AnchorButtonTemplate, AnchorTarget, } from './anchor-button/index.js';
|
|
24
|
+
export { MessageBar, MessageBarDefinition, MessageBarIntent, MessageBarLayout, MessageBarShape, MessageBarStyles, MessageBarTemplate, } from './message-bar/index.js';
|
|
24
25
|
export { MenuButton, MenuButtonAppearance, MenuButtonDefinition, MenuButtonShape, MenuButtonSize, MenuButtonStyles, MenuButtonTemplate, } from './menu-button/index.js';
|
|
25
26
|
export type { MenuButtonOptions } from './menu-button/index.js';
|
|
26
27
|
export { MenuItem, MenuItemDefinition, MenuItemRole, MenuItemStyles, MenuItemTemplate, roleForMenuItem, } from './menu-item/index.js';
|
package/dist/dts/link/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { definition as LinkDefinition } from './link.definition.js';
|
|
2
2
|
export { Link } from './link.js';
|
|
3
3
|
export { LinkAppearance, LinkTarget } from './link.options.js';
|
|
4
|
+
export { styles as LinkStyles } from './link.styles.js';
|
|
4
5
|
export { template as LinkTemplate } from './link.template.js';
|
|
@@ -71,15 +71,6 @@ __decorate([
|
|
|
71
71
|
* @public
|
|
72
72
|
*/
|
|
73
73
|
export class Divider extends BaseDivider {
|
|
74
|
-
constructor() {
|
|
75
|
-
super(...arguments);
|
|
76
|
-
/**
|
|
77
|
-
* @public
|
|
78
|
-
* @remarks
|
|
79
|
-
* Adds padding to the beginning and end of the divider.
|
|
80
|
-
*/
|
|
81
|
-
this.inset = false;
|
|
82
|
-
}
|
|
83
74
|
/**
|
|
84
75
|
* Handles changes to align-content attribute custom states
|
|
85
76
|
* @param prev - the previous state
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider.js","sourceRoot":"","sources":["../../../src/divider/divider.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAA0C,kBAAkB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE/G;;;;;GAKG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAA5C;;QACE;;;;WAIG;QACI,qBAAgB,GAAqB,IAAI,CAAC,eAAe,EAAE,CAAC;IAmErE,CAAC;IA7CQ,iBAAiB;;QACtB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAE1B,IAAI,CAAC,gBAAgB,CAAC,IAAI,GAAG,MAAA,IAAI,CAAC,IAAI,mCAAI,WAAW,CAAC,SAAS,CAAC;QAEhE,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW,CAAC,YAAY,EAAE;YAC1C,IAAI,CAAC,gBAAgB,CAAC,eAAe,GAAG,MAAA,IAAI,CAAC,WAAW,mCAAI,kBAAkB,CAAC,UAAU,CAAC;SAC3F;IACH,CAAC;IAED;;;;;;OAMG;IACI,WAAW,CAAC,QAAuB,EAAE,IAAmB;QAC7D,IAAI,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE;YACpC,IAAI,CAAC,gBAAgB,CAAC,IAAI,GAAG,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,WAAW,CAAC,SAAS,EAAE,CAAC;SACjE;QAED,IAAI,IAAI,KAAK,WAAW,CAAC,YAAY,EAAE;YACrC,IAAI,CAAC,gBAAgB,CAAC,eAAe,GAAG,IAAI,CAAC;SAC9C;IACH,CAAC;IAED;;;;;;OAMG;IACI,kBAAkB,CAAC,QAAuB,EAAE,IAAmB;QACpE,IAAI,CAAC,gBAAgB,CAAC,eAAe,G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AC/F,IAAI,IAAI,EAAE;YACR,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,CAAC,CAAC;SACtD;QACD,IAAI,IAAI,EAAE;YACR,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE,GAAG,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC;SACrD;IACH,CAAC;IAUD;;;;OAIG;IACI,YAAY,CAAC,IAAa,EAAE,IAAa;QAC9C,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;CACF;AAtDQ;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;6CACK;AAsBnC;IADN,IAAI;2CACiC;AAsB/B;IADN,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;sCACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider.options.js","sourceRoot":"","sources":["../../../src/divider/divider.options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAG5D;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,YAAY,EAAE,cAAc;CACpB,CAAC;AAQX;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAQ9C;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;CACF,CAAC;AAQX;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"divider.options.js","sourceRoot":"","sources":["../../../src/divider/divider.options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAG5D;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,YAAY,EAAE,cAAc;CACpB,CAAC;AAQX;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAQ9C;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;CACF,CAAC;AAQX;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;CACR,CAAC"}
|
package/dist/esm/image/image.js
CHANGED
|
@@ -14,14 +14,6 @@ export class Image extends FASTElement {
|
|
|
14
14
|
* @internal
|
|
15
15
|
*/
|
|
16
16
|
this.elementInternals = this.attachInternals();
|
|
17
|
-
/**
|
|
18
|
-
* Image layout
|
|
19
|
-
*
|
|
20
|
-
* @public
|
|
21
|
-
* @remarks
|
|
22
|
-
* HTML attribute: block.
|
|
23
|
-
*/
|
|
24
|
-
this.block = false;
|
|
25
17
|
}
|
|
26
18
|
/**
|
|
27
19
|
* Handles changes to block custom states
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../../src/image/image.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAG5D;;;GAGG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE;;;;WAIG;QACI,qBAAgB,GAAqB,IAAI,CAAC,eAAe,EAAE,CAAC;
|
|
1
|
+
{"version":3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AI,CAAC,gBAAgB,EAAE,GAAG,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC;SACrD;IACH,CAAC;CACF;AAhGQ;IADN,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;oCACH;AAmBhB;IADN,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;uCACA;AAmBnB;IADN,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;qCACF;AAmBjB;IADN,IAAI;kCACiB;AAwBf;IADN,IAAI;oCACqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.options.js","sourceRoot":"","sources":["../../../src/image/image.options.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;
|
|
1
|
+
{"version":3,"file":"image.options.js","sourceRoot":"","sources":["../../../src/image/image.options.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACN,CAAC;AAOX;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AccordionItem, accordionItemDefinition, AccordionItemMarkerPosition, AccordionItemSize, accordionItemStyles, accordionItemTemplate, BaseAccordionItem, } from './accordion-item/index.js';
|
|
2
2
|
export { Accordion, accordionDefinition, AccordionExpandMode, accordionStyles, accordionTemplate, } from './accordion/index.js';
|
|
3
|
-
export { Link, LinkAppearance, LinkDefinition, LinkTemplate, LinkTarget } from './link/index.js';
|
|
3
|
+
export { Link, LinkAppearance, LinkDefinition, LinkTemplate, LinkStyles, LinkTarget } from './link/index.js';
|
|
4
4
|
export { Avatar, AvatarActive, AvatarAppearance, AvatarColor, AvatarDefinition, AvatarNamedColor, AvatarShape, AvatarSize, AvatarStyles, AvatarTemplate, BaseAvatar, } from './avatar/index.js';
|
|
5
5
|
export { Badge, BadgeAppearance, BadgeColor, BadgeDefinition, BadgeShape, BadgeSize, BadgeStyles, BadgeTemplate, } from './badge/index.js';
|
|
6
6
|
export { BaseButton, Button, ButtonAppearance, ButtonDefinition, ButtonFormTarget, ButtonShape, ButtonSize, ButtonStyles, ButtonTemplate, ButtonType, } from './button/index.js';
|
|
@@ -17,6 +17,7 @@ export { FluentDesignSystem } from './fluent-design-system.js';
|
|
|
17
17
|
export { Image, ImageDefinition, ImageFit, ImageShape, ImageStyles, ImageTemplate } from './image/index.js';
|
|
18
18
|
export { Label, LabelDefinition, LabelSize, LabelStyles, LabelTemplate, LabelWeight } from './label/index.js';
|
|
19
19
|
export { BaseAnchor, AnchorButton, AnchorButtonAppearance, AnchorButtonDefinition, AnchorButtonShape, AnchorButtonSize, AnchorButtonTemplate, AnchorTarget, } from './anchor-button/index.js';
|
|
20
|
+
export { MessageBar, MessageBarDefinition, MessageBarIntent, MessageBarLayout, MessageBarShape, MessageBarStyles, MessageBarTemplate, } from './message-bar/index.js';
|
|
20
21
|
export { MenuButton, MenuButtonAppearance, MenuButtonDefinition, MenuButtonShape, MenuButtonSize, MenuButtonStyles, MenuButtonTemplate, } from './menu-button/index.js';
|
|
21
22
|
export { MenuItem, MenuItemDefinition, MenuItemRole, MenuItemStyles, MenuItemTemplate, roleForMenuItem, } from './menu-item/index.js';
|
|
22
23
|
export { MenuList, MenuListDefinition, MenuListStyles, MenuListTemplate } from './menu-list/index.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,2BAA2B,EAC3B,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,2BAA2B,EAC3B,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7G,OAAO,EACL,MAAM,EACN,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,YAAY,EACZ,cAAc,EACd,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,EACL,eAAe,EACf,UAAU,EACV,eAAe,EACf,UAAU,EACV,SAAS,EACT,WAAW,EACX,aAAa,GACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,UAAU,EACV,MAAM,EACN,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,YAAY,EACZ,cAAc,EACd,UAA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MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,aAAa,EACb,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,aAAa,GACd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,IAAI,EACJ,SAAS,EACT,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,UAAU,GACX,MAAM,iBAAiB,CAAC;AACzB,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAc,MAAM,kBAAkB,CAAC;AACrE,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,0BAA0B,EAC1B,8BAA8B,EAC9B,2BAA2B,EAC3B,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/esm/link/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { definition as LinkDefinition } from './link.definition.js';
|
|
2
2
|
export { Link } from './link.js';
|
|
3
3
|
export { LinkAppearance, LinkTarget } from './link.options.js';
|
|
4
|
+
export { styles as LinkStyles } from './link.styles.js';
|
|
4
5
|
export { template as LinkTemplate } from './link.template.js';
|
|
5
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/link/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/link/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -14,10 +14,8 @@ export const styles = css `
|
|
|
14
14
|
font-family: ${fontFamilyBase};
|
|
15
15
|
font-size: ${fontSizeBase300};
|
|
16
16
|
font-weight: ${fontWeightRegular};
|
|
17
|
-
margin: 0;
|
|
18
|
-
padding: 0;
|
|
19
17
|
overflow: inherit;
|
|
20
|
-
text-align:
|
|
18
|
+
text-align: start;
|
|
21
19
|
text-decoration: none;
|
|
22
20
|
text-decoration-thinkness: ${strokeWidthThin};
|
|
23
21
|
text-overflow: inherit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.styles.js","sourceRoot":"","sources":["../../../src/link/link.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC7B,+BAA+B,EAC/B,2BAA2B,EAC3B,gCAAgC,EAChC,kCAAkC,EAClC,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,eAAe,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,QAAQ,CAAC;;;;;;aAMR,wBAAwB;;mBAElB,cAAc;iBAChB,eAAe;mBACb,iBAAiB
|
|
1
|
+
{"version":3,"file":"link.styles.js","sourceRoot":"","sources":["../../../src/link/link.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC7B,+BAA+B,EAC/B,2BAA2B,EAC3B,gCAAgC,EAChC,kCAAkC,EAClC,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,eAAe,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,QAAQ,CAAC;;;;;;aAMR,wBAAwB;;mBAElB,cAAc;iBAChB,eAAe;mBACb,iBAAiB;;;;iCAIH,eAAe;;;;;;;;;;;;eAYjC,6BAA6B;;;;eAI7B,+BAA+B;;;YAGlC,WAAW;eACR,gCAAgC;;;YAGnC,WAAW;eACR,kCAAkC;;;;UAIvC,WAAW;aACR,2BAA2B;;;;;;;;;;;;;;;;;;CAkBvC,CAAC,aAAa,CACb,8BAA8B,CAAC,GAAG,CAAA;;;;GAIjC,CAAC,CACH,CAAC"}
|
package/dist/esm/menu/menu.js
CHANGED
|
@@ -45,26 +45,6 @@ import { MenuItemRole } from '../menu-item/menu-item.options.js';
|
|
|
45
45
|
export class Menu extends FASTElement {
|
|
46
46
|
constructor() {
|
|
47
47
|
super(...arguments);
|
|
48
|
-
/**
|
|
49
|
-
* Determines if the menu should open on hover.
|
|
50
|
-
* @public
|
|
51
|
-
*/
|
|
52
|
-
this.openOnHover = false;
|
|
53
|
-
/**
|
|
54
|
-
* Determines if the menu should open on right click.
|
|
55
|
-
* @public
|
|
56
|
-
*/
|
|
57
|
-
this.openOnContext = false;
|
|
58
|
-
/**
|
|
59
|
-
* Determines if the menu should close on scroll.
|
|
60
|
-
* @public
|
|
61
|
-
*/
|
|
62
|
-
this.closeOnScroll = false;
|
|
63
|
-
/**
|
|
64
|
-
* Determines if the menu open state should persis on click of menu item
|
|
65
|
-
* @public
|
|
66
|
-
*/
|
|
67
|
-
this.persistOnItemClick = false;
|
|
68
48
|
/**
|
|
69
49
|
* Holds the slotted menu list.
|
|
70
50
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../../src/menu/menu.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAEtF,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;
|
|
1
|
+
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../../src/menu/menu.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,SAAS,E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,EAAE;oBACrB,OAAO,IAAI,CAAC;iBACb;YACH;gBACE,OAAO,IAAI,CAAC;SACf;IACH,CAAC;CAmCF;AAlWQ;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;yCACzB;AAOtB;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;2CACzB;AAOxB;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;2CACzB;AAOxB;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,uBAAuB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;gDAC1B;AAO7B;IADN,UAAU;6CAC6B;AAOjC;IADN,UAAU;6CACgC"}
|
package/dist/web-components.d.ts
CHANGED
|
@@ -5797,7 +5797,6 @@ export declare const DividerAppearance: {
|
|
|
5797
5797
|
readonly strong: "strong";
|
|
5798
5798
|
readonly brand: "brand";
|
|
5799
5799
|
readonly subtle: "subtle";
|
|
5800
|
-
readonly default: "default";
|
|
5801
5800
|
};
|
|
5802
5801
|
|
|
5803
5802
|
/**
|
|
@@ -6394,7 +6393,6 @@ export declare const ImageFit: {
|
|
|
6394
6393
|
readonly center: "center";
|
|
6395
6394
|
readonly contain: "contain";
|
|
6396
6395
|
readonly cover: "cover";
|
|
6397
|
-
readonly default: "default";
|
|
6398
6396
|
};
|
|
6399
6397
|
|
|
6400
6398
|
/**
|
|
@@ -6667,6 +6665,8 @@ export declare type LinkAppearance = ValuesOf<typeof LinkAppearance>;
|
|
|
6667
6665
|
*/
|
|
6668
6666
|
export declare const LinkDefinition: FASTElementDefinition<typeof Link>;
|
|
6669
6667
|
|
|
6668
|
+
export declare const LinkStyles: ElementStyles;
|
|
6669
|
+
|
|
6670
6670
|
/**
|
|
6671
6671
|
* Link target values.
|
|
6672
6672
|
*
|
|
@@ -7370,6 +7370,128 @@ export declare const MenuStyles: ElementStyles;
|
|
|
7370
7370
|
|
|
7371
7371
|
export declare const MenuTemplate: ElementViewTemplate<Menu>;
|
|
7372
7372
|
|
|
7373
|
+
/**
|
|
7374
|
+
* A Message Bar Custom HTML Element.
|
|
7375
|
+
*
|
|
7376
|
+
* @slot actions - Content that can be provided for the actions
|
|
7377
|
+
* @slot dismiss - Content that can be provided for the dismiss button
|
|
7378
|
+
* @slot - The default slot for the content
|
|
7379
|
+
* @public
|
|
7380
|
+
*/
|
|
7381
|
+
export declare class MessageBar extends FASTElement {
|
|
7382
|
+
/**
|
|
7383
|
+
* The internal {@link https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
7384
|
+
*
|
|
7385
|
+
* @internal
|
|
7386
|
+
*/
|
|
7387
|
+
elementInternals: ElementInternals;
|
|
7388
|
+
constructor();
|
|
7389
|
+
/**
|
|
7390
|
+
* Sets the shape of the Message Bar.
|
|
7391
|
+
*
|
|
7392
|
+
* @public
|
|
7393
|
+
* @remarks
|
|
7394
|
+
* HTML Attribute: `shape`
|
|
7395
|
+
*/
|
|
7396
|
+
shape?: MessageBarShape;
|
|
7397
|
+
/**
|
|
7398
|
+
* Handles changes to shape attribute custom states
|
|
7399
|
+
* @param prev - the previous state
|
|
7400
|
+
* @param next - the next state
|
|
7401
|
+
*/
|
|
7402
|
+
shapeChanged(prev: MessageBarShape | undefined, next: MessageBarShape | undefined): void;
|
|
7403
|
+
/**
|
|
7404
|
+
* Sets the layout of the control.
|
|
7405
|
+
*
|
|
7406
|
+
* @public
|
|
7407
|
+
* @remarks
|
|
7408
|
+
* HTML Attribute: `layout`
|
|
7409
|
+
*/
|
|
7410
|
+
layout?: MessageBarLayout;
|
|
7411
|
+
/**
|
|
7412
|
+
* Handles changes to the layout attribute custom states
|
|
7413
|
+
* @param prev - the previous state
|
|
7414
|
+
* @param next - the next state
|
|
7415
|
+
*/
|
|
7416
|
+
layoutChanged(prev: MessageBarLayout | undefined, next: MessageBarLayout | undefined): void;
|
|
7417
|
+
/**
|
|
7418
|
+
* Sets the intent of the control.
|
|
7419
|
+
*
|
|
7420
|
+
* @public
|
|
7421
|
+
* @remarks
|
|
7422
|
+
* HTML Attribute: `intent`
|
|
7423
|
+
*/
|
|
7424
|
+
intent?: MessageBarIntent;
|
|
7425
|
+
/**
|
|
7426
|
+
* Handles changes to the intent attribute custom states
|
|
7427
|
+
* @param prev - the previous state
|
|
7428
|
+
* @param next - the next state
|
|
7429
|
+
*/
|
|
7430
|
+
intentChanged(prev: MessageBarIntent | undefined, next: MessageBarIntent | undefined): void;
|
|
7431
|
+
/**
|
|
7432
|
+
* @public
|
|
7433
|
+
* Method to emit a `dismiss` event when the message bar is dismissed
|
|
7434
|
+
*/
|
|
7435
|
+
dismissMessageBar: () => void;
|
|
7436
|
+
}
|
|
7437
|
+
|
|
7438
|
+
/**
|
|
7439
|
+
* The Fluent MessageBar Element definition.
|
|
7440
|
+
*
|
|
7441
|
+
* @public
|
|
7442
|
+
* @remarks
|
|
7443
|
+
* HTML Element: `<fluent-message-bar>`
|
|
7444
|
+
*/
|
|
7445
|
+
export declare const MessageBarDefinition: FASTElementDefinition<typeof MessageBar>;
|
|
7446
|
+
|
|
7447
|
+
/**
|
|
7448
|
+
* @public
|
|
7449
|
+
* The `intent` variations for the MessageBar component.
|
|
7450
|
+
*/
|
|
7451
|
+
export declare const MessageBarIntent: {
|
|
7452
|
+
readonly success: "success";
|
|
7453
|
+
readonly warning: "warning";
|
|
7454
|
+
readonly error: "error";
|
|
7455
|
+
readonly info: "info";
|
|
7456
|
+
};
|
|
7457
|
+
|
|
7458
|
+
export declare type MessageBarIntent = ValuesOf<typeof MessageBarIntent>;
|
|
7459
|
+
|
|
7460
|
+
/**
|
|
7461
|
+
* @public
|
|
7462
|
+
* The `layout` variations for the MessageBar component.
|
|
7463
|
+
*/
|
|
7464
|
+
export declare const MessageBarLayout: {
|
|
7465
|
+
readonly multiline: "multiline";
|
|
7466
|
+
readonly singleline: "singleline";
|
|
7467
|
+
};
|
|
7468
|
+
|
|
7469
|
+
export declare type MessageBarLayout = ValuesOf<typeof MessageBarLayout>;
|
|
7470
|
+
|
|
7471
|
+
/**
|
|
7472
|
+
* @public
|
|
7473
|
+
* The `shape` variations for the MessageBar component.
|
|
7474
|
+
*/
|
|
7475
|
+
export declare const MessageBarShape: {
|
|
7476
|
+
readonly rounded: "rounded";
|
|
7477
|
+
readonly square: "square";
|
|
7478
|
+
};
|
|
7479
|
+
|
|
7480
|
+
export declare type MessageBarShape = ValuesOf<typeof MessageBarShape>;
|
|
7481
|
+
|
|
7482
|
+
/**
|
|
7483
|
+
* Styles for the MessageBar component.
|
|
7484
|
+
*
|
|
7485
|
+
* @public
|
|
7486
|
+
*/
|
|
7487
|
+
export declare const MessageBarStyles: ElementStyles;
|
|
7488
|
+
|
|
7489
|
+
/**
|
|
7490
|
+
* The template for the MessageBar component.
|
|
7491
|
+
* @type {ElementViewTemplate<MessageBar>}
|
|
7492
|
+
*/
|
|
7493
|
+
export declare const MessageBarTemplate: ElementViewTemplate<MessageBar>;
|
|
7494
|
+
|
|
7373
7495
|
/**
|
|
7374
7496
|
* A Progress HTML Element.
|
|
7375
7497
|
* Based on BaseProgressBar and includes style and layout specific attributes
|
package/dist/web-components.js
CHANGED
|
@@ -7055,10 +7055,6 @@ class BaseDivider extends FASTElement {
|
|
|
7055
7055
|
__decorateClass$l([attr], BaseDivider.prototype, "role", 2);
|
|
7056
7056
|
__decorateClass$l([attr], BaseDivider.prototype, "orientation", 2);
|
|
7057
7057
|
class Divider extends BaseDivider {
|
|
7058
|
-
constructor() {
|
|
7059
|
-
super(...arguments);
|
|
7060
|
-
this.inset = false;
|
|
7061
|
-
}
|
|
7062
7058
|
/**
|
|
7063
7059
|
* Handles changes to align-content attribute custom states
|
|
7064
7060
|
* @param prev - the previous state
|
|
@@ -7526,7 +7522,6 @@ class Image extends FASTElement {
|
|
|
7526
7522
|
* @internal
|
|
7527
7523
|
*/
|
|
7528
7524
|
this.elementInternals = this.attachInternals();
|
|
7529
|
-
this.block = false;
|
|
7530
7525
|
}
|
|
7531
7526
|
/**
|
|
7532
7527
|
* Handles changes to block custom states
|
|
@@ -7729,7 +7724,7 @@ __decorateClass$g([attr({
|
|
|
7729
7724
|
const styles$j = css`
|
|
7730
7725
|
${display("inline")}
|
|
7731
7726
|
|
|
7732
|
-
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${colorBrandForegroundLink};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};
|
|
7727
|
+
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${colorBrandForegroundLink};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thinkness:${strokeWidthThin};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${colorBrandForegroundLinkHover}}:host(:active){color:${colorBrandForegroundLinkPressed}}:host(${subtleState}:hover){color:${colorNeutralForeground2LinkHover}}:host(${subtleState}:active){color:${colorNeutralForeground2LinkPressed}}}:host(${subtleState}){color:${colorNeutralForeground2Link}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(:is([state--inline],:state(inline))){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
7733
7728
|
:host{color:LinkText}`));
|
|
7734
7729
|
|
|
7735
7730
|
function anchorTemplate() {
|
|
@@ -8274,10 +8269,6 @@ var __decorateClass$d = (decorators, target, key, kind) => {
|
|
|
8274
8269
|
class Menu extends FASTElement {
|
|
8275
8270
|
constructor() {
|
|
8276
8271
|
super(...arguments);
|
|
8277
|
-
this.openOnHover = false;
|
|
8278
|
-
this.openOnContext = false;
|
|
8279
|
-
this.closeOnScroll = false;
|
|
8280
|
-
this.persistOnItemClick = false;
|
|
8281
8272
|
this.slottedMenuList = [];
|
|
8282
8273
|
this.slottedTriggers = [];
|
|
8283
8274
|
/**
|
|
@@ -421,7 +421,7 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
421
421
|
</svg>`),Vh=f`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===qt.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${kt("defaultTitleAction")}>${Mh}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Dh=l`
|
|
422
422
|
${S("grid")}
|
|
423
423
|
|
|
424
|
-
:host{background:${F};box-sizing:border-box;gap:${rt};padding:${wo} ${ld};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${F};color:${A};column-gap:8px;display:flex;font-family:${$};font-size:${je};font-weight:${L};inset-block-start:0;justify-content:space-between;line-height:${ks};margin-block-end:calc(${rt} * -1);margin-block-start:calc(${wo} * -1);padding-block-end:${rt};padding-block-start:${wo};position:sticky;z-index:1}.content{box-sizing:border-box;color:${A};font-family:${$};font-size:${E};font-weight:${_};line-height:${D};min-height:32px}.actions{box-sizing:border-box;background:${F};display:flex;flex-direction:column;gap:${rt};inset-block-end:0;margin-block-end:calc(${wo} * -1);padding-block-end:${wo};padding-block-start:${ws};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${rt} * -1);padding-block-start:${rt}}}`,Lh=Jn.compose({name:`${g.prefix}-dialog-body`,template:Vh,styles:Dh});Lh.define(g.registry);const Io={separator:"separator",presentation:"presentation"},Hh=$t;var Rh=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,So=(o,t,e,s)=>{for(var i=s>1?void 0:s?jh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Rh(t,e,i),i};class Vi extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??Io.separator,this.role!==Io.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Hh.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??Io.separator}`),e===Io.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.role!==Io.presentation?e:null,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}So([a],Vi.prototype,"role",2),So([a],Vi.prototype,"orientation",2);class Es extends Vi{
|
|
424
|
+
:host{background:${F};box-sizing:border-box;gap:${rt};padding:${wo} ${ld};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${F};color:${A};column-gap:8px;display:flex;font-family:${$};font-size:${je};font-weight:${L};inset-block-start:0;justify-content:space-between;line-height:${ks};margin-block-end:calc(${rt} * -1);margin-block-start:calc(${wo} * -1);padding-block-end:${rt};padding-block-start:${wo};position:sticky;z-index:1}.content{box-sizing:border-box;color:${A};font-family:${$};font-size:${E};font-weight:${_};line-height:${D};min-height:32px}.actions{box-sizing:border-box;background:${F};display:flex;flex-direction:column;gap:${rt};inset-block-end:0;margin-block-end:calc(${wo} * -1);padding-block-end:${wo};padding-block-start:${ws};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${rt} * -1);padding-block-start:${rt}}}`,Lh=Jn.compose({name:`${g.prefix}-dialog-body`,template:Vh,styles:Dh});Lh.define(g.registry);const Io={separator:"separator",presentation:"presentation"},Hh=$t;var Rh=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,So=(o,t,e,s)=>{for(var i=s>1?void 0:s?jh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Rh(t,e,i),i};class Vi extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??Io.separator,this.role!==Io.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Hh.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??Io.separator}`),e===Io.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.role!==Io.presentation?e:null,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}So([a],Vi.prototype,"role",2),So([a],Vi.prototype,"orientation",2);class Es extends Vi{alignContentChanged(t,e){t&&c(this.elementInternals,`align-${t}`,!1),e&&c(this.elementInternals,`align-${e}`,!0)}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}insetChanged(t,e){c(this.elementInternals,"inset",e)}}So([a({attribute:"align-content"})],Es.prototype,"alignContent",2),So([a],Es.prototype,"appearance",2),So([a({mode:"boolean"})],Es.prototype,"inset",2);function qh(){return f`<slot></slot>`}const Uh=qh(),Gh=l`
|
|
425
425
|
${S("flex")}
|
|
426
426
|
|
|
427
427
|
:host{contain:content}:host::after,:host::before{align-self:center;background:${vo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${W}}:host(${hi}){padding:0 12px}:host ::slotted(*){color:${Vt};font-family:${$};font-size:${j};font-weight:${_};margin:0;padding:0 12px}:host(${tn})::before,:host(${Zt})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${I}){height:100%;min-height:84px}:host(${I}):empty{min-height:20px}:host(${I}){flex-direction:column;align-items:center}:host(${I}${hi})::before{margin-top:12px}:host(${I}${hi})::after{margin-bottom:12px}:host(${I}):empty::before,:host(${I}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${I})::before,:host(${I})::after{width:${W};min-height:20px;height:100%}:host(${I}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${I}${tn})::before{min-height:8px}:host(${I}${Zt})::after{min-height:8px}:host(${lo})::before,:host(${lo})::after{background:${le}}:host(${lo}) ::slotted(*){color:${A}}:host(${Jt})::before,:host(${Jt})::after{background:${un}}:host(${Jt}) ::slotted(*){color:${bi}}:host(${z})::before,:host(${z})::after{background:${Ml}}:host(${z}) ::slotted(*){color:${ut}}`.withBehaviors(Q(l`
|
|
@@ -433,14 +433,14 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
433
433
|
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${ad};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${oh}}.footer{display:flex;justify-content:flex-start;gap:${ft}}`;function iu(){return f`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const ru=iu(),nu=ou.compose({name:`${g.prefix}-drawer-body`,template:ru,styles:su});nu.define(g.registry);const au={above:"above",after:"after",before:"before"},k={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"};var lu=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,zo=(o,t,e,s)=>{for(var i=s>1?void 0:s?cu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&lu(t,e,i),i};class To extends w{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(t,e){e&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(t,e){if(c(this.elementInternals,"has-message",!!e.length),!e.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(t,e){e?.length&&(this.input=e?.[0],this.setStates())}inputChanged(t,e){e&&(this.setStates(),this.setLabelProperties())}changeHandler(t){return this.setStates(),this.setValidationStates(),!0}clickHandler(t){return this===t.target&&this.input.click(),!0}focusinHandler(t){return this.matches(":focus-within:has(> :focus-visible)")&&c(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return c(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||no("input"),this.labelSlot?.forEach(t=>{t instanceof HTMLLabelElement&&(t.htmlFor=t.htmlFor||this.input.id,t.id=t.id||`${this.input.id}--label`,t.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",t.id))}))}setStates(){this.$fastController.isConnected&&(c(this.elementInternals,"disabled",!!this.input.disabled),c(this.elementInternals,"readonly",!!this.input.readOnly),c(this.elementInternals,"required",!!this.input.required),c(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[t,e]of Object.entries(k))c(this.elementInternals,e,this.input.validity[t])}}zo([x],To.prototype,"labelSlot",2),zo([x],To.prototype,"messageSlot",2),zo([x],To.prototype,"slottedInputs",2),zo([x],To.prototype,"input",2);class ta extends To{constructor(){super(...arguments),this.labelPosition=au.above}}zo([a({attribute:"label-position"})],ta.prototype,"labelPosition",2);const du=l.partial`:is([state--focus-visible], :state(focus-visible))`,hu=l.partial`:is([state--${k.badInput}], :state(${k.badInput}))`,uu=l.partial`:is([state--${k.customError}], :state(${k.customError}))`,pu=l.partial`:is([state--${k.patternMismatch}], :state(${k.patternMismatch}))`,gu=l.partial`:is([state--${k.rangeOverflow}], :state(${k.rangeOverflow}))`,bu=l.partial`:is([state--${k.rangeUnderflow}], :state(${k.rangeUnderflow}))`,fu=l.partial`:is([state--${k.stepMismatch}], :state(${k.stepMismatch}))`,mu=l.partial`:is([state--${k.tooLong}], :state(${k.tooLong}))`,$u=l.partial`:is([state--${k.tooShort}], :state(${k.tooShort}))`,vu=l.partial`:is([state--${k.typeMismatch}], :state(${k.typeMismatch}))`,yu=l.partial`:is([state-${k.valid}], :state(${k.valid}))`,ku=l.partial`:is([state--${k.valueMissing}], :state(${k.valueMissing}))`,xu=l.partial`:is([state--has-message], :state(has-message))`,wu=l`
|
|
434
434
|
${S("inline-grid")}
|
|
435
435
|
|
|
436
|
-
:host{color:${A};align-items:center;gap:0 ${ft};justify-items:start;position:relative}:has([slot='message']){color:${A};row-gap:${rt}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${ft}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${xo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${cd}}:host([label-position='below']:not(${xu})){grid-template-areas:'input' 'label'}::slotted([slot='label'])::after{content:'';display:block;position:absolute;inset:0}::slotted([slot='input']){grid-area:input;position:relative;z-index:1}::slotted([slot='message']){margin-block-start:${xo};grid-area:message}:host(${du}:focus-within){border-radius:${P};outline:${Bt} solid ${Dt}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${$};font-size:${E};font-weight:${_};grid-area:label;line-height:${D};user-select:none}:host([size='small']) ::slotted(label){font-size:${j};line-height:${st}}:host([size='large']) ::slotted(label){font-size:${lt};line-height:${vt}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${L}}:host(${O}){cursor:default}::slotted([flag]){display:none}:host(${hu}) ::slotted([flag='${k.badInput}']),:host(${uu}) ::slotted([flag='${k.customError}']),:host(${pu}) ::slotted([flag='${k.patternMismatch}']),:host(${gu}) ::slotted([flag='${k.rangeOverflow}']),:host(${bu}) ::slotted([flag='${k.rangeUnderflow}']),:host(${fu}) ::slotted([flag='${k.stepMismatch}']),:host(${mu}) ::slotted([flag='${k.tooLong}']),:host(${$u}) ::slotted([flag='${k.tooShort}']),:host(${vu}) ::slotted([flag='${k.typeMismatch}']),:host(${ku}) ::slotted([flag='${k.valueMissing}']),:host(${yu}) ::slotted([flag='${k.valid}']){display:block}`,Cu=f`<template @click="${(o,t)=>o.clickHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" ${Ha({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:io()})}><slot name="label" part="label" ${at("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${at({property:"messageSlot",filter:io("[flag]")})}></slot></template>`,Iu=ta.compose({name:`${g.prefix}-field`,template:Cu,styles:wu,shadowOptions:{delegatesFocus:!0}});Iu.define(g.registry);var Su=Object.defineProperty,zu=Object.getOwnPropertyDescriptor,Bo=(o,t,e,s)=>{for(var i=s>1?void 0:s?zu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Su(t,e,i),i};class Ye extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals()
|
|
436
|
+
:host{color:${A};align-items:center;gap:0 ${ft};justify-items:start;position:relative}:has([slot='message']){color:${A};row-gap:${rt}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${ft}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${xo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${cd}}:host([label-position='below']:not(${xu})){grid-template-areas:'input' 'label'}::slotted([slot='label'])::after{content:'';display:block;position:absolute;inset:0}::slotted([slot='input']){grid-area:input;position:relative;z-index:1}::slotted([slot='message']){margin-block-start:${xo};grid-area:message}:host(${du}:focus-within){border-radius:${P};outline:${Bt} solid ${Dt}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${$};font-size:${E};font-weight:${_};grid-area:label;line-height:${D};user-select:none}:host([size='small']) ::slotted(label){font-size:${j};line-height:${st}}:host([size='large']) ::slotted(label){font-size:${lt};line-height:${vt}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${L}}:host(${O}){cursor:default}::slotted([flag]){display:none}:host(${hu}) ::slotted([flag='${k.badInput}']),:host(${uu}) ::slotted([flag='${k.customError}']),:host(${pu}) ::slotted([flag='${k.patternMismatch}']),:host(${gu}) ::slotted([flag='${k.rangeOverflow}']),:host(${bu}) ::slotted([flag='${k.rangeUnderflow}']),:host(${fu}) ::slotted([flag='${k.stepMismatch}']),:host(${mu}) ::slotted([flag='${k.tooLong}']),:host(${$u}) ::slotted([flag='${k.tooShort}']),:host(${vu}) ::slotted([flag='${k.typeMismatch}']),:host(${ku}) ::slotted([flag='${k.valueMissing}']),:host(${yu}) ::slotted([flag='${k.valid}']){display:block}`,Cu=f`<template @click="${(o,t)=>o.clickHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" ${Ha({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:io()})}><slot name="label" part="label" ${at("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${at({property:"messageSlot",filter:io("[flag]")})}></slot></template>`,Iu=ta.compose({name:`${g.prefix}-field`,template:Cu,styles:wu,shadowOptions:{delegatesFocus:!0}});Iu.define(g.registry);var Su=Object.defineProperty,zu=Object.getOwnPropertyDescriptor,Bo=(o,t,e,s)=>{for(var i=s>1?void 0:s?zu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Su(t,e,i),i};class Ye extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}blockChanged(t,e){c(this.elementInternals,"block",e)}borderedChanged(t,e){c(this.elementInternals,"bordered",e)}shadowChanged(t,e){c(this.elementInternals,"shadow",e)}fitChanged(t,e){t&&c(this.elementInternals,`fit-${t}`,!1),e&&c(this.elementInternals,`fit-${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}Bo([a({mode:"boolean"})],Ye.prototype,"block",2),Bo([a({mode:"boolean"})],Ye.prototype,"bordered",2),Bo([a({mode:"boolean"})],Ye.prototype,"shadow",2),Bo([a],Ye.prototype,"fit",2),Bo([a],Ye.prototype,"shape",2);const Tu=f`<slot></slot>`,Bu=l`
|
|
437
437
|
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(:is([state--block],:state(block))) ::slotted(img){width:100%;height:auto}:host(:is([state--bordered],:state(bordered))) ::slotted(img){border:${W} solid ${vo}}:host(:is([state--fit-none],:state(fit-none))) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(:is([state--fit-center],:state(fit-center))) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(:is([state--fit-contain],:state(fit-contain))) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(:is([state--fit-cover],:state(fit-cover))) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(:is([state--shadowed],:state(shadowed))) ::slotted(img){box-shadow:${xs}}:host(${ho}) ::slotted(img){border-radius:${gt}}:host(${Qt}) ::slotted(img){border-radius:${P}}`,Pu=Ye.compose({name:`${g.prefix}-image`,template:Tu,styles:Bu});Pu.define(g.registry);var Au=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,Ns=(o,t,e,s)=>{for(var i=s>1?void 0:s?Eu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Au(t,e,i),i};class Po extends w{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.required=!1}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}weightChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}}Ns([a],Po.prototype,"size",2),Ns([a],Po.prototype,"weight",2),Ns([a({mode:"boolean"})],Po.prototype,"disabled",2),Ns([a({mode:"boolean"})],Po.prototype,"required",2);const Nu=l`
|
|
438
438
|
${S("inline-flex")}
|
|
439
439
|
|
|
440
440
|
:host{color:${A};cursor:pointer;font-family:${$};font-size:${E};font-weight:${_};line-height:${D};user-select:none}.asterisk{color:${$n};margin-inline-start:${Ht}}:host(${T}){font-size:${j};line-height:${st}}:host(${C}){font-size:${lt};line-height:${vt}}:host(${C}),:host(:is([state--semibold],:state(semibold))){font-weight:${L}}:host(:is([state--disabled],:state(disabled))),:host(:is([state--disabled],:state(disabled))) .asterisk{color:${B}}`;function Ou(){return f`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const Fu=Ou(),_u=Po.compose({name:`${g.prefix}-label`,template:Fu,styles:Nu});_u.define(g.registry);var Mu=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,ea=(o,t,e,s)=>{for(var i=s>1?void 0:s?Vu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Mu(t,e,i),i};class Li extends Rt{constructor(){super(...arguments),this.inline=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}inlineChanged(t,e){c(this.elementInternals,"inline",e)}}ea([a],Li.prototype,"appearance",2),ea([a({mode:"boolean"})],Li.prototype,"inline",2);const Du=l`
|
|
441
441
|
${S("inline")}
|
|
442
442
|
|
|
443
|
-
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${vl};cursor:pointer;font-family:${$};font-size:${E};font-weight:${_};
|
|
443
|
+
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${vl};cursor:pointer;font-family:${$};font-size:${E};font-weight:${_};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thinkness:${W};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${yl}}:host(:active){color:${kl}}:host(${z}:hover){color:${wl}}:host(${z}:active){color:${Cl}}}:host(${z}){color:${xl}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(:is([state--inline],:state(inline))){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(Q(l`
|
|
444
444
|
:host{color:LinkText}`));function Lu(){return f`<template tabindex="0" @click="${(o,t)=>o.clickHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot></slot></template>`}const Hu=Lu(),Ru=Li.compose({name:`${g.prefix}-link`,template:Hu,styles:Du});Ru.define(g.registry);class ju extends oe{}const qu=Mi({end:f.partial(`
|
|
445
445
|
<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
446
446
|
<path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill="currentColor"></path>
|
|
@@ -452,7 +452,7 @@ const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
452
452
|
:host(${O}),:host(${O}) ::slotted([slot='start']),:host(${O}) ::slotted([slot='end']){color:GrayText}`)),Yu=f.partial('<svg class="indicator" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),Qu=f.partial('<svg class="submenu-glyph" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>');function Zu(o={}){return f`<template @keydown="${(t,e)=>t.handleMenuItemKeyDown(e.event)}" @click="${(t,e)=>t.handleMenuItemClick(e.event)}" @mouseover="${(t,e)=>t.handleMouseOver(e.event)}" @mouseout="${(t,e)=>t.handleMouseOut(e.event)}" @toggle="${(t,e)=>t.toggleHandler(e.event)}"><slot name="indicator">${xt(o.indicator)}</slot>${Wt(o)}<div part="content" class="content"><slot></slot></div>${re(o)}<slot name="submenu-glyph">${xt(o.submenuGlyph)}</slot><slot name="submenu" ${at({property:"slottedSubmenu",filter:Xu()})}></slot></template>`}const Ju=Zu({indicator:Yu,submenuGlyph:Qu}),tp=At.compose({name:`${g.prefix}-menu-item`,template:Ju,styles:Ku});tp.define(g.registry);var ep=Object.defineProperty,op=Object.getOwnPropertyDescriptor,sp=(o,t,e,s)=>{for(var i=s>1?void 0:s?op(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&ep(t,e,i),i};const Hi=class Ki extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&Zr(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&this.menuItems!==void 0){const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.focusIndex=e}},this.handleItemFocus=t=>{const e=t.target;this.menuItems!==void 0&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.changedMenuItemHandler=t=>{if(this.menuItems===void 0)return;const e=t.target,s=this.menuItems.indexOf(e);if(s!==-1&&e.role==="menuitemradio"&&e.checked===!0){for(let r=s-1;r>=0;--r){const n=this.menuItems[r],u=n.getAttribute("role");if(u===J.menuitemradio&&(n.checked=!1),u==="separator")break}const i=this.menuItems.length-1;for(let r=s+1;r<=i;++r){const n=this.menuItems[r],u=n.getAttribute("role");if(u===J.menuitemradio&&(n.checked=!1),u==="separator")break}}},this.isMenuItemElement=t=>t instanceof At||Zr(t)&&t.getAttribute("role")in Ki.focusableElementRoles,this.isFocusableElement=t=>this.isMenuItemElement(t),this.elementInternals.role="menu"}itemsChanged(t,e){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Ft.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(t){if(!(t.defaultPrevented||this.menuItems===void 0))switch(t.key){case Qo:this.setFocus(this.focusIndex+1,1);return;case ts:this.setFocus(this.focusIndex-1,-1);return;case es:this.setFocus(this.menuItems.length-1,-1);return;case ss:this.setFocus(0,1);return;default:return!0}}removeItemListeners(t=this.items){t.forEach(e=>{e.removeEventListener("focus",this.handleItemFocus),m.getNotifier(e).unsubscribe(this,"hidden")})}static elementIndent(t){const e=t.getAttribute("role"),s=t.querySelector("[slot=start]");return e&&e!==J.menuitem?s?2:1:s?1:0}setItems(){const t=Array.from(this.children);this.removeItemListeners(t),t.forEach(n=>m.getNotifier(n).subscribe(this,"hidden"));const e=t.filter(n=>!n.hasAttribute("hidden"));this.menuItems=e;const s=this.menuItems.filter(this.isMenuItemElement);s.length&&(this.focusIndex=0),s.forEach((n,u)=>{n.setAttribute("tabindex",u===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const i=this.menuItems?.filter(this.isMenuItemElement),r=i?.reduce((n,u)=>{const p=Ki.elementIndent(u);return Math.max(n,p)},0);i?.forEach(n=>{n instanceof At&&n.setAttribute("data-indent",`${r}`)})}handleChange(t,e){e==="hidden"&&this.setItems()}setFocus(t,e){if(this.menuItems!==void 0)for(;t>=0&&t<this.menuItems.length;){const s=this.menuItems[t];if(this.isFocusableElement(s)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,s.setAttribute("tabindex","0"),s.focus();break}t+=e}}};Hi.focusableElementRoles=J,sp([x],Hi.prototype,"items",2);let ip=Hi;const rp=l`
|
|
453
453
|
${S("flex")}
|
|
454
454
|
|
|
455
|
-
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${F};border:1px solid ${pt};border-radius:${P};box-shadow:${Vn};padding:4px;row-gap:2px}`;function np(){return f`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,t)=>o.handleMenuKeyDown(t.event)}" @focusout="${(o,t)=>o.handleFocusOut(t.event)}"><slot ${at("items")}></slot></template>`}const ap=np(),lp=ip.compose({name:`${g.prefix}-menu-list`,template:ap,styles:rp});lp.define(g.registry);var cp=Object.defineProperty,dp=Object.getOwnPropertyDescriptor,Ze=(o,t,e,s)=>{for(var i=s>1?void 0:s?dp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&cp(t,e,i),i};class Ce extends w{constructor(){super(...arguments),this.
|
|
455
|
+
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${F};border:1px solid ${pt};border-radius:${P};box-shadow:${Vn};padding:4px;row-gap:2px}`;function np(){return f`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,t)=>o.handleMenuKeyDown(t.event)}" @focusout="${(o,t)=>o.handleFocusOut(t.event)}"><slot ${at("items")}></slot></template>`}const ap=np(),lp=ip.compose({name:`${g.prefix}-menu-list`,template:ap,styles:rp});lp.define(g.registry);var cp=Object.defineProperty,dp=Object.getOwnPropertyDescriptor,Ze=(o,t,e,s)=>{for(var i=s>1?void 0:s?dp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&cp(t,e,i),i};class Ce extends w{constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=t=>{t?.target instanceof At&&(t.target.getAttribute("role")===J.menuitemcheckbox||t.target.getAttribute("role")===J.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=t=>{this._menuList?.togglePopover(!0),t&&this.openOnContext&&t.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=t=>{if(t.type==="toggle"&&t.newState){const e=t.newState==="open";this._trigger?.setAttribute("aria-expanded",`${e}`),this._open=e,this.focusMenuList()}},this.triggerKeydownHandler=t=>{if(t.defaultPrevented)return;switch(t.key){case ni:case os:t.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=t=>{t.composedPath().some(e=>e===this._trigger||e===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),Ft.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.addListeners())}focusMenuList(){Ft.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Ft.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(t,e){e?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(t,e){e?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",this.closeMenu)}openOnContextChanged(t,e){e?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(t,e){e?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addListeners(){this._menuList?.addEventListener("toggle",this.toggleHandler),this._trigger?.addEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu),document.addEventListener("click",this.documentClickHandler)):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){this._menuList?.removeEventListener("toggle",this.toggleHandler),this._trigger?.removeEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.removeEventListener("change",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?(this._trigger?.removeEventListener("contextmenu",this.openMenu),document.removeEventListener("click",this.documentClickHandler)):this._trigger?.removeEventListener("click",this.toggleMenu)}menuKeydownHandler(t){if(t.defaultPrevented)return;switch(t.key){case Za:t.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case Ja:if(this._open&&this.closeMenu(),t.shiftKey&&t.composedPath()[0]!==this._trigger)this.focusTrigger();else if(t.shiftKey)return!0;default:return!0}}}Ze([a({attribute:"open-on-hover",mode:"boolean"})],Ce.prototype,"openOnHover",2),Ze([a({attribute:"open-on-context",mode:"boolean"})],Ce.prototype,"openOnContext",2),Ze([a({attribute:"close-on-scroll",mode:"boolean"})],Ce.prototype,"closeOnScroll",2),Ze([a({attribute:"persist-on-item-click",mode:"boolean"})],Ce.prototype,"persistOnItemClick",2),Ze([x],Ce.prototype,"slottedMenuList",2),Ze([x],Ce.prototype,"slottedTriggers",2);const hp=l`
|
|
456
456
|
${S("inline-block")}
|
|
457
457
|
|
|
458
458
|
::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){inset-area:block-end span-inline-end;margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-try-options:flip-block;position:absolute;z-index:1}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}`;function up(){return f`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,t)=>o.menuKeydownHandler(t.event)}"><slot name="trigger" ${at({property:"slottedTriggers",filter:io()})}></slot><slot ${at({property:"slottedMenuList",filter:io()})}></slot></template>`}const pp=up(),gp=Ce.compose({name:`${g.prefix}-menu`,template:pp,styles:hp});gp.define(g.registry);var bp=Object.defineProperty,fp=Object.getOwnPropertyDescriptor,Ri=(o,t,e,s)=>{for(var i=s>1?void 0:s?fp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&bp(t,e,i),i};class Fs extends w{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}shapeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}layoutChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}intentChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}}Ri([a],Fs.prototype,"shape",2),Ri([a],Fs.prototype,"layout",2),Ri([a],Fs.prototype,"intent",2);const mp=l`
|