@vonage/vivid 3.1.3 → 3.3.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/custom-elements.json +178 -0
- package/data-grid/index.js +5 -59
- package/index.js +4 -0
- package/lib/components.d.ts +2 -0
- package/lib/option/option.d.ts +3 -0
- package/lib/select/select.d.ts +1 -0
- package/lib/tree-item/definition.d.ts +3 -0
- package/lib/tree-item/index.d.ts +1 -0
- package/lib/tree-item/tree-item.d.ts +7 -0
- package/lib/tree-item/tree-item.template.d.ts +4 -0
- package/lib/tree-view/definition.d.ts +3 -0
- package/lib/tree-view/index.d.ts +1 -0
- package/lib/tree-view/tree-view.d.ts +3 -0
- package/lib/tree-view/tree-view.template.d.ts +2 -0
- package/package.json +1 -1
- package/shared/children.js +59 -0
- package/shared/definition.js +1 -1
- package/shared/definition11.js +1 -1
- package/shared/definition12.js +1 -1
- package/shared/definition13.js +1 -1
- package/shared/definition14.js +1 -1
- package/shared/definition16.js +1 -1
- package/shared/definition17.js +1 -1
- package/shared/definition19.js +11 -1
- package/shared/definition2.js +1 -1
- package/shared/definition20.js +1 -1
- package/shared/definition21.js +1 -1
- package/shared/definition22.js +1 -1
- package/shared/definition23.js +1 -1
- package/shared/definition25.js +1 -1
- package/shared/definition27.js +1 -1
- package/shared/definition29.js +1 -1
- package/shared/definition30.js +1 -1
- package/shared/definition31.js +1 -1
- package/shared/definition32.js +1 -1
- package/shared/definition33.js +1 -1
- package/shared/definition34.js +1 -1
- package/shared/definition35.js +1 -1
- package/shared/definition36.js +1 -1
- package/shared/definition37.js +6 -1
- package/shared/definition38.js +1 -1
- package/shared/definition4.js +1 -1
- package/shared/definition40.js +1 -1
- package/shared/definition41.js +1 -1
- package/shared/definition43.js +1 -1
- package/shared/definition44.js +1 -1
- package/shared/definition46.js +1 -1
- package/shared/definition47.js +79 -0
- package/shared/definition48.js +305 -0
- package/shared/definition5.js +1 -1
- package/shared/definition6.js +1 -1
- package/shared/definition7.js +1 -1
- package/shared/definition8.js +1 -1
- package/shared/definition9.js +1 -1
- package/shared/dom.js +13 -1
- package/shared/form-elements.js +1 -1
- package/shared/patterns/form-elements/form-elements.d.ts +2 -2
- package/shared/text-field.js +1 -1
- package/shared/tree-item.js +151 -0
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/tree-item/index.js +22 -0
- package/tree-view/index.js +12 -0
- package/vivid.api.json +210 -0
package/custom-elements.json
CHANGED
|
@@ -3918,6 +3918,20 @@
|
|
|
3918
3918
|
{
|
|
3919
3919
|
"kind": "field",
|
|
3920
3920
|
"name": "text"
|
|
3921
|
+
},
|
|
3922
|
+
{
|
|
3923
|
+
"kind": "field",
|
|
3924
|
+
"name": "_label",
|
|
3925
|
+
"type": {
|
|
3926
|
+
"text": "string | undefined"
|
|
3927
|
+
}
|
|
3928
|
+
},
|
|
3929
|
+
{
|
|
3930
|
+
"kind": "field",
|
|
3931
|
+
"name": "label",
|
|
3932
|
+
"type": {
|
|
3933
|
+
"text": "string"
|
|
3934
|
+
}
|
|
3921
3935
|
}
|
|
3922
3936
|
],
|
|
3923
3937
|
"attributes": [
|
|
@@ -3927,6 +3941,13 @@
|
|
|
3927
3941
|
"text": "string | undefined"
|
|
3928
3942
|
},
|
|
3929
3943
|
"fieldName": "_text"
|
|
3944
|
+
},
|
|
3945
|
+
{
|
|
3946
|
+
"name": "label",
|
|
3947
|
+
"type": {
|
|
3948
|
+
"text": "string | undefined"
|
|
3949
|
+
},
|
|
3950
|
+
"fieldName": "_label"
|
|
3930
3951
|
}
|
|
3931
3952
|
],
|
|
3932
3953
|
"superclass": {
|
|
@@ -4753,6 +4774,14 @@
|
|
|
4753
4774
|
"type": {
|
|
4754
4775
|
"text": "HTMLElement"
|
|
4755
4776
|
}
|
|
4777
|
+
},
|
|
4778
|
+
{
|
|
4779
|
+
"kind": "field",
|
|
4780
|
+
"name": "displayValue",
|
|
4781
|
+
"type": {
|
|
4782
|
+
"text": "string"
|
|
4783
|
+
},
|
|
4784
|
+
"readonly": true
|
|
4756
4785
|
}
|
|
4757
4786
|
],
|
|
4758
4787
|
"attributes": [
|
|
@@ -6201,6 +6230,155 @@
|
|
|
6201
6230
|
}
|
|
6202
6231
|
}
|
|
6203
6232
|
]
|
|
6233
|
+
},
|
|
6234
|
+
{
|
|
6235
|
+
"kind": "javascript-module",
|
|
6236
|
+
"path": "libs/components/src/lib/tree-item/definition.ts",
|
|
6237
|
+
"declarations": [
|
|
6238
|
+
{
|
|
6239
|
+
"kind": "variable",
|
|
6240
|
+
"name": "treeItemDefinition"
|
|
6241
|
+
},
|
|
6242
|
+
{
|
|
6243
|
+
"kind": "variable",
|
|
6244
|
+
"name": "registerTreeItem",
|
|
6245
|
+
"description": "Registers the tree-item element with the design system.",
|
|
6246
|
+
"parameters": [
|
|
6247
|
+
{
|
|
6248
|
+
"description": "the prefix to use for the component name",
|
|
6249
|
+
"name": "prefix"
|
|
6250
|
+
}
|
|
6251
|
+
]
|
|
6252
|
+
}
|
|
6253
|
+
],
|
|
6254
|
+
"exports": [
|
|
6255
|
+
{
|
|
6256
|
+
"kind": "js",
|
|
6257
|
+
"name": "treeItemDefinition",
|
|
6258
|
+
"declaration": {
|
|
6259
|
+
"name": "treeItemDefinition",
|
|
6260
|
+
"module": "libs/components/src/lib/tree-item/definition.ts"
|
|
6261
|
+
}
|
|
6262
|
+
},
|
|
6263
|
+
{
|
|
6264
|
+
"kind": "js",
|
|
6265
|
+
"name": "registerTreeItem",
|
|
6266
|
+
"declaration": {
|
|
6267
|
+
"name": "registerTreeItem",
|
|
6268
|
+
"module": "libs/components/src/lib/tree-item/definition.ts"
|
|
6269
|
+
}
|
|
6270
|
+
}
|
|
6271
|
+
]
|
|
6272
|
+
},
|
|
6273
|
+
{
|
|
6274
|
+
"kind": "javascript-module",
|
|
6275
|
+
"path": "libs/components/src/lib/tree-item/tree-item.ts",
|
|
6276
|
+
"declarations": [
|
|
6277
|
+
{
|
|
6278
|
+
"kind": "class",
|
|
6279
|
+
"description": "Base class for tree-item",
|
|
6280
|
+
"name": "TreeItem",
|
|
6281
|
+
"members": [
|
|
6282
|
+
{
|
|
6283
|
+
"kind": "field",
|
|
6284
|
+
"name": "text",
|
|
6285
|
+
"type": {
|
|
6286
|
+
"text": "string | undefined"
|
|
6287
|
+
},
|
|
6288
|
+
"description": "Indicates the text's text.",
|
|
6289
|
+
"privacy": "public"
|
|
6290
|
+
}
|
|
6291
|
+
],
|
|
6292
|
+
"attributes": [
|
|
6293
|
+
{
|
|
6294
|
+
"name": "text",
|
|
6295
|
+
"type": {
|
|
6296
|
+
"text": "string | undefined"
|
|
6297
|
+
},
|
|
6298
|
+
"description": "Indicates the text's text.",
|
|
6299
|
+
"fieldName": "text"
|
|
6300
|
+
}
|
|
6301
|
+
],
|
|
6302
|
+
"superclass": {
|
|
6303
|
+
"name": "FastTreeItem",
|
|
6304
|
+
"package": "@microsoft/fast-foundation"
|
|
6305
|
+
}
|
|
6306
|
+
}
|
|
6307
|
+
],
|
|
6308
|
+
"exports": [
|
|
6309
|
+
{
|
|
6310
|
+
"kind": "js",
|
|
6311
|
+
"name": "TreeItem",
|
|
6312
|
+
"declaration": {
|
|
6313
|
+
"name": "TreeItem",
|
|
6314
|
+
"module": "libs/components/src/lib/tree-item/tree-item.ts"
|
|
6315
|
+
}
|
|
6316
|
+
}
|
|
6317
|
+
]
|
|
6318
|
+
},
|
|
6319
|
+
{
|
|
6320
|
+
"kind": "javascript-module",
|
|
6321
|
+
"path": "libs/components/src/lib/tree-view/definition.ts",
|
|
6322
|
+
"declarations": [
|
|
6323
|
+
{
|
|
6324
|
+
"kind": "variable",
|
|
6325
|
+
"name": "treeViewDefinition"
|
|
6326
|
+
},
|
|
6327
|
+
{
|
|
6328
|
+
"kind": "variable",
|
|
6329
|
+
"name": "registerTreeView",
|
|
6330
|
+
"description": "Registers the tree-view element with the design system.",
|
|
6331
|
+
"parameters": [
|
|
6332
|
+
{
|
|
6333
|
+
"description": "the prefix to use for the component name",
|
|
6334
|
+
"name": "prefix"
|
|
6335
|
+
}
|
|
6336
|
+
]
|
|
6337
|
+
}
|
|
6338
|
+
],
|
|
6339
|
+
"exports": [
|
|
6340
|
+
{
|
|
6341
|
+
"kind": "js",
|
|
6342
|
+
"name": "treeViewDefinition",
|
|
6343
|
+
"declaration": {
|
|
6344
|
+
"name": "treeViewDefinition",
|
|
6345
|
+
"module": "libs/components/src/lib/tree-view/definition.ts"
|
|
6346
|
+
}
|
|
6347
|
+
},
|
|
6348
|
+
{
|
|
6349
|
+
"kind": "js",
|
|
6350
|
+
"name": "registerTreeView",
|
|
6351
|
+
"declaration": {
|
|
6352
|
+
"name": "registerTreeView",
|
|
6353
|
+
"module": "libs/components/src/lib/tree-view/definition.ts"
|
|
6354
|
+
}
|
|
6355
|
+
}
|
|
6356
|
+
]
|
|
6357
|
+
},
|
|
6358
|
+
{
|
|
6359
|
+
"kind": "javascript-module",
|
|
6360
|
+
"path": "libs/components/src/lib/tree-view/tree-view.ts",
|
|
6361
|
+
"declarations": [
|
|
6362
|
+
{
|
|
6363
|
+
"kind": "class",
|
|
6364
|
+
"description": "Base class for Tree View",
|
|
6365
|
+
"name": "TreeView",
|
|
6366
|
+
"superclass": {
|
|
6367
|
+
"name": "FastTreeView",
|
|
6368
|
+
"package": "@microsoft/fast-foundation"
|
|
6369
|
+
}
|
|
6370
|
+
}
|
|
6371
|
+
],
|
|
6372
|
+
"exports": [
|
|
6373
|
+
{
|
|
6374
|
+
"kind": "js",
|
|
6375
|
+
"name": "TreeView",
|
|
6376
|
+
"declaration": {
|
|
6377
|
+
"name": "TreeView",
|
|
6378
|
+
"module": "libs/components/src/lib/tree-view/tree-view.ts"
|
|
6379
|
+
}
|
|
6380
|
+
}
|
|
6381
|
+
]
|
|
6204
6382
|
}
|
|
6205
6383
|
]
|
|
6206
6384
|
}
|
package/data-grid/index.js
CHANGED
|
@@ -1,65 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, o as observable, W as DOM, h as html, r as registerFactory } from '../shared/index.js';
|
|
2
2
|
import { k as keyEnd, a as keyHome, h as keyArrowRight, i as keyArrowLeft, j as keyPageDown, l as keyPageUp, b as keyArrowDown, c as keyArrowUp, f as keyEscape, m as keyFunction2, d as keyEnter } from '../shared/key-codes.js';
|
|
3
3
|
import { R as RepeatDirective } from '../shared/repeat.js';
|
|
4
|
-
import {
|
|
4
|
+
import { e as elements, s as slotted } from '../shared/slotted.js';
|
|
5
|
+
import { c as children } from '../shared/children.js';
|
|
5
6
|
import { f as focusTemplateFactory } from '../shared/focus2.js';
|
|
6
7
|
import '../shared/focus.js';
|
|
7
8
|
|
|
8
|
-
/**
|
|
9
|
-
* The runtime behavior for child node observation.
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
class ChildrenBehavior extends NodeObservationBehavior {
|
|
13
|
-
/**
|
|
14
|
-
* Creates an instance of ChildrenBehavior.
|
|
15
|
-
* @param target - The element target to observe children on.
|
|
16
|
-
* @param options - The options to use when observing the element children.
|
|
17
|
-
*/
|
|
18
|
-
constructor(target, options) {
|
|
19
|
-
super(target, options);
|
|
20
|
-
this.observer = null;
|
|
21
|
-
options.childList = true;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Begins observation of the nodes.
|
|
25
|
-
*/
|
|
26
|
-
observe() {
|
|
27
|
-
if (this.observer === null) {
|
|
28
|
-
this.observer = new MutationObserver(this.handleEvent.bind(this));
|
|
29
|
-
}
|
|
30
|
-
this.observer.observe(this.target, this.options);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Disconnects observation of the nodes.
|
|
34
|
-
*/
|
|
35
|
-
disconnect() {
|
|
36
|
-
this.observer.disconnect();
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Retrieves the nodes that should be assigned to the target.
|
|
40
|
-
*/
|
|
41
|
-
getNodes() {
|
|
42
|
-
if ("subtree" in this.options) {
|
|
43
|
-
return Array.from(this.target.querySelectorAll(this.options.selector));
|
|
44
|
-
}
|
|
45
|
-
return Array.from(this.target.childNodes);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* A directive that observes the `childNodes` of an element and updates a property
|
|
50
|
-
* whenever they change.
|
|
51
|
-
* @param propertyOrOptions - The options used to configure child node observation.
|
|
52
|
-
* @public
|
|
53
|
-
*/
|
|
54
|
-
function children(propertyOrOptions) {
|
|
55
|
-
if (typeof propertyOrOptions === "string") {
|
|
56
|
-
propertyOrOptions = {
|
|
57
|
-
property: propertyOrOptions,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
return new AttachedBehaviorHTMLDirective("fast-children", ChildrenBehavior, propertyOrOptions);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
9
|
/**
|
|
64
10
|
* This set of exported strings reference https://developer.mozilla.org/en-US/docs/Web/Events
|
|
65
11
|
* and should include all non-deprecated and non-experimental Standard events
|
|
@@ -961,9 +907,9 @@ __decorate([
|
|
|
961
907
|
|
|
962
908
|
var css_248z$2 = ":host {\n position: relative;\n display: block;\n}\n\n:host([generate-header=sticky]) {\n max-height: var(--data-grid-max-height, 200px);\n overflow-y: auto;\n}";
|
|
963
909
|
|
|
964
|
-
var css_248z$1 = "/**\n * Do not edit directly\n * Generated on
|
|
910
|
+
var css_248z$1 = "/**\n * Do not edit directly\n * Generated on Wed, 08 Mar 2023 09:27:51 GMT\n */\n:host {\n display: grid;\n width: 100%;\n box-sizing: border-box;\n color: var(--vvd-color-canvas-text);\n}\n\n:host([row-type=sticky-header]) {\n position: sticky;\n z-index: 999;\n top: 0;\n background: var(--vvd-color-canvas);\n}";
|
|
965
911
|
|
|
966
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
912
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 08 Mar 2023 09:27:51 GMT\n */\n:host {\n position: relative;\n display: flex;\n overflow: hidden;\n box-sizing: border-box;\n align-items: center;\n padding: 8px 12px;\n border-bottom: 1px solid var(--vvd-color-neutral-100);\n block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 8));\n color: var(--vvd-color-canvas-text);\n font: var(--vvd-typography-base);\n outline: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n:host([cell-type=columnheader]) {\n border-color: currentColor;\n font: var(--vvd-typography-base-bold);\n}\n\n.focus-indicator {\n --focus-stroke-gap-color: transparent;\n pointer-events: none;\n}\n#focus-wrapper:not(.active) > .focus-indicator {\n display: none;\n}";
|
|
967
913
|
|
|
968
914
|
class DataGrid extends DataGrid$1 {}
|
|
969
915
|
|
package/index.js
CHANGED
|
@@ -43,6 +43,8 @@ export { r as registerTooltip, t as tooltipDefinition, a as tooltipRegistries }
|
|
|
43
43
|
export { r as registerTabs, t as tabsDefinition, a as tabsRegistries } from './shared/definition43.js';
|
|
44
44
|
export { r as registerTab, a as tabDefinition, t as tabRegistries } from './shared/definition41.js';
|
|
45
45
|
export { r as registerTabPanel, a as tabPanelDefinition, t as tabPanelRegistries } from './shared/definition42.js';
|
|
46
|
+
export { r as registerTreeView, t as treeViewDefinition, a as treeViewRegistries } from './shared/definition48.js';
|
|
47
|
+
export { r as registerTreeItem, t as treeItemDefinition, a as treeItemRegistries } from './shared/definition47.js';
|
|
46
48
|
export { a7 as designSystem, r as registerFactory } from './shared/index.js';
|
|
47
49
|
import './shared/key-codes.js';
|
|
48
50
|
import './shared/numbers.js';
|
|
@@ -84,3 +86,5 @@ import './shared/es.regexp.to-string.js';
|
|
|
84
86
|
import './shared/base-progress.js';
|
|
85
87
|
import './shared/radio.js';
|
|
86
88
|
import './shared/aria2.js';
|
|
89
|
+
import './shared/tree-item.js';
|
|
90
|
+
import './shared/children.js';
|
package/lib/components.d.ts
CHANGED
package/lib/option/option.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ export declare class ListboxOption extends FoundationListboxOption {
|
|
|
4
4
|
_text?: string;
|
|
5
5
|
set text(value: string);
|
|
6
6
|
get text(): string;
|
|
7
|
+
_label?: string;
|
|
8
|
+
get label(): string;
|
|
9
|
+
set label(value: string);
|
|
7
10
|
}
|
|
8
11
|
export interface ListboxOption extends AffixIconWithTrailing {
|
|
9
12
|
}
|
package/lib/select/select.d.ts
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const treeItemDefinition: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
3
|
+
export declare const registerTreeItem: (prefix?: string) => import("@microsoft/fast-foundation").DesignSystem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ElementDefinitionContext } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { TreeItem } from './tree-item';
|
|
3
|
+
export declare const expandCollapseButton: (context: ElementDefinitionContext) => import("@microsoft/fast-element").ViewTemplate<TreeItem, any>;
|
|
4
|
+
export declare const TreeItemTemplate: (context: ElementDefinitionContext) => import("@microsoft/fast-element").ViewTemplate<TreeItem, any>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const treeViewDefinition: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
3
|
+
export declare const registerTreeView: (prefix?: string) => import("@microsoft/fast-foundation").DesignSystem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { A as AttachedBehaviorHTMLDirective } from './index.js';
|
|
2
|
+
import { N as NodeObservationBehavior } from './slotted.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The runtime behavior for child node observation.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
class ChildrenBehavior extends NodeObservationBehavior {
|
|
9
|
+
/**
|
|
10
|
+
* Creates an instance of ChildrenBehavior.
|
|
11
|
+
* @param target - The element target to observe children on.
|
|
12
|
+
* @param options - The options to use when observing the element children.
|
|
13
|
+
*/
|
|
14
|
+
constructor(target, options) {
|
|
15
|
+
super(target, options);
|
|
16
|
+
this.observer = null;
|
|
17
|
+
options.childList = true;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Begins observation of the nodes.
|
|
21
|
+
*/
|
|
22
|
+
observe() {
|
|
23
|
+
if (this.observer === null) {
|
|
24
|
+
this.observer = new MutationObserver(this.handleEvent.bind(this));
|
|
25
|
+
}
|
|
26
|
+
this.observer.observe(this.target, this.options);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Disconnects observation of the nodes.
|
|
30
|
+
*/
|
|
31
|
+
disconnect() {
|
|
32
|
+
this.observer.disconnect();
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves the nodes that should be assigned to the target.
|
|
36
|
+
*/
|
|
37
|
+
getNodes() {
|
|
38
|
+
if ("subtree" in this.options) {
|
|
39
|
+
return Array.from(this.target.querySelectorAll(this.options.selector));
|
|
40
|
+
}
|
|
41
|
+
return Array.from(this.target.childNodes);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* A directive that observes the `childNodes` of an element and updates a property
|
|
46
|
+
* whenever they change.
|
|
47
|
+
* @param propertyOrOptions - The options used to configure child node observation.
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
function children(propertyOrOptions) {
|
|
51
|
+
if (typeof propertyOrOptions === "string") {
|
|
52
|
+
propertyOrOptions = {
|
|
53
|
+
property: propertyOrOptions,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
return new AttachedBehaviorHTMLDirective("fast-children", ChildrenBehavior, propertyOrOptions);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { children as c };
|
package/shared/definition.js
CHANGED
|
@@ -186,7 +186,7 @@ __decorate([
|
|
|
186
186
|
observable
|
|
187
187
|
], Accordion$1.prototype, "accordionItems", void 0);
|
|
188
188
|
|
|
189
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
189
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 08 Mar 2023 09:27:51 GMT\n */\n.base {\n display: flex;\n box-sizing: border-box;\n flex-direction: column;\n}\n\n::slotted(:not(:only-of-type)) {\n border-bottom: 1px solid var(--vvd-color-neutral-200);\n}";
|
|
190
190
|
|
|
191
191
|
class Accordion extends Accordion$1 {
|
|
192
192
|
constructor() {
|
package/shared/definition11.js
CHANGED
|
@@ -7,7 +7,7 @@ import { I as Icon } from './icon.js';
|
|
|
7
7
|
import { w as when } from './when.js';
|
|
8
8
|
import { c as classNames } from './class-names.js';
|
|
9
9
|
|
|
10
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
10
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 08 Mar 2023 09:27:51 GMT\n */\n.base {\n display: flex;\n align-items: center;\n color: var(--vvd-color-canvas-text);\n font: var(--vvd-typography-base);\n}\n.base .separator {\n margin: 0 16px;\n color: var(--vvd-color-neutral-600);\n font-size: 12px;\n}\n\n.control {\n position: relative;\n font: inherit;\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n.control:any-link {\n color: var(--vvd-color-cta-600);\n text-decoration: none;\n}\n.control:any-link:hover {\n text-decoration: underline;\n}\n\n.focus-indicator {\n --focus-inset: -4px -8px;\n --focus-stroke-gap-color: transparent;\n border-radius: 6px;\n}\n.control:not(:focus-visible) > .focus-indicator {\n display: none;\n}";
|
|
11
11
|
|
|
12
12
|
class BreadcrumbItem extends BreadcrumbItem$1 {
|
|
13
13
|
constructor() {
|
package/shared/definition12.js
CHANGED
|
@@ -506,7 +506,7 @@ _curry1(function isEmpty(x) {
|
|
|
506
506
|
|
|
507
507
|
var isEmpty$1 = isEmpty;
|
|
508
508
|
|
|
509
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
509
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 08 Mar 2023 09:27:51 GMT\n */\nol {\n padding: 0;\n margin: 0;\n list-style: none;\n}\n\n[role=grid i] {\n position: relative;\n z-index: 0;\n display: grid;\n margin: auto;\n grid-template-areas: \". column-headers\" \"row-headers calendar\";\n grid-template-columns: min-content auto;\n inline-size: max(100%, 500px);\n min-inline-size: 880px;\n}\n\n.row-headers {\n display: grid;\n grid-area: row-headers;\n grid-template-rows: repeat(24, 1fr);\n margin-inline-end: 2px;\n}\n.row-headers > [role=rowheader i] {\n display: flex;\n align-items: flex-end;\n justify-content: flex-end;\n}\n.row-headers > [role=rowheader i] > time {\n font: var(--vvd-typography-base-condensed);\n font-size: small;\n line-height: 1;\n text-transform: uppercase;\n white-space: nowrap;\n}\n\n.calendar-row {\n display: contents;\n}\n\n.calendar-grid-presentation {\n display: grid;\n overflow: hidden;\n background: var(--vvd-color-surface-2dp);\n border-radius: 6px;\n counter-reset: listing;\n filter: var(--vvd-shadow-surface-2dp);\n gap: 1px;\n grid-area: calendar;\n grid-auto-flow: column;\n grid-template: repeat(24, 1fr)/repeat(7, 1fr);\n}\n\n.hours {\n display: contents;\n}\n.hours > [role=listitem i] {\n position: relative;\n grid-column: 1/8;\n grid-row: var(--row);\n min-block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 8));\n pointer-events: none;\n}\n.hours > [role=listitem i]:not(:first-child)::after {\n position: absolute;\n border-block-end: var(--vvd-color-neutral-100) 1px solid;\n content: \"\";\n inline-size: 100%;\n margin-block-start: -1px;\n}\n.hours > [role=listitem i]:nth-child(24n+1) {\n --row: 1;\n}\n.hours > [role=listitem i]:nth-child(24n+2) {\n --row: 2;\n}\n.hours > [role=listitem i]:nth-child(24n+3) {\n --row: 3;\n}\n.hours > [role=listitem i]:nth-child(24n+4) {\n --row: 4;\n}\n.hours > [role=listitem i]:nth-child(24n+5) {\n --row: 5;\n}\n.hours > [role=listitem i]:nth-child(24n+6) {\n --row: 6;\n}\n.hours > [role=listitem i]:nth-child(24n+7) {\n --row: 7;\n}\n.hours > [role=listitem i]:nth-child(24n+8) {\n --row: 8;\n}\n.hours > [role=listitem i]:nth-child(24n+9) {\n --row: 9;\n}\n.hours > [role=listitem i]:nth-child(24n+10) {\n --row: 10;\n}\n.hours > [role=listitem i]:nth-child(24n+11) {\n --row: 11;\n}\n.hours > [role=listitem i]:nth-child(24n+12) {\n --row: 12;\n}\n.hours > [role=listitem i]:nth-child(24n+13) {\n --row: 13;\n}\n.hours > [role=listitem i]:nth-child(24n+14) {\n --row: 14;\n}\n.hours > [role=listitem i]:nth-child(24n+15) {\n --row: 15;\n}\n.hours > [role=listitem i]:nth-child(24n+16) {\n --row: 16;\n}\n.hours > [role=listitem i]:nth-child(24n+17) {\n --row: 17;\n}\n.hours > [role=listitem i]:nth-child(24n+18) {\n --row: 18;\n}\n.hours > [role=listitem i]:nth-child(24n+19) {\n --row: 19;\n}\n.hours > [role=listitem i]:nth-child(24n+20) {\n --row: 20;\n}\n.hours > [role=listitem i]:nth-child(24n+21) {\n --row: 21;\n}\n.hours > [role=listitem i]:nth-child(24n+22) {\n --row: 22;\n}\n.hours > [role=listitem i]:nth-child(24n+23) {\n --row: 23;\n}\n.hours > [role=listitem i]:nth-child(24n+24) {\n --row: 24;\n}\n\n[role=gridcell i] {\n display: grid;\n gap: 1px;\n grid-auto-flow: column;\n}\n\n[role=gridcell i],\n[role=columnheader i],\n[role=columnheader i] [role=button i] {\n position: relative;\n}\n[role=gridcell i]::before,\n[role=columnheader i]::before,\n[role=columnheader i] [role=button i]::before {\n position: absolute;\n z-index: -1;\n background-color: var(--vvd-color-information-400);\n content: \"\";\n}\n@supports (inset: 0) {\n [role=gridcell i]::before,\n[role=columnheader i]::before,\n[role=columnheader i] [role=button i]::before {\n inset: 0;\n }\n}\n@supports not (inset: 0) {\n [role=gridcell i]::before,\n[role=columnheader i]::before,\n[role=columnheader i] [role=button i]::before {\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n}\n[role=gridcell i]:focus,\n[role=columnheader i]:focus,\n[role=columnheader i] [role=button i]:focus {\n outline: none;\n}\n[role=gridcell i]:not(:focus-visible)::before,\n[role=columnheader i]:not(:focus-visible)::before,\n[role=columnheader i] [role=button i]:not(:focus-visible)::before {\n display: none;\n}\n\n.columns {\n display: contents;\n}\n.columns > [role=gridcell i] {\n position: relative;\n grid-column: var(--column);\n grid-row: 1/25;\n}\n.columns > [role=gridcell i]:nth-child(1) {\n --column: 1;\n}\n.columns > [role=gridcell i]:nth-child(2) {\n --column: 2;\n}\n.columns > [role=gridcell i]:nth-child(3) {\n --column: 3;\n}\n.columns > [role=gridcell i]:nth-child(4) {\n --column: 4;\n}\n.columns > [role=gridcell i]:nth-child(5) {\n --column: 5;\n}\n.columns > [role=gridcell i]:nth-child(6) {\n --column: 6;\n}\n.columns > [role=gridcell i]:nth-child(7) {\n --column: 7;\n}\n.columns > [role=gridcell i]:not(:first-child)::after {\n position: absolute;\n block-size: 100%;\n border-inline-end: var(--vvd-color-neutral-100) 1px solid;\n content: \"\";\n margin-inline-start: -1px;\n}\n\n.column-headers {\n display: grid;\n grid-area: column-headers;\n grid-template-columns: repeat(7, 1fr);\n}\n.column-headers [role=columnheader i] h2 {\n display: grid;\n align-items: baseline;\n margin: 0;\n font: var(--vvd-typography-heading-4);\n grid-template-columns: 1fr auto 1fr;\n}\n.column-headers [role=columnheader i] h2 > em {\n font: inherit;\n inline-size: min-content;\n}\n@supports (inset: 0) {\n .column-headers [role=columnheader i] h2 > em {\n inset-inline-start: 0;\n }\n}\n@supports not (inset: 0) {\n .column-headers [role=columnheader i] h2 > em {\n left: 0;\n }\n}\n.column-headers [role=columnheader i] h2 > small {\n font: var(--vvd-typography-base-condensed);\n text-transform: uppercase;\n}";
|
|
510
510
|
|
|
511
511
|
const ARROW_UP = 'ArrowUp';
|
|
512
512
|
const ARROW_RIGHT = 'ArrowRight';
|
package/shared/definition13.js
CHANGED
|
@@ -5,7 +5,7 @@ import { t as toString$1 } from './to-string.js';
|
|
|
5
5
|
import { w as when } from './when.js';
|
|
6
6
|
import { c as classNames } from './class-names.js';
|
|
7
7
|
|
|
8
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
8
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 08 Mar 2023 09:27:51 GMT\n */\n:host {\n display: contents;\n}\n\n.base {\n /* 4 as the indentation limit */\n /* per cell divider */\n /* per cell divider */\n --vvd-calendar-event--indent: calc(0px + var(--vvd-calendar-event--overlap-count, 0) * 8px);\n position: absolute;\n z-index: var(--vvd-calendar-event--overlap-count);\n top: calc(var(--vvd-calendar-event--start, 0) * (100% - 23px) / 24 + calc(1px * var(--vvd-calendar-event--start, 0)));\n overflow: hidden;\n box-sizing: border-box;\n padding: 4px 8px;\n background-color: var(--_appearance-color-fill);\n block-size: calc(var(--vvd-calendar-event--duration, 1) * calc((100% - 23px) / 24) + calc(1px * (var(--vvd-calendar-event--duration, 1) - 1)) - 4px);\n border-radius: 6px;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n inline-size: calc(100% - 8px - min(var(--vvd-calendar-event--indent), 32px));\n margin-block-start: 2px;\n margin-inline-end: 8px;\n margin-inline-start: min(var(--vvd-calendar-event--indent), 32px);\n max-block-size: calc(100% - calc(var(--vvd-calendar-event--start, 0) * (100% - 23px) / 24 + calc(1px * var(--vvd-calendar-event--start, 0))) - 4px);\n}\n.base.connotation-accent {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-contrast: var(--vvd-color-neutral-800);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\n}\n.base.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-contrast: var(--vvd-color-cta-800);\n --_connotation-color-soft: var(--vvd-color-cta-100);\n}\n.base.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-contrast: var(--vvd-color-success-800);\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-primary-text: var(--vvd-color-canvas);\n --_connotation-color-contrast: var(--vvd-color-alert-800);\n --_connotation-color-soft: var(--vvd-color-alert-100);\n}\n.base.connotation-warning {\n --_connotation-color-primary: var(--vvd-color-warning-300);\n --_connotation-color-primary-text: var(--vvd-color-canvas-text);\n --_connotation-color-contrast: var(--vvd-color-warning-800);\n --_connotation-color-soft: var(--vvd-color-warning-100);\n}\n.base.connotation-announcement {\n --_connotation-color-primary: var(--vvd-color-announcement-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-contrast: var(--vvd-color-announcement-800);\n --_connotation-color-soft: var(--vvd-color-announcement-100);\n}\n.base:not(.connotation-accent, .connotation-cta, .connotation-success, .connotation-alert, .connotation-warning, .connotation-announcement) {\n --_connotation-color-primary: var(--vvd-color-information-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-contrast: var(--vvd-color-information-800);\n --_connotation-color-soft: var(--vvd-color-information-100);\n}\n.base {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transparent;\n}\n.base.appearance-subtle {\n --_appearance-color-text: var(--_connotation-color-contrast);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transparent;\n}\n@supports (contain: content) {\n .base {\n contain: strict;\n }\n}\n@supports not (contain: content) {\n .base {\n overflow: hidden;\n }\n}\n.base:focus {\n z-index: 2000;\n filter: var(--vvd-shadow-surface-8dp);\n outline: none;\n}\n\nh2 {\n margin: 0;\n font: var(--vvd-typography-base-condensed-bold);\n}\nh2 > strong {\n font: inherit;\n}\n\np {\n margin: 0;\n font: var(--vvd-typography-base-condensed);\n}";
|
|
9
9
|
|
|
10
10
|
var $ = _export;
|
|
11
11
|
var DESCRIPTORS = descriptors;
|
package/shared/definition14.js
CHANGED
|
@@ -6,7 +6,7 @@ import { s as slotted } from './slotted.js';
|
|
|
6
6
|
import { w as when } from './when.js';
|
|
7
7
|
import { c as classNames } from './class-names.js';
|
|
8
8
|
|
|
9
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
9
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 08 Mar 2023 09:27:51 GMT\n */\n:host {\n display: flex;\n}\n\n.base {\n border-radius: 6px;\n inline-size: 100%;\n text-align: start;\n}\n\n.wrapper {\n display: flex;\n overflow: hidden;\n flex-flow: column;\n block-size: inherit;\n border-radius: inherit;\n color: var(--vvd-color-canvas-text);\n}\n\n.main-content {\n display: flex;\n flex-flow: column;\n padding: 24px;\n}\n\n.header {\n display: flex;\n flex: 1;\n align-items: flex-start;\n gap: 8px;\n}\n.header-content {\n flex: 1;\n}\n.header-wrapper {\n display: flex;\n gap: 8px;\n}\n.header-headline, .header-subtitle {\n /* stylelint-disable value-no-vendor-prefix */\n display: -webkit-box;\n /* stylelint-enable value-no-vendor-prefix */\n overflow: hidden;\n -webkit-box-orient: vertical;\n}\n.header-headline {\n font: var(--vvd-typography-heading-4);\n -webkit-line-clamp: var(--headline-line-clamp);\n}\n.header-subtitle {\n font: var(--vvd-typography-base);\n -webkit-line-clamp: var(--subtitle-line-clamp);\n}\n.hide-header .header {\n display: none;\n}\n\n.header-subtitle,\n.text {\n color: var(--vvd-color-neutral-600);\n font: var(--vvd-typography-base);\n}\n\n.text {\n padding-right: 8px;\n margin-top: 12px;\n}\n\n.footer {\n display: inline-flex;\n flex-direction: column;\n align-items: flex-end;\n padding-bottom: 24px;\n margin-top: auto;\n padding-inline: 24px;\n}\n.hide-footer .footer {\n display: none;\n}\n\n::slotted([slot=graphic i]),\n.icon {\n flex-shrink: 0;\n align-self: baseline;\n margin-block-start: 4px;\n}\n\n.icon {\n font-size: 20px;\n}\n\n::slotted([slot=meta i]) {\n flex-shrink: 0;\n align-self: flex-start;\n margin-block-start: -8px;\n margin-inline-end: -8px;\n margin-inline-start: auto;\n}";
|
|
10
10
|
|
|
11
11
|
class Card extends FoundationElement {}
|
|
12
12
|
__decorate([attr, __metadata("design:type", String)], Card.prototype, "headline", void 0);
|
package/shared/definition16.js
CHANGED
|
@@ -94,7 +94,7 @@ __decorate([
|
|
|
94
94
|
observable
|
|
95
95
|
], Checkbox$1.prototype, "indeterminate", void 0);
|
|
96
96
|
|
|
97
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
97
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 08 Mar 2023 09:27:51 GMT\n */\n.base {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n vertical-align: middle;\n}\n.base {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-neutral-800);\n --_connotation-color-intermediate: var(--vvd-color-neutral-500);\n --_connotation-color-backdrop: var(--vvd-color-canvas);\n --_connotation-color-firm: var(--vvd-color-canvas-text);\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: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(:checked, .checked):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: var(--_connotation-color-primary);\n}\n.base:where(:checked, .checked):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.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(.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@supports selector(:focus-visible) {\n .base:focus {\n outline: none;\n }\n}\n@supports (user-select: none) {\n .base {\n user-select: none;\n }\n}\n.base:not(.disabled) {\n cursor: pointer;\n}\n.base.disabled {\n cursor: not-allowed;\n pointer-events: none;\n}\n\n.control {\n position: relative;\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n background-color: var(--_appearance-color-fill);\n block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 20));\n border-radius: 3px;\n box-shadow: inset 0 0 0 2px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n inline-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 20));\n}\n\n.indicator {\n font-size: calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 20)) - 4px);\n}\n.base:not(.checked) .indicator.checkmark {\n display: none;\n}\n\n.base:not(.indeterminate) .indicator.minus, .base.checked .indicator.minus {\n display: none;\n}\n\nlabel {\n color: var(--vvd-color-canvas-text);\n cursor: pointer;\n font: var(--vvd-typography-base);\n}\n\n.focus-indicator {\n --focus-inset: -3px;\n --focus-stroke-gap-color: transparent;\n border-radius: 6px;\n}\n.base:not(:focus-visible) .focus-indicator {\n display: none;\n}\n\n.icon {\n font-size: calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 20)) * 0.7);\n line-height: 1;\n}";
|
|
98
98
|
|
|
99
99
|
const keySpace = ' ';
|
|
100
100
|
class Checkbox extends Checkbox$1 {
|
package/shared/definition17.js
CHANGED
|
@@ -622,7 +622,7 @@ __decorate([
|
|
|
622
622
|
applyMixins(DelegatesARIACombobox, DelegatesARIAListbox);
|
|
623
623
|
applyMixins(Combobox$1, StartEnd, DelegatesARIACombobox);
|
|
624
624
|
|
|
625
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
625
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 08 Mar 2023 09:27:51 GMT\n */\n:host {\n position: relative;\n}\n\n.control {\n display: flex;\n padding-inline-end: 44px;\n}\n\n.icon {\n inset-inline-end: 16px;\n inset-inline-start: unset;\n}\n:not(.disabled) .icon {\n cursor: pointer;\n}\n.disabled .icon {\n cursor: not-allowed;\n}\n\n.listbox {\n padding: 4px;\n background-color: var(--_appearance-color-fill);\n border-radius: 6px;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n contain: paint;\n}\n.listbox {\n --_connotation-color-backdrop: var(--vvd-color-canvas);\n --_connotation-color-intermediate: var(--vvd-color-neutral-500);\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\n}\n.listbox {\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.listbox.appearance-ghost {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.listbox: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.listbox: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\n.popup {\n --_popup-width: 100%;\n}";
|
|
626
626
|
|
|
627
627
|
let Combobox = class Combobox extends Combobox$1 {
|
|
628
628
|
connectedCallback() {
|
package/shared/definition19.js
CHANGED
|
@@ -213,10 +213,20 @@ class ListboxOption extends ListboxOption$1 {
|
|
|
213
213
|
var _a;
|
|
214
214
|
return (_a = this._text) !== null && _a !== void 0 ? _a : '';
|
|
215
215
|
}
|
|
216
|
+
get label() {
|
|
217
|
+
var _a;
|
|
218
|
+
return (_a = this._label) !== null && _a !== void 0 ? _a : this.text;
|
|
219
|
+
}
|
|
220
|
+
set label(value) {
|
|
221
|
+
this._label = value;
|
|
222
|
+
}
|
|
216
223
|
}
|
|
217
224
|
__decorate([attr({
|
|
218
225
|
attribute: 'text'
|
|
219
226
|
}), __metadata("design:type", String)], ListboxOption.prototype, "_text", void 0);
|
|
227
|
+
__decorate([attr({
|
|
228
|
+
attribute: 'label'
|
|
229
|
+
}), __metadata("design:type", String)], ListboxOption.prototype, "_label", void 0);
|
|
220
230
|
applyMixins(ListboxOption, AffixIconWithTrailing);
|
|
221
231
|
|
|
222
232
|
let _ = t => t,
|
|
@@ -248,7 +258,7 @@ const ListboxOptionTemplate = context => {
|
|
|
248
258
|
`), x => x.ariaChecked, x => x.ariaDisabled, x => x.ariaPosInSet, x => x.ariaSelected, x => x.ariaSetSize, getClasses, () => focusTemplate, x => affixIconTemplate(x.icon), when(x => x.text, html(_t2 || (_t2 = _`<div class="text">${0}</div>`), x => x.text)));
|
|
249
259
|
};
|
|
250
260
|
|
|
251
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
261
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 08 Mar 2023 09:27:51 GMT\n */\n.base {\n position: relative; /* this is needed for the focus */\n display: 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(--_option-appearance-color-text, 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 padding-inline: 16px;\n vertical-align: middle;\n word-break: break-word;\n}\n.base {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-neutral-800);\n --_connotation-color-faint: var(--vvd-color-neutral-50);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\n}\n.base {\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(--_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: transparent;\n --_appearance-color-outline: transparent;\n}\n.base: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.base: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.base: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@supports (user-select: none) {\n .base {\n user-select: none;\n }\n}\n.base:not(.disabled) {\n cursor: pointer;\n}\n.base.disabled {\n cursor: not-allowed;\n pointer-events: none;\n}\n.base .text {\n font: var(--vvd-typography-base);\n}\n\n.icon {\n font-size: 20px;\n line-height: 1;\n}\n.base:not(.disabled, .selected) .icon {\n color: var(--vvd-color-neutral-600);\n}\n\n.focus-indicator {\n --focus-stroke-color: var(--vvd-color-neutral-500);\n --focus-stroke-gap-color: transparent;\n}\n:host(:not([aria-checked=true])) .focus-indicator {\n display: none;\n}";
|
|
252
262
|
|
|
253
263
|
const listboxOptionDefinition = ListboxOption.compose({
|
|
254
264
|
baseName: 'option',
|