@vonage/vivid 5.1.0 → 5.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/accordion-item/definition.cjs +2 -1
- package/accordion-item/definition.js +2 -1
- package/alert/index.cjs +1 -1
- package/alert/index.js +1 -1
- package/audio-player/definition.cjs +41 -6
- package/audio-player/definition.js +41 -6
- package/audio-player/index.cjs +27 -25
- package/audio-player/index.js +88 -62
- package/badge/index.cjs +2 -2
- package/badge/index.js +4 -4
- package/banner/index.cjs +3 -3
- package/banner/index.js +6 -6
- package/breadcrumb-item/index.cjs +1 -1
- package/breadcrumb-item/index.js +1 -1
- package/bundled/affix.cjs +7 -7
- package/bundled/affix.js +5 -5
- package/bundled/anchored.cjs +1 -1
- package/bundled/anchored.js +6 -6
- package/bundled/attribute-binding-behaviour.cjs +1 -1
- package/bundled/attribute-binding-behaviour.js +15 -13
- package/bundled/base-color-picker.cjs +13 -0
- package/bundled/base-color-picker.js +194 -0
- package/bundled/button.cjs +1 -1
- package/bundled/button.js +2 -2
- package/bundled/calendar-picker.template.cjs +1 -1
- package/bundled/calendar-picker.template.js +21 -21
- package/bundled/char-count.cjs +1 -1
- package/bundled/char-count.js +1 -1
- package/bundled/children.cjs +1 -1
- package/bundled/children.js +28 -20
- package/bundled/definition.cjs +3 -3
- package/bundled/definition.js +38 -38
- package/bundled/definition10.cjs +72 -18
- package/bundled/definition10.js +351 -65
- package/bundled/definition11.cjs +19 -10
- package/bundled/definition11.js +66 -37
- package/bundled/definition12.cjs +10 -1
- package/bundled/definition12.js +38 -14
- package/bundled/definition13.cjs +1 -73
- package/bundled/definition13.js +15 -354
- package/bundled/definition15.cjs +1 -1
- package/bundled/definition15.js +1 -1
- package/bundled/definition16.cjs +2 -2
- package/bundled/definition16.js +8 -8
- package/bundled/definition17.cjs +7 -7
- package/bundled/definition17.js +17 -17
- package/bundled/definition19.cjs +17 -14
- package/bundled/definition19.js +85 -77
- package/bundled/definition2.cjs +9 -5
- package/bundled/definition2.js +21 -17
- package/bundled/definition22.cjs +9 -9
- package/bundled/definition22.js +31 -31
- package/bundled/definition3.cjs +1 -1
- package/bundled/definition3.js +1 -1
- package/bundled/definition6.cjs +6 -6
- package/bundled/definition6.js +34 -31
- package/bundled/definition7.cjs +1 -1
- package/bundled/definition7.js +6 -6
- package/bundled/definition8.cjs +2 -2
- package/bundled/definition8.js +4 -4
- package/bundled/definition9.cjs +1 -1
- package/bundled/definition9.js +1 -1
- package/bundled/delegates-aria.cjs +1 -1
- package/bundled/delegates-aria.js +59 -46
- package/bundled/form-associated.cjs +1 -1
- package/bundled/form-associated.js +3 -3
- package/bundled/host-semantics.cjs +1 -1
- package/bundled/host-semantics.js +48 -34
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +43 -31
- package/bundled/mixins.cjs +18 -18
- package/bundled/mixins.js +99 -93
- package/bundled/normalize.cjs +1 -0
- package/bundled/normalize.js +7 -0
- package/bundled/picker-field.template.cjs +18 -13
- package/bundled/picker-field.template.js +45 -37
- package/bundled/ref.cjs +1 -1
- package/bundled/ref.js +8 -25
- package/bundled/repeat.cjs +1 -1
- package/bundled/repeat.js +459 -233
- package/bundled/slider.template.cjs +1 -1
- package/bundled/slider.template.js +2 -2
- package/bundled/slotted.cjs +1 -1
- package/bundled/slotted.js +62 -45
- package/bundled/text-field.cjs +1 -1
- package/bundled/text-field.js +1 -1
- package/bundled/time-selection-picker.template.cjs +1 -1
- package/bundled/time-selection-picker.template.js +5 -5
- package/bundled/vivid-element.cjs +1 -1
- package/bundled/vivid-element.js +2126 -1172
- package/bundled/when.cjs +1 -1
- package/bundled/when.js +8 -7
- package/bundled/with-contextual-help.cjs +1 -1
- package/bundled/with-contextual-help.js +17 -7
- package/calendar/definition.cjs +1 -1
- package/calendar/definition.js +2 -2
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +6 -6
- package/calendar-event/index.cjs +1 -1
- package/calendar-event/index.js +1 -1
- package/card/definition.cjs +10 -2
- package/card/definition.js +10 -2
- package/card/index.cjs +19 -11
- package/card/index.js +35 -27
- package/color-picker/definition.cjs +1079 -0
- package/color-picker/definition.js +1073 -0
- package/color-picker/index.cjs +127 -0
- package/color-picker/index.js +726 -0
- package/combobox/definition.cjs +13 -6
- package/combobox/definition.js +14 -7
- package/combobox/index.cjs +15 -11
- package/combobox/index.js +82 -75
- package/contextual-help/index.cjs +1 -1
- package/contextual-help/index.js +1 -1
- package/custom-elements.json +1621 -325
- package/data-grid/definition.cjs +862 -27
- package/data-grid/definition.js +863 -28
- package/data-grid/index.cjs +25 -25
- package/data-grid/index.js +175 -168
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +2 -2
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +2 -2
- package/date-time-picker/index.cjs +1 -1
- package/date-time-picker/index.js +2 -2
- package/dial-pad/definition.cjs +55 -1
- package/dial-pad/definition.js +56 -2
- package/dial-pad/index.cjs +21 -18
- package/dial-pad/index.js +138 -104
- package/dialog/definition.cjs +4 -1
- package/dialog/definition.js +4 -1
- package/dialog/index.cjs +21 -18
- package/dialog/index.js +43 -40
- package/empty-state/definition.cjs +7 -2
- package/empty-state/definition.js +7 -2
- package/empty-state/index.cjs +10 -5
- package/empty-state/index.js +18 -13
- package/fab/index.cjs +2 -2
- package/fab/index.js +4 -4
- package/file-picker/definition.cjs +16 -7
- package/file-picker/definition.js +17 -8
- package/file-picker/index.cjs +12 -9
- package/file-picker/index.js +103 -93
- package/icon/definition.cjs +10 -6
- package/icon/definition.js +10 -6
- package/index.cjs +4 -0
- package/index.js +1 -0
- package/lib/accordion-item/accordion-item.d.ts +2 -2
- package/lib/action-group/action-group.d.ts +2 -2
- package/lib/alert/alert.d.ts +4 -4
- package/lib/audio-player/audio-player.d.ts +6 -2
- package/lib/avatar/avatar.d.ts +2 -2
- package/lib/badge/badge.d.ts +2 -2
- package/lib/banner/banner.d.ts +6 -6
- package/lib/breadcrumb/breadcrumb.d.ts +2 -2
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +2 -2
- package/lib/button/button.d.ts +6 -6
- package/lib/button/button.template.d.ts +2 -1
- package/lib/calendar/calendar.d.ts +1 -1
- package/lib/calendar-event/calendar-event.d.ts +2 -2
- package/lib/card/card.d.ts +2 -2
- package/lib/checkbox/checkbox.d.ts +12 -12
- package/lib/color-picker/color-picker.d.ts +2420 -0
- package/lib/color-picker/color-picker.template.d.ts +3 -0
- package/lib/color-picker/definition.d.ts +4 -0
- package/lib/color-picker/locale.d.ts +9 -0
- package/lib/combobox/combobox.d.ts +495 -78
- package/lib/components.d.ts +1 -0
- package/lib/data-grid/data-grid-cell.d.ts +4 -4
- package/lib/data-grid/data-grid-row.d.ts +3 -4
- package/lib/data-grid/data-grid.d.ts +1 -2
- package/lib/date-picker/date-picker.d.ts +906 -894
- package/lib/date-range-picker/date-range-picker.d.ts +596 -590
- package/lib/date-time-picker/date-time-picker.d.ts +907 -895
- package/lib/dial-pad/dial-pad.d.ts +3 -2
- package/lib/dial-pad/dial-pad.template.d.ts +1 -1
- package/lib/dial-pad/locale.d.ts +1 -0
- package/lib/dialog/dialog.d.ts +4 -4
- package/lib/divider/divider.d.ts +2 -2
- package/lib/fab/fab.d.ts +2 -2
- package/lib/file-picker/file-picker.d.ts +495 -78
- package/lib/header/header.d.ts +2 -2
- package/lib/menu/menu.d.ts +5 -4
- package/lib/menu-item/menu-item.d.ts +4 -4
- package/lib/nav/nav.d.ts +2 -2
- package/lib/nav-disclosure/nav-disclosure.d.ts +4 -4
- package/lib/nav-item/nav-item.d.ts +4 -4
- package/lib/note/note.d.ts +2 -2
- package/lib/number-field/number-field.d.ts +19 -18
- package/lib/option/option.d.ts +4 -4
- package/lib/pagination/pagination.d.ts +2 -2
- package/lib/progress/progress.d.ts +2 -2
- package/lib/progress-ring/progress-ring.d.ts +2 -2
- package/lib/radio/radio.d.ts +6 -6
- package/lib/radio-group/radio-group.d.ts +2 -2
- package/lib/range-slider/range-slider.d.ts +6 -6
- package/lib/rich-text-editor/menubar/menubar.d.ts +2 -2
- package/lib/rich-text-editor/rich-text-editor.d.ts +2 -2
- package/lib/searchable-select/option-tag.d.ts +2 -2
- package/lib/searchable-select/searchable-select.d.ts +521 -104
- package/lib/select/select.d.ts +484 -67
- package/lib/selectable-box/selectable-box.d.ts +2 -2
- package/lib/simple-color-picker/locale.d.ts +0 -1
- package/lib/simple-color-picker/simple-color-picker.d.ts +47 -821
- package/lib/slider/slider.d.ts +6 -6
- package/lib/split-button/split-button.d.ts +6 -6
- package/lib/switch/switch.d.ts +4 -4
- package/lib/tab/tab.d.ts +6 -6
- package/lib/tab-panel/tab-panel.d.ts +2 -2
- package/lib/tag/tag.d.ts +6 -6
- package/lib/tag-group/tag-group.d.ts +2 -2
- package/lib/tag-name-map.d.ts +2 -1
- package/lib/text-area/text-area.d.ts +17 -16
- package/lib/text-field/text-field.d.ts +19 -18
- package/lib/time-picker/time-picker.d.ts +579 -573
- package/lib/toggletip/toggletip.d.ts +4 -4
- package/lib/tooltip/tooltip.d.ts +2 -2
- package/lib/tree-item/tree-item.d.ts +4 -4
- package/lib/tree-view/tree-view.d.ts +2 -2
- package/lib/video-player/video-player.d.ts +2 -2
- package/locales/de-DE.cjs +15 -3
- package/locales/de-DE.js +15 -3
- package/locales/en-GB.cjs +15 -3
- package/locales/en-GB.js +15 -3
- package/locales/en-US.cjs +15 -3
- package/locales/en-US.js +15 -3
- package/locales/ja-JP.cjs +15 -3
- package/locales/ja-JP.js +15 -3
- package/locales/zh-CN.cjs +15 -3
- package/locales/zh-CN.js +15 -3
- package/menu/definition.cjs +8 -4
- package/menu/definition.js +9 -5
- package/note/index.cjs +2 -2
- package/note/index.js +4 -4
- package/number-field/definition.cjs +3 -3
- package/number-field/definition.js +4 -4
- package/number-field/index.cjs +8 -8
- package/number-field/index.js +41 -40
- package/option/index.cjs +1 -1
- package/option/index.js +1 -1
- package/package.json +5 -5
- package/pagination/definition.cjs +2 -1
- package/pagination/definition.js +2 -1
- package/pagination/index.cjs +12 -12
- package/pagination/index.js +59 -59
- package/progress/index.cjs +1 -1
- package/progress/index.js +1 -1
- package/radio/definition.cjs +9 -9
- package/radio/definition.js +10 -10
- package/radio-group/definition.cjs +2 -1
- package/radio-group/definition.js +2 -1
- package/radio-group/index.cjs +5 -5
- package/radio-group/index.js +80 -77
- package/range-slider/index.cjs +1 -1
- package/range-slider/index.js +1 -1
- package/rich-text-editor/definition.cjs +1 -1
- package/rich-text-editor/definition.js +2 -2
- package/rich-text-editor/index.cjs +2 -2
- package/rich-text-editor/index.js +3 -3
- package/searchable-select/definition.cjs +30 -21
- package/searchable-select/definition.js +31 -22
- package/searchable-select/index.cjs +28 -25
- package/searchable-select/index.js +149 -140
- package/select/definition.cjs +15 -7
- package/select/definition.js +16 -8
- package/selectable-box/definition.cjs +1 -1
- package/selectable-box/definition.js +1 -1
- package/selectable-box/index.cjs +3 -3
- package/selectable-box/index.js +20 -20
- package/shared/aria/aria-change-subscription.d.ts +0 -1
- package/shared/aria/aria-mixin.d.ts +2 -2
- package/shared/aria/delegate-aria-behavior.d.ts +5 -10
- package/shared/aria/delegates-aria.d.ts +3 -3
- package/shared/aria/host-semantics-behavior.d.ts +5 -8
- package/shared/aria/host-semantics.d.ts +3 -3
- package/shared/color-picker/base-color-picker.d.ts +436 -0
- package/shared/color-picker/index.d.ts +1 -0
- package/shared/color-picker/locale.d.ts +3 -0
- package/shared/color-picker/utils.d.ts +1 -0
- package/shared/deprecation/replaced-props.d.ts +317 -2
- package/shared/design-system/defineVividComponent.d.ts +2 -2
- package/shared/feedback/feedback-message.d.ts +2 -2
- package/shared/feedback/mixins.d.ts +4 -4
- package/shared/foundation/button/button.d.ts +4 -4
- package/shared/foundation/form-associated/form-associated.d.ts +4 -4
- package/shared/foundation/vivid-element/vivid-element.d.ts +335 -8
- package/shared/localization/Locale.d.ts +4 -0
- package/shared/patterns/affix.d.ts +4 -4
- package/shared/patterns/anchored.d.ts +4 -4
- package/shared/patterns/char-count/char-count.d.ts +2 -2
- package/shared/patterns/form-elements/form-element.d.ts +4 -4
- package/shared/patterns/form-elements/index.d.ts +1 -0
- package/shared/patterns/form-elements/with-contextual-help.d.ts +7 -6
- package/shared/patterns/form-elements/with-error-text.d.ts +6 -6
- package/shared/patterns/form-elements/with-success-text.d.ts +2 -2
- package/shared/patterns/linkable.d.ts +2 -2
- package/shared/patterns/localized.d.ts +2 -2
- package/shared/patterns/trapped-focus.d.ts +2 -2
- package/shared/picker-field/mixins/calendar-picker.d.ts +454 -451
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +454 -451
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +2 -2
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +600 -594
- package/shared/picker-field/mixins/single-date-picker.d.ts +746 -737
- package/shared/picker-field/mixins/single-value-picker.d.ts +451 -448
- package/shared/picker-field/mixins/time-selection-picker.d.ts +580 -574
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +579 -573
- package/shared/picker-field/picker-field.d.ts +495 -78
- package/shared/templating/attribute-binding-behaviour.d.ts +3 -4
- package/shared/templating/render-in-light-dom.d.ts +13 -12
- package/side-drawer/index.cjs +1 -1
- package/side-drawer/index.js +1 -1
- package/simple-color-picker/definition.cjs +28 -215
- package/simple-color-picker/definition.js +29 -216
- package/simple-color-picker/index.cjs +9 -21
- package/simple-color-picker/index.js +71 -185
- 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/styles/tokens/vivid-2-compat.css +1 -1
- package/switch/index.cjs +2 -2
- package/switch/index.js +4 -4
- package/tabs/definition.cjs +1 -1
- package/tabs/definition.js +2 -2
- package/tabs/index.cjs +2 -2
- package/tabs/index.js +16 -16
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text-area/definition.cjs +1 -1
- package/text-area/definition.js +1 -1
- package/text-area/index.cjs +3 -3
- package/text-area/index.js +9 -9
- package/text-field/definition.cjs +3 -3
- package/text-field/definition.js +4 -4
- package/text-field/index.cjs +1 -1
- package/text-field/index.js +1 -1
- package/time-picker/index.cjs +1 -1
- package/time-picker/index.js +2 -2
- package/toggletip/definition.cjs +1 -1
- package/toggletip/definition.js +2 -2
- package/tree-view/definition.cjs +1 -1
- package/tree-view/definition.js +2 -2
- package/tree-view/index.cjs +2 -2
- package/tree-view/index.js +6 -6
- package/unbundled/_commonjsHelpers.cjs +36 -0
- package/unbundled/_commonjsHelpers.js +32 -0
- package/unbundled/affix.cjs +1 -1
- package/unbundled/affix.js +1 -1
- package/unbundled/attribute-binding-behaviour.cjs +11 -10
- package/unbundled/attribute-binding-behaviour.js +11 -10
- package/unbundled/base-color-picker.cjs +278 -0
- package/unbundled/base-color-picker.js +275 -0
- package/unbundled/button.cjs +1 -1
- package/unbundled/button.js +2 -2
- package/unbundled/calendar-picker.template.cjs +3 -3
- package/unbundled/calendar-picker.template.js +4 -4
- package/unbundled/definition2.cjs +1 -1
- package/unbundled/definition2.js +2 -2
- package/unbundled/definition3.cjs +2 -1
- package/unbundled/definition3.js +2 -1
- package/unbundled/delegates-aria.cjs +67 -33
- package/unbundled/delegates-aria.js +69 -35
- package/unbundled/form-associated.cjs +2 -2
- package/unbundled/form-associated.js +3 -3
- package/unbundled/host-semantics.cjs +47 -22
- package/unbundled/host-semantics.js +48 -23
- package/unbundled/mixins.cjs +34 -27
- package/unbundled/mixins.js +35 -28
- package/unbundled/picker-field.template.cjs +13 -5
- package/unbundled/picker-field.template.js +14 -6
- package/unbundled/text-field.cjs +1 -1
- package/unbundled/text-field.js +1 -1
- package/unbundled/time-selection-picker.template.cjs +4 -4
- package/unbundled/time-selection-picker.template.js +5 -5
- package/unbundled/vivid-element.cjs +22 -15
- package/unbundled/vivid-element.js +23 -15
- package/unbundled/with-contextual-help.cjs +11 -0
- package/unbundled/with-contextual-help.js +11 -0
- package/video-player/definition.cjs +69007 -1
- package/video-player/definition.js +69007 -1
- package/video-player/index.cjs +35 -35
- package/video-player/index.js +1358 -1384
- package/visually-hidden/index.cjs +1 -1
- package/visually-hidden/index.js +1 -1
- package/vivid.api.json +347 -69
package/bundled/mixins.js
CHANGED
|
@@ -1,102 +1,108 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { w as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { n as k } from "./normalize.js";
|
|
2
|
+
import { d as _, h as d, V as $, a as y, M as F, H as I, o as f } from "./vivid-element.js";
|
|
3
|
+
import { i as w, I as D } from "./definition2.js";
|
|
4
|
+
import { v as C } from "./definition13.js";
|
|
5
|
+
import { w as m } from "./when.js";
|
|
6
|
+
import { c as B } from "./class-names.js";
|
|
7
|
+
import { L as H } from "./localized.js";
|
|
8
|
+
import { s as x } from "./slotted.js";
|
|
9
|
+
const S = ":host{display:contents}.message{display:flex;contain:inline-size;font:var(--vvd-typography-base-condensed);gap:4px;grid-column:1/-1}.message.none-message{display:none}.message.helper-message{color:var(--_low-ink-color)}.message.error-message,.message.success-message{color:var(--vvd-color-canvas-text)}slot{display:inline}.icon{font-size:16px}.error-message .icon{color:var(--vvd-color-alert-500)}.success-message .icon{color:var(--vvd-color-success-500)}.announcement{display:contents}";
|
|
10
|
+
var M = Object.defineProperty, O = (t, e, o, s) => {
|
|
11
|
+
for (var n = void 0, r = t.length - 1, a; r >= 0; r--)
|
|
12
|
+
(a = t[r]) && (n = a(e, o, n) || n);
|
|
13
|
+
return n && M(e, o, n), n;
|
|
13
14
|
};
|
|
14
|
-
class l extends
|
|
15
|
+
class l extends H($) {
|
|
15
16
|
constructor() {
|
|
16
17
|
super(...arguments), this.type = "none";
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
+
O([
|
|
20
21
|
y
|
|
21
22
|
], l.prototype, "type");
|
|
22
|
-
function
|
|
23
|
-
const
|
|
24
|
-
return d`<${
|
|
23
|
+
function u(t, e, o) {
|
|
24
|
+
const s = t.tagFor(D);
|
|
25
|
+
return d`<${s} class="icon" name="${e}" label="${(n) => n.locale.feedbackMessage[o]}"></${s}>`;
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
-
const
|
|
27
|
+
function U(t) {
|
|
28
|
+
const e = {
|
|
28
29
|
none: "",
|
|
29
30
|
helper: "",
|
|
30
|
-
error:
|
|
31
|
-
success:
|
|
31
|
+
error: u(t, "info-line", "errorIconText"),
|
|
32
|
+
success: u(t, "check-circle-line", "successIconText")
|
|
32
33
|
};
|
|
33
|
-
return d`${(
|
|
34
|
+
return d`${(o) => e[o.type]}`;
|
|
34
35
|
}
|
|
35
|
-
const g = (
|
|
36
|
-
const
|
|
37
|
-
class="${(
|
|
36
|
+
const g = (t) => t === "error", L = (t) => {
|
|
37
|
+
const e = d`<div
|
|
38
|
+
class="${(o) => B("message", `${o.type}-message`)}"
|
|
38
39
|
>
|
|
39
|
-
${
|
|
40
|
+
${U(t)}<slot></slot>
|
|
40
41
|
</div>`;
|
|
41
|
-
return d`${
|
|
42
|
+
return d`${m((o) => !g(o.type), e)}
|
|
42
43
|
<span class="announcement" role="status" aria-live="polite">
|
|
43
|
-
${
|
|
44
|
+
${m((o) => g(o.type), e)}
|
|
44
45
|
</span>`;
|
|
45
|
-
},
|
|
46
|
+
}, ee = _(
|
|
46
47
|
"feedback-message",
|
|
47
48
|
l,
|
|
48
|
-
|
|
49
|
-
[
|
|
49
|
+
L,
|
|
50
|
+
[w, C],
|
|
50
51
|
{
|
|
51
|
-
styles:
|
|
52
|
+
styles: S
|
|
52
53
|
}
|
|
53
54
|
);
|
|
54
55
|
class P {
|
|
55
|
-
constructor(
|
|
56
|
-
this.source = null, this.templateBindingObserver =
|
|
57
|
-
t,
|
|
56
|
+
constructor(e) {
|
|
57
|
+
this.source = null, this.templateBindingObserver = e.templateBinding.createObserver(
|
|
58
58
|
this,
|
|
59
|
-
|
|
59
|
+
e
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
|
-
bind(
|
|
63
|
-
this.source =
|
|
64
|
-
}
|
|
65
|
-
unbind() {
|
|
66
|
-
this.source = null, this.view.unbind(), this.templateBindingObserver.disconnect();
|
|
62
|
+
bind(e) {
|
|
63
|
+
this.source = e.source, this.context = e.context, this.controller = e, this.insertionPoint || (this.insertionPoint = document.createComment(""), this.source.appendChild(this.insertionPoint)), this.templateBindingObserver.bind(e), this.handleChange(this.source, this.templateBindingObserver);
|
|
67
64
|
}
|
|
65
|
+
// unbind(): void {
|
|
66
|
+
// this.source = null;
|
|
67
|
+
// if (this.view) {
|
|
68
|
+
// this.view.unbind();
|
|
69
|
+
// }
|
|
70
|
+
// // The observer will be automatically cleaned up when the behavior is destroyed
|
|
71
|
+
// }
|
|
68
72
|
/**
|
|
69
73
|
* Handles change of the template itself.
|
|
70
74
|
*/
|
|
71
|
-
handleChange() {
|
|
72
|
-
this.
|
|
73
|
-
this.templateBindingObserver.
|
|
74
|
-
|
|
75
|
+
handleChange(e, o) {
|
|
76
|
+
if (o === this.templateBindingObserver) {
|
|
77
|
+
const s = this.templateBindingObserver.bind(this.controller);
|
|
78
|
+
this.instantiateTemplate(s);
|
|
79
|
+
}
|
|
75
80
|
}
|
|
76
|
-
instantiateTemplate(
|
|
77
|
-
this.view && this.view.dispose(), this.view =
|
|
81
|
+
instantiateTemplate(e) {
|
|
82
|
+
this.view && this.view.dispose(), this.view = e.create(), this.view.bind(this.source, this.context), this.view.insertBefore(this.insertionPoint);
|
|
78
83
|
}
|
|
79
84
|
}
|
|
80
|
-
class
|
|
81
|
-
constructor(
|
|
82
|
-
|
|
85
|
+
class T {
|
|
86
|
+
constructor(e) {
|
|
87
|
+
this.targetNodeId = "", this.templateBinding = e, this.dataBinding = e;
|
|
88
|
+
}
|
|
89
|
+
createHTML(e) {
|
|
90
|
+
return F.comment(e(this));
|
|
83
91
|
}
|
|
84
92
|
createBehavior() {
|
|
85
|
-
return new P(
|
|
86
|
-
this.templateBinding,
|
|
87
|
-
this.isTemplateBindingVolatile
|
|
88
|
-
);
|
|
93
|
+
return new P(this);
|
|
89
94
|
}
|
|
90
95
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
96
|
+
I.define(T);
|
|
97
|
+
function R(t) {
|
|
98
|
+
const e = k(t);
|
|
99
|
+
return new T(e);
|
|
94
100
|
}
|
|
95
101
|
const i = [];
|
|
96
|
-
for (let
|
|
97
|
-
i.push((
|
|
98
|
-
function
|
|
99
|
-
return (i[e
|
|
102
|
+
for (let t = 0; t < 256; ++t)
|
|
103
|
+
i.push((t + 256).toString(16).slice(1));
|
|
104
|
+
function V(t, e = 0) {
|
|
105
|
+
return (i[t[e + 0]] + i[t[e + 1]] + i[t[e + 2]] + i[t[e + 3]] + "-" + i[t[e + 4]] + i[t[e + 5]] + "-" + i[t[e + 6]] + i[t[e + 7]] + "-" + i[t[e + 8]] + i[t[e + 9]] + "-" + i[t[e + 10]] + i[t[e + 11]] + i[t[e + 12]] + i[t[e + 13]] + i[t[e + 14]] + i[t[e + 15]]).toLowerCase();
|
|
100
106
|
}
|
|
101
107
|
let p;
|
|
102
108
|
const E = new Uint8Array(16);
|
|
@@ -109,23 +115,23 @@ function W() {
|
|
|
109
115
|
return p(E);
|
|
110
116
|
}
|
|
111
117
|
const j = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), b = { randomUUID: j };
|
|
112
|
-
function z(
|
|
113
|
-
if (b.randomUUID && !
|
|
118
|
+
function z(t, e, o) {
|
|
119
|
+
if (b.randomUUID && !t)
|
|
114
120
|
return b.randomUUID();
|
|
115
|
-
|
|
116
|
-
const
|
|
117
|
-
if (
|
|
121
|
+
t = t || {};
|
|
122
|
+
const s = t.random ?? t.rng?.() ?? W();
|
|
123
|
+
if (s.length < 16)
|
|
118
124
|
throw new Error("Random bytes length must be >= 16");
|
|
119
|
-
return
|
|
125
|
+
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, V(s);
|
|
120
126
|
}
|
|
121
127
|
const v = () => z();
|
|
122
|
-
var A = Object.defineProperty, h = (e,
|
|
123
|
-
for (var n = void 0, r =
|
|
124
|
-
(a =
|
|
125
|
-
return n && A(
|
|
128
|
+
var A = Object.defineProperty, h = (t, e, o, s) => {
|
|
129
|
+
for (var n = void 0, r = t.length - 1, a; r >= 0; r--)
|
|
130
|
+
(a = t[r]) && (n = a(e, o, n) || n);
|
|
131
|
+
return n && A(e, o, n), n;
|
|
126
132
|
};
|
|
127
|
-
const N = (
|
|
128
|
-
class
|
|
133
|
+
const N = (t) => {
|
|
134
|
+
class e extends t {
|
|
129
135
|
/**
|
|
130
136
|
* Ids of the feedback content that the control should use for aria-describedby.
|
|
131
137
|
*
|
|
@@ -138,8 +144,8 @@ const N = (e) => {
|
|
|
138
144
|
* @internal
|
|
139
145
|
*/
|
|
140
146
|
_internalFeedback() {
|
|
141
|
-
const
|
|
142
|
-
return r ? { type: "success", message: r } : n ? { type: "error", message: n } :
|
|
147
|
+
const s = this._helperTextSlottedContent?.length ? "" : this.helperText, n = this.errorValidationMessage, r = this.successText;
|
|
148
|
+
return r ? { type: "success", message: r } : n ? { type: "error", message: n } : s ? { type: "helper", message: s } : { type: "none", message: "" };
|
|
143
149
|
}
|
|
144
150
|
/**
|
|
145
151
|
* @internal
|
|
@@ -150,8 +156,8 @@ const N = (e) => {
|
|
|
150
156
|
/**
|
|
151
157
|
* @internal
|
|
152
158
|
*/
|
|
153
|
-
_getFeedbackTemplate(
|
|
154
|
-
const n =
|
|
159
|
+
_getFeedbackTemplate(s) {
|
|
160
|
+
const n = s.tagFor(l);
|
|
155
161
|
return d`
|
|
156
162
|
<${n} id="feedback" :type="${(r) => r._internalFeedback().type}">
|
|
157
163
|
${(r) => r._internalFeedback().message}
|
|
@@ -160,28 +166,28 @@ const N = (e) => {
|
|
|
160
166
|
id="slotted-helper-text-feedback"
|
|
161
167
|
:type="${(r) => r._slottedHelperTextFeedbackType()}"
|
|
162
168
|
>
|
|
163
|
-
<slot name="helper-text" ${
|
|
169
|
+
<slot name="helper-text" ${x("_helperTextSlottedContent")}></slot>
|
|
164
170
|
</${n}>
|
|
165
171
|
`;
|
|
166
172
|
}
|
|
167
173
|
}
|
|
168
174
|
return h([
|
|
169
175
|
y({ attribute: "helper-text" })
|
|
170
|
-
],
|
|
171
|
-
|
|
172
|
-
],
|
|
173
|
-
},
|
|
174
|
-
const
|
|
175
|
-
class
|
|
176
|
+
], e.prototype, "helperText"), h([
|
|
177
|
+
f
|
|
178
|
+
], e.prototype, "_helperTextSlottedContent"), e;
|
|
179
|
+
}, te = (t) => {
|
|
180
|
+
const e = () => `vvd-feedback-${v()}`, o = () => `vvd-slotted-feedback-${v()}`;
|
|
181
|
+
class s extends N(t) {
|
|
176
182
|
constructor() {
|
|
177
|
-
super(...arguments), this._slottedHelperTextIds = [], this._feedbackId =
|
|
183
|
+
super(...arguments), this._slottedHelperTextIds = [], this._feedbackId = e();
|
|
178
184
|
}
|
|
179
185
|
/**
|
|
180
186
|
* @internal
|
|
181
187
|
*/
|
|
182
188
|
_helperTextSlottedContentChanged(r, a) {
|
|
183
189
|
for (const c of a)
|
|
184
|
-
c.id || (c.id =
|
|
190
|
+
c.id || (c.id = o());
|
|
185
191
|
this._slottedHelperTextIds = a.map((c) => c.id);
|
|
186
192
|
}
|
|
187
193
|
/**
|
|
@@ -197,7 +203,7 @@ const N = (e) => {
|
|
|
197
203
|
const a = r.tagFor(l);
|
|
198
204
|
return d`
|
|
199
205
|
<slot name="_feedback"></slot>
|
|
200
|
-
${
|
|
206
|
+
${R(d`<${a}
|
|
201
207
|
slot="_feedback"
|
|
202
208
|
id="${(c) => c._feedbackId}"
|
|
203
209
|
:type="${(c) => c._internalFeedback().type}"
|
|
@@ -207,20 +213,20 @@ const N = (e) => {
|
|
|
207
213
|
<${a} :type="${(c) => c._slottedHelperTextFeedbackType()}">
|
|
208
214
|
<slot
|
|
209
215
|
name="helper-text"
|
|
210
|
-
${
|
|
216
|
+
${x("_helperTextSlottedContent")}
|
|
211
217
|
></slot>
|
|
212
218
|
</${a}>
|
|
213
219
|
`;
|
|
214
220
|
}
|
|
215
221
|
}
|
|
216
222
|
return h([
|
|
217
|
-
|
|
218
|
-
],
|
|
223
|
+
f
|
|
224
|
+
], s.prototype, "_slottedHelperTextIds"), s;
|
|
219
225
|
};
|
|
220
226
|
export {
|
|
221
227
|
N as W,
|
|
222
|
-
|
|
223
|
-
|
|
228
|
+
te as a,
|
|
229
|
+
ee as f,
|
|
224
230
|
v as g,
|
|
225
|
-
|
|
231
|
+
R as r
|
|
226
232
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./vivid-element.cjs");function e(n){return i.isFunction(n)?i.oneWay(n):n instanceof i.Binding?n:i.oneTime(()=>n)}exports.normalizeBinding=e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const _=require("./index.cjs"),v=require("./mixins.cjs"),g=require("./form-associated.cjs"),r=require("./vivid-element.cjs"),$=require("./with-contextual-help.cjs"),x=require("./with-error-text.cjs"),m=require("./form-element.cjs"),k=require("./localized.cjs"),F=require("./definition9.cjs"),E=require("./definition10.cjs"),y=require("./definition3.cjs"),p=require("./ref.cjs"),h=require("./slotted.cjs"),f=require("./class-names.cjs"),b=new WeakSet,C=l=>{b.add(l)},O=l=>{class t extends l{_trappedFocus(a,i){if(!b.has(a)&&a.key==="Tab"){const s=i(),o=s[0],e=s[s.length-1];if(a.shiftKey){if(this.shadowRoot.activeElement===o)return e.focus(),!0}else if(this.shadowRoot.activeElement===e)return o.focus(),!0}return!1}}return t},T=":host{display:inline-block}.base{display:inline-block;inline-size:100%}.control{inline-size:100%}.dialog{display:inline-flex;flex-direction:column}.dialog--padded{padding:12px;gap:12px}.dialog .footer{display:flex;align-items:center;justify-content:flex-end;padding:8px;gap:8px}.dialog .footer--with-separator{border-top:1px solid var(--vvd-color-neutral-200)}";var P=Object.defineProperty,u=(l,t,n,a)=>{for(var i=void 0,s=l.length-1,o;s>=0;s--)(o=l[s])&&(i=o(t,n,i)||i);return i&&P(t,n,i),i};class c extends $.WithContextualHelp(v.WithFeedback(x.WithErrorText(m.FormElement(O(k.Localized(g.FormAssociated(r.VividElement))))))){constructor(){super(),this.readOnly=!1,this.#e=()=>{this.$emit("focus",void 0,{bubbles:!1})},this.#t=()=>{this.$emit("blur",void 0,{bubbles:!1})},this.proxy=document.createElement("input"),this.#l={handleChange:()=>{this._updatePresentationValue()}},this._popupOpen=!1,this.#o=t=>{if(!this._popupOpen)return;const n=t.composedPath();[this._dialogEl,this._pickerButtonEl].some(i=>n.includes(i))||this._closePopup(!1)},this._presentationValue="",this.value=""}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.#o),this.addEventListener("focusin",this.#e),this.addEventListener("focusout",this.#t),this.#s()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.#o),this.removeEventListener("focusin",this.#e),this.removeEventListener("focusout",this.#t),this.#n()}#e;#t;validate(){this.proxy&&this.proxy.setCustomValidity(this._getCustomValidationError()??""),super.validate(this._textFieldEl?.querySelector("input")??void 0)}#l;#i;#s(){this.#i=r.Observable.binding(()=>this.locale,this.#l),this.#i.observe(this,r.ExecutionContext.default)}#n(){this.#i.dispose()}#o;#a(){this.readOnly||(this._popupOpen=!0)}_closePopup(t=!0){this._popupOpen=!1,t&&this._textFieldEl.focus()}_onBaseKeyDown(t){return this._popupOpen&&_.handleEscapeKeyAndStopPropogation(t)?(this._closePopup(),!1):!this._trappedFocus(t,()=>this._focusableElsWithinDialog())}_presentationValueChanged(){this.dirtyValue=!0,this.validate()}_onTextFieldInput(t){const n=t.currentTarget;this._presentationValue=n.value}_onPickerButtonClick(){this._popupOpen?this._closePopup():this.#a()}_onOkClick(){this._closePopup()}_onClearClick(){this.$emit("clear-click")}}u([r.attr({attribute:"readonly",mode:"boolean"})],c.prototype,"readOnly");u([r.observable],c.prototype,"_popupOpen");u([r.observable],c.prototype,"_presentationValue");const q=(l,t,{withSeparator:n,padded:a})=>{const i=l.tagFor(F.Popup),s=l.tagFor(E.TextField),o=l.tagFor(y.Button);return r.html`
|
|
2
2
|
<div class='base' @keydown='${(e,{event:d})=>e._onBaseKeyDown(d)}'>
|
|
3
|
-
<${
|
|
3
|
+
<${s} id='text-field'
|
|
4
4
|
${p.ref("_textFieldEl")}
|
|
5
5
|
class='control'
|
|
6
6
|
label='${e=>e.label}'
|
|
@@ -17,9 +17,14 @@
|
|
|
17
17
|
<slot
|
|
18
18
|
slot='${e=>e._helperTextSlottedContent?.length?"helper-text":void 0}'
|
|
19
19
|
name='helper-text'
|
|
20
|
-
${
|
|
20
|
+
${h.slotted("_helperTextSlottedContent")}
|
|
21
21
|
></slot>
|
|
22
|
-
|
|
22
|
+
<slot
|
|
23
|
+
slot='${e=>e._contextualHelpSlottedContent?.length?"contextual-help":void 0}'
|
|
24
|
+
name='contextual-help'
|
|
25
|
+
${h.slotted("_contextualHelpSlottedContent")}
|
|
26
|
+
></slot>
|
|
27
|
+
<${o}
|
|
23
28
|
id='picker-button'
|
|
24
29
|
${p.ref("_pickerButtonEl")}
|
|
25
30
|
slot='action-items'
|
|
@@ -29,34 +34,34 @@
|
|
|
29
34
|
?disabled='${e=>e.disabled||e.readOnly}'
|
|
30
35
|
aria-label='${e=>e._pickerButtonLabel}'
|
|
31
36
|
@click='${e=>e._onPickerButtonClick()}'
|
|
32
|
-
></${
|
|
33
|
-
</${
|
|
37
|
+
></${o}>
|
|
38
|
+
</${s}>
|
|
34
39
|
<${i}
|
|
35
40
|
?open='${e=>e._popupOpen}'
|
|
36
41
|
:anchor='${e=>e._textFieldEl}'
|
|
37
42
|
offset='${e=>e._helperTextSlottedContent?.length||e.helperText||e.errorValidationMessage?8:null}'
|
|
38
43
|
placement='bottom-start'
|
|
39
44
|
class='popup'>
|
|
40
|
-
<div class="${()=>
|
|
45
|
+
<div class="${()=>f.classNames("dialog",["dialog--padded",a])}" role='dialog' ${p.ref("_dialogEl")} aria-modal='true' aria-label='${e=>e._dialogLabel}'>
|
|
41
46
|
${()=>t}
|
|
42
|
-
<div class="${()=>
|
|
43
|
-
<${
|
|
47
|
+
<div class="${()=>f.classNames("footer",["footer--with-separator",n])}">
|
|
48
|
+
<${o}
|
|
44
49
|
id='clear-button'
|
|
45
50
|
tabindex='3'
|
|
46
51
|
class='vwc-button'
|
|
47
52
|
size='condensed'
|
|
48
53
|
label='${e=>e.locale.pickerField.clearLabel}'
|
|
49
54
|
@click='${e=>e._onClearClick()}'
|
|
50
|
-
></${
|
|
51
|
-
<${
|
|
55
|
+
></${o}>
|
|
56
|
+
<${o}
|
|
52
57
|
tabindex='3'
|
|
53
58
|
class='vwc-button'
|
|
54
59
|
size='condensed'
|
|
55
60
|
appearance='filled'
|
|
56
61
|
label='${e=>e.locale.pickerField.okLabel}'
|
|
57
62
|
@click='${e=>e._onOkClick()}'
|
|
58
|
-
></${
|
|
63
|
+
></${o}>
|
|
59
64
|
</div>
|
|
60
65
|
</div>
|
|
61
66
|
</${i}>
|
|
62
|
-
</div>`};exports.PickerField=c;exports.PickerFieldTemplate=
|
|
67
|
+
</div>`};exports.PickerField=c;exports.PickerFieldTemplate=q;exports.ignoreEventInFocusTraps=C;exports.pickerFieldStyles=T;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { h as
|
|
2
|
-
import { W as
|
|
3
|
-
import { F as
|
|
4
|
-
import { V as
|
|
5
|
-
import { W as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { h as b } from "./index.js";
|
|
2
|
+
import { W as _ } from "./mixins.js";
|
|
3
|
+
import { F as g } from "./form-associated.js";
|
|
4
|
+
import { V as v, O as $, E as x, a as k, o as f, h as F } from "./vivid-element.js";
|
|
5
|
+
import { W as y } from "./with-contextual-help.js";
|
|
6
|
+
import { W as C } from "./with-error-text.js";
|
|
7
|
+
import { F as E } from "./form-element.js";
|
|
8
|
+
import { L as O } from "./localized.js";
|
|
9
|
+
import { P as T } from "./definition9.js";
|
|
10
|
+
import { T as P } from "./definition10.js";
|
|
11
|
+
import { B as L } from "./definition3.js";
|
|
11
12
|
import { r as p } from "./ref.js";
|
|
12
|
-
import { s as
|
|
13
|
-
import { c as
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
},
|
|
13
|
+
import { s as u } from "./slotted.js";
|
|
14
|
+
import { c as h } from "./class-names.js";
|
|
15
|
+
const m = /* @__PURE__ */ new WeakSet(), G = (s) => {
|
|
16
|
+
m.add(s);
|
|
17
|
+
}, V = (s) => {
|
|
17
18
|
class t extends s {
|
|
18
19
|
/**
|
|
19
20
|
* @returns Whether focus was trapped.
|
|
20
21
|
* @internal
|
|
21
22
|
*/
|
|
22
23
|
_trappedFocus(n, o) {
|
|
23
|
-
if (!
|
|
24
|
+
if (!m.has(n) && n.key === "Tab") {
|
|
24
25
|
const l = o(), i = l[0], e = l[l.length - 1];
|
|
25
26
|
if (n.shiftKey) {
|
|
26
27
|
if (this.shadowRoot.activeElement === i)
|
|
@@ -32,15 +33,17 @@ const f = /* @__PURE__ */ new WeakSet(), q = (s) => {
|
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
return t;
|
|
35
|
-
},
|
|
36
|
-
var
|
|
36
|
+
}, J = ":host{display:inline-block}.base{display:inline-block;inline-size:100%}.control{inline-size:100%}.dialog{display:inline-flex;flex-direction:column}.dialog--padded{padding:12px;gap:12px}.dialog .footer{display:flex;align-items:center;justify-content:flex-end;padding:8px;gap:8px}.dialog .footer--with-separator{border-top:1px solid var(--vvd-color-neutral-200)}";
|
|
37
|
+
var w = Object.defineProperty, d = (s, t, a, n) => {
|
|
37
38
|
for (var o = void 0, l = s.length - 1, i; l >= 0; l--)
|
|
38
39
|
(i = s[l]) && (o = i(t, a, o) || o);
|
|
39
|
-
return o &&
|
|
40
|
+
return o && w(t, a, o), o;
|
|
40
41
|
};
|
|
41
|
-
class c extends
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
class c extends y(
|
|
43
|
+
_(
|
|
44
|
+
C(
|
|
45
|
+
E(V(O(g(v))))
|
|
46
|
+
)
|
|
44
47
|
)
|
|
45
48
|
) {
|
|
46
49
|
// --- Core ---
|
|
@@ -89,13 +92,13 @@ class c extends b(
|
|
|
89
92
|
#s;
|
|
90
93
|
#o;
|
|
91
94
|
#l() {
|
|
92
|
-
this.#o =
|
|
95
|
+
this.#o = $.binding(
|
|
93
96
|
() => this.locale,
|
|
94
97
|
this.#s
|
|
95
|
-
), this.#o.observe(this,
|
|
98
|
+
), this.#o.observe(this, x.default);
|
|
96
99
|
}
|
|
97
100
|
#a() {
|
|
98
|
-
this.#o.
|
|
101
|
+
this.#o.dispose();
|
|
99
102
|
}
|
|
100
103
|
#i;
|
|
101
104
|
#n() {
|
|
@@ -112,7 +115,7 @@ class c extends b(
|
|
|
112
115
|
* @internal
|
|
113
116
|
*/
|
|
114
117
|
_onBaseKeyDown(t) {
|
|
115
|
-
return this._popupOpen &&
|
|
118
|
+
return this._popupOpen && b(t) ? (this._closePopup(), !1) : !this._trappedFocus(t, () => this._focusableElsWithinDialog());
|
|
116
119
|
}
|
|
117
120
|
/**
|
|
118
121
|
* @internal
|
|
@@ -151,14 +154,14 @@ d([
|
|
|
151
154
|
k({ attribute: "readonly", mode: "boolean" })
|
|
152
155
|
], c.prototype, "readOnly");
|
|
153
156
|
d([
|
|
154
|
-
|
|
157
|
+
f
|
|
155
158
|
], c.prototype, "_popupOpen");
|
|
156
159
|
d([
|
|
157
|
-
|
|
160
|
+
f
|
|
158
161
|
], c.prototype, "_presentationValue");
|
|
159
|
-
const
|
|
160
|
-
const o = s.tagFor(
|
|
161
|
-
return
|
|
162
|
+
const Q = (s, t, { withSeparator: a, padded: n }) => {
|
|
163
|
+
const o = s.tagFor(T), l = s.tagFor(P), i = s.tagFor(L);
|
|
164
|
+
return F`
|
|
162
165
|
<div class='base' @keydown='${(e, { event: r }) => e._onBaseKeyDown(r)}'>
|
|
163
166
|
<${l} id='text-field'
|
|
164
167
|
${p("_textFieldEl")}
|
|
@@ -177,7 +180,12 @@ const G = (s, t, { withSeparator: a, padded: n }) => {
|
|
|
177
180
|
<slot
|
|
178
181
|
slot='${(e) => e._helperTextSlottedContent?.length ? "helper-text" : void 0}'
|
|
179
182
|
name='helper-text'
|
|
180
|
-
${
|
|
183
|
+
${u("_helperTextSlottedContent")}
|
|
184
|
+
></slot>
|
|
185
|
+
<slot
|
|
186
|
+
slot='${(e) => e._contextualHelpSlottedContent?.length ? "contextual-help" : void 0}'
|
|
187
|
+
name='contextual-help'
|
|
188
|
+
${u("_contextualHelpSlottedContent")}
|
|
181
189
|
></slot>
|
|
182
190
|
<${i}
|
|
183
191
|
id='picker-button'
|
|
@@ -197,14 +205,14 @@ const G = (s, t, { withSeparator: a, padded: n }) => {
|
|
|
197
205
|
offset='${(e) => e._helperTextSlottedContent?.length || e.helperText || e.errorValidationMessage ? 8 : null}'
|
|
198
206
|
placement='bottom-start'
|
|
199
207
|
class='popup'>
|
|
200
|
-
<div class="${() =>
|
|
208
|
+
<div class="${() => h("dialog", [
|
|
201
209
|
"dialog--padded",
|
|
202
210
|
n
|
|
203
211
|
])}" role='dialog' ${p(
|
|
204
212
|
"_dialogEl"
|
|
205
213
|
)} aria-modal='true' aria-label='${(e) => e._dialogLabel}'>
|
|
206
214
|
${() => t}
|
|
207
|
-
<div class="${() =>
|
|
215
|
+
<div class="${() => h("footer", ["footer--with-separator", a])}">
|
|
208
216
|
<${i}
|
|
209
217
|
id='clear-button'
|
|
210
218
|
tabindex='3'
|
|
@@ -228,7 +236,7 @@ const G = (s, t, { withSeparator: a, padded: n }) => {
|
|
|
228
236
|
};
|
|
229
237
|
export {
|
|
230
238
|
c as P,
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
239
|
+
Q as a,
|
|
240
|
+
G as i,
|
|
241
|
+
J as p
|
|
234
242
|
};
|
package/bundled/ref.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./vivid-element.cjs");class s{
|
|
1
|
+
"use strict";const i=require("./vivid-element.cjs");class s extends i.StatelessAttachedAttributeDirective{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}i.HTMLDirective.define(s);const r=e=>new s(e);exports.ref=r;
|
package/bundled/ref.js
CHANGED
|
@@ -1,32 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
class
|
|
1
|
+
import { S as i, H as r } from "./vivid-element.js";
|
|
2
|
+
class s extends i {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* @param
|
|
6
|
-
* @param propertyName - The name of the property to assign the reference to.
|
|
7
|
-
*/
|
|
8
|
-
constructor(t, e) {
|
|
9
|
-
this.target = t, this.propertyName = e;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Bind this behavior to the source.
|
|
13
|
-
* @param source - The source to bind to.
|
|
14
|
-
* @param context - The execution context that the binding is operating within.
|
|
4
|
+
* Bind this behavior.
|
|
5
|
+
* @param controller - The view controller that manages the lifecycle of this behavior.
|
|
15
6
|
*/
|
|
16
7
|
bind(t) {
|
|
17
|
-
t[this.
|
|
8
|
+
t.source[this.options] = t.targets[this.targetNodeId];
|
|
18
9
|
}
|
|
19
|
-
/**
|
|
20
|
-
* Unbinds this behavior from the source.
|
|
21
|
-
* @param source - The source to unbind from.
|
|
22
|
-
*/
|
|
23
|
-
/* eslint-disable-next-line @typescript-eslint/no-empty-function */
|
|
24
|
-
unbind() {
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function s(r) {
|
|
28
|
-
return new i("fast-ref", a, r);
|
|
29
10
|
}
|
|
11
|
+
r.define(s);
|
|
12
|
+
const c = (e) => new s(e);
|
|
30
13
|
export {
|
|
31
|
-
|
|
14
|
+
c as r
|
|
32
15
|
};
|