@vonage/vivid 3.51.0 → 3.52.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/alert/index.cjs +1 -1
- package/alert/index.js +1 -1
- package/appearance-ui/index.cjs +19 -11
- package/appearance-ui/index.js +19 -11
- package/audio-player/index.cjs +2 -1
- package/audio-player/index.js +2 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/combobox/index.cjs +2 -5
- package/combobox/index.js +2 -5
- package/custom-elements.json +1357 -529
- package/date-picker/index.cjs +3 -6
- package/date-picker/index.js +3 -6
- package/date-range-picker/index.cjs +2 -5
- package/date-range-picker/index.js +2 -5
- package/dialog/index.cjs +1 -1
- package/dialog/index.js +1 -1
- package/elevation/index.cjs +1 -1
- package/elevation/index.js +1 -1
- package/file-picker/index.cjs +0 -2
- package/file-picker/index.js +0 -2
- package/header/index.cjs +1 -1
- package/header/index.js +1 -1
- package/index.cjs +60 -58
- package/index.js +22 -23
- package/lib/avatar/definition.d.ts +1 -1
- package/lib/button/button.d.ts +1 -0
- package/lib/button/definition.d.ts +1 -1
- package/lib/calendar-event/definition.d.ts +1 -1
- package/lib/components.d.ts +1 -0
- package/lib/layout/definition.d.ts +1 -1
- package/lib/menu-item/menu-item.d.ts +3 -0
- package/lib/range-slider/definition.d.ts +3 -0
- package/lib/range-slider/locale.d.ts +4 -0
- package/lib/range-slider/range-slider.d.ts +32 -0
- package/lib/range-slider/range-slider.form-associated.d.ts +10 -0
- package/lib/range-slider/range-slider.template.d.ts +4 -0
- package/lib/range-slider/utils/lerp.d.ts +2 -0
- package/lib/range-slider/utils/roundToStepValue.d.ts +1 -0
- package/lib/slider/slider.template.d.ts +1 -0
- package/lib/split-button/definition.d.ts +1 -1
- package/listbox/index.cjs +23 -22
- package/listbox/index.js +23 -22
- package/locales/en-GB.cjs +4 -0
- package/locales/en-GB.js +4 -0
- package/locales/en-US.cjs +4 -0
- package/locales/en-US.js +4 -0
- package/locales/ja-JP.cjs +5 -1
- package/locales/ja-JP.js +5 -1
- package/locales/zh-CN.cjs +4 -0
- package/locales/zh-CN.js +4 -0
- package/menu/index.cjs +3 -3
- package/menu/index.js +3 -3
- package/menu-item/index.cjs +2 -2
- package/menu-item/index.js +2 -2
- package/number-field/index.cjs +0 -2
- package/number-field/index.js +0 -2
- package/package.json +34 -34
- package/popup/index.cjs +2 -2
- package/popup/index.js +2 -2
- package/range-slider/index.cjs +22 -0
- package/range-slider/index.js +20 -0
- package/select/index.cjs +3 -3
- package/select/index.js +3 -3
- package/selectable-box/index.cjs +1 -1
- package/selectable-box/index.js +1 -1
- package/shared/Reflector.cjs +5 -1
- package/shared/Reflector.js +5 -1
- package/shared/affix.cjs +11 -4
- package/shared/affix.js +12 -4
- package/shared/anchored.cjs +8 -2
- package/shared/anchored.js +8 -2
- package/shared/definition.cjs +8 -3
- package/shared/definition.js +8 -3
- package/shared/definition10.cjs +5 -5
- package/shared/definition10.js +5 -5
- package/shared/definition11.cjs +75 -47
- package/shared/definition11.js +76 -48
- package/shared/definition12.cjs +12 -14
- package/shared/definition12.js +12 -14
- package/shared/definition13.cjs +118 -75
- package/shared/definition13.js +118 -75
- package/shared/definition14.cjs +33 -32
- package/shared/definition14.js +33 -32
- package/shared/definition15.cjs +20 -7
- package/shared/definition15.js +20 -7
- package/shared/definition16.cjs +37 -42
- package/shared/definition16.js +36 -41
- package/shared/definition17.cjs +125 -65
- package/shared/definition17.js +126 -66
- package/shared/definition18.cjs +30 -14
- package/shared/definition18.js +30 -14
- package/shared/definition19.cjs +116 -80
- package/shared/definition19.js +116 -80
- package/shared/definition2.cjs +10 -5
- package/shared/definition2.js +10 -5
- package/shared/definition20.cjs +16 -15
- package/shared/definition20.js +16 -15
- package/shared/definition21.cjs +6 -10
- package/shared/definition21.js +6 -10
- package/shared/definition22.cjs +14 -18
- package/shared/definition22.js +14 -18
- package/shared/definition23.cjs +34 -35
- package/shared/definition23.js +34 -35
- package/shared/definition24.cjs +116 -69
- package/shared/definition24.js +116 -69
- package/shared/definition25.cjs +2 -4
- package/shared/definition25.js +2 -4
- package/shared/definition26.cjs +9 -8
- package/shared/definition26.js +9 -8
- package/shared/definition27.cjs +7 -5
- package/shared/definition27.js +7 -5
- package/shared/definition28.cjs +209 -143
- package/shared/definition28.js +209 -143
- package/shared/definition29.cjs +10 -4
- package/shared/definition29.js +10 -4
- package/shared/definition3.cjs +7 -10
- package/shared/definition3.js +7 -10
- package/shared/definition30.cjs +7 -5
- package/shared/definition30.js +7 -5
- package/shared/definition31.cjs +2 -4
- package/shared/definition31.js +2 -4
- package/shared/definition32.cjs +1 -3
- package/shared/definition32.js +1 -3
- package/shared/definition33.cjs +7 -10
- package/shared/definition33.js +7 -10
- package/shared/definition34.cjs +76 -59
- package/shared/definition34.js +76 -59
- package/shared/definition35.cjs +19 -20
- package/shared/definition35.js +19 -20
- package/shared/definition36.cjs +30 -14
- package/shared/definition36.js +30 -14
- package/shared/definition37.cjs +33 -46
- package/shared/definition37.js +33 -46
- package/shared/definition38.cjs +31 -33
- package/shared/definition38.js +31 -33
- package/shared/definition39.cjs +13 -4
- package/shared/definition39.js +13 -4
- package/shared/definition4.cjs +23 -11
- package/shared/definition4.js +23 -11
- package/shared/definition40.cjs +19 -14
- package/shared/definition40.js +19 -14
- package/shared/definition41.cjs +534 -635
- package/shared/definition41.js +534 -635
- package/shared/definition42.cjs +674 -106
- package/shared/definition42.js +673 -105
- package/shared/definition43.cjs +122 -79
- package/shared/definition43.js +120 -77
- package/shared/definition44.cjs +72 -567
- package/shared/definition44.js +71 -565
- package/shared/definition45.cjs +520 -118
- package/shared/definition45.js +518 -117
- package/shared/definition46.cjs +117 -130
- package/shared/definition46.js +116 -129
- package/shared/definition47.cjs +152 -18
- package/shared/definition47.js +151 -17
- package/shared/definition48.cjs +20 -77
- package/shared/definition48.js +19 -76
- package/shared/definition49.cjs +52 -495
- package/shared/definition49.js +51 -494
- package/shared/definition5.cjs +20 -17
- package/shared/definition5.js +20 -17
- package/shared/definition50.cjs +525 -24
- package/shared/definition50.js +524 -23
- package/shared/definition51.cjs +28 -119
- package/shared/definition51.js +26 -118
- package/shared/definition52.cjs +113 -266
- package/shared/definition52.js +113 -265
- package/shared/definition53.cjs +285 -245
- package/shared/definition53.js +285 -245
- package/shared/definition54.cjs +285 -751
- package/shared/definition54.js +284 -750
- package/shared/definition55.cjs +828 -99
- package/shared/definition55.js +827 -98
- package/shared/definition56.cjs +126 -77
- package/shared/definition56.js +125 -76
- package/shared/definition57.cjs +125 -71
- package/shared/definition57.js +124 -70
- package/shared/definition58.cjs +73 -287
- package/shared/definition58.js +74 -288
- package/shared/definition59.cjs +298 -40
- package/shared/definition59.js +297 -39
- package/shared/definition6.cjs +3 -4
- package/shared/definition6.js +3 -4
- package/shared/definition60.cjs +24 -1784
- package/shared/definition60.js +23 -1783
- package/shared/definition61.cjs +1819 -11
- package/shared/definition61.js +1818 -11
- package/shared/definition7.cjs +6 -4
- package/shared/definition7.js +6 -4
- package/shared/definition8.cjs +25 -18
- package/shared/definition8.js +25 -18
- package/shared/definition9.cjs +6 -9
- package/shared/definition9.js +6 -9
- package/shared/icon.cjs +7 -2
- package/shared/icon.js +7 -2
- package/shared/index2.cjs +1 -1
- package/shared/index2.js +1 -1
- package/shared/key-codes2.cjs +8 -0
- package/shared/key-codes2.js +5 -1
- package/shared/localization/Locale.d.ts +2 -0
- package/shared/patterns/index.d.ts +0 -1
- package/shared/presentationDate.cjs +126 -78
- package/shared/presentationDate.js +126 -78
- package/shared/slider.template.cjs +71 -0
- package/shared/slider.template.js +67 -0
- package/shared/text-anchor.template.cjs +30 -35
- package/shared/text-anchor.template.js +30 -35
- package/shared/text-field.cjs +1 -1
- package/shared/text-field.js +1 -1
- package/side-drawer/index.cjs +1 -1
- package/side-drawer/index.js +1 -1
- package/slider/index.cjs +2 -1
- package/slider/index.js +2 -1
- package/split-button/index.cjs +1 -1
- package/split-button/index.js +1 -1
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/fonts/spezia-variable.css +39 -13
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +4 -2
- package/switch/index.cjs +1 -1
- package/switch/index.js +1 -1
- package/tab/index.cjs +1 -1
- package/tab/index.js +1 -1
- package/tab-panel/index.cjs +1 -1
- package/tab-panel/index.js +1 -1
- package/tabs/index.cjs +3 -3
- package/tabs/index.js +3 -3
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/tag-group/index.cjs +1 -1
- package/tag-group/index.js +1 -1
- package/text-area/index.cjs +1 -1
- package/text-area/index.js +1 -1
- package/text-field/index.cjs +1 -4
- package/text-field/index.js +1 -4
- package/time-picker/index.cjs +4 -7
- package/time-picker/index.js +4 -7
- package/toggletip/index.cjs +3 -3
- package/toggletip/index.js +3 -3
- package/tooltip/index.cjs +3 -3
- package/tooltip/index.js +3 -3
- package/tree-item/index.cjs +1 -1
- package/tree-item/index.js +1 -1
- package/tree-view/index.cjs +1 -1
- package/tree-view/index.js +1 -1
- package/vivid.api.json +117 -1
- package/focus/index.cjs +0 -7
- package/focus/index.js +0 -5
- package/lib/focus/definition.d.ts +0 -3
- package/lib/focus/focus.d.ts +0 -3
- package/lib/focus/focus.template.d.ts +0 -4
- package/lib/popup/popup.d.ts +0 -21
- package/shared/focus.cjs +0 -8
- package/shared/focus.js +0 -6
- package/shared/focus2.cjs +0 -11
- package/shared/focus2.js +0 -9
- package/shared/patterns/focus.d.ts +0 -3
package/shared/definition17.js
CHANGED
|
@@ -5,7 +5,7 @@ import { R as RepeatDirective } from './repeat.js';
|
|
|
5
5
|
import { s as slotted, e as elements } from './slotted.js';
|
|
6
6
|
import { c as children } from './children.js';
|
|
7
7
|
import { I as Icon } from './icon.js';
|
|
8
|
-
import {
|
|
8
|
+
import { f as keyEnter$1, g as keySpace } from './key-codes2.js';
|
|
9
9
|
import { w as when } from './when.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -909,9 +909,9 @@ __decorate([
|
|
|
909
909
|
|
|
910
910
|
const dataGridStyles = ":host{display:block}:host([generate-header=sticky]){max-block-size:400px}.base{position:relative;overflow:auto;block-size:inherit;inline-size:100%;max-block-size:inherit}\n";
|
|
911
911
|
|
|
912
|
-
const dataGridRowStyles = ".base{display:grid;width:100%;box-sizing:border-box;color:var(--vvd-color-canvas-text)}.base.connotation-cta{--_connotation-color-primary: var(--vvd-data-grid-row-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-data-grid-row-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-row-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-faint: var(--vvd-data-grid-row-cta-faint, var(--vvd-color-cta-50));--_connotation-color-pale: var(--vvd-data-grid-row-cta-pale, var(--vvd-color-cta-300));--_connotation-color-dim: var(--vvd-data-grid-row-cta-dim, var(--vvd-color-cta-200))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-data-grid-row-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-data-grid-row-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-row-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-faint: var(--vvd-data-grid-row-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-pale: var(--vvd-data-grid-row-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-data-grid-row-accent-dim, var(--vvd-color-neutral-200))}.base{--_appearance-color-text: var(--_connotation-color-
|
|
912
|
+
const dataGridRowStyles = ".base{display:grid;width:100%;box-sizing:border-box;color:var(--vvd-color-canvas-text)}.base.connotation-cta{--_connotation-color-primary: var(--vvd-data-grid-row-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-data-grid-row-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-row-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-firm: var(--vvd-data-grid-row-cta-firm, var(--vvd-color-cta-600));--_connotation-color-faint: var(--vvd-data-grid-row-cta-faint, var(--vvd-color-cta-50));--_connotation-color-soft: var(--vvd-data-grid-row-cta-soft, var(--vvd-color-cta-100));--_connotation-color-pale: var(--vvd-data-grid-row-cta-pale, var(--vvd-color-cta-300));--_connotation-color-dim: var(--vvd-data-grid-row-cta-dim, var(--vvd-color-cta-200))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-data-grid-row-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-data-grid-row-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-row-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-data-grid-row-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-data-grid-row-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-data-grid-row-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-pale: var(--vvd-data-grid-row-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-data-grid-row-accent-dim, var(--vvd-color-neutral-200))}.base{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base:where(.selected):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.base:where(.selected):where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}:host([row-type=sticky-header]) .base{position:sticky;z-index:9;top:0;background:var(--data-grid-row-background, var(--vvd-color-canvas))}:host([row-type=hidden-header]) .base{display:none}:host(:is([aria-selected]):not([row-type*=header])) .base{background-color:var(--_appearance-color-fill)}\n";
|
|
913
913
|
|
|
914
|
-
const dataGridCellStyles = ":host{min-inline-size:80px}:host(:focus-visible){outline:none}.base{display:flex;box-sizing:border-box;align-items:center;padding:8px 12px;border-bottom:1px solid var(--vvd-color-neutral-300);block-size:calc(1px*(48 + 4*clamp(-1,var(--vvd-size-density, 0),2)));color:var(--_appearance-color-text);font:var(--vvd-typography-base)}.base.connotation-cta{--_connotation-color-primary: var(--vvd-data-grid-cell-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-data-grid-cell-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-cell-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-faint: var(--vvd-data-grid-cell-cta-faint, var(--vvd-color-cta-50));--_connotation-color-pale: var(--vvd-data-grid-cell-cta-pale, var(--vvd-color-cta-300));--_connotation-color-dim: var(--vvd-data-grid-cell-cta-dim, var(--vvd-color-cta-200))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-data-grid-cell-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-data-grid-cell-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-cell-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-faint: var(--vvd-data-grid-cell-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-pale: var(--vvd-data-grid-cell-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-data-grid-cell-accent-dim, var(--vvd-color-neutral-200))}.base{--_appearance-color-text: var(--_connotation-color-
|
|
914
|
+
const dataGridCellStyles = ":host{min-inline-size:80px}:host(:focus-visible){outline:none}.base{display:flex;box-sizing:border-box;align-items:center;padding:8px 12px;border-bottom:1px solid var(--vvd-color-neutral-300);block-size:calc(1px*(48 + 4*clamp(-1,var(--vvd-size-density, 0),2)));color:var(--_appearance-color-text);font:var(--vvd-typography-base)}.base.connotation-cta{--_connotation-color-primary: var(--vvd-data-grid-cell-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-data-grid-cell-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-cell-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-firm: var(--vvd-data-grid-cell-cta-firm, var(--vvd-color-cta-600));--_connotation-color-soft: var(--vvd-data-grid-cell-cta-soft, var(--vvd-color-cta-100));--_connotation-color-faint: var(--vvd-data-grid-cell-cta-faint, var(--vvd-color-cta-50));--_connotation-color-pale: var(--vvd-data-grid-cell-cta-pale, var(--vvd-color-cta-300));--_connotation-color-dim: var(--vvd-data-grid-cell-cta-dim, var(--vvd-color-cta-200))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-data-grid-cell-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-data-grid-cell-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-cell-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-data-grid-cell-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-soft: var(--vvd-data-grid-cell-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-faint: var(--vvd-data-grid-cell-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-pale: var(--vvd-data-grid-cell-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-data-grid-cell-accent-dim, var(--vvd-color-neutral-200))}.base{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base:where(.selected):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.base:where(.selected):where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}:host(:focus-visible) .base{--focus-stroke-gap-color: transparent;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}:host([cell-type=columnheader]) .base{border-color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold)}:host(:is([aria-selected]):not([cell-type=columnheader])) .base{background-color:var(--_appearance-color-fill)}slot{display:block;overflow:hidden;inline-size:100%;text-overflow:ellipsis;white-space:nowrap}.header-icon{margin-inline-start:auto}\n";
|
|
915
915
|
|
|
916
916
|
const DataGridCellSortStates = {
|
|
917
917
|
none: "none",
|
|
@@ -972,7 +972,12 @@ class DataGrid extends DataGrid$1 {
|
|
|
972
972
|
this.#handleRowSelection({ target, ctrlKey, shiftKey, metaKey });
|
|
973
973
|
}
|
|
974
974
|
};
|
|
975
|
-
this.#handleCellSelection = ({
|
|
975
|
+
this.#handleCellSelection = ({
|
|
976
|
+
target,
|
|
977
|
+
ctrlKey,
|
|
978
|
+
shiftKey,
|
|
979
|
+
metaKey
|
|
980
|
+
}) => {
|
|
976
981
|
const cell = target;
|
|
977
982
|
if (this.selectionMode === DataGridSelectionMode.multiCell && (ctrlKey || shiftKey || metaKey)) {
|
|
978
983
|
this.#setSelectedState(cell, !this.#selectedCells.includes(cell));
|
|
@@ -982,7 +987,12 @@ class DataGrid extends DataGrid$1 {
|
|
|
982
987
|
this.#setSelectedState(cell, !cacheTargetSelection);
|
|
983
988
|
}
|
|
984
989
|
};
|
|
985
|
-
this.#handleRowSelection = ({
|
|
990
|
+
this.#handleRowSelection = ({
|
|
991
|
+
target,
|
|
992
|
+
ctrlKey,
|
|
993
|
+
shiftKey,
|
|
994
|
+
metaKey
|
|
995
|
+
}) => {
|
|
986
996
|
const row = target.parentNode;
|
|
987
997
|
if (this.selectionMode === DataGridSelectionMode.multiRow && (ctrlKey || shiftKey || metaKey)) {
|
|
988
998
|
this.#setSelectedState(row, !this.#selectedRows.includes(row));
|
|
@@ -1006,30 +1016,54 @@ class DataGrid extends DataGrid$1 {
|
|
|
1006
1016
|
};
|
|
1007
1017
|
this.#resetSelection = () => {
|
|
1008
1018
|
if (this.selectionMode === DataGridSelectionMode.singleCell || this.selectionMode === DataGridSelectionMode.multiCell) {
|
|
1009
|
-
Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
|
|
1010
|
-
|
|
1019
|
+
Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
|
|
1020
|
+
(cell) => this.#setSelectedState(cell, false)
|
|
1021
|
+
);
|
|
1022
|
+
Array.from(this.querySelectorAll('[role="row"]')).forEach(
|
|
1023
|
+
(row) => row.removeAttribute("aria-selected")
|
|
1024
|
+
);
|
|
1011
1025
|
}
|
|
1012
1026
|
if (this.selectionMode === DataGridSelectionMode.none) {
|
|
1013
|
-
Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
|
|
1014
|
-
|
|
1027
|
+
Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
|
|
1028
|
+
(cell) => cell.removeAttribute("aria-selected")
|
|
1029
|
+
);
|
|
1030
|
+
Array.from(this.querySelectorAll('[role="row"]')).forEach(
|
|
1031
|
+
(row) => row.removeAttribute("aria-selected")
|
|
1032
|
+
);
|
|
1015
1033
|
}
|
|
1016
1034
|
if (this.selectionMode === DataGridSelectionMode.singleRow || this.selectionMode === DataGridSelectionMode.multiRow) {
|
|
1017
|
-
Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
|
|
1018
|
-
|
|
1035
|
+
Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
|
|
1036
|
+
(cell) => cell.removeAttribute("aria-selected")
|
|
1037
|
+
);
|
|
1038
|
+
Array.from(this.querySelectorAll('[role="row"]')).forEach(
|
|
1039
|
+
(row) => row.setAttribute("aria-selected", "false")
|
|
1040
|
+
);
|
|
1019
1041
|
}
|
|
1020
1042
|
};
|
|
1021
1043
|
this.#initSelections = () => {
|
|
1022
1044
|
if (this.selectionMode === DataGridSelectionMode.singleCell || this.selectionMode === DataGridSelectionMode.multiCell) {
|
|
1023
|
-
Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
|
|
1024
|
-
|
|
1045
|
+
Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
|
|
1046
|
+
(cell) => !cell.hasAttribute("aria-selected") && this.#setSelectedState(cell, false)
|
|
1047
|
+
);
|
|
1048
|
+
Array.from(this.querySelectorAll('[role="row"]')).forEach(
|
|
1049
|
+
(row) => row.removeAttribute("aria-selected")
|
|
1050
|
+
);
|
|
1025
1051
|
}
|
|
1026
1052
|
if (this.selectionMode === DataGridSelectionMode.none) {
|
|
1027
|
-
Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
|
|
1028
|
-
|
|
1053
|
+
Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
|
|
1054
|
+
(cell) => cell.removeAttribute("aria-selected")
|
|
1055
|
+
);
|
|
1056
|
+
Array.from(this.querySelectorAll('[role="row"]')).forEach(
|
|
1057
|
+
(row) => row.removeAttribute("aria-selected")
|
|
1058
|
+
);
|
|
1029
1059
|
}
|
|
1030
1060
|
if (this.selectionMode === DataGridSelectionMode.singleRow || this.selectionMode === DataGridSelectionMode.multiRow) {
|
|
1031
|
-
Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
|
|
1032
|
-
|
|
1061
|
+
Array.from(this.querySelectorAll('[role="gridcell"]')).forEach(
|
|
1062
|
+
(cell) => cell.removeAttribute("aria-selected")
|
|
1063
|
+
);
|
|
1064
|
+
Array.from(this.querySelectorAll('[role="row"]')).forEach(
|
|
1065
|
+
(row) => !row.hasAttribute("aria-selected") && row.setAttribute("aria-selected", "false")
|
|
1066
|
+
);
|
|
1033
1067
|
}
|
|
1034
1068
|
};
|
|
1035
1069
|
this.addEventListener("click", this.#handleClick);
|
|
@@ -1067,12 +1101,16 @@ class DataGrid extends DataGrid$1 {
|
|
|
1067
1101
|
this.#initSelections();
|
|
1068
1102
|
}
|
|
1069
1103
|
get #selectedRows() {
|
|
1070
|
-
return this.rowElements.filter(
|
|
1104
|
+
return this.rowElements.filter(
|
|
1105
|
+
(row) => row.getAttribute("aria-selected") === "true"
|
|
1106
|
+
);
|
|
1071
1107
|
}
|
|
1072
1108
|
get #selectedCells() {
|
|
1073
1109
|
return this.rowElements.reduce((acc, row) => {
|
|
1074
1110
|
const rowChildren = Array.from(row.children);
|
|
1075
|
-
const selectedCells = rowChildren.filter(
|
|
1111
|
+
const selectedCells = rowChildren.filter(
|
|
1112
|
+
(cell) => cell.getAttribute("aria-selected") === "true"
|
|
1113
|
+
);
|
|
1076
1114
|
return acc.concat(selectedCells);
|
|
1077
1115
|
}, []);
|
|
1078
1116
|
}
|
|
@@ -1090,11 +1128,17 @@ class DataGrid extends DataGrid$1 {
|
|
|
1090
1128
|
#changeHandler;
|
|
1091
1129
|
connectedCallback() {
|
|
1092
1130
|
super.connectedCallback();
|
|
1093
|
-
Observable.getNotifier(this).subscribe(
|
|
1131
|
+
Observable.getNotifier(this).subscribe(
|
|
1132
|
+
this.#changeHandler,
|
|
1133
|
+
"columnDefinitions"
|
|
1134
|
+
);
|
|
1094
1135
|
}
|
|
1095
1136
|
disconnectedCallback() {
|
|
1096
1137
|
super.disconnectedCallback();
|
|
1097
|
-
Observable.getNotifier(this).unsubscribe(
|
|
1138
|
+
Observable.getNotifier(this).unsubscribe(
|
|
1139
|
+
this.#changeHandler,
|
|
1140
|
+
"columnDefinitions"
|
|
1141
|
+
);
|
|
1098
1142
|
}
|
|
1099
1143
|
#setSelectedState;
|
|
1100
1144
|
#resetSelection;
|
|
@@ -1151,7 +1195,9 @@ function getMultiSelectAriaState(x) {
|
|
|
1151
1195
|
}
|
|
1152
1196
|
function setHeaderRow(x) {
|
|
1153
1197
|
if (x.columnDefinitions === null) {
|
|
1154
|
-
const headerRow = x.querySelector(
|
|
1198
|
+
const headerRow = x.querySelector(
|
|
1199
|
+
'[cell-type="columnheader"]'
|
|
1200
|
+
)?.parentElement;
|
|
1155
1201
|
if (headerRow) {
|
|
1156
1202
|
const rowType = x.generateHeader === GenerateHeaderOptions.sticky ? DataGridRowTypes.stickyHeader : DataGridRowTypes.header;
|
|
1157
1203
|
headerRow.setAttribute("row-type", rowType);
|
|
@@ -1165,24 +1211,24 @@ const DataGridTemplate = (context) => {
|
|
|
1165
1211
|
const rowItemTemplate = createRowItemTemplate(context);
|
|
1166
1212
|
const rowTag = context.tagFor(DataGridRow);
|
|
1167
1213
|
return html`
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1214
|
+
<template
|
|
1215
|
+
aria-multiselectable="${getMultiSelectAriaState}"
|
|
1216
|
+
role="grid"
|
|
1217
|
+
tabindex="0"
|
|
1218
|
+
@sort="${handleColumnSort}"
|
|
1219
|
+
:rowElementTag="${() => rowTag}"
|
|
1220
|
+
:defaultRowItemTemplate="${rowItemTemplate}"
|
|
1221
|
+
${children({
|
|
1176
1222
|
property: "rowElements",
|
|
1177
1223
|
filter: elements("[role=row]")
|
|
1178
1224
|
})}
|
|
1179
|
-
|
|
1225
|
+
>
|
|
1180
1226
|
<div class="base">
|
|
1181
1227
|
${setHeaderRow}
|
|
1182
1228
|
<slot ${slotted("slottedRowElements")}></slot>
|
|
1183
1229
|
</div>
|
|
1184
|
-
|
|
1185
|
-
|
|
1230
|
+
</template>
|
|
1231
|
+
`;
|
|
1186
1232
|
};
|
|
1187
1233
|
|
|
1188
1234
|
var __defProp = Object.defineProperty;
|
|
@@ -1210,7 +1256,10 @@ class DataGridCell extends DataGridCell$1 {
|
|
|
1210
1256
|
};
|
|
1211
1257
|
}
|
|
1212
1258
|
ariaSelectedChanged(_, selectedState) {
|
|
1213
|
-
this.shadowRoot.querySelector(".base")?.classList.toggle(
|
|
1259
|
+
this.shadowRoot.querySelector(".base")?.classList.toggle(
|
|
1260
|
+
"selected",
|
|
1261
|
+
selectedState === "true"
|
|
1262
|
+
);
|
|
1214
1263
|
}
|
|
1215
1264
|
connectedCallback() {
|
|
1216
1265
|
super.connectedCallback();
|
|
@@ -1248,6 +1297,7 @@ class DataGridCell extends DataGridCell$1 {
|
|
|
1248
1297
|
columnDataKey: this.#getColumnDataKey()
|
|
1249
1298
|
});
|
|
1250
1299
|
}
|
|
1300
|
+
return true;
|
|
1251
1301
|
}
|
|
1252
1302
|
}
|
|
1253
1303
|
__decorateClass([
|
|
@@ -1283,23 +1333,26 @@ const DataGridRowTemplate = (context) => {
|
|
|
1283
1333
|
const cellItemTemplate = createCellItemTemplate(context);
|
|
1284
1334
|
const headerCellItemTemplate = createHeaderCellItemTemplate(context);
|
|
1285
1335
|
return html`
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1336
|
+
<template
|
|
1337
|
+
role="row"
|
|
1338
|
+
class="${(x) => x.rowType !== "default" ? x.rowType : ""}"
|
|
1339
|
+
:defaultCellItemTemplate="${cellItemTemplate}"
|
|
1340
|
+
:defaultHeaderCellItemTemplate="${headerCellItemTemplate}"
|
|
1341
|
+
${children({
|
|
1292
1342
|
property: "cellElements",
|
|
1293
|
-
filter: elements(
|
|
1343
|
+
filter: elements(
|
|
1344
|
+
'[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]'
|
|
1345
|
+
)
|
|
1294
1346
|
})}
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1347
|
+
>
|
|
1348
|
+
<div
|
|
1349
|
+
class="base ${(x) => x.ariaSelected === "true" ? "selected" : ""}"
|
|
1350
|
+
style="grid-template-columns: ${(x) => x.gridTemplateColumns};"
|
|
1351
|
+
>
|
|
1352
|
+
<slot ${slotted("slottedCellElements")}></slot>
|
|
1353
|
+
</div>
|
|
1354
|
+
</template>
|
|
1355
|
+
`;
|
|
1303
1356
|
};
|
|
1304
1357
|
|
|
1305
1358
|
function shouldShowSortIcons(x) {
|
|
@@ -1314,10 +1367,13 @@ function getSortIcon(x) {
|
|
|
1314
1367
|
function renderSortIcons(c) {
|
|
1315
1368
|
const iconTag = c.tagFor(Icon);
|
|
1316
1369
|
return html`
|
|
1317
|
-
|
|
1370
|
+
${when(
|
|
1371
|
+
shouldShowSortIcons,
|
|
1372
|
+
html`
|
|
1318
1373
|
<${iconTag} class="header-icon" name="${getSortIcon}"></${iconTag}>
|
|
1319
|
-
`
|
|
1320
|
-
|
|
1374
|
+
`
|
|
1375
|
+
)}
|
|
1376
|
+
`;
|
|
1321
1377
|
}
|
|
1322
1378
|
function handleKeyDown(x, e) {
|
|
1323
1379
|
if (e.key === keyEnter$1 || e.key === keySpace) {
|
|
@@ -1327,19 +1383,18 @@ function handleKeyDown(x, e) {
|
|
|
1327
1383
|
}
|
|
1328
1384
|
function DataGridCellTemplate(context) {
|
|
1329
1385
|
return html`
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
`;
|
|
1386
|
+
<template
|
|
1387
|
+
tabindex="-1"
|
|
1388
|
+
role="${(x) => DataGridCellRole[x.cellType] ?? DataGridCellRole.default}"
|
|
1389
|
+
@click="${(x) => x._handleInteraction()}"
|
|
1390
|
+
@keydown="${(x, c) => handleKeyDown(x, c.event)}"
|
|
1391
|
+
>
|
|
1392
|
+
<div class="base">
|
|
1393
|
+
<slot></slot>
|
|
1394
|
+
${(_) => renderSortIcons(context)}
|
|
1395
|
+
</div>
|
|
1396
|
+
</template>
|
|
1397
|
+
`;
|
|
1343
1398
|
}
|
|
1344
1399
|
|
|
1345
1400
|
const dataGrid = DataGrid.compose({
|
|
@@ -1357,7 +1412,12 @@ const dataGridCell = DataGridCell.compose({
|
|
|
1357
1412
|
template: DataGridCellTemplate,
|
|
1358
1413
|
styles: dataGridCellStyles
|
|
1359
1414
|
})();
|
|
1360
|
-
const dataGridElements = [
|
|
1415
|
+
const dataGridElements = [
|
|
1416
|
+
dataGridCell,
|
|
1417
|
+
dataGridRow,
|
|
1418
|
+
dataGrid,
|
|
1419
|
+
...iconRegistries
|
|
1420
|
+
];
|
|
1361
1421
|
const registerDataGrid = registerFactory(dataGridElements);
|
|
1362
1422
|
|
|
1363
1423
|
export { dataGridRow as a, dataGridCell as b, dataGridElements as c, dataGrid as d, registerDataGrid as r };
|
package/shared/definition18.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index.cjs');
|
|
4
|
-
const definition$1 = require('./
|
|
4
|
+
const definition$1 = require('./definition61.cjs');
|
|
5
5
|
const definition = require('./definition11.cjs');
|
|
6
|
-
const definition$2 = require('./
|
|
6
|
+
const definition$2 = require('./definition54.cjs');
|
|
7
7
|
const definition$3 = require('./definition21.cjs');
|
|
8
8
|
const presentationDate = require('./presentationDate.cjs');
|
|
9
9
|
require('./affix.cjs');
|
|
@@ -20,9 +20,24 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
20
20
|
__defProp(target, key, result);
|
|
21
21
|
return result;
|
|
22
22
|
};
|
|
23
|
+
var __accessCheck = (obj, member, msg) => {
|
|
24
|
+
if (!member.has(obj))
|
|
25
|
+
throw TypeError("Cannot " + msg);
|
|
26
|
+
};
|
|
27
|
+
var __privateAdd = (obj, member, value) => {
|
|
28
|
+
if (member.has(obj))
|
|
29
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
30
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
31
|
+
};
|
|
32
|
+
var __privateMethod = (obj, member, method) => {
|
|
33
|
+
__accessCheck(obj, member, "access private method");
|
|
34
|
+
return method;
|
|
35
|
+
};
|
|
36
|
+
var _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn;
|
|
23
37
|
let DatePicker = class extends presentationDate.DatePickerBase {
|
|
24
38
|
constructor() {
|
|
25
39
|
super();
|
|
40
|
+
__privateAdd(this, _updateValueDueToUserInteraction);
|
|
26
41
|
/**
|
|
27
42
|
* @internal
|
|
28
43
|
*/
|
|
@@ -48,14 +63,11 @@ let DatePicker = class extends presentationDate.DatePickerBase {
|
|
|
48
63
|
this._presentationValue = "";
|
|
49
64
|
}
|
|
50
65
|
}
|
|
51
|
-
#updateValueDueToUserInteraction(newValue) {
|
|
52
|
-
this.value = newValue;
|
|
53
|
-
this.$emit("change");
|
|
54
|
-
this.$emit("input");
|
|
55
|
-
}
|
|
56
66
|
get _calendarButtonLabel() {
|
|
57
67
|
if (this.value) {
|
|
58
|
-
return this.locale.datePicker.changeDateLabel(
|
|
68
|
+
return this.locale.datePicker.changeDateLabel(
|
|
69
|
+
presentationDate.formatPresentationDate(this.value, this.locale.datePicker)
|
|
70
|
+
);
|
|
59
71
|
} else {
|
|
60
72
|
return this.locale.datePicker.chooseDateLabel;
|
|
61
73
|
}
|
|
@@ -71,13 +83,11 @@ let DatePicker = class extends presentationDate.DatePickerBase {
|
|
|
71
83
|
*/
|
|
72
84
|
_onTextFieldChange() {
|
|
73
85
|
if (this._presentationValue === "") {
|
|
74
|
-
this
|
|
86
|
+
__privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, "");
|
|
75
87
|
return;
|
|
76
88
|
}
|
|
77
89
|
try {
|
|
78
|
-
this
|
|
79
|
-
presentationDate.parsePresentationDate(this._presentationValue, this.locale.datePicker)
|
|
80
|
-
);
|
|
90
|
+
__privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, presentationDate.parsePresentationDate(this._presentationValue, this.locale.datePicker));
|
|
81
91
|
} catch (_) {
|
|
82
92
|
return;
|
|
83
93
|
}
|
|
@@ -87,7 +97,7 @@ let DatePicker = class extends presentationDate.DatePickerBase {
|
|
|
87
97
|
* @internal
|
|
88
98
|
*/
|
|
89
99
|
_onDateClick(date) {
|
|
90
|
-
this
|
|
100
|
+
__privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, date);
|
|
91
101
|
this._closePopup();
|
|
92
102
|
}
|
|
93
103
|
/**
|
|
@@ -139,10 +149,16 @@ let DatePicker = class extends presentationDate.DatePickerBase {
|
|
|
139
149
|
* @internal
|
|
140
150
|
*/
|
|
141
151
|
_onClearClick() {
|
|
142
|
-
this
|
|
152
|
+
__privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, "");
|
|
143
153
|
super._onClearClick();
|
|
144
154
|
}
|
|
145
155
|
};
|
|
156
|
+
_updateValueDueToUserInteraction = new WeakSet();
|
|
157
|
+
updateValueDueToUserInteraction_fn = function(newValue) {
|
|
158
|
+
this.value = newValue;
|
|
159
|
+
this.$emit("change");
|
|
160
|
+
this.$emit("input");
|
|
161
|
+
};
|
|
146
162
|
__decorateClass([
|
|
147
163
|
index.volatile
|
|
148
164
|
], DatePicker.prototype, "_calendarButtonLabel", 1);
|
package/shared/definition18.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v as volatile, r as registerFactory } from './index.js';
|
|
2
|
-
import { p as popupRegistries } from './
|
|
2
|
+
import { p as popupRegistries } from './definition61.js';
|
|
3
3
|
import { a as buttonRegistries } from './definition11.js';
|
|
4
|
-
import { a as textFieldRegistries } from './
|
|
4
|
+
import { a as textFieldRegistries } from './definition54.js';
|
|
5
5
|
import { a as dividerRegistries } from './definition21.js';
|
|
6
6
|
import { D as DatePickerBase, i as isValidDateStr, f as formatPresentationDate, p as parsePresentationDate, a as DatePickerBaseTemplate, s as styles } from './presentationDate.js';
|
|
7
7
|
import './affix.js';
|
|
@@ -18,9 +18,24 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
18
18
|
__defProp(target, key, result);
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
|
+
var __accessCheck = (obj, member, msg) => {
|
|
22
|
+
if (!member.has(obj))
|
|
23
|
+
throw TypeError("Cannot " + msg);
|
|
24
|
+
};
|
|
25
|
+
var __privateAdd = (obj, member, value) => {
|
|
26
|
+
if (member.has(obj))
|
|
27
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
28
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
29
|
+
};
|
|
30
|
+
var __privateMethod = (obj, member, method) => {
|
|
31
|
+
__accessCheck(obj, member, "access private method");
|
|
32
|
+
return method;
|
|
33
|
+
};
|
|
34
|
+
var _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn;
|
|
21
35
|
let DatePicker = class extends DatePickerBase {
|
|
22
36
|
constructor() {
|
|
23
37
|
super();
|
|
38
|
+
__privateAdd(this, _updateValueDueToUserInteraction);
|
|
24
39
|
/**
|
|
25
40
|
* @internal
|
|
26
41
|
*/
|
|
@@ -46,14 +61,11 @@ let DatePicker = class extends DatePickerBase {
|
|
|
46
61
|
this._presentationValue = "";
|
|
47
62
|
}
|
|
48
63
|
}
|
|
49
|
-
#updateValueDueToUserInteraction(newValue) {
|
|
50
|
-
this.value = newValue;
|
|
51
|
-
this.$emit("change");
|
|
52
|
-
this.$emit("input");
|
|
53
|
-
}
|
|
54
64
|
get _calendarButtonLabel() {
|
|
55
65
|
if (this.value) {
|
|
56
|
-
return this.locale.datePicker.changeDateLabel(
|
|
66
|
+
return this.locale.datePicker.changeDateLabel(
|
|
67
|
+
formatPresentationDate(this.value, this.locale.datePicker)
|
|
68
|
+
);
|
|
57
69
|
} else {
|
|
58
70
|
return this.locale.datePicker.chooseDateLabel;
|
|
59
71
|
}
|
|
@@ -69,13 +81,11 @@ let DatePicker = class extends DatePickerBase {
|
|
|
69
81
|
*/
|
|
70
82
|
_onTextFieldChange() {
|
|
71
83
|
if (this._presentationValue === "") {
|
|
72
|
-
this
|
|
84
|
+
__privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, "");
|
|
73
85
|
return;
|
|
74
86
|
}
|
|
75
87
|
try {
|
|
76
|
-
this
|
|
77
|
-
parsePresentationDate(this._presentationValue, this.locale.datePicker)
|
|
78
|
-
);
|
|
88
|
+
__privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, parsePresentationDate(this._presentationValue, this.locale.datePicker));
|
|
79
89
|
} catch (_) {
|
|
80
90
|
return;
|
|
81
91
|
}
|
|
@@ -85,7 +95,7 @@ let DatePicker = class extends DatePickerBase {
|
|
|
85
95
|
* @internal
|
|
86
96
|
*/
|
|
87
97
|
_onDateClick(date) {
|
|
88
|
-
this
|
|
98
|
+
__privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, date);
|
|
89
99
|
this._closePopup();
|
|
90
100
|
}
|
|
91
101
|
/**
|
|
@@ -137,10 +147,16 @@ let DatePicker = class extends DatePickerBase {
|
|
|
137
147
|
* @internal
|
|
138
148
|
*/
|
|
139
149
|
_onClearClick() {
|
|
140
|
-
this
|
|
150
|
+
__privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, "");
|
|
141
151
|
super._onClearClick();
|
|
142
152
|
}
|
|
143
153
|
};
|
|
154
|
+
_updateValueDueToUserInteraction = new WeakSet();
|
|
155
|
+
updateValueDueToUserInteraction_fn = function(newValue) {
|
|
156
|
+
this.value = newValue;
|
|
157
|
+
this.$emit("change");
|
|
158
|
+
this.$emit("input");
|
|
159
|
+
};
|
|
144
160
|
__decorateClass([
|
|
145
161
|
volatile
|
|
146
162
|
], DatePicker.prototype, "_calendarButtonLabel", 1);
|