@vonage/vivid 5.24.0 → 5.25.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/README.md +1 -1
- package/avatar/index.cjs +10 -10
- package/avatar/index.js +4 -3
- package/breadcrumb-item/index.cjs +9 -5
- package/breadcrumb-item/index.js +11 -6
- package/bundled/affix.cjs +1 -1
- package/bundled/affix.js +1 -1
- package/bundled/definition10.cjs +2 -1
- package/bundled/definition10.js +3 -2
- package/bundled/definition11.cjs +4 -4
- package/bundled/definition11.js +4 -3
- package/bundled/definition12.cjs +1 -1
- package/bundled/definition12.js +1 -0
- package/bundled/definition15.cjs +5 -5
- package/bundled/definition15.js +4 -3
- package/bundled/definition17.cjs +7 -7
- package/bundled/definition17.js +22 -109
- package/bundled/definition18.cjs +3 -3
- package/bundled/definition18.js +9 -31
- package/bundled/definition19.cjs +19 -19
- package/bundled/definition19.js +3 -2
- package/bundled/definition21.cjs +8 -8
- package/bundled/definition21.js +5 -4
- package/bundled/definition22.cjs +2 -2
- package/bundled/definition22.js +2 -2
- package/bundled/definition24.cjs +4 -4
- package/bundled/definition24.js +4 -3
- package/bundled/definition25.cjs +3 -3
- package/bundled/definition25.js +32 -28
- package/bundled/definition3.cjs +5 -5
- package/bundled/definition3.js +10 -40
- package/bundled/definition4.cjs +6 -6
- package/bundled/definition4.js +4 -3
- package/bundled/definition6.cjs +11 -11
- package/bundled/definition6.js +4 -3
- package/bundled/definition9.cjs +12 -6
- package/bundled/definition9.js +66 -43
- package/bundled/extractOptions.cjs +1 -1
- package/bundled/extractOptions.js +2 -2
- package/bundled/icon.cjs +1 -0
- package/bundled/icon.js +34 -0
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +5 -2
- package/bundled/mixins.cjs +8 -8
- package/bundled/mixins.js +4 -3
- package/bundled/optgroup.cjs +1 -0
- package/bundled/optgroup.js +27 -0
- package/bundled/option.cjs +1 -0
- package/bundled/option.js +93 -0
- package/bundled/vivid-element.cjs +1 -1
- package/bundled/vivid-element.js +1 -1
- package/card/index.cjs +22 -22
- package/card/index.js +4 -3
- package/color-picker/index.cjs +18 -18
- package/color-picker/index.js +4 -3
- package/combobox/index.cjs +7 -7
- package/combobox/index.js +4 -2
- package/custom-elements.json +4159 -3847
- package/data-grid/index.cjs +24 -24
- package/data-grid/index.js +4 -3
- package/dial-pad/index.cjs +21 -21
- package/dial-pad/index.js +4 -3
- package/dialog/index.cjs +14 -14
- package/dialog/index.js +4 -3
- package/empty-state/index.cjs +3 -3
- package/empty-state/index.js +4 -3
- package/file-picker/index.cjs +7 -7
- package/file-picker/index.js +4 -3
- package/icon/definition.cjs +2 -1
- package/icon/definition.js +2 -1
- package/index.cjs +148 -141
- package/index.js +41 -37
- package/lib/accordion-item/accordion-item.d.ts +1 -0
- package/lib/combobox/combobox.d.ts +1 -1
- package/lib/components.d.ts +1 -0
- package/lib/dial-pad/dial-pad.d.ts +0 -1
- package/lib/listbox/definition.d.ts +3 -0
- package/lib/listbox/index.d.ts +1 -0
- package/lib/listbox/listbox.d.ts +1302 -0
- package/lib/listbox/listbox.template.d.ts +3 -0
- package/lib/listbox/variations.browser-spec.d.ts +1 -0
- package/lib/menu/menu.d.ts +0 -1
- package/lib/number-field/number-field.d.ts +0 -1
- package/lib/rich-text-editor/rte/features/base.d.ts +1 -0
- package/lib/rich-text-editor/rte/utils/default-textblock.d.ts +2 -2
- package/lib/tag-name-map.d.ts +2 -1
- package/lib/text-field/text-field.d.ts +1 -0
- package/lib/toggletip/toggletip.d.ts +1 -0
- package/lib/tooltip/tooltip.d.ts +1 -0
- package/listbox/definition.cjs +5 -0
- package/listbox/definition.js +2 -0
- package/listbox/index.cjs +11 -0
- package/listbox/index.js +540 -0
- package/nav/definition.cjs +1 -1
- package/nav/definition.js +1 -1
- package/nav-disclosure/definition.cjs +1 -1
- package/nav-disclosure/definition.js +1 -1
- package/nav-disclosure/index.cjs +4 -4
- package/nav-disclosure/index.js +4 -3
- package/nav-item/definition.cjs +1 -1
- package/nav-item/definition.js +1 -1
- package/note/definition.cjs +1 -1
- package/note/definition.js +1 -1
- package/number-field/definition.cjs +1 -1
- package/number-field/definition.js +1 -1
- package/optgroup/definition.cjs +2 -1
- package/optgroup/definition.js +2 -1
- package/option/definition.cjs +2 -1
- package/option/definition.js +2 -1
- package/package.json +8 -7
- package/pagination/definition.cjs +1 -1
- package/pagination/definition.js +1 -1
- package/platform-switch/definition.cjs +1 -1
- package/platform-switch/definition.js +1 -1
- package/popover/definition.cjs +1 -1
- package/popover/definition.js +1 -1
- package/popover/index.cjs +5 -5
- package/popover/index.js +4 -3
- package/progress/definition.cjs +1 -1
- package/progress/definition.js +1 -1
- package/radio/definition.cjs +1 -1
- package/radio/definition.js +1 -1
- package/radio-group/definition.cjs +1 -1
- package/radio-group/definition.js +1 -1
- package/range-slider/definition.cjs +1 -1
- package/range-slider/definition.js +1 -1
- package/rich-text-editor/definition.cjs +1 -1
- package/rich-text-editor/definition.js +1 -1
- package/rich-text-editor/index.cjs +13 -13
- package/rich-text-editor/index.js +22 -19
- package/rich-text-view/definition.cjs +1 -1
- package/rich-text-view/definition.js +1 -1
- package/searchable-select/definition.cjs +1 -1
- package/searchable-select/definition.js +1 -1
- package/searchable-select/index.cjs +23 -23
- package/searchable-select/index.js +10 -7
- package/select/definition.cjs +1 -1
- package/select/definition.js +1 -1
- package/selectable-box/definition.cjs +1 -1
- package/selectable-box/definition.js +1 -1
- package/shared/listbox/commands.d.ts +17 -0
- package/shared/listbox/move.d.ts +6 -0
- package/shared/listbox/options.d.ts +12 -0
- package/shared/listbox/selection.d.ts +28 -0
- package/shared/listbox/state.d.ts +26 -0
- package/shared/listbox/typeahead.d.ts +8 -0
- package/shared/listbox/with-options-filter.d.ts +440 -0
- package/shared/listbox/with-options.d.ts +862 -0
- package/side-drawer/definition.cjs +1 -1
- package/side-drawer/definition.js +1 -1
- package/simple-color-picker/definition.cjs +1 -1
- package/simple-color-picker/definition.js +1 -1
- package/simple-color-picker/index.cjs +6 -6
- package/simple-color-picker/index.js +4 -3
- package/split-button/definition.cjs +1 -1
- package/split-button/definition.js +1 -1
- package/status/definition.cjs +1 -1
- package/status/definition.js +1 -1
- package/switch/definition.cjs +1 -1
- package/switch/definition.js +1 -1
- package/tab/definition.cjs +1 -1
- package/tab/definition.js +1 -1
- package/tab-panel/definition.cjs +1 -1
- package/tab-panel/definition.js +1 -1
- package/table/definition.cjs +1 -1
- package/table/definition.js +1 -1
- package/table/index.cjs +13 -13
- package/table/index.js +4 -3
- package/tabs/definition.cjs +1 -1
- package/tabs/definition.js +1 -1
- package/tag/definition.cjs +1 -1
- package/tag/definition.js +1 -1
- package/tag/index.cjs +11 -11
- package/tag/index.js +4 -3
- package/tag-group/definition.cjs +1 -1
- package/tag-group/definition.js +1 -1
- package/text-area/definition.cjs +1 -1
- package/text-area/definition.js +1 -1
- package/time-picker/definition.cjs +1 -1
- package/time-picker/definition.js +1 -1
- package/tree-item/definition.cjs +1 -1
- package/tree-item/definition.js +1 -1
- package/tree-view/definition.cjs +1 -1
- package/tree-view/definition.js +1 -1
- package/unbundled/affix.cjs +2 -2
- package/unbundled/affix.js +1 -1
- package/unbundled/base-progress.cjs +1 -1
- package/unbundled/base-progress.js +1 -1
- package/unbundled/button.cjs +2 -2
- package/unbundled/button.js +2 -2
- package/unbundled/definition.cjs +2 -65
- package/unbundled/definition.js +4 -61
- package/unbundled/definition11.cjs +4 -3
- package/unbundled/definition11.js +3 -2
- package/unbundled/definition12.cjs +3 -2
- package/unbundled/definition12.js +3 -2
- package/unbundled/definition14.cjs +2 -1
- package/unbundled/definition14.js +2 -1
- package/unbundled/definition17.cjs +9 -4
- package/unbundled/definition17.js +9 -4
- package/unbundled/definition2.cjs +7 -2
- package/unbundled/definition2.js +8 -3
- package/unbundled/definition21.cjs +2 -1
- package/unbundled/definition21.js +2 -1
- package/unbundled/definition23.cjs +2 -1
- package/unbundled/definition23.js +2 -1
- package/unbundled/definition24.cjs +6 -4
- package/unbundled/definition24.js +6 -4
- package/unbundled/definition25.cjs +2 -1
- package/unbundled/definition25.js +2 -1
- package/unbundled/definition26.cjs +7 -4
- package/unbundled/definition26.js +7 -4
- package/unbundled/definition27.cjs +39 -5
- package/unbundled/definition27.js +40 -6
- package/unbundled/definition28.cjs +4 -3
- package/unbundled/definition28.js +4 -3
- package/unbundled/definition29.cjs +5 -168
- package/unbundled/definition29.js +11 -162
- package/unbundled/definition30.cjs +2 -63
- package/unbundled/definition30.js +5 -54
- package/unbundled/definition31.cjs +5 -3
- package/unbundled/definition31.js +5 -3
- package/unbundled/definition32.cjs +2 -1
- package/unbundled/definition32.js +2 -1
- package/unbundled/definition35.cjs +2 -1
- package/unbundled/definition35.js +2 -1
- package/unbundled/definition37.cjs +1 -1
- package/unbundled/definition37.js +1 -1
- package/unbundled/definition39.cjs +1 -1
- package/unbundled/definition39.js +1 -1
- package/unbundled/definition40.cjs +4 -2
- package/unbundled/definition40.js +4 -2
- package/unbundled/definition41.cjs +11 -6
- package/unbundled/definition41.js +11 -6
- package/unbundled/definition42.cjs +5 -4
- package/unbundled/definition42.js +5 -4
- package/unbundled/definition44.cjs +3 -2
- package/unbundled/definition44.js +3 -2
- package/unbundled/definition45.cjs +2 -2
- package/unbundled/definition45.js +2 -2
- package/unbundled/definition49.cjs +583 -79
- package/unbundled/definition49.js +579 -76
- package/unbundled/definition50.cjs +71 -33
- package/unbundled/definition50.js +67 -29
- package/unbundled/definition51.cjs +54 -23
- package/unbundled/definition51.js +52 -18
- package/unbundled/definition52.cjs +23 -39
- package/unbundled/definition52.js +17 -36
- package/unbundled/definition53.cjs +29 -314
- package/unbundled/definition53.js +27 -312
- package/unbundled/definition54.cjs +302 -195
- package/unbundled/definition54.js +298 -191
- package/unbundled/definition55.cjs +210 -40
- package/unbundled/definition55.js +206 -36
- package/unbundled/definition56.cjs +42 -266
- package/unbundled/definition56.js +38 -262
- package/unbundled/definition57.cjs +270 -50
- package/unbundled/definition57.js +267 -46
- package/unbundled/definition58.cjs +48 -146
- package/unbundled/definition58.js +47 -143
- package/unbundled/definition59.cjs +127 -225
- package/unbundled/definition59.js +122 -223
- package/unbundled/definition6.cjs +2 -1
- package/unbundled/definition6.js +2 -1
- package/unbundled/definition60.cjs +199 -418
- package/unbundled/definition60.js +196 -415
- package/unbundled/definition61.cjs +442 -3738
- package/unbundled/definition61.js +432 -3565
- package/unbundled/definition62.cjs +3717 -730
- package/unbundled/definition62.js +3544 -720
- package/unbundled/definition63.cjs +770 -97
- package/unbundled/definition63.js +767 -94
- package/unbundled/definition64.cjs +100 -999
- package/unbundled/definition64.js +98 -994
- package/unbundled/definition65.cjs +991 -93
- package/unbundled/definition65.js +985 -90
- package/unbundled/definition66.cjs +109 -73
- package/unbundled/definition66.js +105 -63
- package/unbundled/definition67.cjs +69 -155
- package/unbundled/definition67.js +60 -152
- package/unbundled/definition68.cjs +155 -119
- package/unbundled/definition68.js +151 -115
- package/unbundled/definition69.cjs +124 -49
- package/unbundled/definition69.js +120 -45
- package/unbundled/definition70.cjs +51 -85
- package/unbundled/definition70.js +50 -81
- package/unbundled/definition71.cjs +91 -19
- package/unbundled/definition71.js +86 -14
- package/unbundled/definition72.cjs +20 -87
- package/unbundled/definition72.js +14 -84
- package/unbundled/definition73.cjs +77 -294
- package/unbundled/definition73.js +72 -217
- package/unbundled/definition74.cjs +289 -311
- package/unbundled/definition74.js +219 -306
- package/unbundled/definition75.cjs +326 -26
- package/unbundled/definition75.js +317 -23
- package/unbundled/definition76.cjs +27 -122
- package/unbundled/definition76.js +22 -118
- package/unbundled/definition77.cjs +105 -232
- package/unbundled/definition77.js +101 -228
- package/unbundled/definition78.cjs +259 -26
- package/unbundled/definition78.js +249 -23
- package/unbundled/definition79.cjs +29 -148
- package/unbundled/definition79.js +27 -133
- package/unbundled/definition80.cjs +118 -173
- package/unbundled/definition80.js +109 -169
- package/unbundled/definition81.cjs +181 -477
- package/unbundled/definition81.js +176 -471
- package/unbundled/definition82.cjs +517 -0
- package/unbundled/definition82.js +497 -0
- package/unbundled/extractOptions.cjs +5 -5
- package/unbundled/extractOptions.js +2 -2
- package/unbundled/icon.cjs +67 -0
- package/unbundled/icon.js +61 -0
- package/unbundled/linkable.cjs +1 -1
- package/unbundled/linkable.js +1 -1
- package/unbundled/listbox.cjs +8 -3
- package/unbundled/listbox.js +7 -2
- package/unbundled/mixins.cjs +2 -1
- package/unbundled/mixins.js +2 -1
- package/unbundled/optgroup.cjs +66 -0
- package/unbundled/optgroup.js +54 -0
- package/unbundled/option.cjs +176 -0
- package/unbundled/option.js +164 -0
- package/unbundled/time-selection-picker.template.cjs +1 -1
- package/unbundled/time-selection-picker.template.js +1 -1
- package/unbundled/vivid-element.cjs +1 -1
- package/unbundled/vivid-element.js +1 -1
- package/video-player/definition.cjs +1 -1
- package/video-player/definition.js +1 -1
- package/vivid.api.json +336 -193
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { d as createRegisterFunction, t as VividElement, u as defineVividComponent } from "./vivid-element.js";
|
|
2
|
-
import {
|
|
2
|
+
import { t as iconDefinition } from "./definition.js";
|
|
3
3
|
import { t as __decorate } from "./decorate.js";
|
|
4
|
+
import { t as Icon } from "./icon.js";
|
|
4
5
|
import { n as delegateAria, t as DelegatesAria } from "./delegates-aria.js";
|
|
5
6
|
import { t as Localized } from "./localized.js";
|
|
6
7
|
import { i as Button, t as buttonDefinition } from "./definition6.js";
|
|
@@ -15,11 +16,11 @@ var dialog_default = ".base{white-space:initial;box-sizing:border-box;color:var(
|
|
|
15
16
|
/**
|
|
16
17
|
* @public
|
|
17
18
|
* @component dialog
|
|
18
|
-
* @slot graphic - Use the graphic slot
|
|
19
|
-
* @slot body - Use the body slot
|
|
20
|
-
* @slot footer - Use the footer slot
|
|
21
|
-
* @slot main - Assign nodes to the main slot to fully override a
|
|
22
|
-
* @slot action-items - Use the action-items slot
|
|
19
|
+
* @slot graphic - Use the graphic slot to replace the icon.
|
|
20
|
+
* @slot body - Use the body slot to add custom HTML to the Dialog.
|
|
21
|
+
* @slot footer - Use the footer slot to add additional content beside the action items.
|
|
22
|
+
* @slot main - Assign nodes to the main slot to fully override a Dialog’s predefined flow and style with your own.
|
|
23
|
+
* @slot action-items - Use the action-items slot to add action buttons to the bottom of the Dialog.
|
|
23
24
|
* @event {CustomEvent<undefined>} open - The `open` event fires when the dialog opens.
|
|
24
25
|
* @event {CustomEvent<string>} close - The `close` event fires when the dialog closes (either via user interaction or via the API). It returns the return value inside the event's details property.
|
|
25
26
|
* @event {CustomEvent<undefined>} cancel - The `cancel` event fires when the user requests to close the dialog. You can prevent the dialog from closing by calling `.preventDefault()` on the event.
|
|
@@ -64,6 +65,7 @@ var Dialog = class extends Localized(DelegatesAria(VividElement)) {
|
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
}
|
|
68
|
+
/** Gets or sets the Dialog's return value, often used to indicate which button the user pressed to close it. */
|
|
67
69
|
set returnValue(value) {
|
|
68
70
|
/* v8 ignore else -- @preserve */
|
|
69
71
|
if (this.#dialog) this.#dialog.returnValue = value;
|
|
@@ -118,13 +120,16 @@ var Dialog = class extends Localized(DelegatesAria(VividElement)) {
|
|
|
118
120
|
cancelable: true
|
|
119
121
|
})) this.open = false;
|
|
120
122
|
}
|
|
123
|
+
/** Closes the Dialog. */
|
|
121
124
|
close() {
|
|
122
125
|
this.open = false;
|
|
123
126
|
}
|
|
127
|
+
/** Opens the Dialog as non-modal. */
|
|
124
128
|
show() {
|
|
125
129
|
if (this._openedAsModal && !this.modal) throw new DOMException("Failed to execute 'show' on 'Dialog': The dialog is already open as a modal dialog, and therefore cannot be opened as a non-modal dialog.", "InvalidStateError");
|
|
126
130
|
this.open = true;
|
|
127
131
|
}
|
|
132
|
+
/** Opens the Dialog as modal. */
|
|
128
133
|
showModal() {
|
|
129
134
|
if (this.open && !this._openedAsModal) throw new DOMException("Failed to execute 'showModal' on 'Dialog': The dialog is already open as a non-modal dialog, and therefore cannot be opened as a modal dialog.", "InvalidStateError");
|
|
130
135
|
this._openedAsModal = true;
|
|
@@ -2,6 +2,7 @@ require("./chunk.cjs");
|
|
|
2
2
|
const require_vivid_element = require("./vivid-element.cjs");
|
|
3
3
|
const require_definition = require("./definition.cjs");
|
|
4
4
|
const require_decorate = require("./decorate.cjs");
|
|
5
|
+
const require_icon = require("./icon.cjs");
|
|
5
6
|
let _microsoft_fast_element = require("@microsoft/fast-element");
|
|
6
7
|
let _microsoft_fast_web_utilities = require("@microsoft/fast-web-utilities");
|
|
7
8
|
//#region src/lib/empty-state/empty-state.scss?inline
|
|
@@ -13,9 +14,9 @@ var empty_state_default = ":host{display:block}.base.connotation-cta{--_connotat
|
|
|
13
14
|
*
|
|
14
15
|
* @public
|
|
15
16
|
* @component empty-state
|
|
16
|
-
* @slot - The default slot controls the body text of the empty state
|
|
17
|
-
* @slot graphic - The graphic slot allows overriding the icon with a custom illustration
|
|
18
|
-
* @slot action-items - Slot to add action items to the empty state
|
|
17
|
+
* @slot - The default slot controls the body text of the empty state.
|
|
18
|
+
* @slot graphic - The graphic slot allows overriding the icon with a custom illustration.
|
|
19
|
+
* @slot action-items - Slot to add action items to the empty state.
|
|
19
20
|
*/
|
|
20
21
|
var EmptyState = class extends require_vivid_element.VividElement {};
|
|
21
22
|
require_decorate.__decorate([_microsoft_fast_element.attr], EmptyState.prototype, "connotation", void 0);
|
|
@@ -26,7 +27,7 @@ require_decorate.__decorate([_microsoft_fast_element.observable], EmptyState.pro
|
|
|
26
27
|
//#endregion
|
|
27
28
|
//#region src/lib/empty-state/empty-state.template.ts
|
|
28
29
|
var EmptyStateTemplate = (context) => {
|
|
29
|
-
const iconTag = context.tagFor(
|
|
30
|
+
const iconTag = context.tagFor(require_icon.Icon);
|
|
30
31
|
return _microsoft_fast_element.html` <div
|
|
31
32
|
class="${(x) => (0, _microsoft_fast_web_utilities.classNames)("base", [`connotation-${x.connotation}`, Boolean(x.connotation)], ["no-actions", x.slottedActionItems?.length === 0])}"
|
|
32
33
|
aria-labelledby="${(x) => x.headline ? "empty-state-headline" : null}"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { d as createRegisterFunction, t as VividElement, u as defineVividComponent } from "./vivid-element.js";
|
|
2
|
-
import {
|
|
2
|
+
import { t as iconDefinition } from "./definition.js";
|
|
3
3
|
import { t as __decorate } from "./decorate.js";
|
|
4
|
+
import { t as Icon } from "./icon.js";
|
|
4
5
|
import { attr, html, observable, slotted, when } from "@microsoft/fast-element";
|
|
5
6
|
import { classNames } from "@microsoft/fast-web-utilities";
|
|
6
7
|
//#region src/lib/empty-state/empty-state.scss?inline
|
|
@@ -12,9 +13,9 @@ var empty_state_default = ":host{display:block}.base.connotation-cta{--_connotat
|
|
|
12
13
|
*
|
|
13
14
|
* @public
|
|
14
15
|
* @component empty-state
|
|
15
|
-
* @slot - The default slot controls the body text of the empty state
|
|
16
|
-
* @slot graphic - The graphic slot allows overriding the icon with a custom illustration
|
|
17
|
-
* @slot action-items - Slot to add action items to the empty state
|
|
16
|
+
* @slot - The default slot controls the body text of the empty state.
|
|
17
|
+
* @slot graphic - The graphic slot allows overriding the icon with a custom illustration.
|
|
18
|
+
* @slot action-items - Slot to add action items to the empty state.
|
|
18
19
|
*/
|
|
19
20
|
var EmptyState = class extends VividElement {};
|
|
20
21
|
__decorate([attr], EmptyState.prototype, "connotation", void 0);
|
|
@@ -2,6 +2,7 @@ require("./chunk.cjs");
|
|
|
2
2
|
const require_vivid_element = require("./vivid-element.cjs");
|
|
3
3
|
const require_definition = require("./definition.cjs");
|
|
4
4
|
const require_decorate = require("./decorate.cjs");
|
|
5
|
+
const require_icon = require("./icon.cjs");
|
|
5
6
|
const require_delegates_aria = require("./delegates-aria.cjs");
|
|
6
7
|
const require_form_associated = require("./form-associated.cjs");
|
|
7
8
|
const require_localized = require("./localized.cjs");
|
|
@@ -78,7 +79,7 @@ function isAcceptedFileType(file, accept) {
|
|
|
78
79
|
/**
|
|
79
80
|
* @public
|
|
80
81
|
* @component file-picker
|
|
81
|
-
* @slot helper-text - Describes how to use the
|
|
82
|
+
* @slot helper-text - Describes how to use the File Picker. Alternative to the `helper-text` attribute.
|
|
82
83
|
* @event {CustomEvent<undefined>} change - Emitted when files are added or removed.
|
|
83
84
|
*/
|
|
84
85
|
var FilePicker = class extends require_with_contextual_help.WithContextualHelp(require_mixins.WithFeedback(require_with_error_text.WithErrorText(require_form_element.FormElement(require_delegates_aria.DelegatesAria(require_localized.Localized(require_form_associated.FormAssociated(require_vivid_element.VividElement))))))) {
|
|
@@ -322,7 +323,7 @@ var renderFileSize = (x, size) => {
|
|
|
322
323
|
${dictFileSizeUnits[selectedUnit]}`;
|
|
323
324
|
};
|
|
324
325
|
var FilePickerTemplate = (context) => {
|
|
325
|
-
const iconTag = context.tagFor(
|
|
326
|
+
const iconTag = context.tagFor(require_icon.Icon);
|
|
326
327
|
const buttonTag = context.tagFor(require_definition$1.Button);
|
|
327
328
|
return _microsoft_fast_element.html`
|
|
328
329
|
<div class="base">
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { d as createRegisterFunction, t as VividElement, u as defineVividComponent } from "./vivid-element.js";
|
|
2
|
-
import {
|
|
2
|
+
import { t as iconDefinition } from "./definition.js";
|
|
3
3
|
import { t as __decorate } from "./decorate.js";
|
|
4
|
+
import { t as Icon } from "./icon.js";
|
|
4
5
|
import { n as delegateAria, t as DelegatesAria } from "./delegates-aria.js";
|
|
5
6
|
import { n as FormAssociated } from "./form-associated.js";
|
|
6
7
|
import { t as Localized } from "./localized.js";
|
|
@@ -77,7 +78,7 @@ function isAcceptedFileType(file, accept) {
|
|
|
77
78
|
/**
|
|
78
79
|
* @public
|
|
79
80
|
* @component file-picker
|
|
80
|
-
* @slot helper-text - Describes how to use the
|
|
81
|
+
* @slot helper-text - Describes how to use the File Picker. Alternative to the `helper-text` attribute.
|
|
81
82
|
* @event {CustomEvent<undefined>} change - Emitted when files are added or removed.
|
|
82
83
|
*/
|
|
83
84
|
var FilePicker = class extends WithContextualHelp(WithFeedback(WithErrorText(FormElement(DelegatesAria(Localized(FormAssociated(VividElement))))))) {
|
|
@@ -13,8 +13,8 @@ var header_default = ".base{z-index:1;block-size:calc(calc(1px * (40 + 4 * clamp
|
|
|
13
13
|
* @public
|
|
14
14
|
* @component header
|
|
15
15
|
* @slot - Default slot.
|
|
16
|
-
* @slot action-items - Nodes assigned to action-items slot will be set at the end of the
|
|
17
|
-
* @slot app-content - Content vertically aligned with
|
|
16
|
+
* @slot action-items - Nodes assigned to the `action-items` slot will be set at the end of the Header.
|
|
17
|
+
* @slot app-content - Content vertically aligned with the Header.
|
|
18
18
|
*/
|
|
19
19
|
var Header = class extends require_delegates_aria.DelegatesAria(require_vivid_element.VividElement) {
|
|
20
20
|
constructor(..._args) {
|
|
@@ -12,8 +12,8 @@ var header_default = ".base{z-index:1;block-size:calc(calc(1px * (40 + 4 * clamp
|
|
|
12
12
|
* @public
|
|
13
13
|
* @component header
|
|
14
14
|
* @slot - Default slot.
|
|
15
|
-
* @slot action-items - Nodes assigned to action-items slot will be set at the end of the
|
|
16
|
-
* @slot app-content - Content vertically aligned with
|
|
15
|
+
* @slot action-items - Nodes assigned to the `action-items` slot will be set at the end of the Header.
|
|
16
|
+
* @slot app-content - Content vertically aligned with the Header.
|
|
17
17
|
*/
|
|
18
18
|
var Header = class extends DelegatesAria(VividElement) {
|
|
19
19
|
constructor(..._args) {
|