@vonage/vivid 3.36.0 → 3.38.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 +3 -4
- package/accordion-item/index.js +3 -2
- package/alert/index.js +5 -4
- package/avatar/index.js +1 -1
- package/badge/index.js +2 -1
- package/banner/index.js +4 -3
- package/breadcrumb/index.js +0 -1
- package/breadcrumb-item/index.js +3 -2
- package/button/index.js +4 -3
- package/card/index.js +2 -3
- package/checkbox/index.js +3 -4
- package/combobox/index.js +7 -8
- package/custom-elements.json +386 -758
- package/data-grid/index.js +2 -3
- package/date-picker/index.js +10 -9
- package/date-range-picker/index.js +36 -0
- package/dialog/index.js +6 -7
- package/divider/index.js +1 -1
- package/elevation/index.js +1 -1
- package/empty-state/index.js +2 -3
- package/fab/index.js +4 -3
- package/file-picker/index.js +6 -4
- package/focus/index.js +1 -1
- package/header/index.js +2 -2
- package/icon/index.js +1 -1
- package/index.js +44 -42
- package/layout/index.js +1 -1
- package/lib/components.d.ts +1 -0
- package/lib/date-picker/date-picker.d.ts +5 -15
- package/lib/date-range-picker/date-range-picker.d.ts +16 -0
- package/lib/date-range-picker/definition.d.ts +3 -0
- package/lib/file-picker/file-picker.d.ts +8 -5
- package/lib/file-picker/file-picker.form-associated.d.ts +10 -0
- package/lib/file-picker/locale.d.ts +6 -0
- package/lib/number-field/number-field.d.ts +6 -2
- package/lib/tag-group/tag-group.d.ts +1 -0
- package/lib/tree-item/tree-item.template.d.ts +1 -1
- package/listbox/index.js +4 -5
- package/locales/en-GB.js +27 -3
- package/locales/en-US.js +27 -3
- package/locales/ja-JP.js +25 -1
- package/locales/zh-CN.js +25 -1
- package/menu/index.js +8 -9
- package/menu-item/index.js +4 -5
- package/nav/index.js +1 -1
- package/nav-disclosure/index.js +4 -3
- package/nav-item/index.js +4 -3
- package/note/index.js +3 -2
- package/number-field/index.js +6 -5
- package/option/index.js +4 -3
- package/package.json +1 -1
- package/pagination/index.js +5 -5
- package/popup/index.js +6 -5
- package/progress/index.js +1 -1
- package/progress-ring/index.js +1 -1
- package/radio/index.js +2 -2
- package/radio-group/index.js +2 -3
- package/select/index.js +8 -9
- package/shared/affix.js +5 -1
- package/shared/apply-mixins.js +1 -1
- package/shared/children.js +2 -2
- package/shared/date-picker/calendar/dateRange.d.ts +5 -0
- package/shared/date-picker/calendar/presentationDateRange.d.ts +5 -0
- package/shared/date-picker/date-picker-base.d.ts +20 -0
- package/shared/date-picker/date-picker-base.form-associated.d.ts +10 -0
- package/shared/date-picker/date-picker-base.template.d.ts +4 -0
- package/{lib → shared}/date-picker/locale.d.ts +6 -0
- package/shared/definition.js +5 -5
- package/shared/definition10.js +9 -14
- package/shared/definition11.js +1 -1
- package/shared/definition12.js +1 -1
- package/shared/definition13.js +3 -3
- package/shared/definition14.js +3 -3
- package/shared/definition15.js +5 -5
- package/shared/definition16.js +4 -5
- package/shared/definition17.js +59 -6016
- package/shared/definition18.js +350 -213
- package/shared/definition19.js +251 -67
- package/shared/definition2.js +2 -3
- package/shared/definition20.js +66 -58
- package/shared/definition21.js +43 -83
- package/shared/definition22.js +75 -2298
- package/shared/definition23.js +2361 -45
- package/shared/definition24.js +63 -27
- package/shared/definition25.js +24 -51
- package/shared/definition26.js +36 -806
- package/shared/definition27.js +820 -49
- package/shared/definition28.js +52 -89
- package/shared/definition29.js +88 -24
- package/shared/definition3.js +1 -1
- package/shared/definition30.js +25 -12
- package/shared/definition31.js +12 -53
- package/shared/definition32.js +29 -441
- package/shared/definition33.js +427 -197
- package/shared/definition34.js +260 -174
- package/shared/definition35.js +187 -69
- package/shared/definition36.js +68 -55
- package/shared/definition37.js +61 -422
- package/shared/definition38.js +435 -35
- package/shared/definition39.js +30 -679
- package/shared/definition4.js +3 -3
- package/shared/definition40.js +661 -77
- package/shared/definition41.js +77 -557
- package/shared/definition42.js +559 -106
- package/shared/definition43.js +105 -136
- package/shared/definition44.js +153 -17
- package/shared/definition45.js +16 -79
- package/shared/definition46.js +53 -475
- package/shared/definition47.js +506 -20
- package/shared/definition48.js +22 -121
- package/shared/definition49.js +115 -262
- package/shared/definition5.js +2 -2
- package/shared/definition50.js +248 -120
- package/shared/definition51.js +139 -123
- package/shared/definition52.js +84 -74
- package/shared/definition53.js +114 -70
- package/shared/definition54.js +81 -292
- package/shared/definition55.js +302 -13
- package/shared/definition56.js +11 -41
- package/shared/definition57.js +20 -154
- package/shared/definition58.js +181 -0
- package/shared/definition6.js +5 -5
- package/shared/definition7.js +4 -4
- package/shared/definition8.js +3 -3
- package/shared/definition9.js +1 -2
- package/shared/index.js +1 -1
- package/shared/index2.js +1 -1
- package/shared/listbox.js +1 -1
- package/shared/localization/Locale.d.ts +3 -1
- package/shared/localized.js +9 -0
- package/shared/patterns/affix.d.ts +3 -1
- package/shared/presentationDate.js +6133 -0
- package/shared/ref.js +1 -1
- package/shared/slotted.js +73 -3
- package/shared/text-anchor.template.js +4 -4
- package/shared/text-field.js +1 -1
- package/side-drawer/index.js +1 -1
- package/slider/index.js +2 -2
- package/split-button/index.js +4 -3
- package/style.css +265 -197
- package/styles/core/all.css +44 -13
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +44 -13
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/switch/index.js +4 -3
- package/tab/index.js +4 -3
- package/tab-panel/index.js +1 -1
- package/tabs/index.js +6 -7
- package/tag/index.js +4 -3
- package/tag-group/index.js +1 -1
- package/text-anchor/index.js +1 -0
- package/text-area/index.js +4 -3
- package/text-field/index.js +4 -5
- package/toggletip/index.js +7 -6
- package/tooltip/index.js +7 -6
- package/tree-item/index.js +4 -5
- package/tree-view/index.js +1 -2
- package/vivid.api.json +105 -0
- package/lib/date-picker/date-picker.template.d.ts +0 -4
- package/shared/node-observation.js +0 -74
- /package/{lib → shared}/date-picker/calendar/calendarGrid.d.ts +0 -0
- /package/{lib → shared}/date-picker/calendar/dateStr.d.ts +0 -0
- /package/{lib → shared}/date-picker/calendar/month.d.ts +0 -0
- /package/{lib → shared}/date-picker/calendar/monthPickerGrid.d.ts +0 -0
- /package/{lib → shared}/date-picker/calendar/presentationDate.d.ts +0 -0
- /package/{lib → shared}/date-picker/calendar/year.d.ts +0 -0
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { O as Observable, e as emptyArray } from './index.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Creates a function that can be used to filter a Node array, selecting only elements.
|
|
5
|
-
* @param selector - An optional selector to restrict the filter to.
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
function elements(selector) {
|
|
9
|
-
if (selector) {
|
|
10
|
-
return function (value, index, array) {
|
|
11
|
-
return value.nodeType === 1 && value.matches(selector);
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
return function (value, index, array) {
|
|
15
|
-
return value.nodeType === 1;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* A base class for node observation.
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
class NodeObservationBehavior {
|
|
23
|
-
/**
|
|
24
|
-
* Creates an instance of NodeObservationBehavior.
|
|
25
|
-
* @param target - The target to assign the nodes property on.
|
|
26
|
-
* @param options - The options to use in configuring node observation.
|
|
27
|
-
*/
|
|
28
|
-
constructor(target, options) {
|
|
29
|
-
this.target = target;
|
|
30
|
-
this.options = options;
|
|
31
|
-
this.source = null;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Bind this behavior to the source.
|
|
35
|
-
* @param source - The source to bind to.
|
|
36
|
-
* @param context - The execution context that the binding is operating within.
|
|
37
|
-
*/
|
|
38
|
-
bind(source) {
|
|
39
|
-
const name = this.options.property;
|
|
40
|
-
this.shouldUpdate = Observable.getAccessors(source).some((x) => x.name === name);
|
|
41
|
-
this.source = source;
|
|
42
|
-
this.updateTarget(this.computeNodes());
|
|
43
|
-
if (this.shouldUpdate) {
|
|
44
|
-
this.observe();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Unbinds this behavior from the source.
|
|
49
|
-
* @param source - The source to unbind from.
|
|
50
|
-
*/
|
|
51
|
-
unbind() {
|
|
52
|
-
this.updateTarget(emptyArray);
|
|
53
|
-
this.source = null;
|
|
54
|
-
if (this.shouldUpdate) {
|
|
55
|
-
this.disconnect();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
/** @internal */
|
|
59
|
-
handleEvent() {
|
|
60
|
-
this.updateTarget(this.computeNodes());
|
|
61
|
-
}
|
|
62
|
-
computeNodes() {
|
|
63
|
-
let nodes = this.getNodes();
|
|
64
|
-
if (this.options.filter !== void 0) {
|
|
65
|
-
nodes = nodes.filter(this.options.filter);
|
|
66
|
-
}
|
|
67
|
-
return nodes;
|
|
68
|
-
}
|
|
69
|
-
updateTarget(value) {
|
|
70
|
-
this.source[this.options.property] = value;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export { NodeObservationBehavior as N, elements as e };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|