@vonage/vivid 3.13.0 → 3.15.0
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/accordion/index.js +1 -0
- package/accordion-item/index.js +1 -0
- package/alert/index.js +1 -0
- package/avatar/index.js +1 -0
- package/badge/index.js +1 -0
- package/banner/index.js +1 -0
- package/breadcrumb-item/index.js +1 -0
- package/button/index.js +1 -0
- package/card/index.js +1 -0
- package/checkbox/index.js +4 -0
- package/combobox/index.js +1 -0
- package/custom-elements.json +1855 -117
- package/data-grid/index.js +4 -0
- package/dialog/index.js +1 -0
- package/empty-state/index.js +14 -0
- package/fab/index.js +2 -1
- package/header/index.js +1 -1
- package/icon/index.js +1 -0
- package/index.js +34 -30
- package/layout/index.js +1 -1
- package/lib/alert/alert.d.ts +4 -6
- package/lib/checkbox/checkbox.d.ts +6 -3
- package/lib/components.d.ts +2 -0
- package/lib/data-grid/data-grid-cell.d.ts +2 -0
- package/lib/data-grid/data-grid-row.d.ts +1 -0
- package/lib/data-grid/data-grid.d.ts +5 -0
- package/lib/empty-state/definition.d.ts +3 -0
- package/lib/empty-state/empty-state.d.ts +5 -0
- package/lib/empty-state/empty-state.template.d.ts +4 -0
- package/lib/empty-state/index.d.ts +1 -0
- package/lib/select/select.d.ts +3 -2
- package/listbox/index.js +2 -1
- package/menu/index.js +4 -3
- package/menu-item/index.js +4 -1
- package/nav/index.js +1 -1
- package/nav-disclosure/index.js +2 -1
- package/nav-item/index.js +2 -1
- package/note/index.js +2 -1
- package/number-field/index.js +2 -1
- package/option/index.js +1 -0
- package/package.json +1 -1
- package/pagination/index.js +15 -312
- package/popup/index.js +1 -0
- package/progress/index.js +1 -1
- package/radio/index.js +1 -1
- package/radio-group/index.js +1 -1
- package/select/index.js +2 -1
- package/shared/definition.js +1 -1
- package/shared/definition10.js +1 -1
- package/shared/definition11.js +1 -1
- package/shared/definition12.js +1 -1
- package/shared/definition14.js +1 -1
- package/shared/definition15.js +1 -1
- package/shared/definition16.js +2 -2
- package/shared/definition17.js +1 -1
- package/shared/definition18.js +23 -8
- package/shared/definition19.js +1 -1
- package/shared/definition2.js +1 -1
- package/shared/definition20.js +1 -1
- package/shared/definition21.js +1 -1
- package/shared/definition22.js +217 -11
- package/shared/definition23.js +2 -2
- package/shared/definition24.js +1 -1
- package/shared/definition25.js +39 -76
- package/shared/definition26.js +76 -47
- package/shared/definition27.js +46 -36
- package/shared/definition28.js +39 -49
- package/shared/definition29.js +48 -344
- package/shared/definition3.js +1 -1
- package/shared/definition30.js +273 -288
- package/shared/definition31.js +366 -14
- package/shared/definition32.js +13 -67
- package/shared/definition33.js +66 -21
- package/shared/definition34.js +21 -39
- package/shared/definition35.js +31 -432
- package/shared/definition36.js +432 -76
- package/shared/definition37.js +223 -34
- package/shared/definition38.js +82 -425
- package/shared/definition39.js +30 -628
- package/shared/definition4.js +1 -1
- package/shared/definition40.js +420 -73
- package/shared/definition41.js +530 -484
- package/shared/definition42.js +76 -133
- package/shared/definition43.js +577 -40
- package/shared/definition44.js +135 -20
- package/shared/definition45.js +42 -423
- package/shared/definition46.js +22 -112
- package/shared/definition47.js +440 -18
- package/shared/definition48.js +92 -247
- package/shared/definition49.js +20 -112
- package/shared/definition5.js +1 -1
- package/shared/definition50.js +259 -590
- package/shared/definition51.js +110 -91
- package/shared/definition52.js +602 -67
- package/shared/definition53.js +89 -294
- package/shared/definition54.js +80 -0
- package/shared/definition55.js +305 -0
- package/shared/definition6.js +52 -78
- package/shared/definition7.js +1 -1
- package/shared/definition8.js +1 -1
- package/shared/definition9.js +1 -1
- package/shared/engine-is-node.js +8 -0
- package/shared/es.object.assign.js +1 -1
- package/shared/es.regexp.to-string.js +1 -1
- package/shared/es.string.includes.js +83 -0
- package/shared/form-elements.js +2 -2
- package/shared/icon.js +13 -17
- package/shared/index.js +1 -1
- package/shared/patterns/form-elements/form-elements.d.ts +4 -4
- package/shared/string-trim.js +1 -1
- package/shared/text-field.js +1 -1
- package/shared/to-string.js +1 -1
- package/side-drawer/index.js +1 -1
- package/slider/index.js +1 -1
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/fonts/spezia-variable.css +2 -2
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/switch/index.js +2 -1
- package/tab/index.js +2 -1
- package/tab-panel/index.js +1 -1
- package/tabs/index.js +4 -3
- package/tag/index.js +2 -1
- package/tag-group/index.js +1 -1
- package/text-anchor/index.js +1 -0
- package/text-area/index.js +2 -1
- package/text-field/index.js +2 -1
- package/toggletip/index.js +2 -1
- package/tooltip/index.js +2 -1
- package/tree-item/index.js +2 -1
- package/tree-view/index.js +1 -1
- package/vivid.api.json +210 -0
package/shared/definition34.js
CHANGED
|
@@ -1,49 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as html, r as registerFactory } from './index.js';
|
|
2
2
|
import { i as iconRegistries } from './definition3.js';
|
|
3
|
+
import { f as focusRegistries } from './definition4.js';
|
|
3
4
|
import { b as AffixIcon } from './affix.js';
|
|
4
|
-
import './
|
|
5
|
-
import './form-elements.js';
|
|
5
|
+
import { T as TextAnchor } from './text-anchor.js';
|
|
6
6
|
import { a as applyMixins } from './apply-mixins.js';
|
|
7
|
-
import {
|
|
8
|
-
import { w as when } from './when.js';
|
|
9
|
-
import { c as classNames } from './class-names.js';
|
|
7
|
+
import { t as textAnchorTemplate } from './text-anchor.template.js';
|
|
10
8
|
|
|
11
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
9
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Tue, 06 Jun 2023 10:38:32 GMT\n */\n.control {\n position: relative;\n display: inline-flex;\n box-sizing: border-box;\n align-items: center;\n background-color: var(--_appearance-color-fill);\n border-radius: 6px;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n font: var(--vvd-typography-base);\n gap: 12px;\n hyphens: auto;\n inline-size: 100%;\n min-block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2)));\n text-decoration: none;\n vertical-align: middle;\n word-break: break-word;\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled, .readonly)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: transparent;\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transparent;\n}\n.control:where(.selected, [aria-current]):where(:not(:disabled, .disabled, :hover, .hover)) {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transparent;\n}\n.control:where(.selected, [aria-current]):where(:hover, .hover) {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary-increment);\n --_appearance-color-outline: transparent;\n}\n.control {\n /* @cssprop [--vvd-nav-item-accent-primary=var(--vvd-color-canvas-text)] */\n --_connotation-color-primary: var(--vvd-nav-item-accent-primary, var(--vvd-color-canvas-text));\n /* @cssprop [--vvd-nav-item-accent-primary-text=var(--vvd-color-canvas)] */\n --_connotation-color-primary-text: var(--vvd-nav-item-accent-primary-text, var(--vvd-color-canvas));\n /* @cssprop [--vvd-nav-item-accent-primary-increment=var(--vvd-color-neutral-800)] */\n --_connotation-color-primary-increment: var(--vvd-nav-item-accent-primary-increment, var(--vvd-color-neutral-800));\n /* @cssprop [--vvd-nav-item-accent-faint=var(--vvd-color-neutral-50)] */\n --_connotation-color-faint: var(--vvd-nav-item-accent-faint, var(--vvd-color-neutral-50));\n /* @cssprop [--vvd-nav-item-accent-soft=var(--vvd-color-neutral-100)] */\n --_connotation-color-soft: var(--vvd-nav-item-accent-soft, var(--vvd-color-neutral-100));\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n.control.icon-only {\n display: flex;\n block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2)));\n inline-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2)));\n place-content: center;\n}\n.control:not(.icon-only) {\n padding-inline: 16px;\n}\n\n.control:not(:focus-visible) .focus-indicator {\n display: none;\n}\n\n.icon {\n font-size: 20px;\n line-height: 1;\n}";
|
|
12
10
|
|
|
13
|
-
class
|
|
14
|
-
|
|
15
|
-
__decorate([attr, __metadata("design:type", String)], Note.prototype, "connotation", void 0);
|
|
16
|
-
applyMixins(Note, AffixIcon);
|
|
11
|
+
class NavItem extends TextAnchor {}
|
|
12
|
+
applyMixins(NavItem, AffixIcon);
|
|
17
13
|
|
|
18
14
|
let _ = t => t,
|
|
19
|
-
_t
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
connotation
|
|
24
|
-
}) => classNames('base', `connotation-${connotation}`);
|
|
25
|
-
function getHeaderTemplate() {
|
|
26
|
-
return html(_t || (_t = _`<div class="headline">${0}</div>`), x => x.headline);
|
|
27
|
-
}
|
|
28
|
-
const NoteTemplate = context => {
|
|
29
|
-
const iconTag = context.tagFor(Icon);
|
|
30
|
-
return html(_t2 || (_t2 = _`
|
|
31
|
-
<div class="${0}">
|
|
32
|
-
${0}
|
|
33
|
-
<div class="text">
|
|
34
|
-
${0}
|
|
35
|
-
<slot class="message"></slot>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
`), getClasses, when(x => x.icon, html(_t3 || (_t3 = _`<${0} class="icon" name="${0}"></${0}>`), iconTag, x => x.icon, iconTag)), when(x => x.headline, getHeaderTemplate()));
|
|
39
|
-
};
|
|
15
|
+
_t;
|
|
16
|
+
const NavItemTemplate = (context, definition) => html(_t || (_t = _`
|
|
17
|
+
${0}
|
|
18
|
+
`), textAnchorTemplate(context));
|
|
40
19
|
|
|
41
|
-
const
|
|
42
|
-
baseName: '
|
|
43
|
-
template:
|
|
44
|
-
styles: css_248z
|
|
20
|
+
const navItemDefinition = NavItem.compose({
|
|
21
|
+
baseName: 'nav-item',
|
|
22
|
+
template: NavItemTemplate,
|
|
23
|
+
styles: css_248z,
|
|
24
|
+
shadowOptions: {
|
|
25
|
+
delegatesFocus: true
|
|
26
|
+
}
|
|
45
27
|
});
|
|
46
|
-
const
|
|
47
|
-
const
|
|
28
|
+
const navItemRegistries = [navItemDefinition(), ...iconRegistries, ...focusRegistries];
|
|
29
|
+
const registerNavItem = registerFactory(navItemRegistries);
|
|
48
30
|
|
|
49
|
-
export {
|
|
31
|
+
export { navItemRegistries as a, navItemDefinition as n, registerNavItem as r };
|
package/shared/definition35.js
CHANGED
|
@@ -1,450 +1,49 @@
|
|
|
1
|
-
import { F as FoundationElement,
|
|
2
|
-
import {
|
|
3
|
-
import { D as Divider, d as dividerRegistries } from './definition24.js';
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, r as registerFactory } from './index.js';
|
|
2
|
+
import { i as iconRegistries } from './definition3.js';
|
|
4
3
|
import { b as AffixIcon } from './affix.js';
|
|
5
4
|
import './focus.js';
|
|
6
|
-
import
|
|
7
|
-
import { S as StartEnd } from './start-end.js';
|
|
5
|
+
import './form-elements.js';
|
|
8
6
|
import { a as applyMixins } from './apply-mixins.js';
|
|
9
|
-
import {
|
|
10
|
-
import { F as FormAssociated } from './form-associated.js';
|
|
11
|
-
import { b as keyArrowDown, c as keyArrowUp } from './key-codes.js';
|
|
12
|
-
import './es.regexp.to-string.js';
|
|
13
|
-
import { S as Shape } from './enums.js';
|
|
14
|
-
import { f as focusTemplateFactory } from './focus2.js';
|
|
7
|
+
import { I as Icon } from './icon.js';
|
|
15
8
|
import { w as when } from './when.js';
|
|
16
|
-
import { r as ref } from './ref.js';
|
|
17
9
|
import { c as classNames } from './class-names.js';
|
|
18
10
|
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* A form-associated base class for the {@link @microsoft/fast-foundation#(NumberField:class)} component.
|
|
23
|
-
*
|
|
24
|
-
* @internal
|
|
25
|
-
*/
|
|
26
|
-
class FormAssociatedNumberField extends FormAssociated(_NumberField) {
|
|
27
|
-
constructor() {
|
|
28
|
-
super(...arguments);
|
|
29
|
-
this.proxy = document.createElement("input");
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* A Number Field Custom HTML Element.
|
|
35
|
-
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number | <input type="number" /> element }.
|
|
36
|
-
*
|
|
37
|
-
* @slot start - Content which can be provided before the number field input
|
|
38
|
-
* @slot end - Content which can be provided after the number field input
|
|
39
|
-
* @slot - The default slot for the label
|
|
40
|
-
* @slot step-up-glyph - The glyph for the step up control
|
|
41
|
-
* @slot step-down-glyph - The glyph for the step down control
|
|
42
|
-
* @csspart label - The label
|
|
43
|
-
* @csspart root - The element wrapping the control, including start and end slots
|
|
44
|
-
* @csspart control - The element representing the input
|
|
45
|
-
* @csspart controls - The step up and step down controls
|
|
46
|
-
* @csspart step-up - The step up control
|
|
47
|
-
* @csspart step-down - The step down control
|
|
48
|
-
* @fires input - Fires a custom 'input' event when the value has changed
|
|
49
|
-
* @fires change - Fires a custom 'change' event when the value has changed
|
|
50
|
-
*
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
class NumberField$1 extends FormAssociatedNumberField {
|
|
54
|
-
constructor() {
|
|
55
|
-
super(...arguments);
|
|
56
|
-
/**
|
|
57
|
-
* When true, spin buttons will not be rendered
|
|
58
|
-
* @public
|
|
59
|
-
* @remarks
|
|
60
|
-
* HTML Attribute: autofocus
|
|
61
|
-
*/
|
|
62
|
-
this.hideStep = false;
|
|
63
|
-
/**
|
|
64
|
-
* Amount to increment or decrement the value by
|
|
65
|
-
* @public
|
|
66
|
-
* @remarks
|
|
67
|
-
* HTMLAttribute: step
|
|
68
|
-
*/
|
|
69
|
-
this.step = 1;
|
|
70
|
-
/**
|
|
71
|
-
* Flag to indicate that the value change is from the user input
|
|
72
|
-
* @internal
|
|
73
|
-
*/
|
|
74
|
-
this.isUserInput = false;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Ensures that the max is greater than the min and that the value
|
|
78
|
-
* is less than the max
|
|
79
|
-
* @param previous - the previous max value
|
|
80
|
-
* @param next - updated max value
|
|
81
|
-
*
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
|
-
maxChanged(previous, next) {
|
|
85
|
-
var _a;
|
|
86
|
-
this.max = Math.max(next, (_a = this.min) !== null && _a !== void 0 ? _a : next);
|
|
87
|
-
const min = Math.min(this.min, this.max);
|
|
88
|
-
if (this.min !== undefined && this.min !== min) {
|
|
89
|
-
this.min = min;
|
|
90
|
-
}
|
|
91
|
-
this.value = this.getValidValue(this.value);
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Ensures that the min is less than the max and that the value
|
|
95
|
-
* is greater than the min
|
|
96
|
-
* @param previous - previous min value
|
|
97
|
-
* @param next - updated min value
|
|
98
|
-
*
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
101
|
-
minChanged(previous, next) {
|
|
102
|
-
var _a;
|
|
103
|
-
this.min = Math.min(next, (_a = this.max) !== null && _a !== void 0 ? _a : next);
|
|
104
|
-
const max = Math.max(this.min, this.max);
|
|
105
|
-
if (this.max !== undefined && this.max !== max) {
|
|
106
|
-
this.max = max;
|
|
107
|
-
}
|
|
108
|
-
this.value = this.getValidValue(this.value);
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* The value property, typed as a number.
|
|
112
|
-
*
|
|
113
|
-
* @public
|
|
114
|
-
*/
|
|
115
|
-
get valueAsNumber() {
|
|
116
|
-
return parseFloat(super.value);
|
|
117
|
-
}
|
|
118
|
-
set valueAsNumber(next) {
|
|
119
|
-
this.value = next.toString();
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Validates that the value is a number between the min and max
|
|
123
|
-
* @param previous - previous stored value
|
|
124
|
-
* @param next - value being updated
|
|
125
|
-
* @param updateControl - should the text field be updated with value, defaults to true
|
|
126
|
-
* @internal
|
|
127
|
-
*/
|
|
128
|
-
valueChanged(previous, next) {
|
|
129
|
-
this.value = this.getValidValue(next);
|
|
130
|
-
if (next !== this.value) {
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
if (this.control && !this.isUserInput) {
|
|
134
|
-
this.control.value = this.value;
|
|
135
|
-
}
|
|
136
|
-
super.valueChanged(previous, this.value);
|
|
137
|
-
if (previous !== undefined && !this.isUserInput) {
|
|
138
|
-
this.$emit("input");
|
|
139
|
-
this.$emit("change");
|
|
140
|
-
}
|
|
141
|
-
this.isUserInput = false;
|
|
142
|
-
}
|
|
143
|
-
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
144
|
-
validate() {
|
|
145
|
-
super.validate(this.control);
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Sets the internal value to a valid number between the min and max properties
|
|
149
|
-
* @param value - user input
|
|
150
|
-
*
|
|
151
|
-
* @internal
|
|
152
|
-
*/
|
|
153
|
-
getValidValue(value) {
|
|
154
|
-
var _a, _b;
|
|
155
|
-
let validValue = parseFloat(parseFloat(value).toPrecision(12));
|
|
156
|
-
if (isNaN(validValue)) {
|
|
157
|
-
validValue = "";
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
validValue = Math.min(validValue, (_a = this.max) !== null && _a !== void 0 ? _a : validValue);
|
|
161
|
-
validValue = Math.max(validValue, (_b = this.min) !== null && _b !== void 0 ? _b : validValue).toString();
|
|
162
|
-
}
|
|
163
|
-
return validValue;
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Increments the value using the step value
|
|
167
|
-
*
|
|
168
|
-
* @public
|
|
169
|
-
*/
|
|
170
|
-
stepUp() {
|
|
171
|
-
const value = parseFloat(this.value);
|
|
172
|
-
const stepUpValue = !isNaN(value)
|
|
173
|
-
? value + this.step
|
|
174
|
-
: this.min > 0
|
|
175
|
-
? this.min
|
|
176
|
-
: this.max < 0
|
|
177
|
-
? this.max
|
|
178
|
-
: !this.min
|
|
179
|
-
? this.step
|
|
180
|
-
: 0;
|
|
181
|
-
this.value = stepUpValue.toString();
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Decrements the value using the step value
|
|
185
|
-
*
|
|
186
|
-
* @public
|
|
187
|
-
*/
|
|
188
|
-
stepDown() {
|
|
189
|
-
const value = parseFloat(this.value);
|
|
190
|
-
const stepDownValue = !isNaN(value)
|
|
191
|
-
? value - this.step
|
|
192
|
-
: this.min > 0
|
|
193
|
-
? this.min
|
|
194
|
-
: this.max < 0
|
|
195
|
-
? this.max
|
|
196
|
-
: !this.min
|
|
197
|
-
? 0 - this.step
|
|
198
|
-
: 0;
|
|
199
|
-
this.value = stepDownValue.toString();
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* Sets up the initial state of the number field
|
|
203
|
-
* @internal
|
|
204
|
-
*/
|
|
205
|
-
connectedCallback() {
|
|
206
|
-
super.connectedCallback();
|
|
207
|
-
this.proxy.setAttribute("type", "number");
|
|
208
|
-
this.validate();
|
|
209
|
-
this.control.value = this.value;
|
|
210
|
-
if (this.autofocus) {
|
|
211
|
-
DOM.queueUpdate(() => {
|
|
212
|
-
this.focus();
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Selects all the text in the number field
|
|
218
|
-
*
|
|
219
|
-
* @public
|
|
220
|
-
*/
|
|
221
|
-
select() {
|
|
222
|
-
this.control.select();
|
|
223
|
-
/**
|
|
224
|
-
* The select event does not permeate the shadow DOM boundary.
|
|
225
|
-
* This fn effectively proxies the select event,
|
|
226
|
-
* emitting a `select` event whenever the internal
|
|
227
|
-
* control emits a `select` event
|
|
228
|
-
*/
|
|
229
|
-
this.$emit("select");
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* Handles the internal control's `input` event
|
|
233
|
-
* @internal
|
|
234
|
-
*/
|
|
235
|
-
handleTextInput() {
|
|
236
|
-
this.control.value = this.control.value.replace(/[^0-9\-+e.]/g, "");
|
|
237
|
-
this.isUserInput = true;
|
|
238
|
-
this.value = this.control.value;
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Change event handler for inner control.
|
|
242
|
-
* @remarks
|
|
243
|
-
* "Change" events are not `composable` so they will not
|
|
244
|
-
* permeate the shadow DOM boundary. This fn effectively proxies
|
|
245
|
-
* the change event, emitting a `change` event whenever the internal
|
|
246
|
-
* control emits a `change` event
|
|
247
|
-
* @internal
|
|
248
|
-
*/
|
|
249
|
-
handleChange() {
|
|
250
|
-
this.$emit("change");
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Handles the internal control's `keydown` event
|
|
254
|
-
* @internal
|
|
255
|
-
*/
|
|
256
|
-
handleKeyDown(e) {
|
|
257
|
-
const key = e.key;
|
|
258
|
-
switch (key) {
|
|
259
|
-
case keyArrowUp:
|
|
260
|
-
this.stepUp();
|
|
261
|
-
return false;
|
|
262
|
-
case keyArrowDown:
|
|
263
|
-
this.stepDown();
|
|
264
|
-
return false;
|
|
265
|
-
}
|
|
266
|
-
return true;
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* Handles populating the input field with a validated value when
|
|
270
|
-
* leaving the input field.
|
|
271
|
-
* @internal
|
|
272
|
-
*/
|
|
273
|
-
handleBlur() {
|
|
274
|
-
this.control.value = this.value;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
__decorate([
|
|
278
|
-
attr({ attribute: "readonly", mode: "boolean" })
|
|
279
|
-
], NumberField$1.prototype, "readOnly", void 0);
|
|
280
|
-
__decorate([
|
|
281
|
-
attr({ mode: "boolean" })
|
|
282
|
-
], NumberField$1.prototype, "autofocus", void 0);
|
|
283
|
-
__decorate([
|
|
284
|
-
attr({ attribute: "hide-step", mode: "boolean" })
|
|
285
|
-
], NumberField$1.prototype, "hideStep", void 0);
|
|
286
|
-
__decorate([
|
|
287
|
-
attr
|
|
288
|
-
], NumberField$1.prototype, "placeholder", void 0);
|
|
289
|
-
__decorate([
|
|
290
|
-
attr
|
|
291
|
-
], NumberField$1.prototype, "list", void 0);
|
|
292
|
-
__decorate([
|
|
293
|
-
attr({ converter: nullableNumberConverter })
|
|
294
|
-
], NumberField$1.prototype, "maxlength", void 0);
|
|
295
|
-
__decorate([
|
|
296
|
-
attr({ converter: nullableNumberConverter })
|
|
297
|
-
], NumberField$1.prototype, "minlength", void 0);
|
|
298
|
-
__decorate([
|
|
299
|
-
attr({ converter: nullableNumberConverter })
|
|
300
|
-
], NumberField$1.prototype, "size", void 0);
|
|
301
|
-
__decorate([
|
|
302
|
-
attr({ converter: nullableNumberConverter })
|
|
303
|
-
], NumberField$1.prototype, "step", void 0);
|
|
304
|
-
__decorate([
|
|
305
|
-
attr({ converter: nullableNumberConverter })
|
|
306
|
-
], NumberField$1.prototype, "max", void 0);
|
|
307
|
-
__decorate([
|
|
308
|
-
attr({ converter: nullableNumberConverter })
|
|
309
|
-
], NumberField$1.prototype, "min", void 0);
|
|
310
|
-
__decorate([
|
|
311
|
-
observable
|
|
312
|
-
], NumberField$1.prototype, "defaultSlottedNodes", void 0);
|
|
313
|
-
applyMixins(NumberField$1, StartEnd, DelegatesARIATextbox);
|
|
314
|
-
|
|
315
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 17 May 2023 03:28:45 GMT\n */\n:host {\n display: inline-block;\n}\n\n.base {\n --_text-field-gutter: calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2))) / 2.5);\n --_text-field-icon-size: calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2))) / 2);\n display: inline-grid;\n width: 100%;\n gap: 4px;\n grid-template-columns: min-content 1fr max-content;\n}\n.base {\n --_appearance-color-text: var(--vvd-color-canvas-text);\n --_appearance-color-fill: var(--_connotation-color-backdrop);\n --_appearance-color-outline: var(--_connotation-color-intermediate);\n}\n.base.appearance-ghost {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base:where(:hover, .hover):where(:not(:disabled, .disabled, .readonly)) {\n --_appearance-color-text: var(--vvd-color-canvas-text);\n --_appearance-color-fill: var(--_connotation-color-backdrop);\n --_appearance-color-outline: var(--_connotation-color-firm);\n}\n.base:where(:hover, .hover):where(:not(:disabled, .disabled, .readonly)).appearance-ghost {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: transparent;\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: var(--vvd-color-neutral-200);\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n.base:where(:disabled, .disabled).appearance-ghost {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base:where(.readonly):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--vvd-color-canvas-text);\n --_appearance-color-fill: var(--vvd-color-neutral-100);\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n.base:where(.readonly):where(:not(:disabled, .disabled)).appearance-ghost {\n --_appearance-color-text: var(--vvd-color-neutral-600);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n --_connotation-color-backdrop: var(--vvd-color-success-50);\n --_connotation-color-intermediate: var(--vvd-color-success-500);\n --_connotation-color-firm: var(--vvd-color-success-600);\n --_connotation-color-faint: var(--vvd-color-success-50);\n --_connotation-color-soft: var(--vvd-color-success-100);\n}\n.base.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n --_connotation-color-backdrop: var(--vvd-color-alert-50);\n --_connotation-color-intermediate: var(--vvd-color-alert-500);\n --_connotation-color-firm: var(--vvd-color-alert-600);\n --_connotation-color-faint: var(--vvd-color-alert-50);\n --_connotation-color-soft: var(--vvd-color-alert-100);\n}\n.base:not(.connotation-success, .connotation-alert) {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-backdrop: var(--vvd-color-canvas);\n --_connotation-color-intermediate: var(--vvd-color-neutral-500);\n --_connotation-color-firm: var(--vvd-color-canvas-text);\n --_connotation-color-faint: var(--vvd-color-neutral-50);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\n}\n@supports (user-select: none) {\n .base {\n user-select: none;\n }\n}\n.base:not(.disabled) {\n --_low-ink-color: var(--vvd-color-neutral-600);\n}\n.base.disabled {\n --_low-ink-color: var(--_appearance-color-text);\n}\n\n.label {\n color: var(--vvd-color-canvas-text);\n contain: inline-size;\n font: var(--vvd-typography-base);\n grid-column: 1/4;\n grid-row: 1;\n}\n.char-count + .label {\n grid-column: 1/3;\n}\n\n.char-count {\n color: var(--_low-ink-color);\n font: var(--vvd-typography-base);\n grid-column: 3/4;\n}\n\n.fieldset {\n position: relative;\n display: flex;\n align-items: center;\n grid-column: 1/4;\n transition: color 0.2s;\n /* Shape */\n}\n.base > .fieldset {\n block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2)));\n}\n.base:not(.shape-pill) .fieldset {\n border-radius: 6px;\n}\n.base.shape-pill .fieldset {\n border-radius: 24px;\n}\n\n.control {\n width: 100%;\n border: 0 none;\n appearance: none; /* for box-shadow visibility on IOS */\n background-color: var(--_appearance-color-fill);\n block-size: 100%;\n border-radius: inherit;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n font: var(--vvd-typography-base);\n padding-block: 0;\n padding-inline-end: var(--_text-field-gutter);\n padding-inline-start: var(--_text-field-gutter);\n transition: box-shadow 0.2s, background-color 0.2s;\n}\n.control:disabled {\n cursor: not-allowed;\n opacity: 1; /* 2. correct opacity on iOS */\n -webkit-text-fill-color: var(--_appearance-color-text); /* 1. sets text fill to current `color` for safari */\n}\n.control::placeholder, .control:disabled::placeholder {\n opacity: 1; /* 2. correct opacity on iOS */\n -webkit-text-fill-color: var(--_low-ink-color); /* 1. sets text fill to current `color` for safari */\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n\n.icon {\n position: absolute;\n z-index: 1;\n color: var(--_low-ink-color);\n font-size: var(--_text-field-icon-size);\n inset-inline-start: var(--_text-field-gutter);\n line-height: 1;\n}\n.icon + .control {\n padding-inline-start: calc(var(--_text-field-icon-size) + var(--_text-field-gutter) * 2);\n}\n\n.focus-indicator {\n --focus-stroke-gap-color: transparent;\n pointer-events: none;\n}\n.fieldset:not(:focus-visible, :focus-within) > .focus-indicator {\n display: none;\n}\n\n.control {\n padding-inline-end: 70px;\n}\n.control::-webkit-outer-spin-button, .control::-webkit-inner-spin-button {\n appearance: none;\n}\n.control-buttons {\n position: absolute;\n z-index: 1;\n right: 3px;\n display: flex;\n}\n.readonly .control-buttons, .disabled .control-buttons {\n pointer-events: none;\n}\n.control-buttons .divider {\n margin-block: 8px;\n}\n.control-buttons > * {\n flex-shrink: 0;\n}\n\n.disabled .focus-indicator {\n display: none;\n pointer-events: none;\n}";
|
|
11
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Tue, 06 Jun 2023 10:38:32 GMT\n */\n.base {\n display: flex;\n align-items: flex-start;\n padding: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 20));\n background-color: var(--_appearance-color-fill);\n border-radius: 6px;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n column-gap: 16px;\n}\n.base.connotation-success {\n /* @cssprop [--vvd-note-success-primary=var(--vvd-color-success-500)] */\n --_connotation-color-primary: var(--vvd-note-success-primary, var(--vvd-color-success-500));\n /* @cssprop [--vvd-note-success-intermediate=var(--vvd-color-success-500)] */\n --_connotation-color-intermediate: var(--vvd-note-success-intermediate, var(--vvd-color-success-500));\n /* @cssprop [--vvd-note-success-backdrop=var(--vvd-color-success-50)] */\n --_connotation-color-backdrop: var(--vvd-note-success-backdrop, var(--vvd-color-success-50));\n}\n.base.connotation-information {\n /* @cssprop [--vvd-note-information-primary=var(--vvd-color-information-500)] */\n --_connotation-color-primary: var(--vvd-note-information-primary, var(--vvd-color-information-500));\n /* @cssprop [--vvd-note-information-intermediate=var(--vvd-color-information-500)] */\n --_connotation-color-intermediate: var(--vvd-note-information-intermediate, var(--vvd-color-information-500));\n /* @cssprop [--vvd-note-information-backdrop=var(--vvd-color-information-50)] */\n --_connotation-color-backdrop: var(--vvd-note-information-backdrop, var(--vvd-color-information-50));\n}\n.base.connotation-alert {\n /* @cssprop [--vvd-note-alert-primary=var(--vvd-color-alert-500)] */\n --_connotation-color-primary: var(--vvd-note-alert-primary, var(--vvd-color-alert-500));\n /* @cssprop [--vvd-note-alert-intermediate=var(--vvd-color-alert-500)] */\n --_connotation-color-intermediate: var(--vvd-note-alert-intermediate, var(--vvd-color-alert-500));\n /* @cssprop [--vvd-note-alert-backdrop=var(--vvd-color-alert-50)] */\n --_connotation-color-backdrop: var(--vvd-note-alert-backdrop, var(--vvd-color-alert-50));\n}\n.base.connotation-warning {\n /* @cssprop [--vvd-note-warning-primary=var(--vvd-color-warning-300)] */\n --_connotation-color-primary: var(--vvd-note-warning-primary, var(--vvd-color-warning-300));\n /* @cssprop [--vvd-note-warning-intermediate=var(--vvd-color-warning-300)] */\n --_connotation-color-intermediate: var(--vvd-note-warning-intermediate, var(--vvd-color-warning-300));\n /* @cssprop [--vvd-note-warning-backdrop=var(--vvd-color-warning-50)] */\n --_connotation-color-backdrop: var(--vvd-note-warning-backdrop, var(--vvd-color-warning-50));\n}\n.base:not(.connotation-success, .connotation-information, .connotation-alert, .connotation-warning) {\n /* @cssprop [--vvd-note-accent-primary=var(--vvd-color-canvas-text)] */\n --_connotation-color-primary: var(--vvd-note-accent-primary, var(--vvd-color-canvas-text));\n /* @cssprop [--vvd-note-accent-intermediate=var(--vvd-color-neutral-500)] */\n --_connotation-color-intermediate: var(--vvd-note-accent-intermediate, var(--vvd-color-neutral-500));\n /* @cssprop [--vvd-note-accent-backdrop=var(--vvd-color-canvas)] */\n --_connotation-color-backdrop: var(--vvd-note-accent-backdrop, var(--vvd-color-canvas));\n}\n.base {\n --_appearance-color-text: var(--vvd-color-canvas-text);\n --_appearance-color-fill: var(--_connotation-color-backdrop);\n --_appearance-color-outline: var(--_connotation-color-intermediate);\n}\n@supports (contain: content) {\n .base {\n contain: content;\n }\n}\n@supports not (contain: content) {\n .base {\n overflow: hidden;\n }\n}\n\n.icon {\n color: var(--_appearance-color-outline);\n font-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 16));\n}\n\n.text {\n display: flex;\n min-height: 24px;\n flex-direction: column;\n flex-grow: 1;\n align-items: flex-start;\n justify-content: center;\n gap: 4px;\n text-align: start;\n}\n.text .headline {\n font: var(--vvd-typography-base-bold);\n}\n.text .message {\n font: var(--vvd-typography-base);\n}";
|
|
316
12
|
|
|
317
|
-
|
|
318
|
-
__decorate([attr, __metadata("design:type", String)],
|
|
319
|
-
__decorate([attr, __metadata("design:type", String)],
|
|
320
|
-
|
|
321
|
-
NumberField = __decorate([formElements], NumberField);
|
|
322
|
-
applyMixins(NumberField, AffixIcon, FormElementCharCount, FormElementHelperText, FormElementSuccessText);
|
|
13
|
+
class Note extends FoundationElement {}
|
|
14
|
+
__decorate([attr, __metadata("design:type", String)], Note.prototype, "headline", void 0);
|
|
15
|
+
__decorate([attr, __metadata("design:type", String)], Note.prototype, "connotation", void 0);
|
|
16
|
+
applyMixins(Note, AffixIcon);
|
|
323
17
|
|
|
324
18
|
let _ = t => t,
|
|
325
19
|
_t,
|
|
326
20
|
_t2,
|
|
327
21
|
_t3;
|
|
328
|
-
const
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
appearance,
|
|
337
|
-
shape,
|
|
338
|
-
label,
|
|
339
|
-
successText
|
|
340
|
-
}) => classNames(['error connotation-alert', Boolean(errorValidationMessage)], ['disabled', disabled], ['has-value', Boolean(value)], ['readonly', readOnly], ['placeholder', Boolean(placeholder)], [`appearance-${appearance}`, Boolean(appearance)], [`shape-${shape}`, Boolean(shape)], ['no-label', !label], ['success connotation-success', !!successText]);
|
|
341
|
-
function renderLabel() {
|
|
342
|
-
return html(_t || (_t = _`
|
|
343
|
-
<label for="control" class="label">
|
|
344
|
-
${0}
|
|
345
|
-
</label>`), x => x.label);
|
|
346
|
-
}
|
|
347
|
-
function adjustValueByStep(numberField, direction = ADD) {
|
|
348
|
-
numberField.value = (Number(numberField.value) + direction * (numberField.step ? numberField.step : 1)).toString();
|
|
349
|
-
}
|
|
350
|
-
function setControlButtonShape(numberField) {
|
|
351
|
-
return numberField.shape === Shape.Pill ? Shape.Pill : null;
|
|
352
|
-
}
|
|
353
|
-
function getTabIndex(numberField) {
|
|
354
|
-
return numberField.disabled || numberField.readOnly ? '-1' : null;
|
|
355
|
-
}
|
|
356
|
-
function numberControlButtons(context) {
|
|
357
|
-
const buttonTag = context.tagFor(Button);
|
|
358
|
-
const dividerTag = context.tagFor(Divider);
|
|
22
|
+
const getClasses = ({
|
|
23
|
+
connotation
|
|
24
|
+
}) => classNames('base', `connotation-${connotation}`);
|
|
25
|
+
function getHeaderTemplate() {
|
|
26
|
+
return html(_t || (_t = _`<div class="headline">${0}</div>`), x => x.headline);
|
|
27
|
+
}
|
|
28
|
+
const NoteTemplate = context => {
|
|
29
|
+
const iconTag = context.tagFor(Icon);
|
|
359
30
|
return html(_t2 || (_t2 = _`
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
tabindex="${0}"
|
|
367
|
-
@click="${0}"></${0}>
|
|
368
|
-
<${0} class="divider" orientation="vertical"></${0}>
|
|
369
|
-
<${0} id="add" icon="plus-line"
|
|
370
|
-
aria-controls="control"
|
|
371
|
-
shape="${0}"
|
|
372
|
-
size="condensed"
|
|
373
|
-
tabindex="${0}"
|
|
374
|
-
@click="${0}"></${0}>
|
|
375
|
-
</div>
|
|
376
|
-
`), x => x.disabled || x.readOnly, buttonTag, setControlButtonShape, getTabIndex, x => adjustValueByStep(x, SUBTRACT), buttonTag, dividerTag, dividerTag, buttonTag, setControlButtonShape, getTabIndex, x => adjustValueByStep(x), buttonTag);
|
|
377
|
-
}
|
|
378
|
-
const NumberFieldTemplate = context => {
|
|
379
|
-
const focusTemplate = focusTemplateFactory(context);
|
|
380
|
-
return html(_t3 || (_t3 = _`
|
|
381
|
-
<div class="base ${0}">
|
|
382
|
-
${0}
|
|
383
|
-
<div class="fieldset">
|
|
384
|
-
<input class="control"
|
|
385
|
-
id="control"
|
|
386
|
-
@input="${0}"
|
|
387
|
-
@change="${0}"
|
|
388
|
-
?autofocus="${0}"
|
|
389
|
-
?disabled="${0}"
|
|
390
|
-
list="${0}"
|
|
391
|
-
step="${0}"
|
|
392
|
-
max="${0}"
|
|
393
|
-
min="${0}"
|
|
394
|
-
maxlength="${0}"
|
|
395
|
-
minlength="${0}"
|
|
396
|
-
placeholder="${0}"
|
|
397
|
-
?readonly="${0}"
|
|
398
|
-
?required="${0}"
|
|
399
|
-
size="${0}"
|
|
400
|
-
autocomplete="${0}"
|
|
401
|
-
name="${0}"
|
|
402
|
-
?spellcheck="${0}"
|
|
403
|
-
:value="${0}"
|
|
404
|
-
type="text"
|
|
405
|
-
aria-atomic="${0}"
|
|
406
|
-
aria-busy="${0}"
|
|
407
|
-
aria-controls="${0}"
|
|
408
|
-
aria-current="${0}"
|
|
409
|
-
aria-describedby="${0}"
|
|
410
|
-
aria-details="${0}"
|
|
411
|
-
aria-disabled="${0}"
|
|
412
|
-
aria-errormessage="${0}"
|
|
413
|
-
aria-flowto="${0}"
|
|
414
|
-
aria-haspopup="${0}"
|
|
415
|
-
aria-hidden="${0}"
|
|
416
|
-
aria-invalid="${0}"
|
|
417
|
-
aria-keyshortcuts="${0}"
|
|
418
|
-
aria-label="${0}"
|
|
419
|
-
aria-labelledby="${0}"
|
|
420
|
-
aria-live="${0}"
|
|
421
|
-
aria-owns="${0}"
|
|
422
|
-
aria-relevant="${0}"
|
|
423
|
-
aria-roledescription="${0}"
|
|
424
|
-
${0}
|
|
425
|
-
/>
|
|
426
|
-
${0}
|
|
427
|
-
${0}
|
|
31
|
+
<div class="${0}">
|
|
32
|
+
${0}
|
|
33
|
+
<div class="text">
|
|
34
|
+
${0}
|
|
35
|
+
<slot class="message"></slot>
|
|
36
|
+
</div>
|
|
428
37
|
</div>
|
|
429
|
-
|
|
430
|
-
${0}
|
|
431
|
-
${0}
|
|
432
|
-
</div>
|
|
433
|
-
`), getStateClasses, when(x => x.label, renderLabel()), x => x.handleTextInput(), x => x.handleChange(), x => x.autofocus, x => x.disabled, x => x.list, x => x.step ? x.step : null, x => x.max, x => x.min, x => x.maxlength, x => x.minlength, x => x.placeholder, x => x.readOnly, x => x.required, x => x.size, x => x.autoComplete, x => x.name, x => x.spellcheck, x => x.value, x => x.ariaAtomic, x => x.ariaBusy, x => x.ariaControls, x => x.ariaCurrent, x => x.ariaDescribedby, x => x.ariaDetails, x => x.ariaDisabled, x => x.ariaErrormessage, x => x.ariaFlowto, x => x.ariaHaspopup, x => x.ariaHidden, x => x.ariaInvalid, x => x.ariaKeyshortcuts, x => x.ariaLabel, x => x.ariaLabelledby, x => x.ariaLive, x => x.ariaOwns, x => x.ariaRelevant, x => x.ariaRoledescription, ref('control'), () => focusTemplate, () => numberControlButtons(context), when(x => {
|
|
434
|
-
var _a;
|
|
435
|
-
return !x.successText && !x.errorValidationMessage && ((_a = x.helperText) === null || _a === void 0 ? void 0 : _a.length);
|
|
436
|
-
}, getFeedbackTemplate('helper', context)), when(x => !x.successText && x.errorValidationMessage, getFeedbackTemplate('error', context)), when(x => x.successText, getFeedbackTemplate('success', context)));
|
|
38
|
+
`), getClasses, when(x => x.icon, html(_t3 || (_t3 = _`<${0} class="icon" name="${0}"></${0}>`), iconTag, x => x.icon, iconTag)), when(x => x.headline, getHeaderTemplate()));
|
|
437
39
|
};
|
|
438
40
|
|
|
439
|
-
const
|
|
440
|
-
baseName: '
|
|
441
|
-
template:
|
|
442
|
-
styles: css_248z
|
|
443
|
-
shadowOptions: {
|
|
444
|
-
delegatesFocus: true
|
|
445
|
-
}
|
|
41
|
+
const noteDefinition = Note.compose({
|
|
42
|
+
baseName: 'note',
|
|
43
|
+
template: NoteTemplate,
|
|
44
|
+
styles: css_248z
|
|
446
45
|
});
|
|
447
|
-
const
|
|
448
|
-
const
|
|
46
|
+
const noteRegistries = [noteDefinition(), ...iconRegistries];
|
|
47
|
+
const registerNote = registerFactory(noteRegistries);
|
|
449
48
|
|
|
450
|
-
export {
|
|
49
|
+
export { noteRegistries as a, noteDefinition as n, registerNote as r };
|