@fluentui/web-components 2.1.2 → 2.1.3
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.json +24 -1
- package/CHANGELOG.md +11 -2
- package/dist/esm/flipper/flipper.styles.js +1 -0
- package/dist/web-components.js +8 -3
- package/dist/web-components.min.js +1 -1
- package/package.json +1 -2
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,30 @@
|
|
|
2
2
|
"name": "@fluentui/web-components",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Wed, 15 Dec 2021 07:28:31 GMT",
|
|
6
|
+
"tag": "@fluentui/web-components_v2.1.3",
|
|
7
|
+
"version": "2.1.3",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "jes@microsoft.com",
|
|
12
|
+
"package": "@fluentui/web-components",
|
|
13
|
+
"commit": "bd40a6eca1aaa0702e7989087b01de32c9aa6c3d",
|
|
14
|
+
"comment": "fix: prevent disabled flipper from emitting event"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"none": [
|
|
18
|
+
{
|
|
19
|
+
"author": "martinhochel@microsoft.com",
|
|
20
|
+
"package": "@fluentui/web-components",
|
|
21
|
+
"commit": "28ceaaa83cd92a0389c466f0b15b283e3d9b08e4",
|
|
22
|
+
"comment": "chore: update all jest deps to v26"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"date": "Fri, 10 Dec 2021 07:30:35 GMT",
|
|
6
29
|
"tag": "@fluentui/web-components_v2.1.2",
|
|
7
30
|
"version": "2.1.2",
|
|
8
31
|
"comments": {
|
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 Wed, 15 Dec 2021 07:28:31 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [2.1.3](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v2.1.3)
|
|
8
|
+
|
|
9
|
+
Wed, 15 Dec 2021 07:28:31 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v2.1.2..@fluentui/web-components_v2.1.3)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- fix: prevent disabled flipper from emitting event ([PR #21003](https://github.com/microsoft/fluentui/pull/21003) by jes@microsoft.com)
|
|
15
|
+
|
|
7
16
|
## [2.1.2](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v2.1.2)
|
|
8
17
|
|
|
9
|
-
Fri, 10 Dec 2021 07:
|
|
18
|
+
Fri, 10 Dec 2021 07:30:35 GMT
|
|
10
19
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v2.1.1..@fluentui/web-components_v2.1.2)
|
|
11
20
|
|
|
12
21
|
### Patches
|
package/dist/web-components.js
CHANGED
|
@@ -1475,7 +1475,10 @@ function compileTemplate(template, directives) {
|
|
|
1475
1475
|
// because something like a when, repeat, etc. could add nodes before the marker.
|
|
1476
1476
|
// To mitigate this, we insert a stable first node. However, if we insert a node,
|
|
1477
1477
|
// that will alter the result of the TreeWalker. So, we also need to offset the target index.
|
|
1478
|
-
DOM.isMarker(fragment.firstChild) ||
|
|
1478
|
+
DOM.isMarker(fragment.firstChild) || // Or if there is only one node and a directive, it means the template's content
|
|
1479
|
+
// is *only* the directive. In that case, HTMLView.dispose() misses any nodes inserted by
|
|
1480
|
+
// the directive. Inserting a new node ensures proper disposal of nodes added by the directive.
|
|
1481
|
+
fragment.childNodes.length === 1 && directives.length) {
|
|
1479
1482
|
fragment.insertBefore(document.createComment(""), fragment.firstChild);
|
|
1480
1483
|
targetOffset = -1;
|
|
1481
1484
|
}
|
|
@@ -5559,7 +5562,9 @@ function isArrayIndex(value) {
|
|
|
5559
5562
|
for (let i = 0; i < length; ++i) {
|
|
5560
5563
|
ch = value.charCodeAt(i);
|
|
5561
5564
|
|
|
5562
|
-
if (i === 0 && ch === 0x30 && length > 1
|
|
5565
|
+
if (i === 0 && ch === 0x30 && length > 1
|
|
5566
|
+
/* must not start with 0 */
|
|
5567
|
+
|| ch < 0x30
|
|
5563
5568
|
/* 0 */
|
|
5564
5569
|
|| ch > 0x39
|
|
5565
5570
|
/* 9 */
|
|
@@ -22999,7 +23004,7 @@ const fluentDivider = Divider.compose({
|
|
|
22999
23004
|
const dividerStyles = dividerStyles$1;
|
|
23000
23005
|
|
|
23001
23006
|
const flipperStyles$1 = (context, definition) => css`
|
|
23002
|
-
${display('inline-flex')} :host{height:calc((${heightNumber} + ${designUnit}) * 1px);justify-content:center;align-items:center;fill:currentcolor;color:${neutralFillStrongRest};background:padding-box linear-gradient(${neutralFillRest},${neutralFillRest}),border-box ${neutralStrokeControlRest};box-sizing:border-box;border:calc(${focusStrokeWidth} * 1px) solid transparent;border-radius:calc(${controlCornerRadius} * 1px);outline:none;padding:0}:host(.disabled){opacity:${disabledOpacity};cursor:${disabledCursor}}.next,.previous{display:flex}:host(:not(.disabled):hover){cursor:pointer}:host(:not(.disabled):hover){color:${neutralFillStrongHover}}:host(:not(.disabled):active){color:${neutralFillStrongActive}}:host(:${focusVisible}){border-color:${focusStrokeOuter}}:host::-moz-focus-inner{border:0}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
23007
|
+
${display('inline-flex')} :host{height:calc((${heightNumber} + ${designUnit}) * 1px);justify-content:center;align-items:center;fill:currentcolor;color:${neutralFillStrongRest};background:padding-box linear-gradient(${neutralFillRest},${neutralFillRest}),border-box ${neutralStrokeControlRest};box-sizing:border-box;border:calc(${focusStrokeWidth} * 1px) solid transparent;border-radius:calc(${controlCornerRadius} * 1px);outline:none;padding:0}:host(.disabled){opacity:${disabledOpacity};cursor:${disabledCursor};pointer-events:none}.next,.previous{display:flex}:host(:not(.disabled):hover){cursor:pointer}:host(:not(.disabled):hover){color:${neutralFillStrongHover}}:host(:not(.disabled):active){color:${neutralFillStrongActive}}:host(:${focusVisible}){border-color:${focusStrokeOuter}}:host::-moz-focus-inner{border:0}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
23003
23008
|
:host{background:${SystemColors.ButtonFace};border-color:${SystemColors.ButtonText}}:host .next,:host .previous{color:${SystemColors.ButtonText};fill:currentcolor}:host(:not(.disabled):hover){background:${SystemColors.Highlight}}:host(:not(.disabled):hover) .next,:host(:not(.disabled):hover) .previous{color:${SystemColors.HighlightText};fill:currentcolor}:host(.disabled){opacity:1}:host(.disabled),:host(.disabled) .next,:host(.disabled) .previous{border-color:${SystemColors.GrayText};color:${SystemColors.GrayText};fill:currentcolor}:host(:${focusVisible}){forced-color-adjust:none;border-color:${SystemColors.Highlight};box-shadow:0 0 0 2px ${SystemColors.ButtonFace},0 0 0 4px ${SystemColors.ButtonText}}`));
|
|
23004
23009
|
|
|
23005
23010
|
/**
|
|
@@ -101,7 +101,7 @@ ${eo("inline-block")} :host{--calendar-cell-size:calc((${zn} + 2 + ${Pn}) * ${Mn
|
|
|
101
101
|
`}),Qd=(t,e)=>Dt`
|
|
102
102
|
:host([hidden]){display:none}:host{--dialog-height:480px;--dialog-width:640px;display:block}.overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.3);touch-action:none}.positioning-region{display:flex;justify-content:center;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}.control{box-shadow:${zh};margin-top:auto;margin-bottom:auto;border-radius:calc(${Nn} * 1px);width:var(--dialog-width);height:var(--dialog-height);background:${ka};z-index:1;border:calc(${jn} * 1px) solid transparent}`,Zd=Bo.compose({baseName:"dialog",template:(t,e)=>nt`<div class="positioning-region" part="positioning-region">${Nt(t=>t.modal,nt`<div class="overlay" part="overlay" role="presentation" @click="${t=>t.dismiss()}"></div>`)}<div role="dialog" tabindex="-1" class="control" part="control" aria-modal="${t=>t.modal}" aria-describedby="${t=>t.ariaDescribedby}" aria-labelledby="${t=>t.ariaLabelledby}" aria-label="${t=>t.ariaLabel}" ${Bt("dialog")}><slot></slot></div></div>`,styles:Qd}),Jd=Qd,tu=(t,e)=>Dt`
|
|
103
103
|
${eo("block")} :host{box-sizing:content-box;height:0;border:none;border-top:calc(${jn} * 1px) solid ${_l}}`,eu=Uo.compose({baseName:"divider",template:(t,e)=>nt`<template role="${t=>t.role}"></template>`,styles:tu}),iu=tu,ou=(t,e)=>Dt`
|
|
104
|
-
${eo("inline-flex")} :host{height:calc((${ah} + ${Mn}) * 1px);justify-content:center;align-items:center;fill:currentcolor;color:${kl};background:padding-box linear-gradient(${Ga},${Ga}),border-box ${Bl};box-sizing:border-box;border:calc(${Un} * 1px) solid transparent;border-radius:calc(${Bn} * 1px);outline:none;padding:0}:host(.disabled){opacity:${Ln};cursor:${"not-allowed"}}.next,.previous{display:flex}:host(:not(.disabled):hover){cursor:pointer}:host(:not(.disabled):hover){color:${Cl}}:host(:not(.disabled):active){color:${Fl}}:host(:${io}){border-color:${ac}}:host::-moz-focus-inner{border:0}`.withBehaviors(Ji(Dt`
|
|
104
|
+
${eo("inline-flex")} :host{height:calc((${ah} + ${Mn}) * 1px);justify-content:center;align-items:center;fill:currentcolor;color:${kl};background:padding-box linear-gradient(${Ga},${Ga}),border-box ${Bl};box-sizing:border-box;border:calc(${Un} * 1px) solid transparent;border-radius:calc(${Bn} * 1px);outline:none;padding:0}:host(.disabled){opacity:${Ln};cursor:${"not-allowed"};pointer-events:none}.next,.previous{display:flex}:host(:not(.disabled):hover){cursor:pointer}:host(:not(.disabled):hover){color:${Cl}}:host(:not(.disabled):active){color:${Fl}}:host(:${io}){border-color:${ac}}:host::-moz-focus-inner{border:0}`.withBehaviors(Ji(Dt`
|
|
105
105
|
:host{background:${Ns.ButtonFace};border-color:${Ns.ButtonText}}:host .next,:host .previous{color:${Ns.ButtonText};fill:currentcolor}:host(:not(.disabled):hover){background:${Ns.Highlight}}:host(:not(.disabled):hover) .next,:host(:not(.disabled):hover) .previous{color:${Ns.HighlightText};fill:currentcolor}:host(.disabled){opacity:1}:host(.disabled),:host(.disabled) .next,:host(.disabled) .previous{border-color:${Ns.GrayText};color:${Ns.GrayText};fill:currentcolor}:host(:${io}){forced-color-adjust:none;border-color:${Ns.Highlight};box-shadow:0 0 0 2px ${Ns.ButtonFace},0 0 0 4px ${Ns.ButtonText}}`)),su=qo.compose({baseName:"flipper",template:(t,e)=>nt`<template role="button" aria-disabled="${t=>!!t.disabled||void 0}" tabindex="${t=>t.hiddenFromAT?-1:0}" class="${t=>t.direction} ${t=>t.disabled?"disabled":""}" @keyup="${(t,e)=>t.keyupHandler(e.event)}">${Nt(t=>t.direction===jo.next,nt`<span part="next" class="next"><slot name="next">${e.next||""}</slot></span>`)} ${Nt(t=>t.direction===jo.previous,nt`<span part="previous" class="previous"><slot name="previous">${e.previous||""}</slot></span>`)}</template>`,styles:ou,next:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <path d="M7.57 11.84A1 1 0 016 11.02V4.98a1 1 0 011.57-.82l3.79 2.62c.85.59.85 1.85 0 2.44l-3.79 2.62z"/>\n </svg>\n ',previous:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <path d="M9.43 11.84a1 1 0 001.57-.82V4.98a1 1 0 00-1.57-.82L5.64 6.78c-.85.59-.85 1.85 0 2.44l3.79 2.62z"/>\n </svg>\n '}),nu=ou,ru=Dt`
|
|
106
106
|
.scroll-prev{right:auto;left:0}.scroll.scroll-next::before,.scroll-next .scroll-action{left:auto;right:0}.scroll.scroll-next::before{background:linear-gradient(to right,transparent,var(--scroll-fade-next))}.scroll-next .scroll-action{transform:translate(50%,-50%)}`,au=Dt`
|
|
107
107
|
.scroll.scroll-next{right:auto;left:0}.scroll.scroll-next::before{background:linear-gradient(to right,var(--scroll-fade-next),transparent);left:auto;right:0}.scroll.scroll-prev::before{background:linear-gradient(to right,transparent,var(--scroll-fade-previous))}.scroll-prev .scroll-action{left:auto;right:0;transform:translate(50%,-50%)}`,lu=Dt`
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fluentui/web-components",
|
|
3
3
|
"description": "A library of Fluent Web Components",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "2.1.
|
|
5
|
+
"version": "2.1.3",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Microsoft",
|
|
8
8
|
"url": "https://discord.gg/FcSNfg4"
|
|
@@ -60,7 +60,6 @@
|
|
|
60
60
|
"ignore-loader": "^0.1.2",
|
|
61
61
|
"istanbul": "^0.4.5",
|
|
62
62
|
"istanbul-instrumenter-loader": "^3.0.1",
|
|
63
|
-
"jsdom": "^16.2.2",
|
|
64
63
|
"jsdom-global": "3.0.2",
|
|
65
64
|
"karma": "^5.0.4",
|
|
66
65
|
"karma-chrome-launcher": "^3.1.0",
|