notebook 7.3.0rc0__py3-none-any.whl → 7.3.1__py3-none-any.whl
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.
Potentially problematic release.
This version of notebook might be problematic. Click here for more details.
- notebook/_version.py +1 -1
- notebook/static/{1650.87effa8120f5c75793d2.js → 1650.f2b92d4d553bfe8a53c0.js} +4 -4
- notebook/static/{1650.87effa8120f5c75793d2.js.map → 1650.f2b92d4d553bfe8a53c0.js.map} +1 -1
- notebook/static/{1684.fa69e1c4e38197db875c.js → 1684.3af5b8529a15848c1264.js} +5 -5
- notebook/static/{1684.fa69e1c4e38197db875c.js.map → 1684.3af5b8529a15848c1264.js.map} +1 -1
- notebook/static/{4864.c22882a8feba283c53ca.js → 1871.29951b77779d94d726d1.js} +2 -1227
- notebook/static/1871.29951b77779d94d726d1.js.map +1 -0
- notebook/static/{2065.4b2bfec98774b3165d4a.js → 2065.e9b5d8d0a8bec3304454.js} +3 -3
- notebook/static/{2065.4b2bfec98774b3165d4a.js.map → 2065.e9b5d8d0a8bec3304454.js.map} +1 -1
- notebook/static/2816.03541f3103bf4c09e591.js +2454 -0
- notebook/static/2816.03541f3103bf4c09e591.js.map +1 -0
- notebook/static/{2913.40af140ee433938c1393.js → 2913.274b19d8f201991f4a69.js} +3 -3
- notebook/static/{2913.40af140ee433938c1393.js.map → 2913.274b19d8f201991f4a69.js.map} +1 -1
- notebook/static/{3146.d9be433c38447539b2ae.js → 3146.97ceb65ac870fdcdfbe8.js} +3 -3
- notebook/static/{3146.d9be433c38447539b2ae.js.map → 3146.97ceb65ac870fdcdfbe8.js.map} +1 -1
- notebook/static/{3768.5acd3111e6f1975cfe03.js → 3768.6343619807e7c2a9d714.js} +19 -19
- notebook/static/{7302.7dea224d66b845d1aba3.js.map → 3768.6343619807e7c2a9d714.js.map} +1 -1
- notebook/static/417.29f636ec8be265b7e480.js +35732 -0
- notebook/static/417.29f636ec8be265b7e480.js.map +1 -0
- notebook/static/{1960.7d12087e25eb6449e7ce.js → 4201.20132290f384a6b6393d.js} +2 -2
- notebook/static/{1960.7d12087e25eb6449e7ce.js.map → 4201.20132290f384a6b6393d.js.map} +1 -1
- notebook/static/{4382.4fc6da1dc03e651b486a.js → 4382.6fab9cdf40a3339ed3d4.js} +3 -3
- notebook/static/{4382.4fc6da1dc03e651b486a.js.map → 4382.6fab9cdf40a3339ed3d4.js.map} +1 -1
- notebook/static/{4630.64ab2753f3286b5a778b.js → 4630.3883ae147294cfade724.js} +2 -2
- notebook/static/{4630.64ab2753f3286b5a778b.js.map → 4630.3883ae147294cfade724.js.map} +1 -1
- notebook/static/{4645.0e67c6d0dceea70ea632.js → 4645.859c9a8078e07bd9720f.js} +5 -5
- notebook/static/{4645.0e67c6d0dceea70ea632.js.map → 4645.859c9a8078e07bd9720f.js.map} +1 -1
- notebook/static/{4837.83ca0f4b34bedf9ca04b.js → 4837.36bee8533ee93068ee88.js} +3 -3
- notebook/static/{4837.83ca0f4b34bedf9ca04b.js.map → 4837.36bee8533ee93068ee88.js.map} +1 -1
- notebook/static/{5135.fec9e8f8d4a46cb05da6.js → 5135.ec51053c912f00c60e74.js} +11 -11
- notebook/static/{5135.fec9e8f8d4a46cb05da6.js.map → 5135.ec51053c912f00c60e74.js.map} +1 -1
- notebook/static/{5573.6ac07c855f945dc1f930.js → 5573.a4598929db84c5f78ee2.js} +17 -17
- notebook/static/{5573.6ac07c855f945dc1f930.js.map → 5573.a4598929db84c5f78ee2.js.map} +1 -1
- notebook/static/{5601.4c763101de025f83f28e.js → 5601.ee83a00a07b41941d934.js} +5 -5
- notebook/static/{5601.4c763101de025f83f28e.js.map → 5601.ee83a00a07b41941d934.js.map} +1 -1
- notebook/static/{6345.06c2149842cd8d1881c9.js → 6345.c4a72953c198541b9a7f.js} +5 -5
- notebook/static/{6345.06c2149842cd8d1881c9.js.map → 6345.c4a72953c198541b9a7f.js.map} +1 -1
- notebook/static/{7302.7dea224d66b845d1aba3.js → 7302.a2513413e33b84efedea.js} +19 -19
- notebook/static/{3768.5acd3111e6f1975cfe03.js.map → 7302.a2513413e33b84efedea.js.map} +1 -1
- notebook/static/{7906.386fb917c7a78bd6575a.js → 7906.a9556ca8e2504977987c.js} +3 -3
- notebook/static/{7906.386fb917c7a78bd6575a.js.map → 7906.a9556ca8e2504977987c.js.map} +1 -1
- notebook/static/{8579.672ef05f50ec1a639499.js → 8579.3dec3a2251606938dba4.js} +13 -13
- notebook/static/{8579.672ef05f50ec1a639499.js.map → 8579.3dec3a2251606938dba4.js.map} +1 -1
- notebook/static/{3488.405b2a619b7b87fc6f6b.js → 8608.2c46e2e83b7543bfc32e.js} +2 -2
- notebook/static/{3488.405b2a619b7b87fc6f6b.js.map → 8608.2c46e2e83b7543bfc32e.js.map} +1 -1
- notebook/static/{8781.559293b7acc5c9a6c85c.js → 8781.adc12eca88ec3b76d38b.js} +57 -57
- notebook/static/{8781.559293b7acc5c9a6c85c.js.map → 8781.adc12eca88ec3b76d38b.js.map} +1 -1
- notebook/static/{8875.3576877a040347035e62.js → 8875.117e3e9f3836340e549b.js} +4 -4
- notebook/static/{8875.3576877a040347035e62.js.map → 8875.117e3e9f3836340e549b.js.map} +1 -1
- notebook/static/{9068.97733adfadd485aa7cd7.js → 9068.f5036cc4dc9f0a25d015.js} +3 -3
- notebook/static/{9068.97733adfadd485aa7cd7.js.map → 9068.f5036cc4dc9f0a25d015.js.map} +1 -1
- notebook/static/{9380.dbb97caa9c457da5267e.js → 9380.297bbac8b3a9ab278381.js} +5 -5
- notebook/static/{9380.dbb97caa9c457da5267e.js.map → 9380.297bbac8b3a9ab278381.js.map} +1 -1
- notebook/static/main.2d9be431d24701c6dc8c.js +1174 -0
- notebook/static/main.2d9be431d24701c6dc8c.js.map +1 -0
- notebook/static/{notebook_core.8f3a44cab16bab9bd8f4.js → notebook_core.11ed4ec3cbd911d6d615.js} +1093 -992
- notebook/static/{notebook_core.8f3a44cab16bab9bd8f4.js.map → notebook_core.11ed4ec3cbd911d6d615.js.map} +1 -1
- notebook/static/third-party-licenses.json +101 -101
- notebook/templates/consoles.html +1 -1
- notebook/templates/edit.html +1 -1
- notebook/templates/error.html +1 -1
- notebook/templates/notebooks.html +1 -1
- notebook/templates/terminals.html +1 -1
- notebook/templates/tree.html +1 -1
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/package.json.orig +14 -14
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/documentsearch-extension/package.json.orig +4 -4
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/package.json.orig +6 -6
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/package.json.orig +9 -9
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/package.json.orig +15 -15
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/package.json +11 -11
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/package.json.orig +10 -10
- notebook-7.3.0rc0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.6540c9fb9260de5622ef.js → notebook-7.3.1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.7f0a96c20070714b04c8.js +1 -1
- notebook-7.3.1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.accb8657e1346f0444ce.js +1 -0
- notebook-7.3.1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/983.1840301bae62c7e769b5.js +1 -0
- notebook-7.3.1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.3922a57136e4fe7d7670.js +1 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/third-party-licenses.json +2 -2
- {notebook-7.3.0rc0.dist-info → notebook-7.3.1.dist-info}/METADATA +3 -3
- {notebook-7.3.0rc0.dist-info → notebook-7.3.1.dist-info}/RECORD +102 -106
- notebook/static/2424.6f13f59f4bc472c3d07d.js +0 -1278
- notebook/static/2424.6f13f59f4bc472c3d07d.js.map +0 -1
- notebook/static/4864.c22882a8feba283c53ca.js.map +0 -1
- notebook/static/5430.98e90178da18bdd99116.js +0 -2145
- notebook/static/5430.98e90178da18bdd99116.js.map +0 -1
- notebook/static/8635.4c8189485e3c65e7ecc0.js +0 -11476
- notebook/static/8635.4c8189485e3c65e7ecc0.js.map +0 -1
- notebook/static/9672.b55f9504fd5af290b047.js +0 -774
- notebook/static/9672.b55f9504fd5af290b047.js.map +0 -1
- notebook/static/main.ffe733f3a4b0a84e244f.js +0 -1164
- notebook/static/main.ffe733f3a4b0a84e244f.js.map +0 -1
- notebook-7.3.0rc0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/454.a8fd180a103fb540edd4.js +0 -1
- notebook-7.3.0rc0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.e5e6d72d43bb1376115c.js +0 -1
- notebook-7.3.0rc0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.a440964232a20ad16779.js +0 -1
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/etc/jupyter/jupyter_server_config.d/notebook.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/applications/jupyter-notebook.desktop +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/icons/hicolor/scalable/apps/notebook.svg +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/menus.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/pages.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/title.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/zen.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/open.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/checkpoints.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/edit-notebook-metadata.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/full-width-notebook.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/kernel-logo.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/interface-switcher.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/launch-tree.json +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.eae3497dd223d842d198.js +0 -0
- {notebook-7.3.0rc0.data → notebook-7.3.1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/style.js +0 -0
- {notebook-7.3.0rc0.dist-info → notebook-7.3.1.dist-info}/WHEEL +0 -0
- {notebook-7.3.0rc0.dist-info → notebook-7.3.1.dist-info}/entry_points.txt +0 -0
- {notebook-7.3.0rc0.dist-info → notebook-7.3.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,2145 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[5430],{
|
|
3
|
-
|
|
4
|
-
/***/ 85430:
|
|
5
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6
|
-
|
|
7
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8
|
-
/* harmony export */ z: () => (/* binding */ Button)
|
|
9
|
-
/* harmony export */ });
|
|
10
|
-
/* harmony import */ var _jupyter_web_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(68866);
|
|
11
|
-
/* harmony import */ var _jupyter_web_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69765);
|
|
12
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78156);
|
|
13
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14
|
-
/* harmony import */ var _react_utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4444);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
(0,_jupyter_web_components__WEBPACK_IMPORTED_MODULE_1__/* .provideJupyterDesignSystem */ .W)().register((0,_jupyter_web_components__WEBPACK_IMPORTED_MODULE_2__/* .jpButton */ .Vd)());
|
|
19
|
-
|
|
20
|
-
const Button = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, forwardedRef) => {
|
|
21
|
-
const ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
22
|
-
const {
|
|
23
|
-
className,
|
|
24
|
-
minimal,
|
|
25
|
-
appearance,
|
|
26
|
-
form,
|
|
27
|
-
formaction,
|
|
28
|
-
formenctype,
|
|
29
|
-
formmethod,
|
|
30
|
-
formtarget,
|
|
31
|
-
type,
|
|
32
|
-
autofocus,
|
|
33
|
-
formnovalidate,
|
|
34
|
-
defaultSlottedContent,
|
|
35
|
-
disabled,
|
|
36
|
-
required,
|
|
37
|
-
...filteredProps
|
|
38
|
-
} = props;
|
|
39
|
-
|
|
40
|
-
/** Properties - run whenever a property has changed */
|
|
41
|
-
(0,_react_utils_js__WEBPACK_IMPORTED_MODULE_3__/* .useProperties */ .h)(ref, 'autofocus', props.autofocus);
|
|
42
|
-
(0,_react_utils_js__WEBPACK_IMPORTED_MODULE_3__/* .useProperties */ .h)(ref, 'formnovalidate', props.formnovalidate);
|
|
43
|
-
(0,_react_utils_js__WEBPACK_IMPORTED_MODULE_3__/* .useProperties */ .h)(ref, 'defaultSlottedContent', props.defaultSlottedContent);
|
|
44
|
-
(0,_react_utils_js__WEBPACK_IMPORTED_MODULE_3__/* .useProperties */ .h)(ref, 'disabled', props.disabled);
|
|
45
|
-
(0,_react_utils_js__WEBPACK_IMPORTED_MODULE_3__/* .useProperties */ .h)(ref, 'required', props.required);
|
|
46
|
-
|
|
47
|
-
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
|
48
|
-
(0,react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
|
49
|
-
|
|
50
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
51
|
-
'jp-button',
|
|
52
|
-
{
|
|
53
|
-
ref,
|
|
54
|
-
...filteredProps,
|
|
55
|
-
appearance: props.appearance,
|
|
56
|
-
form: props.form,
|
|
57
|
-
formaction: props.formaction,
|
|
58
|
-
formenctype: props.formenctype,
|
|
59
|
-
formmethod: props.formmethod,
|
|
60
|
-
formtarget: props.formtarget,
|
|
61
|
-
type: props.type,
|
|
62
|
-
class: props.className,
|
|
63
|
-
exportparts: props.exportparts,
|
|
64
|
-
for: props.htmlFor,
|
|
65
|
-
part: props.part,
|
|
66
|
-
tabindex: props.tabIndex,
|
|
67
|
-
minimal: props.minimal ? '' : undefined,
|
|
68
|
-
style: { ...props.style }
|
|
69
|
-
},
|
|
70
|
-
props.children
|
|
71
|
-
);
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
/***/ }),
|
|
76
|
-
|
|
77
|
-
/***/ 69765:
|
|
78
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
// EXPORTS
|
|
82
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
83
|
-
Vd: () => (/* binding */ jpButton)
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
// UNUSED EXPORTS: Button, buttonStyles
|
|
87
|
-
|
|
88
|
-
// EXTERNAL MODULE: ../node_modules/tslib/tslib.es6.mjs
|
|
89
|
-
var tslib_es6 = __webpack_require__(82616);
|
|
90
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-element/dist/esm/components/attributes.js
|
|
91
|
-
var attributes = __webpack_require__(98332);
|
|
92
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-foundation/node_modules/tslib/tslib.es6.js
|
|
93
|
-
var tslib_tslib_es6 = __webpack_require__(95185);
|
|
94
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-element/dist/esm/observation/observable.js
|
|
95
|
-
var observable = __webpack_require__(92221);
|
|
96
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-foundation/dist/esm/patterns/aria-global.js
|
|
97
|
-
var aria_global = __webpack_require__(14869);
|
|
98
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-foundation/dist/esm/patterns/start-end.js
|
|
99
|
-
var start_end = __webpack_require__(52865);
|
|
100
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-foundation/dist/esm/utilities/apply-mixins.js
|
|
101
|
-
var apply_mixins = __webpack_require__(89155);
|
|
102
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-foundation/dist/esm/form-associated/form-associated.js
|
|
103
|
-
var form_associated = __webpack_require__(940);
|
|
104
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-foundation/dist/esm/foundation-element/foundation-element.js
|
|
105
|
-
var foundation_element = __webpack_require__(50755);
|
|
106
|
-
;// CONCATENATED MODULE: ../node_modules/@microsoft/fast-foundation/dist/esm/button/button.form-associated.js
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
class _Button extends foundation_element/* FoundationElement */.I {
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* A form-associated base class for the {@link @microsoft/fast-foundation#(Button:class)} component.
|
|
113
|
-
*
|
|
114
|
-
* @internal
|
|
115
|
-
*/
|
|
116
|
-
class FormAssociatedButton extends (0,form_associated/* FormAssociated */.Um)(_Button) {
|
|
117
|
-
constructor() {
|
|
118
|
-
super(...arguments);
|
|
119
|
-
this.proxy = document.createElement("input");
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
;// CONCATENATED MODULE: ../node_modules/@microsoft/fast-foundation/dist/esm/button/button.js
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* A Button Custom HTML Element.
|
|
131
|
-
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element }.
|
|
132
|
-
*
|
|
133
|
-
* @slot start - Content which can be provided before the button content
|
|
134
|
-
* @slot end - Content which can be provided after the button content
|
|
135
|
-
* @slot - The default slot for button content
|
|
136
|
-
* @csspart control - The button element
|
|
137
|
-
* @csspart content - The element wrapping button content
|
|
138
|
-
*
|
|
139
|
-
* @public
|
|
140
|
-
*/
|
|
141
|
-
class Button extends FormAssociatedButton {
|
|
142
|
-
constructor() {
|
|
143
|
-
super(...arguments);
|
|
144
|
-
/**
|
|
145
|
-
* Prevent events to propagate if disabled and has no slotted content wrapped in HTML elements
|
|
146
|
-
* @internal
|
|
147
|
-
*/
|
|
148
|
-
this.handleClick = (e) => {
|
|
149
|
-
var _a;
|
|
150
|
-
if (this.disabled && ((_a = this.defaultSlottedContent) === null || _a === void 0 ? void 0 : _a.length) <= 1) {
|
|
151
|
-
e.stopPropagation();
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
/**
|
|
155
|
-
* Submits the parent form
|
|
156
|
-
*/
|
|
157
|
-
this.handleSubmission = () => {
|
|
158
|
-
if (!this.form) {
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
const attached = this.proxy.isConnected;
|
|
162
|
-
if (!attached) {
|
|
163
|
-
this.attachProxy();
|
|
164
|
-
}
|
|
165
|
-
// Browser support for requestSubmit is not comprehensive
|
|
166
|
-
// so click the proxy if it isn't supported
|
|
167
|
-
typeof this.form.requestSubmit === "function"
|
|
168
|
-
? this.form.requestSubmit(this.proxy)
|
|
169
|
-
: this.proxy.click();
|
|
170
|
-
if (!attached) {
|
|
171
|
-
this.detachProxy();
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
/**
|
|
175
|
-
* Resets the parent form
|
|
176
|
-
*/
|
|
177
|
-
this.handleFormReset = () => {
|
|
178
|
-
var _a;
|
|
179
|
-
(_a = this.form) === null || _a === void 0 ? void 0 : _a.reset();
|
|
180
|
-
};
|
|
181
|
-
/**
|
|
182
|
-
* Overrides the focus call for where delegatesFocus is unsupported.
|
|
183
|
-
* This check works for Chrome, Edge Chromium, FireFox, and Safari
|
|
184
|
-
* Relevant PR on the Firefox browser: https://phabricator.services.mozilla.com/D123858
|
|
185
|
-
*/
|
|
186
|
-
this.handleUnsupportedDelegatesFocus = () => {
|
|
187
|
-
var _a;
|
|
188
|
-
// Check to see if delegatesFocus is supported
|
|
189
|
-
if (window.ShadowRoot &&
|
|
190
|
-
!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
|
|
191
|
-
((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
|
|
192
|
-
this.focus = () => {
|
|
193
|
-
this.control.focus();
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
formactionChanged() {
|
|
199
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
200
|
-
this.proxy.formAction = this.formaction;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
formenctypeChanged() {
|
|
204
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
205
|
-
this.proxy.formEnctype = this.formenctype;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
formmethodChanged() {
|
|
209
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
210
|
-
this.proxy.formMethod = this.formmethod;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
formnovalidateChanged() {
|
|
214
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
215
|
-
this.proxy.formNoValidate = this.formnovalidate;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
formtargetChanged() {
|
|
219
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
220
|
-
this.proxy.formTarget = this.formtarget;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
typeChanged(previous, next) {
|
|
224
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
225
|
-
this.proxy.type = this.type;
|
|
226
|
-
}
|
|
227
|
-
next === "submit" && this.addEventListener("click", this.handleSubmission);
|
|
228
|
-
previous === "submit" && this.removeEventListener("click", this.handleSubmission);
|
|
229
|
-
next === "reset" && this.addEventListener("click", this.handleFormReset);
|
|
230
|
-
previous === "reset" && this.removeEventListener("click", this.handleFormReset);
|
|
231
|
-
}
|
|
232
|
-
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
233
|
-
validate() {
|
|
234
|
-
super.validate(this.control);
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* @internal
|
|
238
|
-
*/
|
|
239
|
-
connectedCallback() {
|
|
240
|
-
var _a;
|
|
241
|
-
super.connectedCallback();
|
|
242
|
-
this.proxy.setAttribute("type", this.type);
|
|
243
|
-
this.handleUnsupportedDelegatesFocus();
|
|
244
|
-
const elements = Array.from((_a = this.control) === null || _a === void 0 ? void 0 : _a.children);
|
|
245
|
-
if (elements) {
|
|
246
|
-
elements.forEach((span) => {
|
|
247
|
-
span.addEventListener("click", this.handleClick);
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* @internal
|
|
253
|
-
*/
|
|
254
|
-
disconnectedCallback() {
|
|
255
|
-
var _a;
|
|
256
|
-
super.disconnectedCallback();
|
|
257
|
-
const elements = Array.from((_a = this.control) === null || _a === void 0 ? void 0 : _a.children);
|
|
258
|
-
if (elements) {
|
|
259
|
-
elements.forEach((span) => {
|
|
260
|
-
span.removeEventListener("click", this.handleClick);
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
(0,tslib_tslib_es6/* __decorate */.gn)([
|
|
266
|
-
(0,attributes/* attr */.Lj)({ mode: "boolean" })
|
|
267
|
-
], Button.prototype, "autofocus", void 0);
|
|
268
|
-
(0,tslib_tslib_es6/* __decorate */.gn)([
|
|
269
|
-
(0,attributes/* attr */.Lj)({ attribute: "form" })
|
|
270
|
-
], Button.prototype, "formId", void 0);
|
|
271
|
-
(0,tslib_tslib_es6/* __decorate */.gn)([
|
|
272
|
-
attributes/* attr */.Lj
|
|
273
|
-
], Button.prototype, "formaction", void 0);
|
|
274
|
-
(0,tslib_tslib_es6/* __decorate */.gn)([
|
|
275
|
-
attributes/* attr */.Lj
|
|
276
|
-
], Button.prototype, "formenctype", void 0);
|
|
277
|
-
(0,tslib_tslib_es6/* __decorate */.gn)([
|
|
278
|
-
attributes/* attr */.Lj
|
|
279
|
-
], Button.prototype, "formmethod", void 0);
|
|
280
|
-
(0,tslib_tslib_es6/* __decorate */.gn)([
|
|
281
|
-
(0,attributes/* attr */.Lj)({ mode: "boolean" })
|
|
282
|
-
], Button.prototype, "formnovalidate", void 0);
|
|
283
|
-
(0,tslib_tslib_es6/* __decorate */.gn)([
|
|
284
|
-
attributes/* attr */.Lj
|
|
285
|
-
], Button.prototype, "formtarget", void 0);
|
|
286
|
-
(0,tslib_tslib_es6/* __decorate */.gn)([
|
|
287
|
-
attributes/* attr */.Lj
|
|
288
|
-
], Button.prototype, "type", void 0);
|
|
289
|
-
(0,tslib_tslib_es6/* __decorate */.gn)([
|
|
290
|
-
observable/* observable */.LO
|
|
291
|
-
], Button.prototype, "defaultSlottedContent", void 0);
|
|
292
|
-
/**
|
|
293
|
-
* Includes ARIA states and properties relating to the ARIA button role
|
|
294
|
-
*
|
|
295
|
-
* @public
|
|
296
|
-
*/
|
|
297
|
-
class DelegatesARIAButton {
|
|
298
|
-
}
|
|
299
|
-
(0,tslib_tslib_es6/* __decorate */.gn)([
|
|
300
|
-
(0,attributes/* attr */.Lj)({ attribute: "aria-expanded" })
|
|
301
|
-
], DelegatesARIAButton.prototype, "ariaExpanded", void 0);
|
|
302
|
-
(0,tslib_tslib_es6/* __decorate */.gn)([
|
|
303
|
-
(0,attributes/* attr */.Lj)({ attribute: "aria-pressed" })
|
|
304
|
-
], DelegatesARIAButton.prototype, "ariaPressed", void 0);
|
|
305
|
-
(0,apply_mixins/* applyMixins */.e)(DelegatesARIAButton, aria_global/* ARIAGlobalStatesAndProperties */.v);
|
|
306
|
-
(0,apply_mixins/* applyMixins */.e)(Button, start_end/* StartEnd */.hW, DelegatesARIAButton);
|
|
307
|
-
|
|
308
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-element/dist/esm/templating/template.js + 3 modules
|
|
309
|
-
var template = __webpack_require__(25269);
|
|
310
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-element/dist/esm/templating/ref.js
|
|
311
|
-
var ref = __webpack_require__(62564);
|
|
312
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-element/dist/esm/templating/slotted.js
|
|
313
|
-
var slotted = __webpack_require__(17832);
|
|
314
|
-
;// CONCATENATED MODULE: ../node_modules/@microsoft/fast-foundation/dist/esm/button/button.template.js
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* The template for the {@link @microsoft/fast-foundation#(Button:class)} component.
|
|
319
|
-
* @public
|
|
320
|
-
*/
|
|
321
|
-
const buttonTemplate = (context, definition) => (0,template/* html */.d) `
|
|
322
|
-
<button
|
|
323
|
-
class="control"
|
|
324
|
-
part="control"
|
|
325
|
-
?autofocus="${x => x.autofocus}"
|
|
326
|
-
?disabled="${x => x.disabled}"
|
|
327
|
-
form="${x => x.formId}"
|
|
328
|
-
formaction="${x => x.formaction}"
|
|
329
|
-
formenctype="${x => x.formenctype}"
|
|
330
|
-
formmethod="${x => x.formmethod}"
|
|
331
|
-
formnovalidate="${x => x.formnovalidate}"
|
|
332
|
-
formtarget="${x => x.formtarget}"
|
|
333
|
-
name="${x => x.name}"
|
|
334
|
-
type="${x => x.type}"
|
|
335
|
-
value="${x => x.value}"
|
|
336
|
-
aria-atomic="${x => x.ariaAtomic}"
|
|
337
|
-
aria-busy="${x => x.ariaBusy}"
|
|
338
|
-
aria-controls="${x => x.ariaControls}"
|
|
339
|
-
aria-current="${x => x.ariaCurrent}"
|
|
340
|
-
aria-describedby="${x => x.ariaDescribedby}"
|
|
341
|
-
aria-details="${x => x.ariaDetails}"
|
|
342
|
-
aria-disabled="${x => x.ariaDisabled}"
|
|
343
|
-
aria-errormessage="${x => x.ariaErrormessage}"
|
|
344
|
-
aria-expanded="${x => x.ariaExpanded}"
|
|
345
|
-
aria-flowto="${x => x.ariaFlowto}"
|
|
346
|
-
aria-haspopup="${x => x.ariaHaspopup}"
|
|
347
|
-
aria-hidden="${x => x.ariaHidden}"
|
|
348
|
-
aria-invalid="${x => x.ariaInvalid}"
|
|
349
|
-
aria-keyshortcuts="${x => x.ariaKeyshortcuts}"
|
|
350
|
-
aria-label="${x => x.ariaLabel}"
|
|
351
|
-
aria-labelledby="${x => x.ariaLabelledby}"
|
|
352
|
-
aria-live="${x => x.ariaLive}"
|
|
353
|
-
aria-owns="${x => x.ariaOwns}"
|
|
354
|
-
aria-pressed="${x => x.ariaPressed}"
|
|
355
|
-
aria-relevant="${x => x.ariaRelevant}"
|
|
356
|
-
aria-roledescription="${x => x.ariaRoledescription}"
|
|
357
|
-
${(0,ref/* ref */.i)("control")}
|
|
358
|
-
>
|
|
359
|
-
${(0,start_end/* startSlotTemplate */.m9)(context, definition)}
|
|
360
|
-
<span class="content" part="content">
|
|
361
|
-
<slot ${(0,slotted/* slotted */.Q)("defaultSlottedContent")}></slot>
|
|
362
|
-
</span>
|
|
363
|
-
${(0,start_end/* endSlotTemplate */.LC)(context, definition)}
|
|
364
|
-
</button>
|
|
365
|
-
`;
|
|
366
|
-
|
|
367
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-element/dist/esm/styles/css.js
|
|
368
|
-
var css = __webpack_require__(12634);
|
|
369
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-foundation/dist/esm/utilities/style/disabled.js
|
|
370
|
-
var disabled = __webpack_require__(61424);
|
|
371
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-foundation/dist/esm/utilities/match-media-stylesheet-behavior.js
|
|
372
|
-
var match_media_stylesheet_behavior = __webpack_require__(98242);
|
|
373
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-web-utilities/dist/system-colors.js
|
|
374
|
-
var system_colors = __webpack_require__(30550);
|
|
375
|
-
// EXTERNAL MODULE: ../node_modules/@jupyter/web-components/dist/esm/design-tokens.js + 30 modules
|
|
376
|
-
var design_tokens = __webpack_require__(87206);
|
|
377
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-foundation/dist/esm/utilities/style/display.js
|
|
378
|
-
var display = __webpack_require__(21601);
|
|
379
|
-
// EXTERNAL MODULE: ../node_modules/@microsoft/fast-foundation/dist/esm/utilities/style/focus.js
|
|
380
|
-
var style_focus = __webpack_require__(58201);
|
|
381
|
-
// EXTERNAL MODULE: ../node_modules/@jupyter/web-components/dist/esm/styles/size.js
|
|
382
|
-
var size = __webpack_require__(13370);
|
|
383
|
-
;// CONCATENATED MODULE: ../node_modules/@jupyter/web-components/dist/esm/styles/patterns/button.js
|
|
384
|
-
// Copyright (c) Jupyter Development Team.
|
|
385
|
-
// Copyright (c) Microsoft Corporation.
|
|
386
|
-
// Distributed under the terms of the Modified BSD License.
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
// TODO do we really want to use outline for focus => this call for a minimal style for toolbar probably
|
|
393
|
-
// outline force to use a margin so that the outline is not hidden by other elements.
|
|
394
|
-
/**
|
|
395
|
-
* @internal
|
|
396
|
-
*/
|
|
397
|
-
const BaseButtonStyles = (0,css/* css */.i) `
|
|
398
|
-
${(0,display/* display */.j)('inline-flex')} :host {
|
|
399
|
-
font-family: ${design_tokens/* bodyFont */.SV};
|
|
400
|
-
outline: none;
|
|
401
|
-
font-size: ${design_tokens/* typeRampBaseFontSize */.cS};
|
|
402
|
-
line-height: ${design_tokens/* typeRampBaseLineHeight */.RU};
|
|
403
|
-
height: calc(${size/* heightNumber */.i} * 1px);
|
|
404
|
-
min-width: calc(${size/* heightNumber */.i} * 1px);
|
|
405
|
-
background-color: ${design_tokens/* neutralFillRest */.wF};
|
|
406
|
-
color: ${design_tokens/* neutralForegroundRest */.hY};
|
|
407
|
-
border-radius: calc(${design_tokens/* controlCornerRadius */.UW} * 1px);
|
|
408
|
-
fill: currentcolor;
|
|
409
|
-
cursor: pointer;
|
|
410
|
-
margin: calc((${design_tokens/* focusStrokeWidth */.vx} + 2) * 1px);
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
.control {
|
|
414
|
-
background: transparent;
|
|
415
|
-
height: inherit;
|
|
416
|
-
flex-grow: 1;
|
|
417
|
-
box-sizing: border-box;
|
|
418
|
-
display: inline-flex;
|
|
419
|
-
justify-content: center;
|
|
420
|
-
align-items: center;
|
|
421
|
-
padding: 0
|
|
422
|
-
max(
|
|
423
|
-
1px,
|
|
424
|
-
calc((10 + (${design_tokens/* designUnit */._5} * 2 * (${design_tokens/* density */.hV} + ${design_tokens/* elementScale */.pR})))) * 1px
|
|
425
|
-
);
|
|
426
|
-
white-space: nowrap;
|
|
427
|
-
outline: none;
|
|
428
|
-
text-decoration: none;
|
|
429
|
-
border: calc(${design_tokens/* strokeWidth */.H} * 1px) solid transparent;
|
|
430
|
-
color: inherit;
|
|
431
|
-
border-radius: inherit;
|
|
432
|
-
fill: inherit;
|
|
433
|
-
cursor: inherit;
|
|
434
|
-
font-family: inherit;
|
|
435
|
-
font-size: inherit;
|
|
436
|
-
line-height: inherit;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
:host(:hover) {
|
|
440
|
-
background-color: ${design_tokens/* neutralFillHover */.Xi};
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
:host(:active) {
|
|
444
|
-
background-color: ${design_tokens/* neutralFillActive */.Gy};
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
:host([aria-pressed='true']) {
|
|
448
|
-
box-shadow: inset 0px 0px 2px 2px ${design_tokens/* neutralFillStrongActive */.hP};
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
:host([minimal]),
|
|
452
|
-
:host([scale='xsmall']) {
|
|
453
|
-
--element-scale: -4;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
:host([scale='small']) {
|
|
457
|
-
--element-scale: -2;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
:host([scale='medium']) {
|
|
461
|
-
--element-scale: 0;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
:host([scale='large']) {
|
|
465
|
-
--element-scale: 2;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
:host([scale='xlarge']) {
|
|
469
|
-
--element-scale: 4;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
/* prettier-ignore */
|
|
473
|
-
.control:${style_focus/* focusVisible */.b} {
|
|
474
|
-
outline: calc(${design_tokens/* focusStrokeWidth */.vx} * 1px) solid ${design_tokens/* neutralFillStrongFocus */.Nz};
|
|
475
|
-
outline-offset: 2px;
|
|
476
|
-
-moz-outline-radius: 0px;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
.control::-moz-focus-inner {
|
|
480
|
-
border: 0;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
.start,
|
|
484
|
-
.end {
|
|
485
|
-
display: flex;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
.control.icon-only {
|
|
489
|
-
padding: 0;
|
|
490
|
-
line-height: 0;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
::slotted(svg) {
|
|
494
|
-
${
|
|
495
|
-
/* Glyph size and margin-left is temporary -
|
|
496
|
-
replace when adaptive typography is figured out */ ''} width: 16px;
|
|
497
|
-
height: 16px;
|
|
498
|
-
pointer-events: none;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
.start {
|
|
502
|
-
margin-inline-end: 11px;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
.end {
|
|
506
|
-
margin-inline-start: 11px;
|
|
507
|
-
}
|
|
508
|
-
`.withBehaviors((0,match_media_stylesheet_behavior/* forcedColorsStylesheetBehavior */.vF)((0,css/* css */.i) `
|
|
509
|
-
:host .control {
|
|
510
|
-
background-color: ${system_colors/* SystemColors */.H.ButtonFace};
|
|
511
|
-
border-color: ${system_colors/* SystemColors */.H.ButtonText};
|
|
512
|
-
color: ${system_colors/* SystemColors */.H.ButtonText};
|
|
513
|
-
fill: currentColor;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
:host(:hover) .control {
|
|
517
|
-
forced-color-adjust: none;
|
|
518
|
-
background-color: ${system_colors/* SystemColors */.H.Highlight};
|
|
519
|
-
color: ${system_colors/* SystemColors */.H.HighlightText};
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
/* prettier-ignore */
|
|
523
|
-
.control:${style_focus/* focusVisible */.b} {
|
|
524
|
-
forced-color-adjust: none;
|
|
525
|
-
background-color: ${system_colors/* SystemColors */.H.Highlight};
|
|
526
|
-
outline-color: ${system_colors/* SystemColors */.H.ButtonText};
|
|
527
|
-
color: ${system_colors/* SystemColors */.H.HighlightText};
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
.control:hover,
|
|
531
|
-
:host([appearance='outline']) .control:hover {
|
|
532
|
-
border-color: ${system_colors/* SystemColors */.H.ButtonText};
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
:host([href]) .control {
|
|
536
|
-
border-color: ${system_colors/* SystemColors */.H.LinkText};
|
|
537
|
-
color: ${system_colors/* SystemColors */.H.LinkText};
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
:host([href]) .control:hover,
|
|
541
|
-
:host([href]) .control:${style_focus/* focusVisible */.b} {
|
|
542
|
-
forced-color-adjust: none;
|
|
543
|
-
background: ${system_colors/* SystemColors */.H.ButtonFace};
|
|
544
|
-
outline-color: ${system_colors/* SystemColors */.H.LinkText};
|
|
545
|
-
color: ${system_colors/* SystemColors */.H.LinkText};
|
|
546
|
-
fill: currentColor;
|
|
547
|
-
}
|
|
548
|
-
`));
|
|
549
|
-
/**
|
|
550
|
-
* @internal
|
|
551
|
-
*/
|
|
552
|
-
const AccentButtonStyles = (0,css/* css */.i) `
|
|
553
|
-
:host([appearance='accent']) {
|
|
554
|
-
background: ${design_tokens/* accentFillRest */.Av};
|
|
555
|
-
color: ${design_tokens/* foregroundOnAccentRest */.w4};
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
:host([appearance='accent']:hover) {
|
|
559
|
-
background: ${design_tokens/* accentFillHover */.OC};
|
|
560
|
-
color: ${design_tokens/* foregroundOnAccentHover */.lJ};
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
:host([appearance='accent'][aria-pressed='true']) {
|
|
564
|
-
box-shadow: inset 0px 0px 2px 2px ${design_tokens/* accentForegroundActive */.VN};
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
:host([appearance='accent']:active) .control:active {
|
|
568
|
-
background: ${design_tokens/* accentFillActive */.UE};
|
|
569
|
-
color: ${design_tokens/* foregroundOnAccentActive */.Pp};
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
:host([appearance="accent"]) .control:${style_focus/* focusVisible */.b} {
|
|
573
|
-
outline-color: ${design_tokens/* accentFillFocus */.D8};
|
|
574
|
-
}
|
|
575
|
-
`.withBehaviors((0,match_media_stylesheet_behavior/* forcedColorsStylesheetBehavior */.vF)((0,css/* css */.i) `
|
|
576
|
-
:host([appearance='accent']) .control {
|
|
577
|
-
forced-color-adjust: none;
|
|
578
|
-
background: ${system_colors/* SystemColors */.H.Highlight};
|
|
579
|
-
color: ${system_colors/* SystemColors */.H.HighlightText};
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
:host([appearance='accent']) .control:hover,
|
|
583
|
-
:host([appearance='accent']:active) .control:active {
|
|
584
|
-
background: ${system_colors/* SystemColors */.H.HighlightText};
|
|
585
|
-
border-color: ${system_colors/* SystemColors */.H.Highlight};
|
|
586
|
-
color: ${system_colors/* SystemColors */.H.Highlight};
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
:host([appearance="accent"]) .control:${style_focus/* focusVisible */.b} {
|
|
590
|
-
outline-color: ${system_colors/* SystemColors */.H.Highlight};
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
:host([appearance='accent'][href]) .control {
|
|
594
|
-
background: ${system_colors/* SystemColors */.H.LinkText};
|
|
595
|
-
color: ${system_colors/* SystemColors */.H.HighlightText};
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
:host([appearance='accent'][href]) .control:hover {
|
|
599
|
-
background: ${system_colors/* SystemColors */.H.ButtonFace};
|
|
600
|
-
border-color: ${system_colors/* SystemColors */.H.LinkText};
|
|
601
|
-
box-shadow: none;
|
|
602
|
-
color: ${system_colors/* SystemColors */.H.LinkText};
|
|
603
|
-
fill: currentColor;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
:host([appearance="accent"][href]) .control:${style_focus/* focusVisible */.b} {
|
|
607
|
-
outline-color: ${system_colors/* SystemColors */.H.HighlightText};
|
|
608
|
-
}
|
|
609
|
-
`));
|
|
610
|
-
/**
|
|
611
|
-
* @internal
|
|
612
|
-
*/
|
|
613
|
-
const ErrorButtonStyles = (0,css/* css */.i) `
|
|
614
|
-
:host([appearance='error']) {
|
|
615
|
-
background: ${design_tokens/* errorFillRest */.a6};
|
|
616
|
-
color: ${design_tokens/* foregroundOnAccentRest */.w4};
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
:host([appearance='error']:hover) {
|
|
620
|
-
background: ${design_tokens/* errorFillHover */.ek};
|
|
621
|
-
color: ${design_tokens/* foregroundOnAccentHover */.lJ};
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
:host([appearance='error'][aria-pressed='true']) {
|
|
625
|
-
box-shadow: inset 0px 0px 2px 2px ${design_tokens/* errorForegroundActive */.DV};
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
:host([appearance='error']:active) .control:active {
|
|
629
|
-
background: ${design_tokens/* errorFillActive */.GB};
|
|
630
|
-
color: ${design_tokens/* foregroundOnAccentActive */.Pp};
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
:host([appearance="error"]) .control:${style_focus/* focusVisible */.b} {
|
|
634
|
-
outline-color: ${design_tokens/* errorFillFocus */.mH};
|
|
635
|
-
}
|
|
636
|
-
`.withBehaviors((0,match_media_stylesheet_behavior/* forcedColorsStylesheetBehavior */.vF)((0,css/* css */.i) `
|
|
637
|
-
:host([appearance='error']) .control {
|
|
638
|
-
forced-color-adjust: none;
|
|
639
|
-
background: ${system_colors/* SystemColors */.H.Highlight};
|
|
640
|
-
color: ${system_colors/* SystemColors */.H.HighlightText};
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
:host([appearance='error']) .control:hover,
|
|
644
|
-
:host([appearance='error']:active) .control:active {
|
|
645
|
-
background: ${system_colors/* SystemColors */.H.HighlightText};
|
|
646
|
-
border-color: ${system_colors/* SystemColors */.H.Highlight};
|
|
647
|
-
color: ${system_colors/* SystemColors */.H.Highlight};
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
:host([appearance="error"]) .control:${style_focus/* focusVisible */.b} {
|
|
651
|
-
outline-color: ${system_colors/* SystemColors */.H.Highlight};
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
:host([appearance='error'][href]) .control {
|
|
655
|
-
background: ${system_colors/* SystemColors */.H.LinkText};
|
|
656
|
-
color: ${system_colors/* SystemColors */.H.HighlightText};
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
:host([appearance='error'][href]) .control:hover {
|
|
660
|
-
background: ${system_colors/* SystemColors */.H.ButtonFace};
|
|
661
|
-
border-color: ${system_colors/* SystemColors */.H.LinkText};
|
|
662
|
-
box-shadow: none;
|
|
663
|
-
color: ${system_colors/* SystemColors */.H.LinkText};
|
|
664
|
-
fill: currentColor;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
:host([appearance="error"][href]) .control:${style_focus/* focusVisible */.b} {
|
|
668
|
-
outline-color: ${system_colors/* SystemColors */.H.HighlightText};
|
|
669
|
-
}
|
|
670
|
-
`));
|
|
671
|
-
/**
|
|
672
|
-
* @internal
|
|
673
|
-
*/
|
|
674
|
-
const HypertextStyles = (0,css/* css */.i) `
|
|
675
|
-
:host([appearance='hypertext']) {
|
|
676
|
-
font-size: inherit;
|
|
677
|
-
line-height: inherit;
|
|
678
|
-
height: auto;
|
|
679
|
-
min-width: 0;
|
|
680
|
-
background: transparent;
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
:host([appearance='hypertext']) .control {
|
|
684
|
-
display: inline;
|
|
685
|
-
padding: 0;
|
|
686
|
-
border: none;
|
|
687
|
-
box-shadow: none;
|
|
688
|
-
border-radius: 0;
|
|
689
|
-
line-height: 1;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
:host a.control:not(:link) {
|
|
693
|
-
background-color: transparent;
|
|
694
|
-
cursor: default;
|
|
695
|
-
}
|
|
696
|
-
:host([appearance='hypertext']) .control:link,
|
|
697
|
-
:host([appearance='hypertext']) .control:visited {
|
|
698
|
-
background: transparent;
|
|
699
|
-
color: ${design_tokens/* accentForegroundRest */.go};
|
|
700
|
-
border-bottom: calc(${design_tokens/* strokeWidth */.H} * 1px) solid ${design_tokens/* accentForegroundRest */.go};
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
:host([appearance='hypertext']:hover),
|
|
704
|
-
:host([appearance='hypertext']) .control:hover {
|
|
705
|
-
background: transparent;
|
|
706
|
-
border-bottom-color: ${design_tokens/* accentForegroundHover */.D9};
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
:host([appearance='hypertext']:active),
|
|
710
|
-
:host([appearance='hypertext']) .control:active {
|
|
711
|
-
background: transparent;
|
|
712
|
-
border-bottom-color: ${design_tokens/* accentForegroundActive */.VN};
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
:host([appearance="hypertext"]) .control:${style_focus/* focusVisible */.b} {
|
|
716
|
-
outline-color: transparent;
|
|
717
|
-
border-bottom: calc(${design_tokens/* focusStrokeWidth */.vx} * 1px) solid ${design_tokens/* focusStrokeOuter */.yG};
|
|
718
|
-
margin-bottom: calc(calc(${design_tokens/* strokeWidth */.H} - ${design_tokens/* focusStrokeWidth */.vx}) * 1px);
|
|
719
|
-
}
|
|
720
|
-
`.withBehaviors((0,match_media_stylesheet_behavior/* forcedColorsStylesheetBehavior */.vF)((0,css/* css */.i) `
|
|
721
|
-
:host([appearance='hypertext']:hover) {
|
|
722
|
-
background-color: ${system_colors/* SystemColors */.H.ButtonFace};
|
|
723
|
-
color: ${system_colors/* SystemColors */.H.ButtonText};
|
|
724
|
-
}
|
|
725
|
-
:host([appearance="hypertext"][href]) .control:hover,
|
|
726
|
-
:host([appearance="hypertext"][href]) .control:active,
|
|
727
|
-
:host([appearance="hypertext"][href]) .control:${style_focus/* focusVisible */.b} {
|
|
728
|
-
color: ${system_colors/* SystemColors */.H.LinkText};
|
|
729
|
-
border-bottom-color: ${system_colors/* SystemColors */.H.LinkText};
|
|
730
|
-
box-shadow: none;
|
|
731
|
-
}
|
|
732
|
-
`));
|
|
733
|
-
/**
|
|
734
|
-
* @internal
|
|
735
|
-
*/
|
|
736
|
-
const LightweightButtonStyles = (0,css/* css */.i) `
|
|
737
|
-
:host([appearance='lightweight']) {
|
|
738
|
-
background: transparent;
|
|
739
|
-
color: ${design_tokens/* accentForegroundRest */.go};
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
:host([appearance='lightweight']) .control {
|
|
743
|
-
padding: 0;
|
|
744
|
-
height: initial;
|
|
745
|
-
border: none;
|
|
746
|
-
box-shadow: none;
|
|
747
|
-
border-radius: 0;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
:host([appearance='lightweight']:hover) {
|
|
751
|
-
background: transparent;
|
|
752
|
-
color: ${design_tokens/* accentForegroundHover */.D9};
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
:host([appearance='lightweight']:active) {
|
|
756
|
-
background: transparent;
|
|
757
|
-
color: ${design_tokens/* accentForegroundActive */.VN};
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
:host([appearance='lightweight']) .content {
|
|
761
|
-
position: relative;
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
:host([appearance='lightweight']) .content::before {
|
|
765
|
-
content: '';
|
|
766
|
-
display: block;
|
|
767
|
-
height: calc(${design_tokens/* strokeWidth */.H} * 1px);
|
|
768
|
-
position: absolute;
|
|
769
|
-
top: calc(1em + 4px);
|
|
770
|
-
width: 100%;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
:host([appearance='lightweight']:hover) .content::before {
|
|
774
|
-
background: ${design_tokens/* accentForegroundHover */.D9};
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
:host([appearance='lightweight']:active) .content::before {
|
|
778
|
-
background: ${design_tokens/* accentForegroundActive */.VN};
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
:host([appearance="lightweight"]) .control:${style_focus/* focusVisible */.b} {
|
|
782
|
-
outline-color: transparent;
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
:host([appearance="lightweight"]) .control:${style_focus/* focusVisible */.b} .content::before {
|
|
786
|
-
background: ${design_tokens/* neutralForegroundRest */.hY};
|
|
787
|
-
height: calc(${design_tokens/* focusStrokeWidth */.vx} * 1px);
|
|
788
|
-
}
|
|
789
|
-
`.withBehaviors((0,match_media_stylesheet_behavior/* forcedColorsStylesheetBehavior */.vF)((0,css/* css */.i) `
|
|
790
|
-
:host([appearance="lightweight"]) .control:hover,
|
|
791
|
-
:host([appearance="lightweight"]) .control:${style_focus/* focusVisible */.b} {
|
|
792
|
-
forced-color-adjust: none;
|
|
793
|
-
background: ${system_colors/* SystemColors */.H.ButtonFace};
|
|
794
|
-
color: ${system_colors/* SystemColors */.H.Highlight};
|
|
795
|
-
}
|
|
796
|
-
:host([appearance="lightweight"]) .control:hover .content::before,
|
|
797
|
-
:host([appearance="lightweight"]) .control:${style_focus/* focusVisible */.b} .content::before {
|
|
798
|
-
background: ${system_colors/* SystemColors */.H.Highlight};
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
:host([appearance="lightweight"][href]) .control:hover,
|
|
802
|
-
:host([appearance="lightweight"][href]) .control:${style_focus/* focusVisible */.b} {
|
|
803
|
-
background: ${system_colors/* SystemColors */.H.ButtonFace};
|
|
804
|
-
box-shadow: none;
|
|
805
|
-
color: ${system_colors/* SystemColors */.H.LinkText};
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
:host([appearance="lightweight"][href]) .control:hover .content::before,
|
|
809
|
-
:host([appearance="lightweight"][href]) .control:${style_focus/* focusVisible */.b} .content::before {
|
|
810
|
-
background: ${system_colors/* SystemColors */.H.LinkText};
|
|
811
|
-
}
|
|
812
|
-
`));
|
|
813
|
-
/**
|
|
814
|
-
* @internal
|
|
815
|
-
*/
|
|
816
|
-
const OutlineButtonStyles = (0,css/* css */.i) `
|
|
817
|
-
:host([appearance='outline']) {
|
|
818
|
-
background: transparent;
|
|
819
|
-
border-color: ${design_tokens/* accentFillRest */.Av};
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
:host([appearance='outline']:hover) {
|
|
823
|
-
border-color: ${design_tokens/* accentFillHover */.OC};
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
:host([appearance='outline']:active) {
|
|
827
|
-
border-color: ${design_tokens/* accentFillActive */.UE};
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
:host([appearance='outline']) .control {
|
|
831
|
-
border-color: inherit;
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
:host([appearance="outline"]) .control:${style_focus/* focusVisible */.b} {
|
|
835
|
-
outline-color: ${design_tokens/* accentFillFocus */.D8};
|
|
836
|
-
}
|
|
837
|
-
`.withBehaviors((0,match_media_stylesheet_behavior/* forcedColorsStylesheetBehavior */.vF)((0,css/* css */.i) `
|
|
838
|
-
:host([appearance='outline']) .control {
|
|
839
|
-
border-color: ${system_colors/* SystemColors */.H.ButtonText};
|
|
840
|
-
}
|
|
841
|
-
:host([appearance="outline"]) .control:${style_focus/* focusVisible */.b} {
|
|
842
|
-
forced-color-adjust: none;
|
|
843
|
-
background-color: ${system_colors/* SystemColors */.H.Highlight};
|
|
844
|
-
outline-color: ${system_colors/* SystemColors */.H.ButtonText};
|
|
845
|
-
color: ${system_colors/* SystemColors */.H.HighlightText};
|
|
846
|
-
fill: currentColor;
|
|
847
|
-
}
|
|
848
|
-
:host([appearance='outline'][href]) .control {
|
|
849
|
-
background: ${system_colors/* SystemColors */.H.ButtonFace};
|
|
850
|
-
border-color: ${system_colors/* SystemColors */.H.LinkText};
|
|
851
|
-
color: ${system_colors/* SystemColors */.H.LinkText};
|
|
852
|
-
fill: currentColor;
|
|
853
|
-
}
|
|
854
|
-
:host([appearance="outline"][href]) .control:hover,
|
|
855
|
-
:host([appearance="outline"][href]) .control:${style_focus/* focusVisible */.b} {
|
|
856
|
-
forced-color-adjust: none;
|
|
857
|
-
outline-color: ${system_colors/* SystemColors */.H.LinkText};
|
|
858
|
-
}
|
|
859
|
-
`));
|
|
860
|
-
/**
|
|
861
|
-
* @internal
|
|
862
|
-
*/
|
|
863
|
-
const StealthButtonStyles = (0,css/* css */.i) `
|
|
864
|
-
:host([appearance='stealth']),
|
|
865
|
-
:host([appearance='stealth'][disabled]:active),
|
|
866
|
-
:host([appearance='stealth'][disabled]:hover) {
|
|
867
|
-
background: transparent;
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
:host([appearance='stealth']:hover) {
|
|
871
|
-
background: ${design_tokens/* neutralFillStealthHover */.Qp};
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
:host([appearance='stealth']:active) {
|
|
875
|
-
background: ${design_tokens/* neutralFillStealthActive */.sG};
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
:host([appearance='stealth']) .control:${style_focus/* focusVisible */.b} {
|
|
879
|
-
outline-color: ${design_tokens/* accentFillFocus */.D8};
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
/* Make the focus outline displayed within the button if
|
|
883
|
-
it is in a start or end slot; e.g. in a tree item
|
|
884
|
-
This will make the focus outline bounded within the container.
|
|
885
|
-
*/
|
|
886
|
-
:host([appearance='stealth'][slot="end"]) .control:${style_focus/* focusVisible */.b},
|
|
887
|
-
:host([appearance='stealth'][slot="start"]) .control:${style_focus/* focusVisible */.b} {
|
|
888
|
-
outline-offset: -2px;
|
|
889
|
-
}
|
|
890
|
-
`.withBehaviors((0,match_media_stylesheet_behavior/* forcedColorsStylesheetBehavior */.vF)((0,css/* css */.i) `
|
|
891
|
-
:host([appearance='stealth']),
|
|
892
|
-
:host([appearance='stealth']) .control {
|
|
893
|
-
forced-color-adjust: none;
|
|
894
|
-
background: ${system_colors/* SystemColors */.H.ButtonFace};
|
|
895
|
-
border-color: transparent;
|
|
896
|
-
color: ${system_colors/* SystemColors */.H.ButtonText};
|
|
897
|
-
fill: currentColor;
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
:host([appearance='stealth']:hover) .control {
|
|
901
|
-
background: ${system_colors/* SystemColors */.H.Highlight};
|
|
902
|
-
border-color: ${system_colors/* SystemColors */.H.Highlight};
|
|
903
|
-
color: ${system_colors/* SystemColors */.H.HighlightText};
|
|
904
|
-
fill: currentColor;
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
:host([appearance="stealth"]:${style_focus/* focusVisible */.b}) .control {
|
|
908
|
-
outline-color: ${system_colors/* SystemColors */.H.Highlight};
|
|
909
|
-
color: ${system_colors/* SystemColors */.H.HighlightText};
|
|
910
|
-
fill: currentColor;
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
:host([appearance='stealth'][href]) .control {
|
|
914
|
-
color: ${system_colors/* SystemColors */.H.LinkText};
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
:host([appearance="stealth"][href]:hover) .control,
|
|
918
|
-
:host([appearance="stealth"][href]:${style_focus/* focusVisible */.b}) .control {
|
|
919
|
-
background: ${system_colors/* SystemColors */.H.LinkText};
|
|
920
|
-
border-color: ${system_colors/* SystemColors */.H.LinkText};
|
|
921
|
-
color: ${system_colors/* SystemColors */.H.HighlightText};
|
|
922
|
-
fill: currentColor;
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
:host([appearance="stealth"][href]:${style_focus/* focusVisible */.b}) .control {
|
|
926
|
-
forced-color-adjust: none;
|
|
927
|
-
box-shadow: 0 0 0 1px ${system_colors/* SystemColors */.H.LinkText};
|
|
928
|
-
}
|
|
929
|
-
`));
|
|
930
|
-
|
|
931
|
-
;// CONCATENATED MODULE: ../node_modules/@microsoft/fast-foundation/dist/esm/utilities/property-stylesheet-behavior.js
|
|
932
|
-
|
|
933
|
-
/**
|
|
934
|
-
* A behavior to add or remove a stylesheet from an element based on a property. The behavior ensures that
|
|
935
|
-
* styles are applied while the property matches and that styles are not applied if the property does
|
|
936
|
-
* not match.
|
|
937
|
-
*
|
|
938
|
-
* @public
|
|
939
|
-
*/
|
|
940
|
-
class PropertyStyleSheetBehavior {
|
|
941
|
-
/**
|
|
942
|
-
* Constructs a {@link PropertyStyleSheetBehavior} instance.
|
|
943
|
-
* @param propertyName - The property name to operate from.
|
|
944
|
-
* @param value - The property value to operate from.
|
|
945
|
-
* @param styles - The styles to coordinate with the property.
|
|
946
|
-
*/
|
|
947
|
-
constructor(propertyName, value, styles) {
|
|
948
|
-
this.propertyName = propertyName;
|
|
949
|
-
this.value = value;
|
|
950
|
-
this.styles = styles;
|
|
951
|
-
}
|
|
952
|
-
/**
|
|
953
|
-
* Binds the behavior to the element.
|
|
954
|
-
* @param elementInstance - The element for which the property is applied.
|
|
955
|
-
*/
|
|
956
|
-
bind(elementInstance) {
|
|
957
|
-
observable/* Observable */.y$.getNotifier(elementInstance).subscribe(this, this.propertyName);
|
|
958
|
-
this.handleChange(elementInstance, this.propertyName);
|
|
959
|
-
}
|
|
960
|
-
/**
|
|
961
|
-
* Unbinds the behavior from the element.
|
|
962
|
-
* @param source - The element for which the behavior is unbinding.
|
|
963
|
-
* @internal
|
|
964
|
-
*/
|
|
965
|
-
unbind(source) {
|
|
966
|
-
observable/* Observable */.y$.getNotifier(source).unsubscribe(this, this.propertyName);
|
|
967
|
-
source.$fastController.removeStyles(this.styles);
|
|
968
|
-
}
|
|
969
|
-
/**
|
|
970
|
-
* Change event for the provided element.
|
|
971
|
-
* @param source - the element for which to attach or detach styles.
|
|
972
|
-
* @param key - the key to lookup to know if the element already has the styles
|
|
973
|
-
* @internal
|
|
974
|
-
*/
|
|
975
|
-
handleChange(source, key) {
|
|
976
|
-
if (source[key] === this.value) {
|
|
977
|
-
source.$fastController.addStyles(this.styles);
|
|
978
|
-
}
|
|
979
|
-
else {
|
|
980
|
-
source.$fastController.removeStyles(this.styles);
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
;// CONCATENATED MODULE: ../node_modules/@jupyter/web-components/dist/esm/utilities/behaviors.js
|
|
986
|
-
// Copyright (c) Jupyter Development Team.
|
|
987
|
-
// Copyright (c) Microsoft Corporation.
|
|
988
|
-
// Distributed under the terms of the Modified BSD License.
|
|
989
|
-
|
|
990
|
-
/**
|
|
991
|
-
* Behavior that will conditionally apply a stylesheet based on the elements
|
|
992
|
-
* appearance property
|
|
993
|
-
*
|
|
994
|
-
* @param value - The value of the appearance property
|
|
995
|
-
* @param styles - The styles to be applied when condition matches
|
|
996
|
-
*
|
|
997
|
-
* @public
|
|
998
|
-
*/
|
|
999
|
-
function appearanceBehavior(value, styles) {
|
|
1000
|
-
return new PropertyStyleSheetBehavior('appearance', value, styles);
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
;// CONCATENATED MODULE: ../node_modules/@jupyter/web-components/dist/esm/button/button.styles.js
|
|
1004
|
-
// Copyright (c) Jupyter Development Team.
|
|
1005
|
-
// Copyright (c) Microsoft Corporation.
|
|
1006
|
-
// Distributed under the terms of the Modified BSD License.
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
/**
|
|
1014
|
-
* Styles for Button
|
|
1015
|
-
* @public
|
|
1016
|
-
*/
|
|
1017
|
-
const buttonStyles = (context, definition) => (0,css/* css */.i) `
|
|
1018
|
-
:host([disabled]),
|
|
1019
|
-
:host([disabled]:hover),
|
|
1020
|
-
:host([disabled]:active) {
|
|
1021
|
-
opacity: ${design_tokens/* disabledOpacity */.VF};
|
|
1022
|
-
background-color: ${design_tokens/* neutralFillRest */.wF};
|
|
1023
|
-
cursor: ${disabled/* disabledCursor */.H};
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
${BaseButtonStyles}
|
|
1027
|
-
`.withBehaviors((0,match_media_stylesheet_behavior/* forcedColorsStylesheetBehavior */.vF)((0,css/* css */.i) `
|
|
1028
|
-
:host([disabled]),
|
|
1029
|
-
:host([disabled]) .control,
|
|
1030
|
-
:host([disabled]:hover),
|
|
1031
|
-
:host([disabled]:active) {
|
|
1032
|
-
forced-color-adjust: none;
|
|
1033
|
-
background-color: ${system_colors/* SystemColors */.H.ButtonFace};
|
|
1034
|
-
outline-color: ${system_colors/* SystemColors */.H.GrayText};
|
|
1035
|
-
color: ${system_colors/* SystemColors */.H.GrayText};
|
|
1036
|
-
cursor: ${disabled/* disabledCursor */.H};
|
|
1037
|
-
opacity: 1;
|
|
1038
|
-
}
|
|
1039
|
-
`), appearanceBehavior('accent', (0,css/* css */.i) `
|
|
1040
|
-
:host([appearance='accent'][disabled]),
|
|
1041
|
-
:host([appearance='accent'][disabled]:hover),
|
|
1042
|
-
:host([appearance='accent'][disabled]:active) {
|
|
1043
|
-
background: ${design_tokens/* accentFillRest */.Av};
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
${AccentButtonStyles}
|
|
1047
|
-
`.withBehaviors((0,match_media_stylesheet_behavior/* forcedColorsStylesheetBehavior */.vF)((0,css/* css */.i) `
|
|
1048
|
-
:host([appearance='accent'][disabled]) .control,
|
|
1049
|
-
:host([appearance='accent'][disabled]) .control:hover {
|
|
1050
|
-
background: ${system_colors/* SystemColors */.H.ButtonFace};
|
|
1051
|
-
border-color: ${system_colors/* SystemColors */.H.GrayText};
|
|
1052
|
-
color: ${system_colors/* SystemColors */.H.GrayText};
|
|
1053
|
-
}
|
|
1054
|
-
`))), appearanceBehavior('error', (0,css/* css */.i) `
|
|
1055
|
-
:host([appearance='error'][disabled]),
|
|
1056
|
-
:host([appearance='error'][disabled]:hover),
|
|
1057
|
-
:host([appearance='error'][disabled]:active) {
|
|
1058
|
-
background: ${design_tokens/* errorFillRest */.a6};
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
${ErrorButtonStyles}
|
|
1062
|
-
`.withBehaviors((0,match_media_stylesheet_behavior/* forcedColorsStylesheetBehavior */.vF)((0,css/* css */.i) `
|
|
1063
|
-
:host([appearance='error'][disabled]) .control,
|
|
1064
|
-
:host([appearance='error'][disabled]) .control:hover {
|
|
1065
|
-
background: ${system_colors/* SystemColors */.H.ButtonFace};
|
|
1066
|
-
border-color: ${system_colors/* SystemColors */.H.GrayText};
|
|
1067
|
-
color: ${system_colors/* SystemColors */.H.GrayText};
|
|
1068
|
-
}
|
|
1069
|
-
`))), appearanceBehavior('lightweight', (0,css/* css */.i) `
|
|
1070
|
-
:host([appearance='lightweight'][disabled]:hover),
|
|
1071
|
-
:host([appearance='lightweight'][disabled]:active) {
|
|
1072
|
-
background-color: transparent;
|
|
1073
|
-
color: ${design_tokens/* accentForegroundRest */.go};
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
:host([appearance='lightweight'][disabled]) .content::before,
|
|
1077
|
-
:host([appearance='lightweight'][disabled]:hover) .content::before,
|
|
1078
|
-
:host([appearance='lightweight'][disabled]:active) .content::before {
|
|
1079
|
-
background: transparent;
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
${LightweightButtonStyles}
|
|
1083
|
-
`.withBehaviors((0,match_media_stylesheet_behavior/* forcedColorsStylesheetBehavior */.vF)((0,css/* css */.i) `
|
|
1084
|
-
:host([appearance='lightweight'].disabled) .control {
|
|
1085
|
-
forced-color-adjust: none;
|
|
1086
|
-
color: ${system_colors/* SystemColors */.H.GrayText};
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
:host([appearance='lightweight'].disabled)
|
|
1090
|
-
.control:hover
|
|
1091
|
-
.content::before {
|
|
1092
|
-
background: none;
|
|
1093
|
-
}
|
|
1094
|
-
`))), appearanceBehavior('outline', (0,css/* css */.i) `
|
|
1095
|
-
:host([appearance='outline'][disabled]),
|
|
1096
|
-
:host([appearance='outline'][disabled]:hover),
|
|
1097
|
-
:host([appearance='outline'][disabled]:active) {
|
|
1098
|
-
background: transparent;
|
|
1099
|
-
border-color: ${design_tokens/* accentFillRest */.Av};
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
${OutlineButtonStyles}
|
|
1103
|
-
`.withBehaviors((0,match_media_stylesheet_behavior/* forcedColorsStylesheetBehavior */.vF)((0,css/* css */.i) `
|
|
1104
|
-
:host([appearance='outline'][disabled]) .control {
|
|
1105
|
-
border-color: ${system_colors/* SystemColors */.H.GrayText};
|
|
1106
|
-
}
|
|
1107
|
-
`))), appearanceBehavior('stealth', (0,css/* css */.i) `
|
|
1108
|
-
${StealthButtonStyles}
|
|
1109
|
-
`.withBehaviors((0,match_media_stylesheet_behavior/* forcedColorsStylesheetBehavior */.vF)((0,css/* css */.i) `
|
|
1110
|
-
:host([appearance='stealth'][disabled]) {
|
|
1111
|
-
background: ${system_colors/* SystemColors */.H.ButtonFace};
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
:host([appearance='stealth'][disabled]) .control {
|
|
1115
|
-
background: ${system_colors/* SystemColors */.H.ButtonFace};
|
|
1116
|
-
border-color: transparent;
|
|
1117
|
-
color: ${system_colors/* SystemColors */.H.GrayText};
|
|
1118
|
-
}
|
|
1119
|
-
`))));
|
|
1120
|
-
|
|
1121
|
-
;// CONCATENATED MODULE: ../node_modules/@jupyter/web-components/dist/esm/button/index.js
|
|
1122
|
-
// Copyright (c) Jupyter Development Team.
|
|
1123
|
-
// Copyright (c) Microsoft Corporation.
|
|
1124
|
-
// Distributed under the terms of the Modified BSD License.
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
/**
|
|
1130
|
-
* Button class
|
|
1131
|
-
*
|
|
1132
|
-
* @public
|
|
1133
|
-
* @tagname jp-button
|
|
1134
|
-
*/
|
|
1135
|
-
class JupyterButton extends Button {
|
|
1136
|
-
constructor() {
|
|
1137
|
-
super(...arguments);
|
|
1138
|
-
/**
|
|
1139
|
-
* The appearance the button should have.
|
|
1140
|
-
*
|
|
1141
|
-
* @public
|
|
1142
|
-
* @remarks
|
|
1143
|
-
* HTML Attribute: appearance
|
|
1144
|
-
*/
|
|
1145
|
-
this.appearance = 'neutral';
|
|
1146
|
-
}
|
|
1147
|
-
/**
|
|
1148
|
-
* Applies 'icon-only' class when there is only an SVG in the default slot
|
|
1149
|
-
*
|
|
1150
|
-
* @public
|
|
1151
|
-
* @remarks
|
|
1152
|
-
*/
|
|
1153
|
-
defaultSlottedContentChanged(oldValue, newValue) {
|
|
1154
|
-
const slottedElements = this.defaultSlottedContent.filter(x => x.nodeType === Node.ELEMENT_NODE);
|
|
1155
|
-
if (slottedElements.length === 1 &&
|
|
1156
|
-
(slottedElements[0] instanceof SVGElement ||
|
|
1157
|
-
slottedElements[0].classList.contains('fa') ||
|
|
1158
|
-
slottedElements[0].classList.contains('fas'))) {
|
|
1159
|
-
this.control.classList.add('icon-only');
|
|
1160
|
-
}
|
|
1161
|
-
else {
|
|
1162
|
-
this.control.classList.remove('icon-only');
|
|
1163
|
-
}
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
(0,tslib_es6/* __decorate */.gn)([
|
|
1167
|
-
attributes/* attr */.Lj
|
|
1168
|
-
], JupyterButton.prototype, "appearance", void 0);
|
|
1169
|
-
(0,tslib_es6/* __decorate */.gn)([
|
|
1170
|
-
(0,attributes/* attr */.Lj)({ attribute: 'minimal', mode: 'boolean' })
|
|
1171
|
-
], JupyterButton.prototype, "minimal", void 0);
|
|
1172
|
-
(0,tslib_es6/* __decorate */.gn)([
|
|
1173
|
-
attributes/* attr */.Lj
|
|
1174
|
-
], JupyterButton.prototype, "scale", void 0);
|
|
1175
|
-
/**
|
|
1176
|
-
* A function that returns a {@link @microsoft/fast-foundation#Button} registration for configuring the component with a DesignSystem.
|
|
1177
|
-
* Implements {@link @microsoft/fast-foundation#buttonTemplate}
|
|
1178
|
-
*
|
|
1179
|
-
*
|
|
1180
|
-
* @public
|
|
1181
|
-
* @remarks
|
|
1182
|
-
* Generates HTML Element: `<jp-button>`
|
|
1183
|
-
*
|
|
1184
|
-
* {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus | delegatesFocus}
|
|
1185
|
-
*/
|
|
1186
|
-
const jpButton = JupyterButton.compose({
|
|
1187
|
-
baseName: 'button',
|
|
1188
|
-
baseClass: Button,
|
|
1189
|
-
template: buttonTemplate,
|
|
1190
|
-
styles: buttonStyles,
|
|
1191
|
-
shadowOptions: {
|
|
1192
|
-
delegatesFocus: true
|
|
1193
|
-
}
|
|
1194
|
-
});
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
/***/ }),
|
|
1200
|
-
|
|
1201
|
-
/***/ 940:
|
|
1202
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1203
|
-
|
|
1204
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1205
|
-
/* harmony export */ Um: () => (/* binding */ FormAssociated)
|
|
1206
|
-
/* harmony export */ });
|
|
1207
|
-
/* unused harmony exports supportsElementInternals, CheckableFormAssociated */
|
|
1208
|
-
/* harmony import */ var _microsoft_fast_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40478);
|
|
1209
|
-
/* harmony import */ var _microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91211);
|
|
1210
|
-
/* harmony import */ var _microsoft_fast_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98332);
|
|
1211
|
-
/* harmony import */ var _microsoft_fast_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(92221);
|
|
1212
|
-
/* harmony import */ var _microsoft_fast_web_utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27081);
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
const proxySlotName = "form-associated-proxy";
|
|
1216
|
-
const ElementInternalsKey = "ElementInternals";
|
|
1217
|
-
/**
|
|
1218
|
-
* @alpha
|
|
1219
|
-
*/
|
|
1220
|
-
const supportsElementInternals = ElementInternalsKey in window &&
|
|
1221
|
-
"setFormValue" in window[ElementInternalsKey].prototype;
|
|
1222
|
-
const InternalsMap = new WeakMap();
|
|
1223
|
-
/**
|
|
1224
|
-
* Base function for providing Custom Element Form Association.
|
|
1225
|
-
*
|
|
1226
|
-
* @alpha
|
|
1227
|
-
*/
|
|
1228
|
-
function FormAssociated(BaseCtor) {
|
|
1229
|
-
const C = class extends BaseCtor {
|
|
1230
|
-
constructor(...args) {
|
|
1231
|
-
super(...args);
|
|
1232
|
-
/**
|
|
1233
|
-
* Track whether the value has been changed from the initial value
|
|
1234
|
-
*/
|
|
1235
|
-
this.dirtyValue = false;
|
|
1236
|
-
/**
|
|
1237
|
-
* Sets the element's disabled state. A disabled element will not be included during form submission.
|
|
1238
|
-
*
|
|
1239
|
-
* @remarks
|
|
1240
|
-
* HTML Attribute: disabled
|
|
1241
|
-
*/
|
|
1242
|
-
this.disabled = false;
|
|
1243
|
-
/**
|
|
1244
|
-
* These are events that are still fired by the proxy
|
|
1245
|
-
* element based on user / programmatic interaction.
|
|
1246
|
-
*
|
|
1247
|
-
* The proxy implementation should be transparent to
|
|
1248
|
-
* the app author, so block these events from emitting.
|
|
1249
|
-
*/
|
|
1250
|
-
this.proxyEventsToBlock = ["change", "click"];
|
|
1251
|
-
this.proxyInitialized = false;
|
|
1252
|
-
this.required = false;
|
|
1253
|
-
this.initialValue = this.initialValue || "";
|
|
1254
|
-
if (!this.elementInternals) {
|
|
1255
|
-
// When elementInternals is not supported, formResetCallback is
|
|
1256
|
-
// bound to an event listener, so ensure the handler's `this`
|
|
1257
|
-
// context is correct.
|
|
1258
|
-
this.formResetCallback = this.formResetCallback.bind(this);
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
|
-
/**
|
|
1262
|
-
* Must evaluate to true to enable elementInternals.
|
|
1263
|
-
* Feature detects API support and resolve respectively
|
|
1264
|
-
*
|
|
1265
|
-
* @internal
|
|
1266
|
-
*/
|
|
1267
|
-
static get formAssociated() {
|
|
1268
|
-
return supportsElementInternals;
|
|
1269
|
-
}
|
|
1270
|
-
/**
|
|
1271
|
-
* Returns the validity state of the element
|
|
1272
|
-
*
|
|
1273
|
-
* @alpha
|
|
1274
|
-
*/
|
|
1275
|
-
get validity() {
|
|
1276
|
-
return this.elementInternals
|
|
1277
|
-
? this.elementInternals.validity
|
|
1278
|
-
: this.proxy.validity;
|
|
1279
|
-
}
|
|
1280
|
-
/**
|
|
1281
|
-
* Retrieve a reference to the associated form.
|
|
1282
|
-
* Returns null if not associated to any form.
|
|
1283
|
-
*
|
|
1284
|
-
* @alpha
|
|
1285
|
-
*/
|
|
1286
|
-
get form() {
|
|
1287
|
-
return this.elementInternals ? this.elementInternals.form : this.proxy.form;
|
|
1288
|
-
}
|
|
1289
|
-
/**
|
|
1290
|
-
* Retrieve the localized validation message,
|
|
1291
|
-
* or custom validation message if set.
|
|
1292
|
-
*
|
|
1293
|
-
* @alpha
|
|
1294
|
-
*/
|
|
1295
|
-
get validationMessage() {
|
|
1296
|
-
return this.elementInternals
|
|
1297
|
-
? this.elementInternals.validationMessage
|
|
1298
|
-
: this.proxy.validationMessage;
|
|
1299
|
-
}
|
|
1300
|
-
/**
|
|
1301
|
-
* Whether the element will be validated when the
|
|
1302
|
-
* form is submitted
|
|
1303
|
-
*/
|
|
1304
|
-
get willValidate() {
|
|
1305
|
-
return this.elementInternals
|
|
1306
|
-
? this.elementInternals.willValidate
|
|
1307
|
-
: this.proxy.willValidate;
|
|
1308
|
-
}
|
|
1309
|
-
/**
|
|
1310
|
-
* A reference to all associated label elements
|
|
1311
|
-
*/
|
|
1312
|
-
get labels() {
|
|
1313
|
-
if (this.elementInternals) {
|
|
1314
|
-
return Object.freeze(Array.from(this.elementInternals.labels));
|
|
1315
|
-
}
|
|
1316
|
-
else if (this.proxy instanceof HTMLElement &&
|
|
1317
|
-
this.proxy.ownerDocument &&
|
|
1318
|
-
this.id) {
|
|
1319
|
-
// Labels associated by wrapping the element: <label><custom-element></custom-element></label>
|
|
1320
|
-
const parentLabels = this.proxy.labels;
|
|
1321
|
-
// Labels associated using the `for` attribute
|
|
1322
|
-
const forLabels = Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`));
|
|
1323
|
-
const labels = parentLabels
|
|
1324
|
-
? forLabels.concat(Array.from(parentLabels))
|
|
1325
|
-
: forLabels;
|
|
1326
|
-
return Object.freeze(labels);
|
|
1327
|
-
}
|
|
1328
|
-
else {
|
|
1329
|
-
return _microsoft_fast_element__WEBPACK_IMPORTED_MODULE_0__/* .emptyArray */ .ow;
|
|
1330
|
-
}
|
|
1331
|
-
}
|
|
1332
|
-
/**
|
|
1333
|
-
* Invoked when the `value` property changes
|
|
1334
|
-
* @param previous - the previous value
|
|
1335
|
-
* @param next - the new value
|
|
1336
|
-
*
|
|
1337
|
-
* @remarks
|
|
1338
|
-
* If elements extending `FormAssociated` implement a `valueChanged` method
|
|
1339
|
-
* They must be sure to invoke `super.valueChanged(previous, next)` to ensure
|
|
1340
|
-
* proper functioning of `FormAssociated`
|
|
1341
|
-
*/
|
|
1342
|
-
valueChanged(previous, next) {
|
|
1343
|
-
this.dirtyValue = true;
|
|
1344
|
-
if (this.proxy instanceof HTMLElement) {
|
|
1345
|
-
this.proxy.value = this.value;
|
|
1346
|
-
}
|
|
1347
|
-
this.currentValue = this.value;
|
|
1348
|
-
this.setFormValue(this.value);
|
|
1349
|
-
this.validate();
|
|
1350
|
-
}
|
|
1351
|
-
currentValueChanged() {
|
|
1352
|
-
this.value = this.currentValue;
|
|
1353
|
-
}
|
|
1354
|
-
/**
|
|
1355
|
-
* Invoked when the `initialValue` property changes
|
|
1356
|
-
*
|
|
1357
|
-
* @param previous - the previous value
|
|
1358
|
-
* @param next - the new value
|
|
1359
|
-
*
|
|
1360
|
-
* @remarks
|
|
1361
|
-
* If elements extending `FormAssociated` implement a `initialValueChanged` method
|
|
1362
|
-
* They must be sure to invoke `super.initialValueChanged(previous, next)` to ensure
|
|
1363
|
-
* proper functioning of `FormAssociated`
|
|
1364
|
-
*/
|
|
1365
|
-
initialValueChanged(previous, next) {
|
|
1366
|
-
// If the value is clean and the component is connected to the DOM
|
|
1367
|
-
// then set value equal to the attribute value.
|
|
1368
|
-
if (!this.dirtyValue) {
|
|
1369
|
-
this.value = this.initialValue;
|
|
1370
|
-
this.dirtyValue = false;
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
/**
|
|
1374
|
-
* Invoked when the `disabled` property changes
|
|
1375
|
-
*
|
|
1376
|
-
* @param previous - the previous value
|
|
1377
|
-
* @param next - the new value
|
|
1378
|
-
*
|
|
1379
|
-
* @remarks
|
|
1380
|
-
* If elements extending `FormAssociated` implement a `disabledChanged` method
|
|
1381
|
-
* They must be sure to invoke `super.disabledChanged(previous, next)` to ensure
|
|
1382
|
-
* proper functioning of `FormAssociated`
|
|
1383
|
-
*/
|
|
1384
|
-
disabledChanged(previous, next) {
|
|
1385
|
-
if (this.proxy instanceof HTMLElement) {
|
|
1386
|
-
this.proxy.disabled = this.disabled;
|
|
1387
|
-
}
|
|
1388
|
-
_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .DOM */ .SO.queueUpdate(() => this.classList.toggle("disabled", this.disabled));
|
|
1389
|
-
}
|
|
1390
|
-
/**
|
|
1391
|
-
* Invoked when the `name` property changes
|
|
1392
|
-
*
|
|
1393
|
-
* @param previous - the previous value
|
|
1394
|
-
* @param next - the new value
|
|
1395
|
-
*
|
|
1396
|
-
* @remarks
|
|
1397
|
-
* If elements extending `FormAssociated` implement a `nameChanged` method
|
|
1398
|
-
* They must be sure to invoke `super.nameChanged(previous, next)` to ensure
|
|
1399
|
-
* proper functioning of `FormAssociated`
|
|
1400
|
-
*/
|
|
1401
|
-
nameChanged(previous, next) {
|
|
1402
|
-
if (this.proxy instanceof HTMLElement) {
|
|
1403
|
-
this.proxy.name = this.name;
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
/**
|
|
1407
|
-
* Invoked when the `required` property changes
|
|
1408
|
-
*
|
|
1409
|
-
* @param previous - the previous value
|
|
1410
|
-
* @param next - the new value
|
|
1411
|
-
*
|
|
1412
|
-
* @remarks
|
|
1413
|
-
* If elements extending `FormAssociated` implement a `requiredChanged` method
|
|
1414
|
-
* They must be sure to invoke `super.requiredChanged(previous, next)` to ensure
|
|
1415
|
-
* proper functioning of `FormAssociated`
|
|
1416
|
-
*/
|
|
1417
|
-
requiredChanged(prev, next) {
|
|
1418
|
-
if (this.proxy instanceof HTMLElement) {
|
|
1419
|
-
this.proxy.required = this.required;
|
|
1420
|
-
}
|
|
1421
|
-
_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .DOM */ .SO.queueUpdate(() => this.classList.toggle("required", this.required));
|
|
1422
|
-
this.validate();
|
|
1423
|
-
}
|
|
1424
|
-
/**
|
|
1425
|
-
* The element internals object. Will only exist
|
|
1426
|
-
* in browsers supporting the attachInternals API
|
|
1427
|
-
*/
|
|
1428
|
-
get elementInternals() {
|
|
1429
|
-
if (!supportsElementInternals) {
|
|
1430
|
-
return null;
|
|
1431
|
-
}
|
|
1432
|
-
let internals = InternalsMap.get(this);
|
|
1433
|
-
if (!internals) {
|
|
1434
|
-
internals = this.attachInternals();
|
|
1435
|
-
InternalsMap.set(this, internals);
|
|
1436
|
-
}
|
|
1437
|
-
return internals;
|
|
1438
|
-
}
|
|
1439
|
-
/**
|
|
1440
|
-
* @internal
|
|
1441
|
-
*/
|
|
1442
|
-
connectedCallback() {
|
|
1443
|
-
super.connectedCallback();
|
|
1444
|
-
this.addEventListener("keypress", this._keypressHandler);
|
|
1445
|
-
if (!this.value) {
|
|
1446
|
-
this.value = this.initialValue;
|
|
1447
|
-
this.dirtyValue = false;
|
|
1448
|
-
}
|
|
1449
|
-
if (!this.elementInternals) {
|
|
1450
|
-
this.attachProxy();
|
|
1451
|
-
if (this.form) {
|
|
1452
|
-
this.form.addEventListener("reset", this.formResetCallback);
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
}
|
|
1456
|
-
/**
|
|
1457
|
-
* @internal
|
|
1458
|
-
*/
|
|
1459
|
-
disconnectedCallback() {
|
|
1460
|
-
super.disconnectedCallback();
|
|
1461
|
-
this.proxyEventsToBlock.forEach(name => this.proxy.removeEventListener(name, this.stopPropagation));
|
|
1462
|
-
if (!this.elementInternals && this.form) {
|
|
1463
|
-
this.form.removeEventListener("reset", this.formResetCallback);
|
|
1464
|
-
}
|
|
1465
|
-
}
|
|
1466
|
-
/**
|
|
1467
|
-
* Return the current validity of the element.
|
|
1468
|
-
*/
|
|
1469
|
-
checkValidity() {
|
|
1470
|
-
return this.elementInternals
|
|
1471
|
-
? this.elementInternals.checkValidity()
|
|
1472
|
-
: this.proxy.checkValidity();
|
|
1473
|
-
}
|
|
1474
|
-
/**
|
|
1475
|
-
* Return the current validity of the element.
|
|
1476
|
-
* If false, fires an invalid event at the element.
|
|
1477
|
-
*/
|
|
1478
|
-
reportValidity() {
|
|
1479
|
-
return this.elementInternals
|
|
1480
|
-
? this.elementInternals.reportValidity()
|
|
1481
|
-
: this.proxy.reportValidity();
|
|
1482
|
-
}
|
|
1483
|
-
/**
|
|
1484
|
-
* Set the validity of the control. In cases when the elementInternals object is not
|
|
1485
|
-
* available (and the proxy element is used to report validity), this function will
|
|
1486
|
-
* do nothing unless a message is provided, at which point the setCustomValidity method
|
|
1487
|
-
* of the proxy element will be invoked with the provided message.
|
|
1488
|
-
* @param flags - Validity flags
|
|
1489
|
-
* @param message - Optional message to supply
|
|
1490
|
-
* @param anchor - Optional element used by UA to display an interactive validation UI
|
|
1491
|
-
*/
|
|
1492
|
-
setValidity(flags, message, anchor) {
|
|
1493
|
-
if (this.elementInternals) {
|
|
1494
|
-
this.elementInternals.setValidity(flags, message, anchor);
|
|
1495
|
-
}
|
|
1496
|
-
else if (typeof message === "string") {
|
|
1497
|
-
this.proxy.setCustomValidity(message);
|
|
1498
|
-
}
|
|
1499
|
-
}
|
|
1500
|
-
/**
|
|
1501
|
-
* Invoked when a connected component's form or fieldset has its disabled
|
|
1502
|
-
* state changed.
|
|
1503
|
-
* @param disabled - the disabled value of the form / fieldset
|
|
1504
|
-
*/
|
|
1505
|
-
formDisabledCallback(disabled) {
|
|
1506
|
-
this.disabled = disabled;
|
|
1507
|
-
}
|
|
1508
|
-
formResetCallback() {
|
|
1509
|
-
this.value = this.initialValue;
|
|
1510
|
-
this.dirtyValue = false;
|
|
1511
|
-
}
|
|
1512
|
-
/**
|
|
1513
|
-
* Attach the proxy element to the DOM
|
|
1514
|
-
*/
|
|
1515
|
-
attachProxy() {
|
|
1516
|
-
var _a;
|
|
1517
|
-
if (!this.proxyInitialized) {
|
|
1518
|
-
this.proxyInitialized = true;
|
|
1519
|
-
this.proxy.style.display = "none";
|
|
1520
|
-
this.proxyEventsToBlock.forEach(name => this.proxy.addEventListener(name, this.stopPropagation));
|
|
1521
|
-
// These are typically mapped to the proxy during
|
|
1522
|
-
// property change callbacks, but during initialization
|
|
1523
|
-
// on the initial call of the callback, the proxy is
|
|
1524
|
-
// still undefined. We should find a better way to address this.
|
|
1525
|
-
this.proxy.disabled = this.disabled;
|
|
1526
|
-
this.proxy.required = this.required;
|
|
1527
|
-
if (typeof this.name === "string") {
|
|
1528
|
-
this.proxy.name = this.name;
|
|
1529
|
-
}
|
|
1530
|
-
if (typeof this.value === "string") {
|
|
1531
|
-
this.proxy.value = this.value;
|
|
1532
|
-
}
|
|
1533
|
-
this.proxy.setAttribute("slot", proxySlotName);
|
|
1534
|
-
this.proxySlot = document.createElement("slot");
|
|
1535
|
-
this.proxySlot.setAttribute("name", proxySlotName);
|
|
1536
|
-
}
|
|
1537
|
-
(_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.appendChild(this.proxySlot);
|
|
1538
|
-
this.appendChild(this.proxy);
|
|
1539
|
-
}
|
|
1540
|
-
/**
|
|
1541
|
-
* Detach the proxy element from the DOM
|
|
1542
|
-
*/
|
|
1543
|
-
detachProxy() {
|
|
1544
|
-
var _a;
|
|
1545
|
-
this.removeChild(this.proxy);
|
|
1546
|
-
(_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.removeChild(this.proxySlot);
|
|
1547
|
-
}
|
|
1548
|
-
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
1549
|
-
validate(anchor) {
|
|
1550
|
-
if (this.proxy instanceof HTMLElement) {
|
|
1551
|
-
this.setValidity(this.proxy.validity, this.proxy.validationMessage, anchor);
|
|
1552
|
-
}
|
|
1553
|
-
}
|
|
1554
|
-
/**
|
|
1555
|
-
* Associates the provided value (and optional state) with the parent form.
|
|
1556
|
-
* @param value - The value to set
|
|
1557
|
-
* @param state - The state object provided to during session restores and when autofilling.
|
|
1558
|
-
*/
|
|
1559
|
-
setFormValue(value, state) {
|
|
1560
|
-
if (this.elementInternals) {
|
|
1561
|
-
this.elementInternals.setFormValue(value, state || value);
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1564
|
-
_keypressHandler(e) {
|
|
1565
|
-
switch (e.key) {
|
|
1566
|
-
case _microsoft_fast_web_utilities__WEBPACK_IMPORTED_MODULE_2__/* .keyEnter */ .kL:
|
|
1567
|
-
if (this.form instanceof HTMLFormElement) {
|
|
1568
|
-
// Implicit submission
|
|
1569
|
-
const defaultButton = this.form.querySelector("[type=submit]");
|
|
1570
|
-
defaultButton === null || defaultButton === void 0 ? void 0 : defaultButton.click();
|
|
1571
|
-
}
|
|
1572
|
-
break;
|
|
1573
|
-
}
|
|
1574
|
-
}
|
|
1575
|
-
/**
|
|
1576
|
-
* Used to stop propagation of proxy element events
|
|
1577
|
-
* @param e - Event object
|
|
1578
|
-
*/
|
|
1579
|
-
stopPropagation(e) {
|
|
1580
|
-
e.stopPropagation();
|
|
1581
|
-
}
|
|
1582
|
-
};
|
|
1583
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_3__/* .attr */ .Lj)({ mode: "boolean" })(C.prototype, "disabled");
|
|
1584
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_3__/* .attr */ .Lj)({ mode: "fromView", attribute: "value" })(C.prototype, "initialValue");
|
|
1585
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_3__/* .attr */ .Lj)({ attribute: "current-value" })(C.prototype, "currentValue");
|
|
1586
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_3__/* .attr */ .Lj)(C.prototype, "name");
|
|
1587
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_3__/* .attr */ .Lj)({ mode: "boolean" })(C.prototype, "required");
|
|
1588
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_4__/* .observable */ .LO)(C.prototype, "value");
|
|
1589
|
-
return C;
|
|
1590
|
-
}
|
|
1591
|
-
/**
|
|
1592
|
-
* @alpha
|
|
1593
|
-
*/
|
|
1594
|
-
function CheckableFormAssociated(BaseCtor) {
|
|
1595
|
-
class C extends FormAssociated(BaseCtor) {
|
|
1596
|
-
}
|
|
1597
|
-
class D extends C {
|
|
1598
|
-
constructor(...args) {
|
|
1599
|
-
super(args);
|
|
1600
|
-
/**
|
|
1601
|
-
* Tracks whether the "checked" property has been changed.
|
|
1602
|
-
* This is necessary to provide consistent behavior with
|
|
1603
|
-
* normal input checkboxes
|
|
1604
|
-
*/
|
|
1605
|
-
this.dirtyChecked = false;
|
|
1606
|
-
/**
|
|
1607
|
-
* Provides the default checkedness of the input element
|
|
1608
|
-
* Passed down to proxy
|
|
1609
|
-
*
|
|
1610
|
-
* @public
|
|
1611
|
-
* @remarks
|
|
1612
|
-
* HTML Attribute: checked
|
|
1613
|
-
*/
|
|
1614
|
-
this.checkedAttribute = false;
|
|
1615
|
-
/**
|
|
1616
|
-
* The checked state of the control.
|
|
1617
|
-
*
|
|
1618
|
-
* @public
|
|
1619
|
-
*/
|
|
1620
|
-
this.checked = false;
|
|
1621
|
-
// Re-initialize dirtyChecked because initialization of other values
|
|
1622
|
-
// causes it to become true
|
|
1623
|
-
this.dirtyChecked = false;
|
|
1624
|
-
}
|
|
1625
|
-
checkedAttributeChanged() {
|
|
1626
|
-
this.defaultChecked = this.checkedAttribute;
|
|
1627
|
-
}
|
|
1628
|
-
/**
|
|
1629
|
-
* @internal
|
|
1630
|
-
*/
|
|
1631
|
-
defaultCheckedChanged() {
|
|
1632
|
-
if (!this.dirtyChecked) {
|
|
1633
|
-
// Setting this.checked will cause us to enter a dirty state,
|
|
1634
|
-
// but if we are clean when defaultChecked is changed, we want to stay
|
|
1635
|
-
// in a clean state, so reset this.dirtyChecked
|
|
1636
|
-
this.checked = this.defaultChecked;
|
|
1637
|
-
this.dirtyChecked = false;
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
checkedChanged(prev, next) {
|
|
1641
|
-
if (!this.dirtyChecked) {
|
|
1642
|
-
this.dirtyChecked = true;
|
|
1643
|
-
}
|
|
1644
|
-
this.currentChecked = this.checked;
|
|
1645
|
-
this.updateForm();
|
|
1646
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
1647
|
-
this.proxy.checked = this.checked;
|
|
1648
|
-
}
|
|
1649
|
-
if (prev !== undefined) {
|
|
1650
|
-
this.$emit("change");
|
|
1651
|
-
}
|
|
1652
|
-
this.validate();
|
|
1653
|
-
}
|
|
1654
|
-
currentCheckedChanged(prev, next) {
|
|
1655
|
-
this.checked = this.currentChecked;
|
|
1656
|
-
}
|
|
1657
|
-
updateForm() {
|
|
1658
|
-
const value = this.checked ? this.value : null;
|
|
1659
|
-
this.setFormValue(value, value);
|
|
1660
|
-
}
|
|
1661
|
-
connectedCallback() {
|
|
1662
|
-
super.connectedCallback();
|
|
1663
|
-
this.updateForm();
|
|
1664
|
-
}
|
|
1665
|
-
formResetCallback() {
|
|
1666
|
-
super.formResetCallback();
|
|
1667
|
-
this.checked = !!this.checkedAttribute;
|
|
1668
|
-
this.dirtyChecked = false;
|
|
1669
|
-
}
|
|
1670
|
-
}
|
|
1671
|
-
attr({ attribute: "checked", mode: "boolean" })(D.prototype, "checkedAttribute");
|
|
1672
|
-
attr({ attribute: "current-checked", converter: booleanConverter })(D.prototype, "currentChecked");
|
|
1673
|
-
observable(D.prototype, "defaultChecked");
|
|
1674
|
-
observable(D.prototype, "checked");
|
|
1675
|
-
return D;
|
|
1676
|
-
}
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
/***/ }),
|
|
1680
|
-
|
|
1681
|
-
/***/ 14869:
|
|
1682
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1683
|
-
|
|
1684
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1685
|
-
/* harmony export */ v: () => (/* binding */ ARIAGlobalStatesAndProperties)
|
|
1686
|
-
/* harmony export */ });
|
|
1687
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(95185);
|
|
1688
|
-
/* harmony import */ var _microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(98332);
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
/**
|
|
1692
|
-
* Some states and properties are applicable to all host language elements regardless of whether a role is applied.
|
|
1693
|
-
* The following global states and properties are supported by all roles and by all base markup elements.
|
|
1694
|
-
* {@link https://www.w3.org/TR/wai-aria-1.1/#global_states}
|
|
1695
|
-
*
|
|
1696
|
-
* This is intended to be used as a mixin. Be sure you extend FASTElement.
|
|
1697
|
-
*
|
|
1698
|
-
* @public
|
|
1699
|
-
*/
|
|
1700
|
-
class ARIAGlobalStatesAndProperties {
|
|
1701
|
-
}
|
|
1702
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1703
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-atomic" })
|
|
1704
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaAtomic", void 0);
|
|
1705
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1706
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-busy" })
|
|
1707
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaBusy", void 0);
|
|
1708
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1709
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-controls" })
|
|
1710
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaControls", void 0);
|
|
1711
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1712
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-current" })
|
|
1713
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaCurrent", void 0);
|
|
1714
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1715
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-describedby" })
|
|
1716
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaDescribedby", void 0);
|
|
1717
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1718
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-details" })
|
|
1719
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaDetails", void 0);
|
|
1720
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1721
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-disabled" })
|
|
1722
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaDisabled", void 0);
|
|
1723
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1724
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-errormessage" })
|
|
1725
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaErrormessage", void 0);
|
|
1726
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1727
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-flowto" })
|
|
1728
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaFlowto", void 0);
|
|
1729
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1730
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-haspopup" })
|
|
1731
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaHaspopup", void 0);
|
|
1732
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1733
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-hidden" })
|
|
1734
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaHidden", void 0);
|
|
1735
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1736
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-invalid" })
|
|
1737
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaInvalid", void 0);
|
|
1738
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1739
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-keyshortcuts" })
|
|
1740
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaKeyshortcuts", void 0);
|
|
1741
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1742
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-label" })
|
|
1743
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaLabel", void 0);
|
|
1744
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1745
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-labelledby" })
|
|
1746
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaLabelledby", void 0);
|
|
1747
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1748
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-live" })
|
|
1749
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaLive", void 0);
|
|
1750
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1751
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-owns" })
|
|
1752
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaOwns", void 0);
|
|
1753
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1754
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-relevant" })
|
|
1755
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaRelevant", void 0);
|
|
1756
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .gn)([
|
|
1757
|
-
(0,_microsoft_fast_element__WEBPACK_IMPORTED_MODULE_1__/* .attr */ .Lj)({ attribute: "aria-roledescription" })
|
|
1758
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", void 0);
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
/***/ }),
|
|
1762
|
-
|
|
1763
|
-
/***/ 82616:
|
|
1764
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1765
|
-
|
|
1766
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1767
|
-
/* harmony export */ gn: () => (/* binding */ __decorate)
|
|
1768
|
-
/* harmony export */ });
|
|
1769
|
-
/* unused harmony exports __extends, __assign, __rest, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources */
|
|
1770
|
-
/******************************************************************************
|
|
1771
|
-
Copyright (c) Microsoft Corporation.
|
|
1772
|
-
|
|
1773
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
1774
|
-
purpose with or without fee is hereby granted.
|
|
1775
|
-
|
|
1776
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1777
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1778
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1779
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1780
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1781
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1782
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
1783
|
-
***************************************************************************** */
|
|
1784
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
1785
|
-
|
|
1786
|
-
var extendStatics = function(d, b) {
|
|
1787
|
-
extendStatics = Object.setPrototypeOf ||
|
|
1788
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1789
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
1790
|
-
return extendStatics(d, b);
|
|
1791
|
-
};
|
|
1792
|
-
|
|
1793
|
-
function __extends(d, b) {
|
|
1794
|
-
if (typeof b !== "function" && b !== null)
|
|
1795
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1796
|
-
extendStatics(d, b);
|
|
1797
|
-
function __() { this.constructor = d; }
|
|
1798
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1799
|
-
}
|
|
1800
|
-
|
|
1801
|
-
var __assign = function() {
|
|
1802
|
-
__assign = Object.assign || function __assign(t) {
|
|
1803
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
1804
|
-
s = arguments[i];
|
|
1805
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
1806
|
-
}
|
|
1807
|
-
return t;
|
|
1808
|
-
}
|
|
1809
|
-
return __assign.apply(this, arguments);
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
|
-
function __rest(s, e) {
|
|
1813
|
-
var t = {};
|
|
1814
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
1815
|
-
t[p] = s[p];
|
|
1816
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1817
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1818
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
1819
|
-
t[p[i]] = s[p[i]];
|
|
1820
|
-
}
|
|
1821
|
-
return t;
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
function __decorate(decorators, target, key, desc) {
|
|
1825
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1826
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1827
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1828
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
function __param(paramIndex, decorator) {
|
|
1832
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
1833
|
-
}
|
|
1834
|
-
|
|
1835
|
-
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
1836
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
1837
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
1838
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
1839
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
1840
|
-
var _, done = false;
|
|
1841
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
1842
|
-
var context = {};
|
|
1843
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
1844
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
1845
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
1846
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
1847
|
-
if (kind === "accessor") {
|
|
1848
|
-
if (result === void 0) continue;
|
|
1849
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
1850
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
1851
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
1852
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
1853
|
-
}
|
|
1854
|
-
else if (_ = accept(result)) {
|
|
1855
|
-
if (kind === "field") initializers.unshift(_);
|
|
1856
|
-
else descriptor[key] = _;
|
|
1857
|
-
}
|
|
1858
|
-
}
|
|
1859
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
1860
|
-
done = true;
|
|
1861
|
-
};
|
|
1862
|
-
|
|
1863
|
-
function __runInitializers(thisArg, initializers, value) {
|
|
1864
|
-
var useValue = arguments.length > 2;
|
|
1865
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
1866
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
1867
|
-
}
|
|
1868
|
-
return useValue ? value : void 0;
|
|
1869
|
-
};
|
|
1870
|
-
|
|
1871
|
-
function __propKey(x) {
|
|
1872
|
-
return typeof x === "symbol" ? x : "".concat(x);
|
|
1873
|
-
};
|
|
1874
|
-
|
|
1875
|
-
function __setFunctionName(f, name, prefix) {
|
|
1876
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
1877
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
1878
|
-
};
|
|
1879
|
-
|
|
1880
|
-
function __metadata(metadataKey, metadataValue) {
|
|
1881
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
1882
|
-
}
|
|
1883
|
-
|
|
1884
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
1885
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1886
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1887
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
1888
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
1889
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1890
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1891
|
-
});
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
|
-
function __generator(thisArg, body) {
|
|
1895
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
1896
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
1897
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
1898
|
-
function step(op) {
|
|
1899
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
1900
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
1901
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
1902
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
1903
|
-
switch (op[0]) {
|
|
1904
|
-
case 0: case 1: t = op; break;
|
|
1905
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
1906
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
1907
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
1908
|
-
default:
|
|
1909
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
1910
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
1911
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
1912
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
1913
|
-
if (t[2]) _.ops.pop();
|
|
1914
|
-
_.trys.pop(); continue;
|
|
1915
|
-
}
|
|
1916
|
-
op = body.call(thisArg, _);
|
|
1917
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
1918
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
|
-
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
|
1923
|
-
if (k2 === undefined) k2 = k;
|
|
1924
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
1925
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1926
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
1927
|
-
}
|
|
1928
|
-
Object.defineProperty(o, k2, desc);
|
|
1929
|
-
}) : (function(o, m, k, k2) {
|
|
1930
|
-
if (k2 === undefined) k2 = k;
|
|
1931
|
-
o[k2] = m[k];
|
|
1932
|
-
});
|
|
1933
|
-
|
|
1934
|
-
function __exportStar(m, o) {
|
|
1935
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
function __values(o) {
|
|
1939
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
1940
|
-
if (m) return m.call(o);
|
|
1941
|
-
if (o && typeof o.length === "number") return {
|
|
1942
|
-
next: function () {
|
|
1943
|
-
if (o && i >= o.length) o = void 0;
|
|
1944
|
-
return { value: o && o[i++], done: !o };
|
|
1945
|
-
}
|
|
1946
|
-
};
|
|
1947
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1948
|
-
}
|
|
1949
|
-
|
|
1950
|
-
function __read(o, n) {
|
|
1951
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
1952
|
-
if (!m) return o;
|
|
1953
|
-
var i = m.call(o), r, ar = [], e;
|
|
1954
|
-
try {
|
|
1955
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
1956
|
-
}
|
|
1957
|
-
catch (error) { e = { error: error }; }
|
|
1958
|
-
finally {
|
|
1959
|
-
try {
|
|
1960
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
1961
|
-
}
|
|
1962
|
-
finally { if (e) throw e.error; }
|
|
1963
|
-
}
|
|
1964
|
-
return ar;
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
|
-
/** @deprecated */
|
|
1968
|
-
function __spread() {
|
|
1969
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
1970
|
-
ar = ar.concat(__read(arguments[i]));
|
|
1971
|
-
return ar;
|
|
1972
|
-
}
|
|
1973
|
-
|
|
1974
|
-
/** @deprecated */
|
|
1975
|
-
function __spreadArrays() {
|
|
1976
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
1977
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
1978
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
1979
|
-
r[k] = a[j];
|
|
1980
|
-
return r;
|
|
1981
|
-
}
|
|
1982
|
-
|
|
1983
|
-
function __spreadArray(to, from, pack) {
|
|
1984
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
1985
|
-
if (ar || !(i in from)) {
|
|
1986
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
1987
|
-
ar[i] = from[i];
|
|
1988
|
-
}
|
|
1989
|
-
}
|
|
1990
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
1991
|
-
}
|
|
1992
|
-
|
|
1993
|
-
function __await(v) {
|
|
1994
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
1995
|
-
}
|
|
1996
|
-
|
|
1997
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
1998
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
1999
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
2000
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
2001
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
2002
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
2003
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
2004
|
-
function fulfill(value) { resume("next", value); }
|
|
2005
|
-
function reject(value) { resume("throw", value); }
|
|
2006
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
2007
|
-
}
|
|
2008
|
-
|
|
2009
|
-
function __asyncDelegator(o) {
|
|
2010
|
-
var i, p;
|
|
2011
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
2012
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
2013
|
-
}
|
|
2014
|
-
|
|
2015
|
-
function __asyncValues(o) {
|
|
2016
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
2017
|
-
var m = o[Symbol.asyncIterator], i;
|
|
2018
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
2019
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
2020
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
|
-
function __makeTemplateObject(cooked, raw) {
|
|
2024
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
2025
|
-
return cooked;
|
|
2026
|
-
};
|
|
2027
|
-
|
|
2028
|
-
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
2029
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
2030
|
-
}) : function(o, v) {
|
|
2031
|
-
o["default"] = v;
|
|
2032
|
-
};
|
|
2033
|
-
|
|
2034
|
-
function __importStar(mod) {
|
|
2035
|
-
if (mod && mod.__esModule) return mod;
|
|
2036
|
-
var result = {};
|
|
2037
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
2038
|
-
__setModuleDefault(result, mod);
|
|
2039
|
-
return result;
|
|
2040
|
-
}
|
|
2041
|
-
|
|
2042
|
-
function __importDefault(mod) {
|
|
2043
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
2044
|
-
}
|
|
2045
|
-
|
|
2046
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
2047
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
2048
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
2049
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
2050
|
-
}
|
|
2051
|
-
|
|
2052
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
2053
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
2054
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
2055
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
2056
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
2057
|
-
}
|
|
2058
|
-
|
|
2059
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
2060
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
2061
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
2062
|
-
}
|
|
2063
|
-
|
|
2064
|
-
function __addDisposableResource(env, value, async) {
|
|
2065
|
-
if (value !== null && value !== void 0) {
|
|
2066
|
-
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
2067
|
-
var dispose;
|
|
2068
|
-
if (async) {
|
|
2069
|
-
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
2070
|
-
dispose = value[Symbol.asyncDispose];
|
|
2071
|
-
}
|
|
2072
|
-
if (dispose === void 0) {
|
|
2073
|
-
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
2074
|
-
dispose = value[Symbol.dispose];
|
|
2075
|
-
}
|
|
2076
|
-
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
2077
|
-
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
2078
|
-
}
|
|
2079
|
-
else if (async) {
|
|
2080
|
-
env.stack.push({ async: true });
|
|
2081
|
-
}
|
|
2082
|
-
return value;
|
|
2083
|
-
}
|
|
2084
|
-
|
|
2085
|
-
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
2086
|
-
var e = new Error(message);
|
|
2087
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
2088
|
-
};
|
|
2089
|
-
|
|
2090
|
-
function __disposeResources(env) {
|
|
2091
|
-
function fail(e) {
|
|
2092
|
-
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
2093
|
-
env.hasError = true;
|
|
2094
|
-
}
|
|
2095
|
-
function next() {
|
|
2096
|
-
while (env.stack.length) {
|
|
2097
|
-
var rec = env.stack.pop();
|
|
2098
|
-
try {
|
|
2099
|
-
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
2100
|
-
if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
2101
|
-
}
|
|
2102
|
-
catch (e) {
|
|
2103
|
-
fail(e);
|
|
2104
|
-
}
|
|
2105
|
-
}
|
|
2106
|
-
if (env.hasError) throw env.error;
|
|
2107
|
-
}
|
|
2108
|
-
return next();
|
|
2109
|
-
}
|
|
2110
|
-
|
|
2111
|
-
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
2112
|
-
__extends,
|
|
2113
|
-
__assign,
|
|
2114
|
-
__rest,
|
|
2115
|
-
__decorate,
|
|
2116
|
-
__param,
|
|
2117
|
-
__metadata,
|
|
2118
|
-
__awaiter,
|
|
2119
|
-
__generator,
|
|
2120
|
-
__createBinding,
|
|
2121
|
-
__exportStar,
|
|
2122
|
-
__values,
|
|
2123
|
-
__read,
|
|
2124
|
-
__spread,
|
|
2125
|
-
__spreadArrays,
|
|
2126
|
-
__spreadArray,
|
|
2127
|
-
__await,
|
|
2128
|
-
__asyncGenerator,
|
|
2129
|
-
__asyncDelegator,
|
|
2130
|
-
__asyncValues,
|
|
2131
|
-
__makeTemplateObject,
|
|
2132
|
-
__importStar,
|
|
2133
|
-
__importDefault,
|
|
2134
|
-
__classPrivateFieldGet,
|
|
2135
|
-
__classPrivateFieldSet,
|
|
2136
|
-
__classPrivateFieldIn,
|
|
2137
|
-
__addDisposableResource,
|
|
2138
|
-
__disposeResources,
|
|
2139
|
-
});
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
/***/ })
|
|
2143
|
-
|
|
2144
|
-
}]);
|
|
2145
|
-
//# sourceMappingURL=5430.98e90178da18bdd99116.js.map?v=98e90178da18bdd99116
|