@vonage/vivid 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +176 -4
- package/accordion/index.js +22 -61
- package/accordion-item/index.js +16 -118
- package/action-group/index.js +5 -0
- package/avatar/index.js +11 -0
- package/badge/index.js +9 -53
- package/banner/index.js +20 -210
- package/breadcrumb/index.js +7 -96
- package/breadcrumb-item/index.js +15 -46
- package/button/index.js +19 -751
- package/calendar/index.js +5 -1520
- package/calendar-event/index.js +9 -0
- package/card/index.js +10 -133
- package/checkbox/index.js +16 -0
- package/combobox/index.js +35 -0
- package/dialog/index.js +24 -0
- package/divider/index.js +6 -0
- package/elevation/index.js +4 -30
- package/fab/index.js +22 -0
- package/focus/index.js +4 -2
- package/header/index.js +6 -0
- package/icon/index.js +8 -36
- package/index.js +76 -26
- package/layout/index.js +4 -52
- package/lib/accordion/accordion.d.ts +3 -7
- package/lib/accordion/accordion.template.d.ts +1 -2
- package/lib/accordion/definition.d.ts +1 -0
- package/lib/accordion/index.d.ts +1 -2
- package/lib/accordion-item/accordion-item.d.ts +2 -6
- package/lib/accordion-item/accordion-item.template.d.ts +4 -4
- package/lib/accordion-item/definition.d.ts +1 -0
- package/lib/accordion-item/index.d.ts +1 -3
- package/lib/action-group/action-group.d.ts +10 -0
- package/lib/{sidenav-item/sidenav-item.template.d.ts → action-group/action-group.template.d.ts} +2 -2
- package/lib/action-group/definition.d.ts +1 -0
- package/lib/action-group/index.d.ts +1 -0
- package/lib/avatar/avatar.d.ts +15 -0
- package/lib/avatar/avatar.template.d.ts +4 -0
- package/lib/avatar/definition.d.ts +1 -0
- package/lib/avatar/index.d.ts +1 -0
- package/lib/badge/badge.d.ts +2 -4
- package/lib/badge/definition.d.ts +3 -0
- package/lib/badge/index.d.ts +1 -3
- package/lib/banner/banner.d.ts +1 -1
- package/lib/banner/banner.template.d.ts +0 -2
- package/lib/banner/definition.d.ts +1 -0
- package/lib/banner/index.d.ts +1 -2
- package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
- package/lib/breadcrumb/definition.d.ts +1 -0
- package/lib/breadcrumb/index.d.ts +1 -2
- package/lib/breadcrumb-item/definition.d.ts +1 -0
- package/lib/breadcrumb-item/index.d.ts +1 -3
- package/lib/button/button.d.ts +3 -2
- package/lib/button/definition.d.ts +1 -0
- package/lib/button/index.d.ts +1 -21
- package/lib/calendar/calendar.d.ts +3 -1
- package/lib/calendar/definition.d.ts +1 -0
- package/lib/calendar/index.d.ts +1 -3
- package/lib/calendar-event/calendar-event.d.ts +14 -0
- package/lib/calendar-event/calendar-event.template.d.ts +4 -0
- package/lib/calendar-event/definition.d.ts +1 -0
- package/lib/calendar-event/index.d.ts +1 -0
- package/lib/card/card.d.ts +2 -2
- package/lib/card/definition.d.ts +1 -0
- package/lib/card/index.d.ts +1 -5
- package/lib/checkbox/checkbox.d.ts +5 -0
- package/lib/checkbox/checkbox.template.d.ts +4 -0
- package/lib/checkbox/definition.d.ts +1 -0
- package/lib/checkbox/index.d.ts +1 -0
- package/lib/combobox/combobox.d.ts +14 -0
- package/lib/combobox/combobox.template.d.ts +4 -0
- package/lib/combobox/definition.d.ts +3 -0
- package/lib/combobox/index.d.ts +1 -0
- package/lib/components.d.ts +44 -16
- package/lib/dialog/definition.d.ts +1 -0
- package/lib/dialog/dialog.d.ts +23 -0
- package/lib/dialog/dialog.template.d.ts +4 -0
- package/lib/dialog/index.d.ts +1 -0
- package/lib/divider/definition.d.ts +1 -0
- package/lib/divider/divider.d.ts +3 -0
- package/lib/divider/divider.template.d.ts +4 -0
- package/lib/divider/index.d.ts +1 -0
- package/lib/elevation/definition.d.ts +1 -0
- package/lib/elevation/elevation.d.ts +1 -0
- package/lib/elevation/index.d.ts +1 -2
- package/lib/enums.d.ts +19 -6
- package/lib/fab/definition.d.ts +3 -0
- package/lib/fab/fab.d.ts +13 -0
- package/lib/fab/fab.template.d.ts +4 -0
- package/lib/fab/index.d.ts +1 -0
- package/lib/focus/definition.d.ts +3 -0
- package/lib/focus/index.d.ts +1 -2
- package/lib/{sidenav-item/index.d.ts → header/definition.d.ts} +2 -2
- package/lib/header/header.d.ts +5 -0
- package/lib/header/header.template.d.ts +4 -0
- package/lib/header/index.d.ts +1 -0
- package/lib/icon/definition.d.ts +3 -0
- package/lib/icon/icon.d.ts +5 -6
- package/lib/icon/index.d.ts +1 -2
- package/lib/layout/definition.d.ts +3 -0
- package/lib/layout/index.d.ts +1 -2
- package/lib/layout/layout.d.ts +4 -4
- package/lib/listbox/definition.d.ts +3 -0
- package/lib/listbox/index.d.ts +1 -0
- package/lib/listbox/listbox.d.ts +6 -0
- package/lib/listbox/listbox.template.d.ts +4 -0
- package/lib/menu/definition.d.ts +11 -0
- package/lib/menu/index.d.ts +1 -0
- package/lib/menu/menu.d.ts +10 -0
- package/lib/menu/menu.template.d.ts +3 -0
- package/lib/menu-item/definition.d.ts +3 -0
- package/lib/menu-item/index.d.ts +1 -0
- package/lib/menu-item/menu-item.d.ts +8 -0
- package/lib/menu-item/menu-item.template.d.ts +5 -0
- package/lib/nav/definition.d.ts +3 -0
- package/lib/nav/index.d.ts +1 -0
- package/lib/nav/nav.d.ts +3 -0
- package/lib/nav/nav.template.d.ts +4 -0
- package/lib/nav-disclosure/definition.d.ts +3 -0
- package/lib/nav-disclosure/index.d.ts +1 -0
- package/lib/nav-disclosure/nav-disclosure.d.ts +10 -0
- package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -0
- package/lib/nav-item/definition.d.ts +3 -0
- package/lib/nav-item/index.d.ts +1 -0
- package/lib/{sidenav-item/sidenav-item.d.ts → nav-item/nav-item.d.ts} +2 -2
- package/lib/nav-item/nav-item.template.d.ts +4 -0
- package/lib/note/definition.d.ts +3 -0
- package/lib/note/index.d.ts +1 -0
- package/lib/note/note.d.ts +10 -0
- package/lib/{text/text.template.d.ts → note/note.template.d.ts} +2 -2
- package/lib/number-field/definition.d.ts +4 -0
- package/lib/number-field/index.d.ts +1 -0
- package/lib/number-field/number-field.d.ts +14 -0
- package/lib/number-field/number-field.template.d.ts +4 -0
- package/lib/option/definition.d.ts +3 -0
- package/lib/option/index.d.ts +1 -0
- package/lib/option/option.d.ts +9 -0
- package/lib/option/option.template.d.ts +4 -0
- package/lib/popup/definition.d.ts +4 -0
- package/lib/popup/index.d.ts +1 -4
- package/lib/popup/popup.d.ts +8 -4
- package/lib/progress/definition.d.ts +3 -0
- package/lib/progress/index.d.ts +1 -2
- package/lib/progress/progress.d.ts +1 -1
- package/lib/progress-ring/definition.d.ts +3 -0
- package/lib/progress-ring/index.d.ts +1 -2
- package/lib/progress-ring/progress-ring.d.ts +2 -1
- package/lib/radio/definition.d.ts +3 -0
- package/lib/radio/index.d.ts +1 -0
- package/lib/radio/radio.d.ts +4 -0
- package/lib/radio/radio.template.d.ts +4 -0
- package/lib/radio-group/definition.d.ts +11 -0
- package/lib/radio-group/index.d.ts +1 -0
- package/lib/radio-group/radio-group.d.ts +4 -0
- package/lib/radio-group/radio-group.template.d.ts +4 -0
- package/lib/select/definition.d.ts +3 -0
- package/lib/select/index.d.ts +1 -0
- package/lib/select/select.d.ts +17 -0
- package/lib/select/select.template.d.ts +4 -0
- package/lib/side-drawer/definition.d.ts +3 -0
- package/lib/side-drawer/index.d.ts +1 -2
- package/lib/side-drawer/side-drawer.d.ts +3 -2
- package/lib/slider/definition.d.ts +3 -0
- package/lib/slider/index.d.ts +1 -0
- package/lib/slider/slider.d.ts +4 -0
- package/lib/slider/slider.template.d.ts +4 -0
- package/lib/switch/definition.d.ts +3 -0
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/switch.d.ts +7 -0
- package/lib/switch/switch.template.d.ts +4 -0
- package/lib/tab/definition.d.ts +3 -0
- package/lib/tab/index.d.ts +1 -0
- package/lib/tab/tab.d.ts +9 -0
- package/lib/tab/tab.template.d.ts +3 -0
- package/lib/tab-panel/definition.d.ts +3 -0
- package/lib/tab-panel/index.d.ts +1 -0
- package/lib/tab-panel/tab-panel.d.ts +3 -0
- package/lib/tab-panel/tab-panel.template.d.ts +2 -0
- package/lib/tabs/definition.d.ts +3 -0
- package/lib/tabs/index.d.ts +1 -0
- package/lib/tabs/tabs.d.ts +10 -0
- package/lib/tabs/tabs.template.d.ts +2 -0
- package/lib/text-anchor/definition.d.ts +3 -0
- package/lib/text-anchor/index.d.ts +1 -2
- package/lib/text-area/definition.d.ts +3 -0
- package/lib/text-area/index.d.ts +1 -0
- package/lib/text-area/text-area.d.ts +9 -0
- package/lib/text-area/text-area.template.d.ts +4 -0
- package/lib/text-field/definition.d.ts +3 -0
- package/lib/text-field/index.d.ts +1 -0
- package/lib/text-field/text-field.d.ts +14 -0
- package/lib/text-field/text-field.template.d.ts +4 -0
- package/lib/tooltip/definition.d.ts +3 -0
- package/lib/tooltip/index.d.ts +1 -3
- package/lib/tooltip/tooltip.d.ts +6 -6
- package/listbox/index.js +27 -0
- package/menu/index.js +30 -0
- package/menu-item/index.js +20 -0
- package/nav/index.js +4 -0
- package/nav-disclosure/index.js +17 -0
- package/nav-item/index.js +22 -0
- package/note/index.js +15 -0
- package/number-field/index.js +459 -0
- package/option/index.js +21 -0
- package/package.json +29 -18
- package/popup/index.js +21 -2062
- package/progress/index.js +6 -98
- package/progress-ring/index.js +6 -75
- package/radio/index.js +12 -0
- package/radio-group/index.js +11 -0
- package/select/index.js +34 -0
- package/shared/affix.js +2 -8
- package/shared/anchor.js +10 -2
- package/shared/apply-mixins.js +5 -4
- package/shared/aria-global.js +2 -86
- package/shared/aria.js +9 -0
- package/shared/base-progress.js +5 -0
- package/shared/breadcrumb-item.js +1 -1
- package/shared/button.js +200 -0
- package/shared/calendar-event.js +19 -0
- package/shared/definition.js +225 -0
- package/shared/definition10.js +99 -0
- package/shared/definition11.js +48 -0
- package/shared/definition12.js +1523 -0
- package/shared/definition13.js +111 -0
- package/shared/definition14.js +114 -0
- package/shared/definition15.js +32 -0
- package/shared/definition16.js +172 -0
- package/shared/definition17.js +727 -0
- package/shared/definition18.js +1842 -0
- package/shared/definition19.js +261 -0
- package/shared/definition2.js +150 -0
- package/shared/definition20.js +221 -0
- package/shared/definition21.js +78 -0
- package/shared/definition22.js +87 -0
- package/shared/definition23.js +58 -0
- package/shared/definition24.js +44 -0
- package/shared/definition25.js +58 -0
- package/shared/definition26.js +348 -0
- package/shared/definition27.js +363 -0
- package/shared/definition28.js +21 -0
- package/shared/definition29.js +75 -0
- package/shared/definition3.js +29 -0
- package/shared/definition30.js +31 -0
- package/shared/definition31.js +49 -0
- package/shared/definition32.js +94 -0
- package/shared/definition33.js +77 -0
- package/shared/definition34.js +45 -0
- package/shared/definition35.js +435 -0
- package/shared/definition36.js +634 -0
- package/shared/definition37.js +86 -0
- package/shared/definition38.js +592 -0
- package/shared/definition39.js +147 -0
- package/shared/definition4.js +19 -0
- package/shared/definition40.js +67 -0
- package/shared/definition41.js +32 -0
- package/shared/definition42.js +440 -0
- package/shared/definition43.js +282 -0
- package/shared/definition44.js +119 -0
- package/shared/definition45.js +77 -0
- package/shared/definition5.js +38 -0
- package/shared/definition6.js +60 -0
- package/shared/definition7.js +45 -0
- package/shared/definition8.js +113 -0
- package/shared/definition9.js +107 -0
- package/shared/design-system/index.d.ts +1 -1
- package/shared/dialog-polyfill.esm.js +858 -0
- package/shared/direction.js +20 -0
- package/shared/dom.js +8 -0
- package/shared/enums.js +70 -0
- package/shared/es.object.assign.js +2 -3
- package/shared/es.regexp.to-string.js +59 -0
- package/shared/focus.js +5 -0
- package/shared/focus2.js +11 -0
- package/shared/form-associated.js +466 -0
- package/shared/form-elements.js +127 -0
- package/shared/icon.js +538 -567
- package/shared/index.js +1664 -83
- package/shared/key-codes.js +97 -0
- package/shared/listbox.js +995 -0
- package/shared/numbers.js +34 -0
- package/shared/patterns/affix.d.ts +1 -1
- package/shared/patterns/focus.d.ts +3 -0
- package/shared/patterns/form-elements/form-elements.d.ts +43 -0
- package/shared/patterns/form-elements/index.d.ts +1 -0
- package/shared/patterns/index.d.ts +2 -0
- package/shared/radio.js +127 -0
- package/shared/ref.js +41 -0
- package/shared/select.options.js +10 -0
- package/shared/start-end.js +50 -0
- package/shared/string-trim.js +40 -0
- package/shared/strings.js +9 -0
- package/shared/text-anchor.js +0 -2
- package/shared/text-anchor.template.js +6 -5
- package/shared/text-field.js +3 -0
- package/shared/text-field2.js +225 -0
- package/shared/to-string.js +51 -0
- package/side-drawer/index.js +5 -81
- package/slider/index.js +17 -0
- package/styles/core/all.css +83 -0
- package/styles/core/theme.css +11 -0
- package/styles/core/typography.css +77 -0
- package/styles/tokens/theme-dark.css +228 -0
- package/styles/tokens/theme-light.css +228 -0
- package/switch/index.js +18 -0
- package/tab/index.js +16 -0
- package/tab-panel/index.js +4 -0
- package/tabs/index.js +24 -0
- package/text-anchor/index.js +11 -6
- package/text-area/index.js +23 -0
- package/text-field/index.js +24 -0
- package/tooltip/index.js +18 -55
- package/lib/text/index.d.ts +0 -2
- package/lib/text/text.d.ts +0 -10
- package/shared/index2.js +0 -21
- package/shared/object-set-prototype-of.js +0 -1009
- package/shared/style-inject.es.js +0 -28
- package/shared/web.dom-collections.iterator.js +0 -473
- package/sidenav-item/index.js +0 -39
- package/styles/fonts/spezia.css +0 -23
- package/styles/themes/dark.css +0 -205
- package/styles/themes/light.css +0 -205
- package/text/index.js +0 -46
package/progress/index.js
CHANGED
|
@@ -1,99 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import '../shared/
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { w as when } from '../shared/when.js';
|
|
7
|
-
import { c as classNames } from '../shared/class-names.js';
|
|
1
|
+
import { r as registerProgress } from '../shared/definition32.js';
|
|
2
|
+
import '../shared/index.js';
|
|
3
|
+
import '../shared/base-progress.js';
|
|
4
|
+
import '../shared/when.js';
|
|
5
|
+
import '../shared/class-names.js';
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
styleInject(css_248z);
|
|
11
|
-
|
|
12
|
-
var classof = classofRaw;
|
|
13
|
-
|
|
14
|
-
// `IsArray` abstract operation
|
|
15
|
-
// https://tc39.es/ecma262/#sec-isarray
|
|
16
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
17
|
-
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
18
|
-
return classof(argument) == 'Array';
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
var $ = _export;
|
|
22
|
-
var uncurryThis = functionUncurryThis;
|
|
23
|
-
var isArray = isArray$1;
|
|
24
|
-
|
|
25
|
-
var un$Reverse = uncurryThis([].reverse);
|
|
26
|
-
var test = [1, 2];
|
|
27
|
-
|
|
28
|
-
// `Array.prototype.reverse` method
|
|
29
|
-
// https://tc39.es/ecma262/#sec-array.prototype.reverse
|
|
30
|
-
// fix for Safari 12.0 bug
|
|
31
|
-
// https://bugs.webkit.org/show_bug.cgi?id=188794
|
|
32
|
-
$({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
|
|
33
|
-
reverse: function reverse() {
|
|
34
|
-
// eslint-disable-next-line no-self-assign -- dirty hack
|
|
35
|
-
if (isArray(this)) this.length = this.length;
|
|
36
|
-
return un$Reverse(this);
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
class Progress extends BaseProgress {
|
|
41
|
-
constructor() {
|
|
42
|
-
super(...arguments);
|
|
43
|
-
this.reverse = false;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
__decorate([attr(), __metadata("design:type", String)], Progress.prototype, "shape", void 0);
|
|
49
|
-
|
|
50
|
-
__decorate([attr(), __metadata("design:type", String)], Progress.prototype, "connotation", void 0);
|
|
51
|
-
|
|
52
|
-
__decorate([attr({
|
|
53
|
-
mode: 'boolean'
|
|
54
|
-
}), __metadata("design:type", Object)], Progress.prototype, "reverse", void 0);
|
|
55
|
-
|
|
56
|
-
let _2 = t => t,
|
|
57
|
-
_t,
|
|
58
|
-
_t2,
|
|
59
|
-
_t3;
|
|
60
|
-
|
|
61
|
-
const getClasses = _ => classNames('base', [`connotation-${_.connotation}`, !!_.connotation], [`shape-${_.shape}`, !!_.shape], ['reverse', _.reverse]);
|
|
62
|
-
|
|
63
|
-
const ProgressTemplate = _ => {
|
|
64
|
-
return html(_t || (_t = _2`
|
|
65
|
-
<div
|
|
66
|
-
role="progressbar"
|
|
67
|
-
aria-valuenow="${0}"
|
|
68
|
-
aria-valuemin="${0}"
|
|
69
|
-
aria-valuemax="${0}"
|
|
70
|
-
class="${0} ${0}"
|
|
71
|
-
>
|
|
72
|
-
${0}
|
|
73
|
-
${0}
|
|
74
|
-
</div>
|
|
75
|
-
`), x => x.value, x => x.min, x => x.max, x => x.paused ? 'paused' : '', getClasses, when(x => typeof x.value === 'number', html(_t2 || (_t2 = _2`
|
|
76
|
-
<div class="progress">
|
|
77
|
-
<div
|
|
78
|
-
class="determinate"
|
|
79
|
-
style="width: ${0}%"
|
|
80
|
-
></div>
|
|
81
|
-
</div>
|
|
82
|
-
`), x => x.percentComplete)), when(x => typeof x.value !== 'number', html(_t3 || (_t3 = _2`
|
|
83
|
-
<div class="progress indeterminate">
|
|
84
|
-
<span class="indeterminate" name="indeterminate">
|
|
85
|
-
<span class="indeterminate-indicator-1"></span>
|
|
86
|
-
<span class="indeterminate-indicator-2"></span>
|
|
87
|
-
</span>
|
|
88
|
-
</div>
|
|
89
|
-
`))));
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
const vividProgress = Progress.compose({
|
|
93
|
-
baseName: 'progress',
|
|
94
|
-
template: ProgressTemplate,
|
|
95
|
-
styles: css_248z
|
|
96
|
-
});
|
|
97
|
-
designSystem.register(vividProgress());
|
|
98
|
-
|
|
99
|
-
export { vividProgress };
|
|
7
|
+
registerProgress();
|
package/progress-ring/index.js
CHANGED
|
@@ -1,76 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { r as registerProgressRing } from '../shared/definition33.js';
|
|
2
|
+
import '../shared/index.js';
|
|
3
|
+
import '../shared/base-progress.js';
|
|
4
|
+
import '../shared/when.js';
|
|
5
|
+
import '../shared/class-names.js';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
styleInject(css_248z);
|
|
9
|
-
|
|
10
|
-
class ProgressRing extends BaseProgress {}
|
|
11
|
-
|
|
12
|
-
__decorate([attr(), __metadata("design:type", String)], ProgressRing.prototype, "connotation", void 0);
|
|
13
|
-
|
|
14
|
-
let _2 = t => t,
|
|
15
|
-
_t,
|
|
16
|
-
_t2,
|
|
17
|
-
_t3;
|
|
18
|
-
|
|
19
|
-
const getClasses = _ => classNames('base', [`connotation-${_.connotation}`, !!_.connotation]);
|
|
20
|
-
|
|
21
|
-
const progressSegments = 44;
|
|
22
|
-
const ProgressRingTemplate = _ => html(_t || (_t = _2`
|
|
23
|
-
<div
|
|
24
|
-
role="progressbar"
|
|
25
|
-
aria-valuenow="${0}"
|
|
26
|
-
aria-valuemin="${0}"
|
|
27
|
-
aria-valuemax="${0}"
|
|
28
|
-
class="${0} ${0}"
|
|
29
|
-
>
|
|
30
|
-
${0}
|
|
31
|
-
${0}
|
|
32
|
-
</div>
|
|
33
|
-
`), x => x.value, x => x.min, x => x.max, x => x.paused ? 'paused' : '', getClasses, when(x => typeof x.value === 'number', html(_t2 || (_t2 = _2`
|
|
34
|
-
<svg
|
|
35
|
-
class="progress"
|
|
36
|
-
viewBox="0 0 16 16"
|
|
37
|
-
>
|
|
38
|
-
<circle
|
|
39
|
-
class="background"
|
|
40
|
-
cx="8px"
|
|
41
|
-
cy="8px"
|
|
42
|
-
r="7px"
|
|
43
|
-
></circle>
|
|
44
|
-
<circle
|
|
45
|
-
class="determinate"
|
|
46
|
-
style="stroke-dasharray: ${0}px ${0}px"
|
|
47
|
-
cx="8px"
|
|
48
|
-
cy="8px"
|
|
49
|
-
r="7px"
|
|
50
|
-
></circle>
|
|
51
|
-
</svg>
|
|
52
|
-
`), x => progressSegments * x.percentComplete / 100, progressSegments)), when(x => typeof x.value !== 'number', html(_t3 || (_t3 = _2`
|
|
53
|
-
<svg class="progress" viewBox="0 0 16 16">
|
|
54
|
-
<circle
|
|
55
|
-
class="background"
|
|
56
|
-
cx="8px"
|
|
57
|
-
cy="8px"
|
|
58
|
-
r="7px"
|
|
59
|
-
></circle>
|
|
60
|
-
<circle
|
|
61
|
-
class="indeterminate-indicator-1"
|
|
62
|
-
cx="8px"
|
|
63
|
-
cy="8px"
|
|
64
|
-
r="7px"
|
|
65
|
-
></circle>
|
|
66
|
-
</svg>
|
|
67
|
-
`))));
|
|
68
|
-
|
|
69
|
-
const vividProgressRing = ProgressRing.compose({
|
|
70
|
-
baseName: 'progress-ring',
|
|
71
|
-
template: ProgressRingTemplate,
|
|
72
|
-
styles: css_248z
|
|
73
|
-
});
|
|
74
|
-
designSystem.register(vividProgressRing());
|
|
75
|
-
|
|
76
|
-
export { vividProgressRing };
|
|
7
|
+
registerProgressRing();
|
package/radio/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { r as registerRadio } from '../shared/definition34.js';
|
|
2
|
+
import '../shared/index.js';
|
|
3
|
+
import '../shared/definition4.js';
|
|
4
|
+
import '../shared/focus.js';
|
|
5
|
+
import '../shared/radio.js';
|
|
6
|
+
import '../shared/form-associated.js';
|
|
7
|
+
import '../shared/key-codes.js';
|
|
8
|
+
import '../shared/focus2.js';
|
|
9
|
+
import '../shared/when.js';
|
|
10
|
+
import '../shared/class-names.js';
|
|
11
|
+
|
|
12
|
+
registerRadio();
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { r as registerRadioGroup } from '../shared/definition35.js';
|
|
2
|
+
import '../shared/index.js';
|
|
3
|
+
import '../shared/direction.js';
|
|
4
|
+
import '../shared/key-codes.js';
|
|
5
|
+
import '../shared/aria.js';
|
|
6
|
+
import '../shared/radio.js';
|
|
7
|
+
import '../shared/form-associated.js';
|
|
8
|
+
import '../shared/slotted.js';
|
|
9
|
+
import '../shared/when.js';
|
|
10
|
+
|
|
11
|
+
registerRadioGroup();
|
package/select/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { r as registerSelect } from '../shared/definition36.js';
|
|
2
|
+
import '../shared/index.js';
|
|
3
|
+
import '../shared/definition4.js';
|
|
4
|
+
import '../shared/focus.js';
|
|
5
|
+
import '../shared/definition18.js';
|
|
6
|
+
import '../shared/definition9.js';
|
|
7
|
+
import '../shared/definition3.js';
|
|
8
|
+
import '../shared/icon.js';
|
|
9
|
+
import '../shared/to-string.js';
|
|
10
|
+
import '../shared/string-trim.js';
|
|
11
|
+
import '../shared/_has.js';
|
|
12
|
+
import '../shared/class-names.js';
|
|
13
|
+
import '../shared/when.js';
|
|
14
|
+
import '../shared/affix.js';
|
|
15
|
+
import '../shared/button.js';
|
|
16
|
+
import '../shared/apply-mixins.js';
|
|
17
|
+
import '../shared/form-associated.js';
|
|
18
|
+
import '../shared/key-codes.js';
|
|
19
|
+
import '../shared/aria-global.js';
|
|
20
|
+
import '../shared/start-end.js';
|
|
21
|
+
import '../shared/ref.js';
|
|
22
|
+
import '../shared/focus2.js';
|
|
23
|
+
import '../shared/definition15.js';
|
|
24
|
+
import '../shared/es.object.assign.js';
|
|
25
|
+
import '../shared/definition19.js';
|
|
26
|
+
import '../shared/dom.js';
|
|
27
|
+
import '../shared/form-elements.js';
|
|
28
|
+
import '../shared/listbox.js';
|
|
29
|
+
import '../shared/strings.js';
|
|
30
|
+
import '../shared/numbers.js';
|
|
31
|
+
import '../shared/select.options.js';
|
|
32
|
+
import '../shared/slotted.js';
|
|
33
|
+
|
|
34
|
+
registerSelect();
|
package/shared/affix.js
CHANGED
|
@@ -1,29 +1,23 @@
|
|
|
1
|
-
import './web.dom-collections.iterator.js';
|
|
2
1
|
import { _ as __decorate, a as attr, b as __metadata, h as html } from './index.js';
|
|
3
2
|
import { I as Icon } from './icon.js';
|
|
4
3
|
|
|
5
4
|
let _ = t => t,
|
|
6
|
-
|
|
5
|
+
_t;
|
|
7
6
|
class AffixIcon {}
|
|
8
|
-
|
|
9
7
|
__decorate([attr, __metadata("design:type", String)], AffixIcon.prototype, "icon", void 0);
|
|
10
|
-
|
|
11
8
|
class AffixIconWithTrailing extends AffixIcon {
|
|
12
9
|
constructor() {
|
|
13
10
|
super(...arguments);
|
|
14
11
|
this.iconTrailing = false;
|
|
15
12
|
}
|
|
16
|
-
|
|
17
13
|
}
|
|
18
|
-
|
|
19
14
|
__decorate([attr({
|
|
20
15
|
mode: 'boolean',
|
|
21
16
|
attribute: 'icon-trailing'
|
|
22
17
|
}), __metadata("design:type", Object)], AffixIconWithTrailing.prototype, "iconTrailing", void 0);
|
|
23
|
-
|
|
24
18
|
const affixIconTemplateFactory = context => {
|
|
25
19
|
const iconTag = context.tagFor(Icon);
|
|
26
|
-
return icon => icon ? html(_t || (_t = _`<span class="
|
|
20
|
+
return icon => icon ? html(_t || (_t = _`<span class="${0}"><${0} :name="${0}"></${0}></span>`), 'icon', iconTag, () => icon, iconTag) : null;
|
|
27
21
|
};
|
|
28
22
|
|
|
29
23
|
export { AffixIconWithTrailing as A, affixIconTemplateFactory as a, AffixIcon as b };
|
package/shared/anchor.js
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { F as FoundationElement, _ as __decorate, a as attr, o as observable } from './index.js';
|
|
2
2
|
import { a as applyMixins } from './apply-mixins.js';
|
|
3
|
-
import { A as ARIAGlobalStatesAndProperties
|
|
3
|
+
import { A as ARIAGlobalStatesAndProperties } from './aria-global.js';
|
|
4
|
+
import { S as StartEnd } from './start-end.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* An Anchor Custom HTML Element.
|
|
7
8
|
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element }.
|
|
8
9
|
*
|
|
10
|
+
* @slot start - Content which can be provided before the anchor content
|
|
11
|
+
* @slot end - Content which can be provided after the anchor content
|
|
12
|
+
* @slot - The default slot for anchor content
|
|
13
|
+
* @csspart control - The anchor element
|
|
14
|
+
* @csspart content - The element wrapping anchor content
|
|
15
|
+
*
|
|
9
16
|
* @public
|
|
10
17
|
*/
|
|
11
18
|
class Anchor extends FoundationElement {
|
|
@@ -20,7 +27,8 @@ class Anchor extends FoundationElement {
|
|
|
20
27
|
var _a;
|
|
21
28
|
// Check to see if delegatesFocus is supported
|
|
22
29
|
if (window.ShadowRoot &&
|
|
23
|
-
!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
|
|
30
|
+
!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
|
|
31
|
+
((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
|
|
24
32
|
this.focus = () => {
|
|
25
33
|
this.control.focus();
|
|
26
34
|
};
|
package/shared/apply-mixins.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { S as AttributeConfiguration } from './index.js';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Apply mixins to a constructor.
|
|
3
5
|
* Sourced from {@link https://www.typescriptlang.org/docs/handbook/mixins.html | TypeScript Documentation }.
|
|
4
6
|
* @public
|
|
5
7
|
*/
|
|
6
8
|
function applyMixins(derivedCtor, ...baseCtors) {
|
|
9
|
+
const derivedAttributes = AttributeConfiguration.locate(derivedCtor);
|
|
7
10
|
baseCtors.forEach(baseCtor => {
|
|
8
11
|
Object.getOwnPropertyNames(baseCtor.prototype).forEach(name => {
|
|
9
12
|
if (name !== "constructor") {
|
|
@@ -12,10 +15,8 @@ function applyMixins(derivedCtor, ...baseCtors) {
|
|
|
12
15
|
Object.getOwnPropertyDescriptor(baseCtor.prototype, name));
|
|
13
16
|
}
|
|
14
17
|
});
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
derivedCtor.attributes = existing.concat(baseCtor.attributes);
|
|
18
|
-
}
|
|
18
|
+
const baseAttributes = AttributeConfiguration.locate(baseCtor);
|
|
19
|
+
baseAttributes.forEach(x => derivedAttributes.push(x));
|
|
19
20
|
});
|
|
20
21
|
}
|
|
21
22
|
|
package/shared/aria-global.js
CHANGED
|
@@ -1,88 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The runtime behavior for template references.
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
class RefBehavior {
|
|
8
|
-
/**
|
|
9
|
-
* Creates an instance of RefBehavior.
|
|
10
|
-
* @param target - The element to reference.
|
|
11
|
-
* @param propertyName - The name of the property to assign the reference to.
|
|
12
|
-
*/
|
|
13
|
-
constructor(target, propertyName) {
|
|
14
|
-
this.target = target;
|
|
15
|
-
this.propertyName = propertyName;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Bind this behavior to the source.
|
|
19
|
-
* @param source - The source to bind to.
|
|
20
|
-
* @param context - The execution context that the binding is operating within.
|
|
21
|
-
*/
|
|
22
|
-
bind(source) {
|
|
23
|
-
source[this.propertyName] = this.target;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Unbinds this behavior from the source.
|
|
27
|
-
* @param source - The source to unbind from.
|
|
28
|
-
*/
|
|
29
|
-
/* eslint-disable-next-line @typescript-eslint/no-empty-function */
|
|
30
|
-
unbind() { }
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* A directive that observes the updates a property with a reference to the element.
|
|
34
|
-
* @param propertyName - The name of the property to assign the reference to.
|
|
35
|
-
* @public
|
|
36
|
-
*/
|
|
37
|
-
function ref(propertyName) {
|
|
38
|
-
return new AttachedBehaviorHTMLDirective("fast-ref", RefBehavior, propertyName);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* A mixin class implementing start and end elements.
|
|
43
|
-
* These are generally used to decorate text elements with icons or other visual indicators.
|
|
44
|
-
* @public
|
|
45
|
-
*/
|
|
46
|
-
class StartEnd {
|
|
47
|
-
handleStartContentChange() {
|
|
48
|
-
this.startContainer.classList.toggle("start", this.start.assignedNodes().length > 0);
|
|
49
|
-
}
|
|
50
|
-
handleEndContentChange() {
|
|
51
|
-
this.endContainer.classList.toggle("end", this.end.assignedNodes().length > 0);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* The template for the end element.
|
|
56
|
-
* For use with {@link StartEnd}
|
|
57
|
-
*
|
|
58
|
-
* @public
|
|
59
|
-
* @deprecated - use endSlotTemplate
|
|
60
|
-
*/
|
|
61
|
-
html `
|
|
62
|
-
<span part="end" ${ref("endContainer")}>
|
|
63
|
-
<slot
|
|
64
|
-
name="end"
|
|
65
|
-
${ref("end")}
|
|
66
|
-
@slotchange="${x => x.handleEndContentChange()}"
|
|
67
|
-
></slot>
|
|
68
|
-
</span>
|
|
69
|
-
`;
|
|
70
|
-
/**
|
|
71
|
-
* The template for the start element.
|
|
72
|
-
* For use with {@link StartEnd}
|
|
73
|
-
*
|
|
74
|
-
* @public
|
|
75
|
-
* @deprecated - use startSlotTemplate
|
|
76
|
-
*/
|
|
77
|
-
html `
|
|
78
|
-
<span part="start" ${ref("startContainer")}>
|
|
79
|
-
<slot
|
|
80
|
-
name="start"
|
|
81
|
-
${ref("start")}
|
|
82
|
-
@slotchange="${x => x.handleStartContentChange()}"
|
|
83
|
-
></slot>
|
|
84
|
-
</span>
|
|
85
|
-
`;
|
|
1
|
+
import { _ as __decorate, a as attr } from './index.js';
|
|
86
2
|
|
|
87
3
|
/**
|
|
88
4
|
* Some states and properties are applicable to all host language elements regardless of whether a role is applied.
|
|
@@ -153,4 +69,4 @@ __decorate([
|
|
|
153
69
|
attr({ attribute: "aria-roledescription" })
|
|
154
70
|
], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", void 0);
|
|
155
71
|
|
|
156
|
-
export { ARIAGlobalStatesAndProperties as A
|
|
72
|
+
export { ARIAGlobalStatesAndProperties as A };
|
package/shared/aria.js
ADDED
package/shared/base-progress.js
CHANGED
|
@@ -4,6 +4,11 @@ import { F as FoundationElement, _ as __decorate, a as attr, n as nullableNumber
|
|
|
4
4
|
* An Progress HTML Element.
|
|
5
5
|
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#progressbar | ARIA progressbar }.
|
|
6
6
|
*
|
|
7
|
+
* @slot indeterminate - The slot for a custom indeterminate indicator
|
|
8
|
+
* @csspart progress - Represents the progress element
|
|
9
|
+
* @csspart determinate - The determinate indicator
|
|
10
|
+
* @csspart indeterminate - The indeterminate indicator
|
|
11
|
+
*
|
|
7
12
|
* @public
|
|
8
13
|
*/
|
|
9
14
|
class BaseProgress extends FoundationElement {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __decorate, o as observable } from './index.js';
|
|
2
2
|
import { A as Anchor, D as DelegatesARIALink } from './anchor.js';
|
|
3
3
|
import { a as applyMixins } from './apply-mixins.js';
|
|
4
|
-
import { S as StartEnd } from './
|
|
4
|
+
import { S as StartEnd } from './start-end.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* A Breadcrumb Item Custom HTML Element.
|
package/shared/button.js
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, o as observable } from './index.js';
|
|
2
|
+
import { a as applyMixins } from './apply-mixins.js';
|
|
3
|
+
import { F as FormAssociated } from './form-associated.js';
|
|
4
|
+
import { A as ARIAGlobalStatesAndProperties } from './aria-global.js';
|
|
5
|
+
import { S as StartEnd } from './start-end.js';
|
|
6
|
+
|
|
7
|
+
class _Button extends FoundationElement {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A form-associated base class for the {@link @microsoft/fast-foundation#(Button:class)} component.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
class FormAssociatedButton extends FormAssociated(_Button) {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.proxy = document.createElement("input");
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* A Button Custom HTML Element.
|
|
23
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element }.
|
|
24
|
+
*
|
|
25
|
+
* @slot start - Content which can be provided before the button content
|
|
26
|
+
* @slot end - Content which can be provided after the button content
|
|
27
|
+
* @slot - The default slot for button content
|
|
28
|
+
* @csspart control - The button element
|
|
29
|
+
* @csspart content - The element wrapping button content
|
|
30
|
+
*
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
class Button extends FormAssociatedButton {
|
|
34
|
+
constructor() {
|
|
35
|
+
super(...arguments);
|
|
36
|
+
/**
|
|
37
|
+
* Prevent events to propagate if disabled and has no slotted content wrapped in HTML elements
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
this.handleClick = (e) => {
|
|
41
|
+
var _a;
|
|
42
|
+
if (this.disabled && ((_a = this.defaultSlottedContent) === null || _a === void 0 ? void 0 : _a.length) <= 1) {
|
|
43
|
+
e.stopPropagation();
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Submits the parent form
|
|
48
|
+
*/
|
|
49
|
+
this.handleSubmission = () => {
|
|
50
|
+
if (!this.form) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const attached = this.proxy.isConnected;
|
|
54
|
+
if (!attached) {
|
|
55
|
+
this.attachProxy();
|
|
56
|
+
}
|
|
57
|
+
// Browser support for requestSubmit is not comprehensive
|
|
58
|
+
// so click the proxy if it isn't supported
|
|
59
|
+
typeof this.form.requestSubmit === "function"
|
|
60
|
+
? this.form.requestSubmit(this.proxy)
|
|
61
|
+
: this.proxy.click();
|
|
62
|
+
if (!attached) {
|
|
63
|
+
this.detachProxy();
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Resets the parent form
|
|
68
|
+
*/
|
|
69
|
+
this.handleFormReset = () => {
|
|
70
|
+
var _a;
|
|
71
|
+
(_a = this.form) === null || _a === void 0 ? void 0 : _a.reset();
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Overrides the focus call for where delegatesFocus is unsupported.
|
|
75
|
+
* This check works for Chrome, Edge Chromium, FireFox, and Safari
|
|
76
|
+
* Relevant PR on the Firefox browser: https://phabricator.services.mozilla.com/D123858
|
|
77
|
+
*/
|
|
78
|
+
this.handleUnsupportedDelegatesFocus = () => {
|
|
79
|
+
var _a;
|
|
80
|
+
// Check to see if delegatesFocus is supported
|
|
81
|
+
if (window.ShadowRoot &&
|
|
82
|
+
!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
|
|
83
|
+
((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
|
|
84
|
+
this.focus = () => {
|
|
85
|
+
this.control.focus();
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
formactionChanged() {
|
|
91
|
+
if (this.proxy instanceof HTMLInputElement) {
|
|
92
|
+
this.proxy.formAction = this.formaction;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
formenctypeChanged() {
|
|
96
|
+
if (this.proxy instanceof HTMLInputElement) {
|
|
97
|
+
this.proxy.formEnctype = this.formenctype;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
formmethodChanged() {
|
|
101
|
+
if (this.proxy instanceof HTMLInputElement) {
|
|
102
|
+
this.proxy.formMethod = this.formmethod;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
formnovalidateChanged() {
|
|
106
|
+
if (this.proxy instanceof HTMLInputElement) {
|
|
107
|
+
this.proxy.formNoValidate = this.formnovalidate;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
formtargetChanged() {
|
|
111
|
+
if (this.proxy instanceof HTMLInputElement) {
|
|
112
|
+
this.proxy.formTarget = this.formtarget;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
typeChanged(previous, next) {
|
|
116
|
+
if (this.proxy instanceof HTMLInputElement) {
|
|
117
|
+
this.proxy.type = this.type;
|
|
118
|
+
}
|
|
119
|
+
next === "submit" && this.addEventListener("click", this.handleSubmission);
|
|
120
|
+
previous === "submit" && this.removeEventListener("click", this.handleSubmission);
|
|
121
|
+
next === "reset" && this.addEventListener("click", this.handleFormReset);
|
|
122
|
+
previous === "reset" && this.removeEventListener("click", this.handleFormReset);
|
|
123
|
+
}
|
|
124
|
+
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
125
|
+
validate() {
|
|
126
|
+
super.validate(this.control);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
131
|
+
connectedCallback() {
|
|
132
|
+
var _a;
|
|
133
|
+
super.connectedCallback();
|
|
134
|
+
this.proxy.setAttribute("type", this.type);
|
|
135
|
+
this.handleUnsupportedDelegatesFocus();
|
|
136
|
+
const elements = Array.from((_a = this.control) === null || _a === void 0 ? void 0 : _a.children);
|
|
137
|
+
if (elements) {
|
|
138
|
+
elements.forEach((span) => {
|
|
139
|
+
span.addEventListener("click", this.handleClick);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @internal
|
|
145
|
+
*/
|
|
146
|
+
disconnectedCallback() {
|
|
147
|
+
var _a;
|
|
148
|
+
super.disconnectedCallback();
|
|
149
|
+
const elements = Array.from((_a = this.control) === null || _a === void 0 ? void 0 : _a.children);
|
|
150
|
+
if (elements) {
|
|
151
|
+
elements.forEach((span) => {
|
|
152
|
+
span.removeEventListener("click", this.handleClick);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
__decorate([
|
|
158
|
+
attr({ mode: "boolean" })
|
|
159
|
+
], Button.prototype, "autofocus", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
attr({ attribute: "form" })
|
|
162
|
+
], Button.prototype, "formId", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
attr
|
|
165
|
+
], Button.prototype, "formaction", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
attr
|
|
168
|
+
], Button.prototype, "formenctype", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
attr
|
|
171
|
+
], Button.prototype, "formmethod", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
attr({ mode: "boolean" })
|
|
174
|
+
], Button.prototype, "formnovalidate", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
attr
|
|
177
|
+
], Button.prototype, "formtarget", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
attr
|
|
180
|
+
], Button.prototype, "type", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
observable
|
|
183
|
+
], Button.prototype, "defaultSlottedContent", void 0);
|
|
184
|
+
/**
|
|
185
|
+
* Includes ARIA states and properties relating to the ARIA button role
|
|
186
|
+
*
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
class DelegatesARIAButton {
|
|
190
|
+
}
|
|
191
|
+
__decorate([
|
|
192
|
+
attr({ attribute: "aria-expanded" })
|
|
193
|
+
], DelegatesARIAButton.prototype, "ariaExpanded", void 0);
|
|
194
|
+
__decorate([
|
|
195
|
+
attr({ attribute: "aria-pressed" })
|
|
196
|
+
], DelegatesARIAButton.prototype, "ariaPressed", void 0);
|
|
197
|
+
applyMixins(DelegatesARIAButton, ARIAGlobalStatesAndProperties);
|
|
198
|
+
applyMixins(Button, StartEnd, DelegatesARIAButton);
|
|
199
|
+
|
|
200
|
+
export { Button as B };
|