@vonage/vivid 4.14.0 → 4.14.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/custom-elements.json +130 -23
- package/lib/elevation/elevation.d.ts +1 -0
- package/lib/radio/radio.form-associated.d.ts +2 -0
- package/lib/tabs/tabs.d.ts +0 -5
- package/lib/text-anchor/text-anchor.d.ts +2 -2
- package/lib/tree-item/tree-item.d.ts +2 -2
- package/lib/tree-view/tree-view.d.ts +2 -2
- package/listbox/index.cjs +4 -4
- package/listbox/index.js +1 -1
- package/package.json +1 -1
- package/shared/affix.cjs +8 -8
- package/shared/affix.js +1 -1
- package/shared/anchor.cjs +10 -10
- package/shared/anchor.js +1 -1
- package/shared/anchored.cjs +6 -6
- package/shared/anchored.js +1 -1
- package/shared/apply-mixins.cjs +3 -3
- package/shared/apply-mixins.js +1 -1
- package/shared/apply-mixins2.cjs +3 -3
- package/shared/apply-mixins2.js +1 -1
- package/shared/applyMixinsWithObservables.cjs +3 -3
- package/shared/applyMixinsWithObservables.js +1 -1
- package/shared/aria-global.cjs +20 -20
- package/shared/aria-global.js +1 -1
- package/shared/aria-global2.cjs +40 -40
- package/shared/aria-global2.js +2 -2
- package/shared/base-progress.cjs +7 -8
- package/shared/base-progress.js +2 -3
- package/shared/breadcrumb-item.cjs +2 -3
- package/shared/breadcrumb-item.js +1 -2
- package/shared/button.cjs +10 -11
- package/shared/button.js +1 -2
- package/shared/calendar-event.cjs +7 -8
- package/shared/calendar-event.js +1 -2
- package/shared/children.cjs +2 -2
- package/shared/children.js +1 -1
- package/shared/definition.cjs +14 -15
- package/shared/definition.js +1 -2
- package/shared/definition10.cjs +5 -6
- package/shared/definition10.js +1 -2
- package/shared/definition11.cjs +29 -29
- package/shared/definition11.js +1 -1
- package/shared/definition12.cjs +6 -6
- package/shared/definition12.js +1 -1
- package/shared/definition13.cjs +13 -14
- package/shared/definition13.js +1 -2
- package/shared/definition14.cjs +23 -24
- package/shared/definition14.js +1 -2
- package/shared/definition15.cjs +15 -16
- package/shared/definition15.js +1 -2
- package/shared/definition16.cjs +20 -19
- package/shared/definition16.js +3 -2
- package/shared/definition17.cjs +53 -54
- package/shared/definition17.js +1 -2
- package/shared/definition18.cjs +4 -4
- package/shared/definition18.js +1 -1
- package/shared/definition19.cjs +12 -12
- package/shared/definition19.js +1 -1
- package/shared/definition2.cjs +6 -7
- package/shared/definition2.js +1 -2
- package/shared/definition20.cjs +20 -21
- package/shared/definition20.js +1 -2
- package/shared/definition21.cjs +27 -28
- package/shared/definition21.js +3 -4
- package/shared/definition22.cjs +5 -6
- package/shared/definition22.js +1 -2
- package/shared/definition23.cjs +10 -11
- package/shared/definition23.js +1 -2
- package/shared/definition24.cjs +8 -8
- package/shared/definition24.js +2 -2
- package/shared/definition25.cjs +13 -14
- package/shared/definition25.js +1 -2
- package/shared/definition26.cjs +5 -6
- package/shared/definition26.js +1 -2
- package/shared/definition27.cjs +11 -12
- package/shared/definition27.js +1 -2
- package/shared/definition28.cjs +9 -10
- package/shared/definition28.js +2 -3
- package/shared/definition29.cjs +44 -45
- package/shared/definition29.js +2 -3
- package/shared/definition3.cjs +8 -9
- package/shared/definition3.js +1 -2
- package/shared/definition30.cjs +9 -10
- package/shared/definition30.js +1 -2
- package/shared/definition31.cjs +5 -5
- package/shared/definition31.js +1 -1
- package/shared/definition32.cjs +3 -4
- package/shared/definition32.js +1 -2
- package/shared/definition33.cjs +6 -7
- package/shared/definition33.js +1 -2
- package/shared/definition34.cjs +50 -52
- package/shared/definition34.js +2 -4
- package/shared/definition35.cjs +24 -25
- package/shared/definition35.js +1 -2
- package/shared/definition36.cjs +15 -16
- package/shared/definition36.js +1 -2
- package/shared/definition37.cjs +9 -9
- package/shared/definition37.js +1 -1
- package/shared/definition38.cjs +10 -10
- package/shared/definition38.js +1 -1
- package/shared/definition39.cjs +12 -13
- package/shared/definition39.js +1 -2
- package/shared/definition4.cjs +19 -20
- package/shared/definition4.js +1 -2
- package/shared/definition40.cjs +61 -13
- package/shared/definition40.js +52 -4
- package/shared/definition41.cjs +29 -30
- package/shared/definition41.js +1 -2
- package/shared/definition42.cjs +53 -54
- package/shared/definition42.js +2 -3
- package/shared/definition43.cjs +31 -31
- package/shared/definition43.js +1 -1
- package/shared/definition44.cjs +14 -15
- package/shared/definition44.js +1 -2
- package/shared/definition45.cjs +9 -10
- package/shared/definition45.js +1 -2
- package/shared/definition46.cjs +26 -27
- package/shared/definition46.js +1 -2
- package/shared/definition47.cjs +17 -18
- package/shared/definition47.js +1 -2
- package/shared/definition48.cjs +9 -10
- package/shared/definition48.js +1 -2
- package/shared/definition49.cjs +3 -4
- package/shared/definition49.js +1 -2
- package/shared/definition5.cjs +30 -31
- package/shared/definition5.js +1 -2
- package/shared/definition50.cjs +12 -13
- package/shared/definition50.js +1 -2
- package/shared/definition51.cjs +87 -72
- package/shared/definition51.js +56 -41
- package/shared/definition52.cjs +4 -5
- package/shared/definition52.js +1 -2
- package/shared/definition53.cjs +15 -16
- package/shared/definition53.js +1 -2
- package/shared/definition54.cjs +20 -21
- package/shared/definition54.js +1 -2
- package/shared/definition55.cjs +5 -5
- package/shared/definition55.js +1 -1
- package/shared/definition56.cjs +18 -19
- package/shared/definition56.js +1 -2
- package/shared/definition57.cjs +10 -11
- package/shared/definition57.js +1 -2
- package/shared/definition58.cjs +7 -8
- package/shared/definition58.js +1 -2
- package/shared/definition59.cjs +16 -17
- package/shared/definition59.js +2 -3
- package/shared/definition6.cjs +11 -12
- package/shared/definition6.js +1 -2
- package/shared/definition60.cjs +9 -10
- package/shared/definition60.js +2 -3
- package/shared/definition61.cjs +27 -30
- package/shared/definition61.js +17 -20
- package/shared/definition62.cjs +12 -9
- package/shared/definition62.js +8 -5
- package/shared/definition63.cjs +13 -14
- package/shared/definition63.js +1 -2
- package/shared/definition7.cjs +9 -10
- package/shared/definition7.js +1 -2
- package/shared/definition8.cjs +14 -15
- package/shared/definition8.js +1 -2
- package/shared/definition9.cjs +7 -7
- package/shared/definition9.js +1 -1
- package/shared/form-associated.cjs +14 -14
- package/shared/form-associated.js +1 -1
- package/shared/form-associated2.cjs +10 -10
- package/shared/form-associated2.js +1 -1
- package/shared/form-elements.cjs +13 -13
- package/shared/form-elements.js +1 -1
- package/shared/foundation/progress/base-progress.d.ts +2 -2
- package/shared/key-codes2.cjs +1416 -3
- package/shared/key-codes2.js +1413 -2
- package/shared/listbox.cjs +12 -13
- package/shared/listbox.js +1 -2
- package/shared/listbox2.cjs +59 -60
- package/shared/listbox2.js +2 -3
- package/shared/localized.cjs +2 -2
- package/shared/localized.js +1 -1
- package/shared/presentationDate.cjs +42 -43
- package/shared/presentationDate.js +1 -2
- package/shared/ref.cjs +2 -2
- package/shared/ref.js +1 -1
- package/shared/repeat.cjs +15 -15
- package/shared/repeat.js +1 -1
- package/shared/slider.template.cjs +4 -4
- package/shared/slider.template.js +1 -1
- package/shared/slotted.cjs +4 -4
- package/shared/slotted.js +1 -1
- package/shared/text-anchor.cjs +5 -6
- package/shared/text-anchor.js +2 -3
- package/shared/text-anchor.template.cjs +2 -2
- package/shared/text-anchor.template.js +1 -1
- package/shared/text-field2.cjs +23 -24
- package/shared/text-field2.js +1 -2
- package/shared/vivid-element.cjs +2610 -2
- package/shared/vivid-element.js +2591 -2
- package/styles/core/all.css +40 -1
- package/styles/core/theme.css +40 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +25 -4
- package/styles/tokens/theme-light.css +25 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/text-anchor/index.cjs +3 -3
- package/text-anchor/index.js +1 -1
- package/shared/defineVividComponent.cjs +0 -2612
- package/shared/defineVividComponent.js +0 -2592
- package/shared/foundation-element.cjs +0 -1417
- package/shared/foundation-element.js +0 -1414
package/shared/definition16.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const definition$1 = require('./definition27.cjs');
|
|
|
4
4
|
const definition = require('./definition63.cjs');
|
|
5
5
|
const definition$2 = require('./definition35.cjs');
|
|
6
6
|
const textField = require('./text-field.cjs');
|
|
7
|
-
const
|
|
7
|
+
const vividElement = require('./vivid-element.cjs');
|
|
8
8
|
const listbox = require('./listbox.cjs');
|
|
9
9
|
const formAssociated = require('./form-associated.cjs');
|
|
10
10
|
const affix = require('./affix.cjs');
|
|
@@ -114,7 +114,7 @@ let Combobox = class extends FormAssociatedCombobox {
|
|
|
114
114
|
this.ariaControls = this.listboxId;
|
|
115
115
|
this.ariaExpanded = "true";
|
|
116
116
|
this.focusAndScrollOptionIntoView();
|
|
117
|
-
|
|
117
|
+
vividElement.DOM.queueUpdate(() => this.focus());
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
120
|
this.ariaControls = "";
|
|
@@ -128,12 +128,12 @@ let Combobox = class extends FormAssociatedCombobox {
|
|
|
128
128
|
* Overrides `Listbox.options`.
|
|
129
129
|
*/
|
|
130
130
|
get options() {
|
|
131
|
-
|
|
131
|
+
vividElement.Observable.track(this, "options");
|
|
132
132
|
return this.filteredOptions.length ? this.filteredOptions : this._options;
|
|
133
133
|
}
|
|
134
134
|
set options(value) {
|
|
135
135
|
this._options = value;
|
|
136
|
-
|
|
136
|
+
vividElement.Observable.notify(this, "options");
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
139
139
|
* Updates the placeholder on the proxy element.
|
|
@@ -150,7 +150,7 @@ let Combobox = class extends FormAssociatedCombobox {
|
|
|
150
150
|
* @public
|
|
151
151
|
*/
|
|
152
152
|
get value() {
|
|
153
|
-
|
|
153
|
+
vividElement.Observable.track(this, "value");
|
|
154
154
|
return this._value;
|
|
155
155
|
}
|
|
156
156
|
set value(next) {
|
|
@@ -167,7 +167,7 @@ let Combobox = class extends FormAssociatedCombobox {
|
|
|
167
167
|
if (prev !== next) {
|
|
168
168
|
this._value = next;
|
|
169
169
|
super.valueChanged(prev, next);
|
|
170
|
-
|
|
170
|
+
vividElement.Observable.notify(this, "value");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
@@ -504,26 +504,26 @@ let Combobox = class extends FormAssociatedCombobox {
|
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
__decorateClass([
|
|
507
|
-
|
|
507
|
+
vividElement.attr({ attribute: "autocomplete", mode: "fromView" })
|
|
508
508
|
], Combobox.prototype, "autocomplete", 2);
|
|
509
509
|
__decorateClass([
|
|
510
|
-
|
|
510
|
+
vividElement.attr
|
|
511
511
|
], Combobox.prototype, "appearance", 2);
|
|
512
512
|
__decorateClass([
|
|
513
|
-
|
|
513
|
+
vividElement.attr
|
|
514
514
|
], Combobox.prototype, "placement", 2);
|
|
515
515
|
__decorateClass([
|
|
516
|
-
|
|
516
|
+
vividElement.attr({ mode: "boolean", attribute: "fixed-dropdown" })
|
|
517
517
|
], Combobox.prototype, "fixedDropdown", 2);
|
|
518
518
|
__decorateClass([
|
|
519
|
-
|
|
519
|
+
vividElement.observable
|
|
520
520
|
], Combobox.prototype, "maxHeight", 2);
|
|
521
521
|
__decorateClass([
|
|
522
|
-
|
|
522
|
+
vividElement.attr({ attribute: "open", mode: "boolean" })
|
|
523
523
|
], Combobox.prototype, "open", 2);
|
|
524
524
|
// @ts-expect-error Type is incorrectly non-optional
|
|
525
525
|
__decorateClass([
|
|
526
|
-
|
|
526
|
+
vividElement.attr
|
|
527
527
|
], Combobox.prototype, "placeholder", 2);
|
|
528
528
|
Combobox = __decorateClass([
|
|
529
529
|
formElements.formElements
|
|
@@ -531,7 +531,7 @@ Combobox = __decorateClass([
|
|
|
531
531
|
applyMixins.applyMixins(Combobox, affix.AffixIcon);
|
|
532
532
|
|
|
533
533
|
function renderLabel() {
|
|
534
|
-
return
|
|
534
|
+
return vividElement.html` <label for="control" class="label">
|
|
535
535
|
${(x) => x.label}
|
|
536
536
|
</label>`;
|
|
537
537
|
}
|
|
@@ -554,14 +554,15 @@ function setFixedDropdownVarWidth(x) {
|
|
|
554
554
|
}
|
|
555
555
|
function renderInput(context) {
|
|
556
556
|
const affixIconTemplate = affix.affixIconTemplateFactory(context);
|
|
557
|
-
return
|
|
557
|
+
return vividElement.html` <div class="${getStateClasses}" ${ref.ref("_anchor")}>
|
|
558
558
|
${when.when((x) => x.label, renderLabel())}
|
|
559
559
|
<div class="fieldset">
|
|
560
560
|
<input
|
|
561
561
|
id="control"
|
|
562
|
+
autocomplete="off"
|
|
562
563
|
class="control"
|
|
563
564
|
aria-activedescendant="${(x) => x.open ? x.ariaActiveDescendant : null}"
|
|
564
|
-
aria-autocomplete="${(x) => x.
|
|
565
|
+
aria-autocomplete="${(x) => x.autocomplete}"
|
|
565
566
|
aria-controls="${(x) => x.listboxId}"
|
|
566
567
|
aria-disabled="${(x) => x.ariaDisabled}"
|
|
567
568
|
aria-expanded="${(x) => x.open}"
|
|
@@ -580,7 +581,7 @@ function renderInput(context) {
|
|
|
580
581
|
}
|
|
581
582
|
const comboboxTemplate = (context) => {
|
|
582
583
|
const popupTag = context.tagFor(definition.Popup);
|
|
583
|
-
return
|
|
584
|
+
return vividElement.html`
|
|
584
585
|
<template
|
|
585
586
|
aria-disabled="${(x) => x.ariaDisabled}"
|
|
586
587
|
autocomplete="${(x) => x.autocomplete}"
|
|
@@ -616,7 +617,7 @@ const comboboxTemplate = (context) => {
|
|
|
616
617
|
`;
|
|
617
618
|
};
|
|
618
619
|
|
|
619
|
-
const comboboxDefinition =
|
|
620
|
+
const comboboxDefinition = vividElement.defineVividComponent(
|
|
620
621
|
"combobox",
|
|
621
622
|
Combobox,
|
|
622
623
|
comboboxTemplate,
|
|
@@ -628,7 +629,7 @@ const comboboxDefinition = defineVividComponent.defineVividComponent(
|
|
|
628
629
|
}
|
|
629
630
|
}
|
|
630
631
|
);
|
|
631
|
-
const registerCombobox =
|
|
632
|
+
const registerCombobox = vividElement.createRegisterFunction(comboboxDefinition);
|
|
632
633
|
|
|
633
634
|
exports.comboboxDefinition = comboboxDefinition;
|
|
634
635
|
exports.registerCombobox = registerCombobox;
|
package/shared/definition16.js
CHANGED
|
@@ -2,7 +2,7 @@ import { i as iconDefinition } from './definition27.js';
|
|
|
2
2
|
import { P as Popup, p as popupDefinition } from './definition63.js';
|
|
3
3
|
import { l as listboxOptionDefinition } from './definition35.js';
|
|
4
4
|
import { s as styles$1 } from './text-field.js';
|
|
5
|
-
import { D as DOM, O as Observable, a as attr, o as observable, h as html, d as defineVividComponent, f as createRegisterFunction } from './
|
|
5
|
+
import { D as DOM, O as Observable, a as attr, o as observable, h as html, d as defineVividComponent, f as createRegisterFunction } from './vivid-element.js';
|
|
6
6
|
import { L as Listbox } from './listbox.js';
|
|
7
7
|
import { F as FormAssociated } from './form-associated.js';
|
|
8
8
|
import { A as AffixIcon, a as affixIconTemplateFactory } from './affix.js';
|
|
@@ -557,9 +557,10 @@ function renderInput(context) {
|
|
|
557
557
|
<div class="fieldset">
|
|
558
558
|
<input
|
|
559
559
|
id="control"
|
|
560
|
+
autocomplete="off"
|
|
560
561
|
class="control"
|
|
561
562
|
aria-activedescendant="${(x) => x.open ? x.ariaActiveDescendant : null}"
|
|
562
|
-
aria-autocomplete="${(x) => x.
|
|
563
|
+
aria-autocomplete="${(x) => x.autocomplete}"
|
|
563
564
|
aria-controls="${(x) => x.listboxId}"
|
|
564
565
|
aria-disabled="${(x) => x.ariaDisabled}"
|
|
565
566
|
aria-expanded="${(x) => x.open}"
|
package/shared/definition17.cjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const definition = require('./definition27.cjs');
|
|
4
|
-
const defineVividComponent = require('./defineVividComponent.cjs');
|
|
5
4
|
const vividElement = require('./vivid-element.cjs');
|
|
6
5
|
const keyCodes = require('./key-codes.cjs');
|
|
7
6
|
const repeat = require('./repeat.cjs');
|
|
@@ -124,7 +123,7 @@ const _DataGrid = class _DataGrid extends vividElement.VividElement {
|
|
|
124
123
|
this.queueRowIndexUpdate = () => {
|
|
125
124
|
if (!this.rowindexUpdateQueued) {
|
|
126
125
|
this.rowindexUpdateQueued = true;
|
|
127
|
-
|
|
126
|
+
vividElement.DOM.queueUpdate(this.updateRowIndexes);
|
|
128
127
|
}
|
|
129
128
|
};
|
|
130
129
|
this.updateRowIndexes = () => {
|
|
@@ -376,8 +375,8 @@ const _DataGrid = class _DataGrid extends vividElement.VividElement {
|
|
|
376
375
|
this.addEventListener(eventFocusOut, this.handleFocusOut);
|
|
377
376
|
this.observer = new MutationObserver(this.onChildListChange);
|
|
378
377
|
this.observer.observe(this, { childList: true });
|
|
379
|
-
|
|
380
|
-
|
|
378
|
+
vividElement.DOM.queueUpdate(this.queueRowIndexUpdate);
|
|
379
|
+
vividElement.Observable.getNotifier(this).subscribe(
|
|
381
380
|
this.#changeHandler,
|
|
382
381
|
"columnDefinitions"
|
|
383
382
|
);
|
|
@@ -397,7 +396,7 @@ const _DataGrid = class _DataGrid extends vividElement.VividElement {
|
|
|
397
396
|
this.observer.disconnect();
|
|
398
397
|
this.rowsPlaceholder = null;
|
|
399
398
|
this.generatedHeader = null;
|
|
400
|
-
|
|
399
|
+
vividElement.Observable.getNotifier(this).unsubscribe(
|
|
401
400
|
this.#changeHandler,
|
|
402
401
|
"columnDefinitions"
|
|
403
402
|
);
|
|
@@ -515,7 +514,7 @@ const _DataGrid = class _DataGrid extends vividElement.VividElement {
|
|
|
515
514
|
}
|
|
516
515
|
if (this.pendingFocusUpdate === false) {
|
|
517
516
|
this.pendingFocusUpdate = true;
|
|
518
|
-
|
|
517
|
+
vividElement.DOM.queueUpdate(() => this.updateFocus());
|
|
519
518
|
}
|
|
520
519
|
}
|
|
521
520
|
updateFocus() {
|
|
@@ -568,7 +567,7 @@ const _DataGrid = class _DataGrid extends vividElement.VividElement {
|
|
|
568
567
|
}
|
|
569
568
|
selectionModeChanged(oldValue) {
|
|
570
569
|
if (oldValue === void 0) {
|
|
571
|
-
|
|
570
|
+
vividElement.DOM.queueUpdate(this.#initSelections);
|
|
572
571
|
return;
|
|
573
572
|
}
|
|
574
573
|
this.#resetSelection();
|
|
@@ -591,50 +590,50 @@ const _DataGrid = class _DataGrid extends vividElement.VividElement {
|
|
|
591
590
|
}
|
|
592
591
|
};
|
|
593
592
|
__decorateClass$2([
|
|
594
|
-
|
|
593
|
+
vividElement.attr({ attribute: "no-tabbing", mode: "boolean" })
|
|
595
594
|
], _DataGrid.prototype, "noTabbing");
|
|
596
595
|
__decorateClass$2([
|
|
597
|
-
|
|
596
|
+
vividElement.attr({ attribute: "generate-header" })
|
|
598
597
|
], _DataGrid.prototype, "generateHeader");
|
|
599
598
|
// @ts-expect-error Type is incorrectly non-optional
|
|
600
599
|
__decorateClass$2([
|
|
601
|
-
|
|
600
|
+
vividElement.attr({ attribute: "grid-template-columns" })
|
|
602
601
|
], _DataGrid.prototype, "gridTemplateColumns");
|
|
603
602
|
__decorateClass$2([
|
|
604
|
-
|
|
603
|
+
vividElement.observable
|
|
605
604
|
], _DataGrid.prototype, "rowsData");
|
|
606
605
|
__decorateClass$2([
|
|
607
|
-
|
|
606
|
+
vividElement.observable
|
|
608
607
|
], _DataGrid.prototype, "columnDefinitions");
|
|
609
608
|
__decorateClass$2([
|
|
610
|
-
|
|
609
|
+
vividElement.observable
|
|
611
610
|
], _DataGrid.prototype, "rowItemTemplate");
|
|
612
611
|
__decorateClass$2([
|
|
613
|
-
|
|
612
|
+
vividElement.observable
|
|
614
613
|
], _DataGrid.prototype, "cellItemTemplate");
|
|
615
614
|
__decorateClass$2([
|
|
616
|
-
|
|
615
|
+
vividElement.observable
|
|
617
616
|
], _DataGrid.prototype, "headerCellItemTemplate");
|
|
618
617
|
__decorateClass$2([
|
|
619
|
-
|
|
618
|
+
vividElement.observable
|
|
620
619
|
], _DataGrid.prototype, "focusRowIndex");
|
|
621
620
|
__decorateClass$2([
|
|
622
|
-
|
|
621
|
+
vividElement.observable
|
|
623
622
|
], _DataGrid.prototype, "focusColumnIndex");
|
|
624
623
|
__decorateClass$2([
|
|
625
|
-
|
|
624
|
+
vividElement.observable
|
|
626
625
|
], _DataGrid.prototype, "defaultRowItemTemplate");
|
|
627
626
|
__decorateClass$2([
|
|
628
|
-
|
|
627
|
+
vividElement.observable
|
|
629
628
|
], _DataGrid.prototype, "rowElementTag");
|
|
630
629
|
__decorateClass$2([
|
|
631
|
-
|
|
630
|
+
vividElement.observable
|
|
632
631
|
], _DataGrid.prototype, "rowElements");
|
|
633
632
|
__decorateClass$2([
|
|
634
|
-
|
|
633
|
+
vividElement.observable
|
|
635
634
|
], _DataGrid.prototype, "slottedRowElements");
|
|
636
635
|
__decorateClass$2([
|
|
637
|
-
|
|
636
|
+
vividElement.attr({ attribute: "selection-mode" })
|
|
638
637
|
], _DataGrid.prototype, "selectionMode");
|
|
639
638
|
let DataGrid = _DataGrid;
|
|
640
639
|
|
|
@@ -774,45 +773,45 @@ class DataGridRow extends vividElement.VividElement {
|
|
|
774
773
|
}
|
|
775
774
|
// @ts-expect-error Type is incorrectly non-optional
|
|
776
775
|
__decorateClass$1([
|
|
777
|
-
|
|
776
|
+
vividElement.attr({ attribute: "grid-template-columns" })
|
|
778
777
|
], DataGridRow.prototype, "gridTemplateColumns");
|
|
779
778
|
__decorateClass$1([
|
|
780
|
-
|
|
779
|
+
vividElement.attr({ attribute: "row-type" })
|
|
781
780
|
], DataGridRow.prototype, "rowType");
|
|
782
781
|
__decorateClass$1([
|
|
783
|
-
|
|
782
|
+
vividElement.observable
|
|
784
783
|
], DataGridRow.prototype, "rowData");
|
|
785
784
|
__decorateClass$1([
|
|
786
|
-
|
|
785
|
+
vividElement.observable
|
|
787
786
|
], DataGridRow.prototype, "columnDefinitions");
|
|
788
787
|
__decorateClass$1([
|
|
789
|
-
|
|
788
|
+
vividElement.observable
|
|
790
789
|
], DataGridRow.prototype, "cellItemTemplate");
|
|
791
790
|
__decorateClass$1([
|
|
792
|
-
|
|
791
|
+
vividElement.observable
|
|
793
792
|
], DataGridRow.prototype, "headerCellItemTemplate");
|
|
794
793
|
__decorateClass$1([
|
|
795
|
-
|
|
794
|
+
vividElement.observable
|
|
796
795
|
], DataGridRow.prototype, "rowIndex");
|
|
797
796
|
__decorateClass$1([
|
|
798
|
-
|
|
797
|
+
vividElement.observable
|
|
799
798
|
], DataGridRow.prototype, "activeCellItemTemplate");
|
|
800
799
|
__decorateClass$1([
|
|
801
|
-
|
|
800
|
+
vividElement.observable
|
|
802
801
|
], DataGridRow.prototype, "defaultCellItemTemplate");
|
|
803
802
|
__decorateClass$1([
|
|
804
|
-
|
|
803
|
+
vividElement.observable
|
|
805
804
|
], DataGridRow.prototype, "defaultHeaderCellItemTemplate");
|
|
806
805
|
__decorateClass$1([
|
|
807
|
-
|
|
806
|
+
vividElement.observable
|
|
808
807
|
], DataGridRow.prototype, "cellElements");
|
|
809
808
|
__decorateClass$1([
|
|
810
|
-
|
|
809
|
+
vividElement.attr({ attribute: "aria-selected" })
|
|
811
810
|
], DataGridRow.prototype, "ariaSelected");
|
|
812
811
|
|
|
813
812
|
function createRowItemTemplate(context) {
|
|
814
813
|
const rowTag = context.tagFor(DataGridRow);
|
|
815
|
-
return
|
|
814
|
+
return vividElement.html`
|
|
816
815
|
<${rowTag}
|
|
817
816
|
:rowData="${(x) => x}"
|
|
818
817
|
:cellItemTemplate="${(_, c) => c.parent.cellItemTemplate}"
|
|
@@ -840,7 +839,7 @@ function handleColumnSort(_, { event }) {
|
|
|
840
839
|
const DataGridTemplate = (context) => {
|
|
841
840
|
const rowItemTemplate = createRowItemTemplate(context);
|
|
842
841
|
const rowTag = context.tagFor(DataGridRow);
|
|
843
|
-
return
|
|
842
|
+
return vividElement.html`
|
|
844
843
|
<template
|
|
845
844
|
aria-multiselectable="${getMultiSelectAriaState}"
|
|
846
845
|
role="grid"
|
|
@@ -870,12 +869,12 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
870
869
|
if (result) __defProp(target, key, result);
|
|
871
870
|
return result;
|
|
872
871
|
};
|
|
873
|
-
const defaultCellContentsTemplate =
|
|
872
|
+
const defaultCellContentsTemplate = vividElement.html`
|
|
874
873
|
<template>
|
|
875
874
|
${(x) => x.rowData === null || x.columnDefinition === null || x.columnDefinition.columnDataKey === null ? null : x.rowData[x.columnDefinition.columnDataKey]}
|
|
876
875
|
</template>
|
|
877
876
|
`;
|
|
878
|
-
const defaultHeaderCellContentsTemplate =
|
|
877
|
+
const defaultHeaderCellContentsTemplate = vividElement.html`
|
|
879
878
|
<template>
|
|
880
879
|
${(x) => x.columnDefinition.title === void 0 ? x.columnDefinition.columnDataKey : x.columnDefinition.title}
|
|
881
880
|
</template>
|
|
@@ -1092,27 +1091,27 @@ class DataGridCell extends vividElement.VividElement {
|
|
|
1092
1091
|
}
|
|
1093
1092
|
}
|
|
1094
1093
|
__decorateClass([
|
|
1095
|
-
|
|
1094
|
+
vividElement.attr({ attribute: "cell-type" })
|
|
1096
1095
|
], DataGridCell.prototype, "cellType");
|
|
1097
1096
|
__decorateClass([
|
|
1098
|
-
|
|
1097
|
+
vividElement.attr({ attribute: "grid-column" })
|
|
1099
1098
|
], DataGridCell.prototype, "gridColumn");
|
|
1100
1099
|
__decorateClass([
|
|
1101
|
-
|
|
1100
|
+
vividElement.observable
|
|
1102
1101
|
], DataGridCell.prototype, "rowData");
|
|
1103
1102
|
__decorateClass([
|
|
1104
|
-
|
|
1103
|
+
vividElement.observable
|
|
1105
1104
|
], DataGridCell.prototype, "columnDefinition");
|
|
1106
1105
|
__decorateClass([
|
|
1107
|
-
|
|
1106
|
+
vividElement.attr({ attribute: "aria-selected", mode: "fromView" })
|
|
1108
1107
|
], DataGridCell.prototype, "ariaSelected");
|
|
1109
1108
|
__decorateClass([
|
|
1110
|
-
|
|
1109
|
+
vividElement.attr({ attribute: "aria-sort" })
|
|
1111
1110
|
], DataGridCell.prototype, "ariaSort");
|
|
1112
1111
|
|
|
1113
1112
|
function createCellItemTemplate(context) {
|
|
1114
1113
|
const cellTag = context.tagFor(DataGridCell);
|
|
1115
|
-
return
|
|
1114
|
+
return vividElement.html`
|
|
1116
1115
|
<${cellTag}
|
|
1117
1116
|
cell-type="${(x) => x.isRowHeader ? "rowheader" : void 0}"
|
|
1118
1117
|
grid-column="${(_, c) => c.index + 1}"
|
|
@@ -1124,7 +1123,7 @@ function createCellItemTemplate(context) {
|
|
|
1124
1123
|
}
|
|
1125
1124
|
function createHeaderCellItemTemplate(context) {
|
|
1126
1125
|
const cellTag = context.tagFor(DataGridCell);
|
|
1127
|
-
return
|
|
1126
|
+
return vividElement.html`
|
|
1128
1127
|
<${cellTag}
|
|
1129
1128
|
cell-type="columnheader"
|
|
1130
1129
|
grid-column="${(_, c) => c.index + 1}"
|
|
@@ -1135,7 +1134,7 @@ function createHeaderCellItemTemplate(context) {
|
|
|
1135
1134
|
const DataGridRowTemplate = (context) => {
|
|
1136
1135
|
const cellItemTemplate = createCellItemTemplate(context);
|
|
1137
1136
|
const headerCellItemTemplate = createHeaderCellItemTemplate(context);
|
|
1138
|
-
return
|
|
1137
|
+
return vividElement.html`
|
|
1139
1138
|
<template
|
|
1140
1139
|
role="row"
|
|
1141
1140
|
class="${(x) => x.rowType !== "default" ? x.rowType : ""}"
|
|
@@ -1169,10 +1168,10 @@ function getSortIcon(x) {
|
|
|
1169
1168
|
}
|
|
1170
1169
|
function renderSortIcons(c) {
|
|
1171
1170
|
const iconTag = c.tagFor(definition.Icon);
|
|
1172
|
-
return
|
|
1171
|
+
return vividElement.html`
|
|
1173
1172
|
${when.when(
|
|
1174
1173
|
shouldShowSortIcons,
|
|
1175
|
-
|
|
1174
|
+
vividElement.html`
|
|
1176
1175
|
<${iconTag} class="header-icon" name="${getSortIcon}"></${iconTag}>
|
|
1177
1176
|
`
|
|
1178
1177
|
)}
|
|
@@ -1185,7 +1184,7 @@ function handleKeyDown(x, e) {
|
|
|
1185
1184
|
return true;
|
|
1186
1185
|
}
|
|
1187
1186
|
const DataGridCellTemplate = (context) => {
|
|
1188
|
-
return
|
|
1187
|
+
return vividElement.html`
|
|
1189
1188
|
<template
|
|
1190
1189
|
tabindex="-1"
|
|
1191
1190
|
role="${(x) => DataGridCellRole[x.cellType] ?? DataGridCellRole.default}"
|
|
@@ -1200,7 +1199,7 @@ const DataGridCellTemplate = (context) => {
|
|
|
1200
1199
|
`;
|
|
1201
1200
|
};
|
|
1202
1201
|
|
|
1203
|
-
const dataGridCellDefinition =
|
|
1202
|
+
const dataGridCellDefinition = vividElement.defineVividComponent(
|
|
1204
1203
|
"data-grid-cell",
|
|
1205
1204
|
DataGridCell,
|
|
1206
1205
|
DataGridCellTemplate,
|
|
@@ -1209,7 +1208,7 @@ const dataGridCellDefinition = defineVividComponent.defineVividComponent(
|
|
|
1209
1208
|
styles: dataGridCellStyles
|
|
1210
1209
|
}
|
|
1211
1210
|
);
|
|
1212
|
-
const dataGridRowDefinition =
|
|
1211
|
+
const dataGridRowDefinition = vividElement.defineVividComponent(
|
|
1213
1212
|
"data-grid-row",
|
|
1214
1213
|
DataGridRow,
|
|
1215
1214
|
DataGridRowTemplate,
|
|
@@ -1218,7 +1217,7 @@ const dataGridRowDefinition = defineVividComponent.defineVividComponent(
|
|
|
1218
1217
|
styles: dataGridRowStyles
|
|
1219
1218
|
}
|
|
1220
1219
|
);
|
|
1221
|
-
const dataGridDefinition =
|
|
1220
|
+
const dataGridDefinition = vividElement.defineVividComponent(
|
|
1222
1221
|
"data-grid",
|
|
1223
1222
|
DataGrid,
|
|
1224
1223
|
DataGridTemplate,
|
|
@@ -1227,7 +1226,7 @@ const dataGridDefinition = defineVividComponent.defineVividComponent(
|
|
|
1227
1226
|
styles: dataGridStyles
|
|
1228
1227
|
}
|
|
1229
1228
|
);
|
|
1230
|
-
const registerDataGrid =
|
|
1229
|
+
const registerDataGrid = vividElement.createRegisterFunction(dataGridDefinition);
|
|
1231
1230
|
|
|
1232
1231
|
exports.dataGridCellDefinition = dataGridCellDefinition;
|
|
1233
1232
|
exports.dataGridDefinition = dataGridDefinition;
|
package/shared/definition17.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { I as Icon, i as iconDefinition } from './definition27.js';
|
|
2
|
-
import { a as attr, o as observable, D as DOM, O as Observable, h as html, d as defineVividComponent, f as createRegisterFunction } from './
|
|
3
|
-
import { V as VividElement } from './vivid-element.js';
|
|
2
|
+
import { a as attr, o as observable, V as VividElement, D as DOM, O as Observable, h as html, d as defineVividComponent, f as createRegisterFunction } from './vivid-element.js';
|
|
4
3
|
import { d as keyEnd, g as keyHome, j as keyPageDown, l as keyPageUp, f as keyArrowDown, e as keyArrowUp, i as keyArrowRight, h as keyArrowLeft, b as keyEscape, m as keyFunction2, k as keyEnter, a as keySpace } from './key-codes.js';
|
|
5
4
|
import { R as RepeatDirective } from './repeat.js';
|
|
6
5
|
import { s as slotted, e as elements } from './slotted.js';
|
package/shared/definition18.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const definition = require('./definition11.cjs');
|
|
|
5
5
|
const definition$2 = require('./definition55.cjs');
|
|
6
6
|
const definition$3 = require('./definition22.cjs');
|
|
7
7
|
const presentationDate = require('./presentationDate.cjs');
|
|
8
|
-
const
|
|
8
|
+
const vividElement = require('./vivid-element.cjs');
|
|
9
9
|
const formElements = require('./form-elements.cjs');
|
|
10
10
|
|
|
11
11
|
var __defProp = Object.defineProperty;
|
|
@@ -156,14 +156,14 @@ updateValueDueToUserInteraction_fn = function(newValue) {
|
|
|
156
156
|
this.$emit("input");
|
|
157
157
|
};
|
|
158
158
|
__decorateClass([
|
|
159
|
-
|
|
159
|
+
vividElement.volatile
|
|
160
160
|
], DatePicker.prototype, "_calendarButtonLabel", 1);
|
|
161
161
|
DatePicker = __decorateClass([
|
|
162
162
|
formElements.errorText,
|
|
163
163
|
formElements.formElements
|
|
164
164
|
], DatePicker);
|
|
165
165
|
|
|
166
|
-
const datePickerDefinition =
|
|
166
|
+
const datePickerDefinition = vividElement.defineVividComponent(
|
|
167
167
|
"date-picker",
|
|
168
168
|
DatePicker,
|
|
169
169
|
presentationDate.DatePickerBaseTemplate,
|
|
@@ -175,7 +175,7 @@ const datePickerDefinition = defineVividComponent.defineVividComponent(
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
);
|
|
178
|
-
const registerDatePicker =
|
|
178
|
+
const registerDatePicker = vividElement.createRegisterFunction(datePickerDefinition);
|
|
179
179
|
|
|
180
180
|
exports.datePickerDefinition = datePickerDefinition;
|
|
181
181
|
exports.registerDatePicker = registerDatePicker;
|
package/shared/definition18.js
CHANGED
|
@@ -3,7 +3,7 @@ import { b as buttonDefinition } from './definition11.js';
|
|
|
3
3
|
import { t as textFieldDefinition } from './definition55.js';
|
|
4
4
|
import { d as dividerDefinition } from './definition22.js';
|
|
5
5
|
import { D as DatePickerBase, i as isValidDateStr, f as formatPresentationDate, p as parsePresentationDate, s as styles, a as DatePickerBaseTemplate } from './presentationDate.js';
|
|
6
|
-
import { v as volatile, d as defineVividComponent, f as createRegisterFunction } from './
|
|
6
|
+
import { v as volatile, d as defineVividComponent, f as createRegisterFunction } from './vivid-element.js';
|
|
7
7
|
import { e as errorText, f as formElements } from './form-elements.js';
|
|
8
8
|
|
|
9
9
|
var __defProp = Object.defineProperty;
|
package/shared/definition19.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const definition$1 = require('./definition63.cjs');
|
|
|
5
5
|
const definition$2 = require('./definition55.cjs');
|
|
6
6
|
const definition$3 = require('./definition22.cjs');
|
|
7
7
|
const presentationDate = require('./presentationDate.cjs');
|
|
8
|
-
const
|
|
8
|
+
const vividElement = require('./vivid-element.cjs');
|
|
9
9
|
const formElements = require('./form-elements.cjs');
|
|
10
10
|
|
|
11
11
|
const formatRange = (from, to) => {
|
|
@@ -382,38 +382,38 @@ getVisibleRange_fn = function() {
|
|
|
382
382
|
return { start, end };
|
|
383
383
|
};
|
|
384
384
|
__decorateClass([
|
|
385
|
-
|
|
385
|
+
vividElement.attr({ mode: "fromView", attribute: "start" })
|
|
386
386
|
], DateRangePicker.prototype, "initialStart", 2);
|
|
387
387
|
__decorateClass([
|
|
388
|
-
|
|
388
|
+
vividElement.attr({ mode: "fromView", attribute: "end" })
|
|
389
389
|
], DateRangePicker.prototype, "initialEnd", 2);
|
|
390
390
|
__decorateClass([
|
|
391
|
-
|
|
391
|
+
vividElement.observable
|
|
392
392
|
], DateRangePicker.prototype, "start", 2);
|
|
393
393
|
__decorateClass([
|
|
394
|
-
|
|
394
|
+
vividElement.observable
|
|
395
395
|
], DateRangePicker.prototype, "end", 2);
|
|
396
396
|
__decorateClass([
|
|
397
|
-
|
|
397
|
+
vividElement.attr({ attribute: "current-start" })
|
|
398
398
|
], DateRangePicker.prototype, "currentStart", 2);
|
|
399
399
|
__decorateClass([
|
|
400
|
-
|
|
400
|
+
vividElement.attr({ attribute: "current-end" })
|
|
401
401
|
], DateRangePicker.prototype, "currentEnd", 2);
|
|
402
402
|
__decorateClass([
|
|
403
|
-
|
|
403
|
+
vividElement.observable
|
|
404
404
|
], DateRangePicker.prototype, "_numCalendars", 2);
|
|
405
405
|
__decorateClass([
|
|
406
|
-
|
|
406
|
+
vividElement.observable
|
|
407
407
|
], DateRangePicker.prototype, "_hoverDate", 2);
|
|
408
408
|
__decorateClass([
|
|
409
|
-
|
|
409
|
+
vividElement.volatile
|
|
410
410
|
], DateRangePicker.prototype, "_calendarButtonLabel", 1);
|
|
411
411
|
DateRangePicker = __decorateClass([
|
|
412
412
|
formElements.errorText,
|
|
413
413
|
formElements.formElements
|
|
414
414
|
], DateRangePicker);
|
|
415
415
|
|
|
416
|
-
const dateRangePickerDefinition =
|
|
416
|
+
const dateRangePickerDefinition = vividElement.defineVividComponent(
|
|
417
417
|
"date-range-picker",
|
|
418
418
|
DateRangePicker,
|
|
419
419
|
presentationDate.DatePickerBaseTemplate,
|
|
@@ -425,7 +425,7 @@ const dateRangePickerDefinition = defineVividComponent.defineVividComponent(
|
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
);
|
|
428
|
-
const registerDateRangePicker =
|
|
428
|
+
const registerDateRangePicker = vividElement.createRegisterFunction(
|
|
429
429
|
dateRangePickerDefinition
|
|
430
430
|
);
|
|
431
431
|
|
package/shared/definition19.js
CHANGED
|
@@ -3,7 +3,7 @@ import { p as popupDefinition } from './definition63.js';
|
|
|
3
3
|
import { t as textFieldDefinition } from './definition55.js';
|
|
4
4
|
import { d as dividerDefinition } from './definition22.js';
|
|
5
5
|
import { f as formatPresentationDate, p as parsePresentationDate, D as DatePickerBase, i as isValidDateStr, c as compareDateStr, s as styles, a as DatePickerBaseTemplate } from './presentationDate.js';
|
|
6
|
-
import { a as attr, o as observable, v as volatile, d as defineVividComponent, f as createRegisterFunction } from './
|
|
6
|
+
import { a as attr, o as observable, v as volatile, d as defineVividComponent, f as createRegisterFunction } from './vivid-element.js';
|
|
7
7
|
import { e as errorText, f as formElements } from './form-elements.js';
|
|
8
8
|
|
|
9
9
|
const formatRange = (from, to) => {
|
package/shared/definition2.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const defineVividComponent = require('./defineVividComponent.cjs');
|
|
4
|
-
const definition = require('./definition.cjs');
|
|
5
3
|
const vividElement = require('./vivid-element.cjs');
|
|
4
|
+
const definition = require('./definition.cjs');
|
|
6
5
|
const keyCodes = require('./key-codes.cjs');
|
|
7
6
|
const numbers = require('./numbers.cjs');
|
|
8
7
|
const slotted = require('./slotted.cjs');
|
|
@@ -173,21 +172,21 @@ class Accordion extends vividElement.VividElement {
|
|
|
173
172
|
}
|
|
174
173
|
}
|
|
175
174
|
__decorateClass([
|
|
176
|
-
|
|
175
|
+
vividElement.attr({ attribute: "expand-mode" })
|
|
177
176
|
], Accordion.prototype, "expandmode");
|
|
178
177
|
// @ts-expect-error Type is incorrectly non-optional
|
|
179
178
|
__decorateClass([
|
|
180
|
-
|
|
179
|
+
vividElement.observable
|
|
181
180
|
], Accordion.prototype, "accordionItems");
|
|
182
181
|
|
|
183
182
|
const getClasses = (_) => classNames.classNames("base");
|
|
184
|
-
const AccordionTemplate =
|
|
183
|
+
const AccordionTemplate = vividElement.html`
|
|
185
184
|
<div class="${getClasses}">
|
|
186
185
|
<slot ${slotted.slotted({ property: "accordionItems", filter: slotted.elements() })}></slot>
|
|
187
186
|
</div>
|
|
188
187
|
`;
|
|
189
188
|
|
|
190
|
-
const accordionDefinition =
|
|
189
|
+
const accordionDefinition = vividElement.defineVividComponent(
|
|
191
190
|
"accordion",
|
|
192
191
|
Accordion,
|
|
193
192
|
AccordionTemplate,
|
|
@@ -196,7 +195,7 @@ const accordionDefinition = defineVividComponent.defineVividComponent(
|
|
|
196
195
|
styles
|
|
197
196
|
}
|
|
198
197
|
);
|
|
199
|
-
const registerAccordion =
|
|
198
|
+
const registerAccordion = vividElement.createRegisterFunction(accordionDefinition);
|
|
200
199
|
|
|
201
200
|
exports.accordionDefinition = accordionDefinition;
|
|
202
201
|
exports.registerAccordion = registerAccordion;
|
package/shared/definition2.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { a as attr, o as observable, h as html, d as defineVividComponent, f as createRegisterFunction } from './
|
|
1
|
+
import { V as VividElement, a as attr, o as observable, h as html, d as defineVividComponent, f as createRegisterFunction } from './vivid-element.js';
|
|
2
2
|
import { A as AccordionItem, a as accordionItemDefinition } from './definition.js';
|
|
3
|
-
import { V as VividElement } from './vivid-element.js';
|
|
4
3
|
import { d as keyEnd, g as keyHome, f as keyArrowDown, e as keyArrowUp } from './key-codes.js';
|
|
5
4
|
import { w as wrapInBounds } from './numbers.js';
|
|
6
5
|
import { s as slotted, e as elements } from './slotted.js';
|