@fluentui/web-components 3.0.0-beta.27 → 3.0.0-beta.29
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 +22 -2
- package/dist/dts/anchor-button/anchor-button.d.ts +88 -82
- package/dist/dts/anchor-button/anchor-button.options.d.ts +21 -0
- package/dist/dts/button/button.styles.d.ts +4 -0
- package/dist/dts/index-rollup.d.ts +1 -0
- package/dist/dts/index.d.ts +2 -3
- package/dist/dts/link/define.d.ts +1 -0
- package/dist/dts/link/index.d.ts +4 -0
- package/dist/dts/link/link.bench.d.ts +3 -0
- package/dist/dts/link/link.d.ts +33 -0
- package/dist/dts/link/link.definition.d.ts +7 -0
- package/dist/dts/link/link.options.d.ts +52 -0
- package/dist/dts/link/link.styles.d.ts +1 -0
- package/dist/dts/link/link.template.d.ts +12 -0
- package/dist/dts/progress-bar/index.d.ts +0 -1
- package/dist/dts/progress-bar/progress-bar.d.ts +56 -13
- package/dist/dts/progress-bar/progress-bar.options.d.ts +1 -10
- package/dist/dts/progress-bar/progress-bar.template.d.ts +1 -2
- package/dist/esm/anchor-button/anchor-button.definition.js +0 -3
- package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.js +97 -81
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.options.js +15 -0
- package/dist/esm/anchor-button/anchor-button.options.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.styles.js +6 -258
- package/dist/esm/anchor-button/anchor-button.styles.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.template.js +7 -35
- package/dist/esm/anchor-button/anchor-button.template.js.map +1 -1
- package/dist/esm/button/button.styles.js +16 -5
- package/dist/esm/button/button.styles.js.map +1 -1
- package/dist/esm/index-rollup.js +1 -0
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/link/define.js +4 -0
- package/dist/esm/link/define.js.map +1 -0
- package/dist/esm/link/index.js +5 -0
- package/dist/esm/link/index.js.map +1 -0
- package/dist/esm/link/link.bench.js +11 -0
- package/dist/esm/link/link.bench.js.map +1 -0
- package/dist/esm/link/link.definition.js +15 -0
- package/dist/esm/link/link.definition.js.map +1 -0
- package/dist/esm/link/link.js +36 -0
- package/dist/esm/link/link.js.map +1 -0
- package/dist/esm/link/link.options.js +21 -0
- package/dist/esm/link/link.options.js.map +1 -0
- package/dist/esm/link/link.styles.js +67 -0
- package/dist/esm/link/link.styles.js.map +1 -0
- package/dist/esm/link/link.template.js +22 -0
- package/dist/esm/link/link.template.js.map +1 -0
- package/dist/esm/progress-bar/index.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.js +62 -11
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.styles.js +48 -127
- package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.template.js +8 -26
- package/dist/esm/progress-bar/progress-bar.template.js.map +1 -1
- package/dist/esm/theme/set-theme.js +8 -3
- package/dist/esm/theme/set-theme.js.map +1 -1
- package/dist/web-components.d.ts +271 -391
- package/dist/web-components.js +351 -265
- package/dist/web-components.min.js +240 -246
- package/package.json +6 -1
- package/dist/dts/progress-bar/base-progress.d.ts +0 -41
- package/dist/esm/progress-bar/base-progress.js +0 -56
- package/dist/esm/progress-bar/base-progress.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.styles.js","sourceRoot":"","sources":["../../../src/button/button.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,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,EACzB,2BAA2B,EAC3B,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EAC9B,8BAA8B,EAC9B,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EAC9B,uBAAuB,EACvB,iCAAiC,EACjC,mCAAmC,EACnC,4BAA4B,EAC5B,8BAA8B,EAC9B,8BAA8B,EAC9B,6BAA6B,EAC7B,mBAAmB,EACnB,wBAAwB,EACxB,0BAA0B,EAC1B,0BAA0B,EAC1B,iBAAiB,EACjB,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,+BAA+B,EAC/B,iCAAiC,EACjC,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,EACP,OAAO,EACP,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,GAChB,MAAM,2BAA2B,CAAC;AAEnC
|
|
1
|
+
{"version":3,"file":"button.styles.js","sourceRoot":"","sources":["../../../src/button/button.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,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,EACzB,2BAA2B,EAC3B,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EAC9B,8BAA8B,EAC9B,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EAC9B,uBAAuB,EACvB,iCAAiC,EACjC,mCAAmC,EACnC,4BAA4B,EAC5B,8BAA8B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AC;AAC3B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,iBAAiB,CAAC;AACzB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,wBAAwB,CAAC;AAChC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,2BAA2B,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AccordionItem, accordionItemDefinition, AccordionItemExpandIconPosition, AccordionItemSize, accordionItemStyles, accordionItemTemplate, } from './accordion-item/index.js';
|
|
2
2
|
export { Accordion, accordionDefinition, AccordionExpandMode, accordionStyles, accordionTemplate, } from './accordion/index.js';
|
|
3
|
-
export {
|
|
3
|
+
export { Link, LinkAppearance, LinkDefinition, LinkTemplate, LinkTarget } from './link/index.js';
|
|
4
4
|
export { Avatar, AvatarActive, AvatarAppearance, AvatarColor, AvatarDefinition, AvatarNamedColor, AvatarShape, AvatarSize, AvatarStyles, AvatarTemplate, } from './avatar/index.js';
|
|
5
5
|
export { Badge, BadgeAppearance, BadgeColor, BadgeDefinition, BadgeShape, BadgeSize, BadgeStyles, BadgeTemplate, } from './badge/index.js';
|
|
6
6
|
export { Button, ButtonAppearance, ButtonDefinition, ButtonFormTarget, ButtonShape, ButtonSize, ButtonStyles, ButtonTemplate, ButtonType, } from './button/index.js';
|
|
@@ -14,6 +14,7 @@ export { Field, FieldLabelPosition, ValidationFlags, FieldDefinition, FieldStyle
|
|
|
14
14
|
export { FluentDesignSystem } from './fluent-design-system.js';
|
|
15
15
|
export { Image, ImageDefinition, ImageFit, ImageShape, ImageStyles, ImageTemplate } from './image/index.js';
|
|
16
16
|
export { Label, LabelDefinition, LabelSize, LabelStyles, LabelTemplate, LabelWeight } from './label/index.js';
|
|
17
|
+
export { AnchorButton, AnchorButtonAppearance, AnchorButtonDefinition, AnchorButtonShape, AnchorButtonSize, AnchorButtonTemplate, AnchorTarget, } from './anchor-button/index.js';
|
|
17
18
|
export { MenuButton, MenuButtonAppearance, MenuButtonDefinition, MenuButtonShape, MenuButtonSize, MenuButtonStyles, MenuButtonTemplate, } from './menu-button/index.js';
|
|
18
19
|
export { MenuItem, MenuItemDefinition, MenuItemRole, MenuItemStyles, MenuItemTemplate, roleForMenuItem, } from './menu-item/index.js';
|
|
19
20
|
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,+BAA+B,EAC/B,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,+BAA+B,EAC/B,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,GACtB,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;AACjG,OAAO,EACL,MAAM,EACN,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,YAAY,EACZ,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KA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1B,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.js","sourceRoot":"","sources":["../../../src/link/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FluentDesignSystem } from '../fluent-design-system.js';
|
|
2
|
+
import { definition } from './link.definition.js';
|
|
3
|
+
definition.define(FluentDesignSystem.registry);
|
|
4
|
+
const itemRenderer = () => {
|
|
5
|
+
const btn = document.createElement('fluent-link');
|
|
6
|
+
btn.appendChild(document.createTextNode('Link'));
|
|
7
|
+
return btn;
|
|
8
|
+
};
|
|
9
|
+
export default itemRenderer;
|
|
10
|
+
export { tests } from '../utils/benchmark-wrapper.js';
|
|
11
|
+
//# sourceMappingURL=link.bench.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.bench.js","sourceRoot":"","sources":["../../../src/link/link.bench.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;AAE/C,MAAM,YAAY,GAAG,GAAG,EAAE;IACxB,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAClD,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACjD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FluentDesignSystem } from '../fluent-design-system.js';
|
|
2
|
+
import { Link } from './link.js';
|
|
3
|
+
import { styles } from './link.styles.js';
|
|
4
|
+
import { template } from './link.template.js';
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
* @remarks
|
|
8
|
+
* HTML Element: \<fluent-link\>
|
|
9
|
+
*/
|
|
10
|
+
export const definition = Link.compose({
|
|
11
|
+
name: `${FluentDesignSystem.prefix}-link`,
|
|
12
|
+
template,
|
|
13
|
+
styles,
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=link.definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.definition.js","sourceRoot":"","sources":["../../../src/link/link.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC;IACrC,IAAI,EAAE,GAAG,kBAAkB,CAAC,MAAM,OAAO;IACzC,QAAQ;IACR,MAAM;CACP,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { attr } from '@microsoft/fast-element';
|
|
3
|
+
import { BaseAnchor } from '../anchor-button/anchor-button.js';
|
|
4
|
+
/**
|
|
5
|
+
* An Anchor Custom HTML Element.
|
|
6
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element }.
|
|
7
|
+
*
|
|
8
|
+
* @slot start - Content which can be provided before the link content
|
|
9
|
+
* @slot end - Content which can be provided after the link content
|
|
10
|
+
* @slot - The default slot for link content
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export class Link extends BaseAnchor {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/**
|
|
18
|
+
* The link is inline with text
|
|
19
|
+
* In chromium browsers, if the link is contained within a semantic
|
|
20
|
+
* text element (`h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `p`) or `fluent-text`,
|
|
21
|
+
* `:host-context()` ensures inline links are styled appropriately.
|
|
22
|
+
*
|
|
23
|
+
* @public
|
|
24
|
+
* @remarks
|
|
25
|
+
* HTML Attribute: `inline`
|
|
26
|
+
*/
|
|
27
|
+
this.inline = false;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
__decorate([
|
|
31
|
+
attr
|
|
32
|
+
], Link.prototype, "appearance", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
attr({ mode: 'boolean' })
|
|
35
|
+
], Link.prototype, "inline", void 0);
|
|
36
|
+
//# sourceMappingURL=link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../../src/link/link.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAG/D;;;;;;;;;GASG;AACH,MAAM,OAAO,IAAK,SAAQ,UAAU;IAApC;;QAWE;;;;;;;;;WASG;QAEI,WAAM,GAAY,KAAK,CAAC;IACjC,CAAC;CAAA;AAdC;IADC,IAAI;wCAC0C;AAa/C;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;oCACK"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AnchorAttributes, AnchorTarget } from '../anchor-button/anchor-button.options.js';
|
|
2
|
+
/**
|
|
3
|
+
* Link Appearance constants
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export const LinkAppearance = {
|
|
7
|
+
subtle: 'subtle',
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Link target values.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export const LinkTarget = AnchorTarget;
|
|
15
|
+
/**
|
|
16
|
+
* Reflected link attributes.
|
|
17
|
+
*
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export const LinkAttributes = AnchorAttributes;
|
|
21
|
+
//# sourceMappingURL=link.options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.options.js","sourceRoot":"","sources":["../../../src/link/link.options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAG3F;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,MAAM,EAAE,QAAQ;CACR,CAAC;AAQX;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;AASvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { display, forcedColorsStylesheetBehavior } from '../utils/index.js';
|
|
3
|
+
import { colorBrandForegroundLink, colorBrandForegroundLinkHover, colorBrandForegroundLinkPressed, colorNeutralForeground2Link, colorNeutralForeground2LinkHover, colorNeutralForeground2LinkPressed, fontFamilyBase, fontSizeBase300, fontWeightRegular, strokeWidthThin, } from '../theme/design-tokens.js';
|
|
4
|
+
export const styles = css `
|
|
5
|
+
${display('inline')}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
background-color: transparent;
|
|
10
|
+
color: ${colorBrandForegroundLink};
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
font-family: ${fontFamilyBase};
|
|
13
|
+
font-size: ${fontSizeBase300};
|
|
14
|
+
font-weight: ${fontWeightRegular};
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
overflow: inherit;
|
|
18
|
+
text-align: left;
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
text-decoration-thinkness: ${strokeWidthThin};
|
|
21
|
+
text-overflow: inherit;
|
|
22
|
+
user-select: text;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host(:is(:hover, :focus-visible)) {
|
|
26
|
+
outline: none;
|
|
27
|
+
text-decoration-line: underline;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@media (hover: hover) {
|
|
31
|
+
:host(:hover) {
|
|
32
|
+
color: ${colorBrandForegroundLinkHover};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host(:active) {
|
|
36
|
+
color: ${colorBrandForegroundLinkPressed};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host([appearance='subtle']:hover) {
|
|
40
|
+
color: ${colorNeutralForeground2LinkHover};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host([appearance='subtle']:active) {
|
|
44
|
+
color: ${colorNeutralForeground2LinkPressed};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([appearance='subtle']) {
|
|
49
|
+
color: ${colorNeutralForeground2Link};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host-context(:is(h1, h2, h3, h4, h5, h6, p, fluent-text)),
|
|
53
|
+
:host([inline]) {
|
|
54
|
+
font: inherit;
|
|
55
|
+
text-decoration: underline;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:host(:not([href])) {
|
|
59
|
+
color: inherit;
|
|
60
|
+
text-decoration: none;
|
|
61
|
+
}
|
|
62
|
+
`.withBehaviors(forcedColorsStylesheetBehavior(css `
|
|
63
|
+
:host {
|
|
64
|
+
color: LinkText;
|
|
65
|
+
}
|
|
66
|
+
`));
|
|
67
|
+
//# sourceMappingURL=link.styles.js.map
|
|
@@ -0,0 +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;AAEnC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,QAAQ,CAAC;;;;;aAKR,wBAAwB;;mBAElB,cAAc;iBAChB,eAAe;mBACb,iBAAiB;;;;;;iCAMH,eAAe;;;;;;;;;;;;eAYjC,6BAA6B;;;;eAI7B,+BAA+B;;;;eAI/B,gCAAgC;;;;eAIhC,kCAAkC;;;;;aAKpC,2BAA2B;;;;;;;;;;;;;CAavC,CAAC,aAAa,CACb,8BAA8B,CAAC,GAAG,CAAA;;;;GAIjC,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { html } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* The template for the Link component.
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export function anchorTemplate() {
|
|
7
|
+
return html `
|
|
8
|
+
<template
|
|
9
|
+
tabindex="0"
|
|
10
|
+
@click="${x => x.clickHandler()}"
|
|
11
|
+
@keypress="${(x, c) => x.keypressHandler(c.event)}"
|
|
12
|
+
>
|
|
13
|
+
<slot></slot>
|
|
14
|
+
</template>
|
|
15
|
+
`;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The template for the Link component.
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export const template = anchorTemplate();
|
|
22
|
+
//# sourceMappingURL=link.template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.template.js","sourceRoot":"","sources":["../../../src/link/link.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,IAAI,EAAgB,MAAM,yBAAyB,CAAC;AAGlF;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,IAAI,CAAG;;;gBAGA,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE;mBAClB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,KAAsB,CAAC;;;;GAIrE,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAA8B,cAAc,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/progress-bar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/progress-bar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAC/G,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,QAAQ,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,27 +1,66 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { attr } from '@microsoft/fast-element';
|
|
3
|
-
import { BaseProgress } from './base-progress.js';
|
|
2
|
+
import { attr, FASTElement, nullableNumberConverter, volatile } from '@microsoft/fast-element';
|
|
4
3
|
/**
|
|
5
4
|
* An Progress HTML Element.
|
|
6
5
|
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#progressbar | ARIA progressbar }.
|
|
7
6
|
*
|
|
8
|
-
* @slot indeterminate - The slot for a custom indeterminate indicator
|
|
9
|
-
* @csspart progress - Represents the progress element
|
|
10
|
-
* @csspart determinate - The determinate indicator
|
|
11
|
-
* @csspart indeterminate - The indeterminate indicator
|
|
12
|
-
*
|
|
13
7
|
* @public
|
|
14
8
|
*/
|
|
15
|
-
export class ProgressBar extends
|
|
9
|
+
export class ProgressBar extends FASTElement {
|
|
10
|
+
/**
|
|
11
|
+
* Updates the percent complete when the `value` property changes.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
valueChanged(prev, next) {
|
|
16
|
+
this.elementInternals.ariaValueNow = typeof next === 'number' ? `${next}` : null;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Updates the percent complete when the `min` property changes.
|
|
20
|
+
*
|
|
21
|
+
* @param prev - The previous min value
|
|
22
|
+
* @param next - The current min value
|
|
23
|
+
*/
|
|
24
|
+
minChanged(prev, next) {
|
|
25
|
+
this.elementInternals.ariaValueMin = typeof next === 'number' ? `${next}` : null;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Updates the percent complete when the `max` property changes.
|
|
29
|
+
*
|
|
30
|
+
* @param prev - The previous max value
|
|
31
|
+
* @param next - The current max value
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
maxChanged(prev, next) {
|
|
35
|
+
this.elementInternals.ariaValueMax = typeof next === 'number' ? `${next}` : null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Indicates progress in %
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
get percentComplete() {
|
|
42
|
+
var _a, _b, _c;
|
|
43
|
+
const min = (_a = this.min) !== null && _a !== void 0 ? _a : 0;
|
|
44
|
+
const max = (_b = this.max) !== null && _b !== void 0 ? _b : 100;
|
|
45
|
+
const value = (_c = this.value) !== null && _c !== void 0 ? _c : 0;
|
|
46
|
+
const range = max - min;
|
|
47
|
+
return range === 0 ? 0 : Math.fround(((value - min) / range) * 100);
|
|
48
|
+
}
|
|
16
49
|
constructor() {
|
|
17
|
-
super(
|
|
50
|
+
super();
|
|
51
|
+
/**
|
|
52
|
+
* The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
|
|
53
|
+
*
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
this.elementInternals = this.attachInternals();
|
|
18
57
|
/**
|
|
19
58
|
* The validation state of the progress bar
|
|
20
59
|
* @public
|
|
21
|
-
*
|
|
22
|
-
* HTML Attribute: validation-state
|
|
60
|
+
* HTML Attribute: `validation-state`
|
|
23
61
|
*/
|
|
24
62
|
this.validationState = null;
|
|
63
|
+
this.elementInternals.role = 'progressbar';
|
|
25
64
|
}
|
|
26
65
|
}
|
|
27
66
|
__decorate([
|
|
@@ -33,4 +72,16 @@ __decorate([
|
|
|
33
72
|
__decorate([
|
|
34
73
|
attr({ attribute: 'validation-state' })
|
|
35
74
|
], ProgressBar.prototype, "validationState", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
attr({ converter: nullableNumberConverter })
|
|
77
|
+
], ProgressBar.prototype, "value", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
attr({ converter: nullableNumberConverter })
|
|
80
|
+
], ProgressBar.prototype, "min", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
attr({ converter: nullableNumberConverter })
|
|
83
|
+
], ProgressBar.prototype, "max", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
volatile
|
|
86
|
+
], ProgressBar.prototype, "percentComplete", null);
|
|
36
87
|
//# sourceMappingURL=progress-bar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-bar.js","sourceRoot":"","sources":["../../../src/progress-bar/progress-bar.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"progress-bar.js","sourceRoot":"","sources":["../../../src/progress-bar/progress-bar.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAG/F;;;;;GAKG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAyC1C;;;;OAIG;IACO,YAAY,CAAC,IAAwB,EAAE,IAAwB;QACvE,IAAI,CAAC,gBAAgB,CAAC,YAAY,GAAG,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACnF,CAAC;IAUD;;;;;OAKG;IAC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SAAS,EAAE,uBAAuB,EAAE,CAAC;0CACvB;AAiBtB;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC;wCACzB;AAkBpB;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC;wCACzB;AAkBpB;IADC,QAAQ;kDAQR"}
|
|
@@ -1,172 +1,93 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display, forcedColorsStylesheetBehavior } from '../utils/index.js';
|
|
3
|
-
import { borderRadiusMedium,
|
|
3
|
+
import { borderRadiusMedium, borderRadiusNone, colorCompoundBrandBackground, colorNeutralBackground6, colorPaletteDarkOrangeBackground3, colorPaletteGreenBackground3, colorPaletteRedBackground3, colorTransparentBackground, } from '../theme/design-tokens.js';
|
|
4
4
|
/** ProgressBar styles
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
7
|
export const styles = css `
|
|
8
|
-
${display('
|
|
8
|
+
${display('block')}
|
|
9
9
|
|
|
10
10
|
:host {
|
|
11
|
-
|
|
11
|
+
width: 100%;
|
|
12
12
|
height: 2px;
|
|
13
13
|
overflow-x: hidden;
|
|
14
|
+
background-color: ${colorNeutralBackground6};
|
|
14
15
|
border-radius: ${borderRadiusMedium};
|
|
15
16
|
contain: content;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
:host([thickness='large'])
|
|
19
|
-
:host([thickness='large']) .progress,
|
|
20
|
-
:host([thickness='large']) .determinate {
|
|
19
|
+
:host([thickness='large']) {
|
|
21
20
|
height: 4px;
|
|
22
21
|
}
|
|
23
22
|
|
|
24
|
-
:host([shape='square'])
|
|
25
|
-
|
|
26
|
-
:host([shape='square']) .determinate {
|
|
27
|
-
border-radius: 0;
|
|
23
|
+
:host([shape='square']) {
|
|
24
|
+
border-radius: ${borderRadiusNone};
|
|
28
25
|
}
|
|
29
26
|
|
|
30
|
-
|
|
31
|
-
background-color: ${
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
:host([validation-state='error']) .indeterminate-indicator-1,
|
|
35
|
-
:host([validation-state='error']) .indeterminate-indicator-2 {
|
|
36
|
-
background: linear-gradient(
|
|
37
|
-
to right,
|
|
38
|
-
${colorPaletteRedBackground2} 0%,
|
|
39
|
-
${colorPaletteRedBackground3} 50%,
|
|
40
|
-
${colorPaletteRedBackground2}
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
:host([validation-state='warning']) .determinate {
|
|
45
|
-
background-color: ${colorPaletteDarkOrangeBackground3};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
:host([validation-state='warning']) .indeterminate-indicator-1,
|
|
49
|
-
:host([validation-state='warning']) .indeterminate-indicator-2 {
|
|
50
|
-
background: linear-gradient(
|
|
51
|
-
to right,
|
|
52
|
-
${colorPaletteDarkOrangeBackground2} 0%,
|
|
53
|
-
${colorPaletteDarkOrangeBackground3} 50%,
|
|
54
|
-
${colorPaletteDarkOrangeBackground2}
|
|
55
|
-
);
|
|
27
|
+
.indicator {
|
|
28
|
+
background-color: ${colorCompoundBrandBackground};
|
|
29
|
+
border-radius: inherit;
|
|
30
|
+
height: 100%;
|
|
56
31
|
}
|
|
57
32
|
|
|
58
|
-
:host([
|
|
59
|
-
|
|
33
|
+
:host([value]) .indicator {
|
|
34
|
+
transition: all 0.2s ease-in-out;
|
|
60
35
|
}
|
|
61
36
|
|
|
62
|
-
:host([
|
|
63
|
-
|
|
64
|
-
|
|
37
|
+
:host(:not([value])) .indicator {
|
|
38
|
+
position: relative;
|
|
39
|
+
width: 33%;
|
|
40
|
+
background-image: linear-gradient(
|
|
65
41
|
to right,
|
|
66
|
-
${
|
|
67
|
-
${
|
|
68
|
-
${
|
|
42
|
+
${colorNeutralBackground6} 0%,
|
|
43
|
+
${colorTransparentBackground} 50%,
|
|
44
|
+
${colorNeutralBackground6} 100%
|
|
69
45
|
);
|
|
46
|
+
animation-name: indeterminate;
|
|
47
|
+
animation-duration: 3s;
|
|
48
|
+
animation-timing-function: linear;
|
|
49
|
+
animation-iteration-count: infinite;
|
|
70
50
|
}
|
|
71
51
|
|
|
72
|
-
.
|
|
73
|
-
background-color: ${
|
|
74
|
-
border-radius: ${borderRadiusMedium};
|
|
75
|
-
width: 100%;
|
|
76
|
-
height: 2px;
|
|
77
|
-
display: flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
position: relative;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.determinate {
|
|
83
|
-
background-color: ${colorCompoundBrandBackground};
|
|
84
|
-
border-radius: ${borderRadiusMedium};
|
|
85
|
-
height: 2px;
|
|
86
|
-
transition: all 0.2s ease-in-out;
|
|
87
|
-
display: flex;
|
|
52
|
+
:host([validation-state='error']) .indicator {
|
|
53
|
+
background-color: ${colorPaletteRedBackground3};
|
|
88
54
|
}
|
|
89
55
|
|
|
90
|
-
.
|
|
91
|
-
|
|
92
|
-
opacity: 0;
|
|
93
|
-
height: 100%;
|
|
94
|
-
background: linear-gradient(
|
|
95
|
-
to right,
|
|
96
|
-
${colorBrandBackground2} 0%,
|
|
97
|
-
${colorCompoundBrandBackground} 50%,
|
|
98
|
-
${colorBrandBackground2}
|
|
99
|
-
);
|
|
100
|
-
border-radius: ${borderRadiusMedium};
|
|
101
|
-
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
|
102
|
-
width: 40%;
|
|
103
|
-
animation: indeterminate-1 3s infinite;
|
|
56
|
+
:host([validation-state='warning']) .indicator {
|
|
57
|
+
background-color: ${colorPaletteDarkOrangeBackground3};
|
|
104
58
|
}
|
|
105
59
|
|
|
106
|
-
.
|
|
107
|
-
|
|
108
|
-
opacity: 0;
|
|
109
|
-
height: 100%;
|
|
110
|
-
background: linear-gradient(
|
|
111
|
-
to right,
|
|
112
|
-
${colorBrandBackground2} 0%,
|
|
113
|
-
${colorCompoundBrandBackground} 50%,
|
|
114
|
-
${colorBrandBackground2}
|
|
115
|
-
);
|
|
116
|
-
border-radius: ${borderRadiusMedium};
|
|
117
|
-
animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
|
118
|
-
width: 60%;
|
|
119
|
-
animation: indeterminate-2 3s infinite;
|
|
60
|
+
:host([validation-state='success']) .indicator {
|
|
61
|
+
background-color: ${colorPaletteGreenBackground3};
|
|
120
62
|
}
|
|
121
63
|
|
|
122
|
-
@
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
opacity: 0;
|
|
133
|
-
}
|
|
134
|
-
100% {
|
|
135
|
-
opacity: 0;
|
|
136
|
-
transform: translateX(300%);
|
|
64
|
+
@layer animations {
|
|
65
|
+
/* Disable animations for reduced motion */
|
|
66
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
67
|
+
:host([value]) {
|
|
68
|
+
transition: none;
|
|
69
|
+
}
|
|
70
|
+
:host(:not([value])) .indicator {
|
|
71
|
+
animation-duration: 0.01ms;
|
|
72
|
+
animation-iteration-count: 1;
|
|
73
|
+
}
|
|
137
74
|
}
|
|
138
75
|
}
|
|
139
|
-
|
|
76
|
+
|
|
77
|
+
@keyframes indeterminate {
|
|
140
78
|
0% {
|
|
141
|
-
|
|
142
|
-
transform: translateX(-150%);
|
|
143
|
-
}
|
|
144
|
-
29.99% {
|
|
145
|
-
opacity: 0;
|
|
146
|
-
}
|
|
147
|
-
30% {
|
|
148
|
-
opacity: 1;
|
|
149
|
-
transform: translateX(-150%);
|
|
79
|
+
inset-inline-start: -33%;
|
|
150
80
|
}
|
|
151
81
|
100% {
|
|
152
|
-
|
|
153
|
-
opacity: 1;
|
|
82
|
+
inset-inline-start: 100%;
|
|
154
83
|
}
|
|
155
84
|
}
|
|
156
85
|
`.withBehaviors(forcedColorsStylesheetBehavior(css `
|
|
157
|
-
|
|
158
|
-
background-color:
|
|
86
|
+
:host {
|
|
87
|
+
background-color: CanvasText;
|
|
159
88
|
}
|
|
160
|
-
.
|
|
161
|
-
:host([validation-state='success']) .
|
|
162
|
-
:host([validation-state='warning']) .determinate,
|
|
163
|
-
:host([validation-state='error']) .determinate,
|
|
164
|
-
:host([validation-state='success']) ..indeterminate-indicator-1,
|
|
165
|
-
:host([validation-state='success']) ..indeterminate-indicator-2,
|
|
166
|
-
:host([validation-state='warning']) .indeterminate-indicator-1,
|
|
167
|
-
:host([validation-state='warning']) .indeterminate-indicator-2,
|
|
168
|
-
:host([validation-state='error']) .indeterminate-indicator-1,
|
|
169
|
-
:host([validation-state='error']) .indeterminate-indicator-2 {
|
|
89
|
+
.indicator,
|
|
90
|
+
:host(:is([validation-state='success'], [validation-state='warning'], [validation-state='error'])) .indicator {
|
|
170
91
|
background-color: Highlight;
|
|
171
92
|
}
|
|
172
93
|
`));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-bar.styles.js","sourceRoot":"","sources":["../../../src/progress-bar/progress-bar.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,kBAAkB,EAClB,
|
|
1
|
+
{"version":3,"file":"progress-bar.styles.js","sourceRoot":"","sources":["../../../src/progress-bar/progress-bar.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,kBAAkB,EAClB,gBAAgB,EAChB,4BAA4B,EAC5B,uBAAuB,EACvB,iCAAiC,EACjC,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,OAAO,CAAC;;;;;;wBAMI,uBAAuB;qBAC1B,kBAAkB;;;;;;;;;qBASlB,gBAAgB;;;;wBAIb,4BAA4B;;;;;;;;;;;;;;QAc5C,uBAAuB;QACvB,0BAA0B;QAC1B,uBAAuB;;;;;;;;;wBASP,0BAA0B;;;;wBAI1B,iCAAiC;;;;wBAIjC,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;CAwBnD,CAAC,aAAa,CACb,8BAA8B,CAAC,GAAG,CAAA;;;;;;;;GAQjC,CAAC,CACH,CAAC"}
|