@vonage/vivid 5.15.0 → 5.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/accordion/definition.cjs +0 -5
- package/accordion/definition.js +0 -5
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +3 -14
- package/accordion-item/definition.cjs +1 -1
- package/accordion-item/definition.js +1 -1
- package/alert/definition.cjs +2 -2
- package/alert/definition.js +2 -2
- package/alert/index.cjs +1 -1
- package/alert/index.js +1 -1
- package/audio-player/definition.cjs +2 -6
- package/audio-player/definition.js +2 -6
- package/audio-player/index.cjs +1 -1
- package/audio-player/index.js +2 -8
- package/banner/definition.cjs +1 -1
- package/banner/definition.js +1 -1
- package/breadcrumb/definition.cjs +0 -1
- package/breadcrumb/definition.js +0 -1
- package/breadcrumb/index.cjs +1 -1
- package/breadcrumb/index.js +0 -1
- package/breadcrumb-item/definition.cjs +1 -1
- package/breadcrumb-item/definition.js +1 -1
- package/breadcrumb-item/index.cjs +1 -1
- package/breadcrumb-item/index.js +1 -1
- package/bundled/attribute-binding-behaviour.cjs +1 -1
- package/bundled/attribute-binding-behaviour.js +1 -3
- package/bundled/base-color-picker.cjs +1 -1
- package/bundled/base-color-picker.js +2 -7
- package/bundled/base-progress.cjs +1 -1
- package/bundled/base-progress.js +0 -3
- package/bundled/button.cjs +1 -1
- package/bundled/button.js +1 -10
- package/bundled/calendar-picker.template.cjs +1 -1
- package/bundled/calendar-picker.template.js +90 -42
- package/bundled/children.js +1 -1
- package/bundled/definition.cjs +1 -1
- package/bundled/definition.js +1 -1
- package/bundled/definition10.cjs +1 -1
- package/bundled/definition10.js +0 -10
- package/bundled/definition11.cjs +1 -1
- package/bundled/definition11.js +0 -1
- package/bundled/definition12.cjs +2 -2
- package/bundled/definition12.js +1 -2
- package/bundled/definition13.cjs +1 -1
- package/bundled/definition13.js +1 -1
- package/bundled/definition17.cjs +1 -1
- package/bundled/definition17.js +1 -4
- package/bundled/definition18.cjs +1 -1
- package/bundled/definition18.js +6 -18
- package/bundled/definition19.cjs +2 -2
- package/bundled/definition19.js +8 -24
- package/bundled/definition2.cjs +5 -5
- package/bundled/definition2.js +26 -27
- package/bundled/definition20.cjs +1 -1
- package/bundled/definition20.js +1 -1
- package/bundled/definition22.cjs +5 -5
- package/bundled/definition22.js +2 -3
- package/bundled/definition3.cjs +1 -1
- package/bundled/definition3.js +1 -2
- package/bundled/definition5.cjs +1 -1
- package/bundled/definition5.js +1 -6
- package/bundled/definition6.cjs +1 -1
- package/bundled/definition6.js +1 -2
- package/bundled/definition7.cjs +1 -1
- package/bundled/definition7.js +2 -5
- package/bundled/definition8.cjs +1 -1
- package/bundled/definition8.js +2 -13
- package/bundled/definition9.js +9 -9
- package/bundled/delegates-aria.cjs +1 -1
- package/bundled/delegates-aria.js +1 -3
- package/bundled/floating-ui.dom.cjs +1 -1
- package/bundled/floating-ui.dom.js +491 -487
- package/bundled/form-associated.cjs +1 -1
- package/bundled/form-associated.js +9 -18
- package/bundled/key-codes.cjs +1 -1
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +10 -27
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +48 -48
- package/bundled/mixins.cjs +2 -2
- package/bundled/mixins.js +1 -4
- package/bundled/normalize.js +2 -2
- package/bundled/picker-field.template.cjs +1 -1
- package/bundled/picker-field.template.js +0 -1
- package/bundled/scrollIntoView.cjs +1 -1
- package/bundled/scrollIntoView.js +1 -4
- package/bundled/slider.template.cjs +1 -1
- package/bundled/slider.template.js +1 -1
- package/bundled/slottable-request.js +1 -1
- package/bundled/text-field.cjs +1 -1
- package/bundled/text-field.js +1 -1
- package/bundled/time-selection-picker.template.cjs +2 -2
- package/bundled/time-selection-picker.template.js +3 -6
- package/bundled/vivid-element.cjs +3 -3
- package/bundled/vivid-element.js +302 -293
- package/button/definition.cjs +1 -1
- package/button/definition.js +1 -1
- package/calendar/definition.cjs +0 -2
- package/calendar/definition.js +1 -3
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +6 -8
- package/card/definition.cjs +1 -1
- package/card/definition.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/checkbox/definition.cjs +1 -2
- package/checkbox/definition.js +1 -2
- package/color-picker/definition.cjs +1 -6
- package/color-picker/definition.js +1 -6
- package/color-picker/index.cjs +1 -1
- package/color-picker/index.js +2 -7
- package/combobox/definition.cjs +2 -8
- package/combobox/definition.js +2 -8
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +2 -9
- package/contextual-help/definition.cjs +1 -1
- package/contextual-help/definition.js +1 -1
- package/custom-elements.json +37 -720
- package/data-grid/definition.cjs +72 -85
- package/data-grid/definition.js +75 -88
- package/data-grid/index.cjs +2 -2
- package/data-grid/index.js +7 -39
- package/date-picker/definition.cjs +1 -1
- package/date-picker/definition.js +1 -1
- package/date-range-picker/definition.cjs +1 -3
- package/date-range-picker/definition.js +1 -3
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +1 -5
- package/date-time-picker/definition.cjs +1 -1
- package/date-time-picker/definition.js +1 -1
- package/dial-pad/definition.cjs +2 -11
- package/dial-pad/definition.js +3 -12
- package/dial-pad/index.cjs +1 -1
- package/dial-pad/index.js +14 -38
- package/dialog/definition.cjs +2 -3
- package/dialog/definition.js +2 -3
- package/dialog/index.cjs +1 -1
- package/dialog/index.js +1 -2
- package/empty-state/definition.js +1 -1
- package/fab/definition.cjs +1 -2
- package/fab/definition.js +1 -2
- package/fab/index.cjs +1 -1
- package/fab/index.js +1 -2
- package/file-picker/definition.cjs +2 -5
- package/file-picker/definition.js +3 -6
- package/file-picker/index.cjs +1 -1
- package/file-picker/index.js +1 -4
- package/icon/definition.cjs +7 -5
- package/icon/definition.js +7 -5
- package/index.cjs +95 -95
- package/index.js +18 -18
- package/layout/definition.cjs +1 -1
- package/layout/definition.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/lib/card/card.d.ts +0 -2
- package/lib/combobox/combobox.d.ts +1 -1
- package/lib/icon/icon.d.ts +0 -1
- package/lib/menu/menu.d.ts +0 -1
- package/lib/menu-item/menu-item.d.ts +0 -1
- package/lib/pagination/pagination.d.ts +0 -3
- package/lib/select/select.d.ts +2 -2
- package/lib/table/table-head.d.ts +1 -0
- package/lib/tabs/tabs.d.ts +0 -1
- package/lib/text-field/text-field.d.ts +0 -1
- package/locales/de-DE.cjs +95 -95
- package/locales/de-DE.js +95 -95
- package/locales/en-GB.cjs +1 -1
- package/locales/en-GB.js +1 -1
- package/locales/en-US.cjs +95 -95
- package/locales/en-US.js +95 -95
- package/locales/ja-JP.cjs +94 -94
- package/locales/ja-JP.js +94 -94
- package/locales/zh-CN.cjs +94 -94
- package/locales/zh-CN.js +94 -94
- package/menu/definition.cjs +2 -3
- package/menu/definition.js +2 -3
- package/menu-item/definition.cjs +1 -1
- package/menu-item/definition.js +1 -1
- package/nav-disclosure/definition.cjs +1 -1
- package/nav-disclosure/definition.js +1 -1
- package/nav-disclosure/index.cjs +1 -1
- package/nav-disclosure/index.js +1 -1
- package/nav-item/definition.cjs +1 -1
- package/nav-item/definition.js +1 -1
- package/nav-item/index.cjs +1 -1
- package/nav-item/index.js +1 -1
- package/number-field/definition.cjs +2 -2
- package/number-field/definition.js +2 -2
- package/number-field/index.cjs +1 -1
- package/number-field/index.js +1 -1
- package/package.json +20 -18
- package/pagination/definition.cjs +1 -3
- package/pagination/definition.js +3 -5
- package/pagination/index.cjs +3 -3
- package/pagination/index.js +4 -6
- package/popover/definition.cjs +1 -8
- package/popover/definition.js +1 -8
- package/popover/index.cjs +1 -1
- package/popover/index.js +6 -17
- package/popup/definition.cjs +1 -1
- package/popup/definition.js +1 -1
- package/radio/definition.cjs +1 -5
- package/radio/definition.js +1 -5
- package/radio-group/definition.js +2 -2
- package/range-slider/definition.cjs +1 -1
- package/range-slider/definition.js +2 -2
- package/range-slider/index.cjs +1 -1
- package/range-slider/index.js +1 -1
- package/rich-text-editor/definition.cjs +128 -43
- package/rich-text-editor/definition.js +128 -43
- package/rich-text-editor/index.cjs +12 -12
- package/rich-text-editor/index.js +1577 -1532
- package/rich-text-view/definition.js +1 -1
- package/searchable-select/definition.cjs +2 -5
- package/searchable-select/definition.js +2 -5
- package/searchable-select/index.cjs +1 -1
- package/searchable-select/index.js +2 -6
- package/select/definition.cjs +4 -14
- package/select/definition.js +5 -15
- package/selectable-box/definition.cjs +1 -1
- package/selectable-box/definition.js +2 -2
- package/selectable-box/index.cjs +1 -1
- package/selectable-box/index.js +1 -1
- package/side-drawer/definition.cjs +1 -1
- package/side-drawer/definition.js +2 -2
- package/side-drawer/index.cjs +1 -1
- package/side-drawer/index.js +2 -5
- package/simple-color-picker/definition.cjs +18 -9
- package/simple-color-picker/definition.js +19 -10
- package/simple-color-picker/index.cjs +5 -5
- package/simple-color-picker/index.js +23 -23
- package/slider/definition.cjs +1 -6
- package/slider/definition.js +3 -8
- package/split-button/definition.cjs +1 -1
- package/split-button/definition.js +2 -2
- package/split-button/index.cjs +1 -1
- package/split-button/index.js +1 -1
- package/status/definition.cjs +9 -3
- package/status/definition.js +11 -5
- package/status/index.cjs +10 -7
- package/status/index.js +46 -39
- package/styles/core/all.css +6 -5
- package/styles/core/theme.css +6 -5
- package/styles/core/typography.css +1 -2
- package/styles/tokens/theme-dark.css +17 -21
- package/styles/tokens/theme-light.css +17 -21
- package/styles/tokens/vivid-2-compat.css +1 -2
- package/switch/definition.cjs +1 -2
- package/switch/definition.js +2 -3
- package/switch/index.cjs +1 -1
- package/switch/index.js +1 -2
- package/tab/definition.cjs +1 -1
- package/tab/definition.js +2 -2
- package/tab-panel/definition.js +1 -1
- package/table/definition.cjs +17 -11
- package/table/definition.js +19 -13
- package/table/index.cjs +18 -14
- package/table/index.js +55 -48
- package/tabs/definition.cjs +0 -2
- package/tabs/definition.js +2 -4
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +0 -2
- package/tag/definition.cjs +1 -1
- package/tag/definition.js +2 -2
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/tag-group/definition.js +1 -1
- package/text-area/definition.cjs +1 -7
- package/text-area/definition.js +2 -8
- package/text-area/index.cjs +1 -1
- package/text-area/index.js +1 -7
- package/text-field/definition.cjs +0 -10
- package/text-field/definition.js +1 -11
- package/time-picker/definition.cjs +1 -1
- package/time-picker/definition.js +2 -2
- package/toggletip/definition.cjs +0 -2
- package/toggletip/definition.js +1 -3
- package/tooltip/definition.cjs +0 -1
- package/tooltip/definition.js +1 -2
- package/tree-view/definition.cjs +0 -16
- package/tree-view/definition.js +1 -17
- package/tree-view/index.cjs +1 -1
- package/tree-view/index.js +0 -16
- package/unbundled/_commonjsHelpers.cjs +6 -2
- package/unbundled/_commonjsHelpers.js +6 -2
- package/unbundled/anchored.js +1 -1
- package/unbundled/attribute-binding-behaviour.cjs +0 -1
- package/unbundled/attribute-binding-behaviour.js +0 -1
- package/unbundled/base-color-picker.cjs +0 -3
- package/unbundled/base-color-picker.js +0 -3
- package/unbundled/base-progress.cjs +0 -3
- package/unbundled/base-progress.js +0 -3
- package/unbundled/button.cjs +1 -10
- package/unbundled/button.js +1 -10
- package/unbundled/calendar-picker.template.cjs +2 -4
- package/unbundled/calendar-picker.template.js +2 -4
- package/unbundled/data-grid.options.js +1 -1
- package/unbundled/definition.cjs +349 -170
- package/unbundled/definition.js +348 -170
- package/unbundled/definition2.cjs +169 -351
- package/unbundled/definition2.js +169 -350
- package/unbundled/definition3.cjs +1 -2
- package/unbundled/definition3.js +1 -2
- package/unbundled/definition4.cjs +1 -2
- package/unbundled/definition4.js +3 -4
- package/unbundled/definition5.cjs +1 -1
- package/unbundled/definition5.js +2 -2
- package/unbundled/delegates-aria.cjs +1 -1
- package/unbundled/delegates-aria.js +1 -1
- package/unbundled/enums.js +1 -1
- package/unbundled/form-associated.cjs +4 -5
- package/unbundled/form-associated.js +4 -5
- package/unbundled/host-semantics.cjs +1 -0
- package/unbundled/host-semantics.js +2 -1
- package/unbundled/key-codes.js +1 -1
- package/unbundled/listbox.cjs +6 -14
- package/unbundled/listbox.js +6 -14
- package/unbundled/mixins.cjs +0 -2
- package/unbundled/mixins.js +2 -4
- package/unbundled/picker-field.template.cjs +1 -2
- package/unbundled/picker-field.template.js +1 -2
- package/unbundled/scrollIntoView.cjs +0 -1
- package/unbundled/scrollIntoView.js +0 -1
- package/unbundled/slider.template.js +1 -1
- package/unbundled/slottable-request.cjs +2 -2
- package/unbundled/slottable-request.js +2 -2
- package/unbundled/text-field.cjs +1 -1
- package/unbundled/text-field.js +1 -1
- package/unbundled/time-selection-picker.template.cjs +1 -4
- package/unbundled/time-selection-picker.template.js +1 -4
- package/unbundled/vivid-element.cjs +2 -1
- package/unbundled/vivid-element.js +2 -1
- package/video-player/definition.cjs +7953 -7720
- package/video-player/definition.js +7955 -7722
- package/video-player/index.cjs +38 -54
- package/video-player/index.js +12785 -12735
- package/visually-hidden/definition.js +1 -1
- package/vivid.api.json +16 -341
|
@@ -5,7 +5,7 @@ import { V as Me } from "./definition14.js";
|
|
|
5
5
|
import { r as F } from "./repeat.js";
|
|
6
6
|
import { w as D } from "./when.js";
|
|
7
7
|
import { c as ke } from "./class-names.js";
|
|
8
|
-
const lr = '.segments{gap:24px}@media
|
|
8
|
+
const lr = '.segments{gap:24px}@media(width>=648px){.segments{display:inline-flex}}.segment{display:flex;flex-direction:column;gap:12px}.segment .header{display:flex;align-items:center;padding-block:8px}.segment .title{display:flex;flex-grow:1;justify-content:center}.segment .title-action{border-radius:8px;block-size:24px;font:var(--vvd-typography-base-extended);padding-inline:8px}.calendar{display:flex;flex-direction:column;margin-top:8px;gap:4px}.calendar .calendar-separator{margin-inline:10px}.calendar .calendar-weekdays{display:flex;justify-content:center}.calendar .calendar-weekday{display:inline-flex;align-items:center;justify-content:center;block-size:16px;font:var(--vvd-typography-base-condensed);inline-size:40px}.calendar .calendar-week{display:flex;justify-content:center}.calendar .calendar-day{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;aspect-ratio:1/1;block-size:28px;font:var(--vvd-typography-base);margin-inline:6px}.calendar .calendar-day.start,.calendar .calendar-day.end{border:2px solid var(--vvd-color-cta-50);background-color:var(--vvd-color-cta-200)}.calendar:focus-visible .calendar .calendar-day.start,.calendar:focus-visible .calendar .calendar-day.end{border-width:3px}.calendar .calendar-day:before,.calendar .calendar-day:after{position:absolute;z-index:-1;display:block;width:20px;height:28px}.calendar .calendar-day:before{right:50%}.calendar .calendar-day:after{left:50%}.calendar .calendar-day.range:before,.calendar .calendar-day.range:after{background-color:var(--vvd-color-cta-50)}.calendar .calendar-day.range:not(.start):before,.calendar .calendar-day.range:not(.end):after{content:""}.calendar .calendar-day.outside-month,.calendar .calendar-day:disabled{color:var(--vvd-color-neutral-400)}.months-separator{margin-inline:-12px}.month-grid{display:flex;flex-direction:column;gap:34px}.month-grid .months-row{display:flex;justify-content:center;gap:29px}.month-grid .month{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;aspect-ratio:1/1;block-size:48px;font:var(--vvd-typography-base-extended);text-transform:uppercase}.month-grid .month:disabled{color:var(--vvd-color-neutral-400)}.button{--_connotation-color-primary: var(--vvd-date-picker-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-firm: var(--vvd-date-picker-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-date-picker-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-date-picker-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-dim: var(--vvd-date-picker-accent-dim, var(--vvd-color-neutral-200));--_connotation-color-pale: var(--vvd-date-picker-accent-pale, var(--vvd-color-neutral-300))}.button{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media(hover:hover){.button:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.button.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.button:active:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.button.active:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.button.selected:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}@media(hover:hover){.button.selected:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}}.button.selected.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}.button.selected:disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: transparent}.button.selected.disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: transparent}.button{position:relative;padding:0;border:none;background-color:var(--_appearance-color-fill);color:var(--_appearance-color-text);cursor:pointer}.button:disabled{cursor:not-allowed}.button:focus:not(.title-action),.button.title-action:focus-visible{--focus-stroke-gap-color: transparent;color:var(--vvd-color-canvas-text);box-shadow:0 0 0 4px color-mix(in srgb,var(--focus-stroke-color, var(--vvd-color-cta-500)),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px))}.button:focus:not(.title-action).start,.button:focus:not(.title-action).end,.button.title-action:focus-visible.start,.button.title-action:focus-visible.end{border-width:3px}.button.current{border:1px solid var(--vvd-color-neutral-200)}.button.selected{border:1px solid var(--vvd-color-neutral-900)}';
|
|
9
9
|
function _(r) {
|
|
10
10
|
const e = Object.prototype.toString.call(r);
|
|
11
11
|
return r instanceof Date || typeof r == "object" && e === "[object Date]" ? new r.constructor(+r) : typeof r == "number" || e === "[object Number]" || typeof r == "string" || e === "[object String]" ? new Date(r) : /* @__PURE__ */ new Date(NaN);
|
|
@@ -561,7 +561,6 @@ const C = {
|
|
|
561
561
|
return n;
|
|
562
562
|
case "aaaaa":
|
|
563
563
|
return n[0];
|
|
564
|
-
case "aaaa":
|
|
565
564
|
default:
|
|
566
565
|
return n === "am" ? "a.m." : "p.m.";
|
|
567
566
|
}
|
|
@@ -601,13 +600,14 @@ const C = {
|
|
|
601
600
|
G: function(r, e, n) {
|
|
602
601
|
const t = r.getFullYear() > 0 ? 1 : 0;
|
|
603
602
|
switch (e) {
|
|
603
|
+
// AD, BC
|
|
604
604
|
case "G":
|
|
605
605
|
case "GG":
|
|
606
606
|
case "GGG":
|
|
607
607
|
return n.era(t, { width: "abbreviated" });
|
|
608
|
+
// A, B
|
|
608
609
|
case "GGGGG":
|
|
609
610
|
return n.era(t, { width: "narrow" });
|
|
610
|
-
case "GGGG":
|
|
611
611
|
default:
|
|
612
612
|
return n.era(t, { width: "wide" });
|
|
613
613
|
}
|
|
@@ -651,23 +651,27 @@ const C = {
|
|
|
651
651
|
Q: function(r, e, n) {
|
|
652
652
|
const t = Math.ceil((r.getMonth() + 1) / 3);
|
|
653
653
|
switch (e) {
|
|
654
|
+
// 1, 2, 3, 4
|
|
654
655
|
case "Q":
|
|
655
656
|
return String(t);
|
|
657
|
+
// 01, 02, 03, 04
|
|
656
658
|
case "QQ":
|
|
657
659
|
return l(t, 2);
|
|
660
|
+
// 1st, 2nd, 3rd, 4th
|
|
658
661
|
case "Qo":
|
|
659
662
|
return n.ordinalNumber(t, { unit: "quarter" });
|
|
663
|
+
// Q1, Q2, Q3, Q4
|
|
660
664
|
case "QQQ":
|
|
661
665
|
return n.quarter(t, {
|
|
662
666
|
width: "abbreviated",
|
|
663
667
|
context: "formatting"
|
|
664
668
|
});
|
|
669
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
665
670
|
case "QQQQQ":
|
|
666
671
|
return n.quarter(t, {
|
|
667
672
|
width: "narrow",
|
|
668
673
|
context: "formatting"
|
|
669
674
|
});
|
|
670
|
-
case "QQQQ":
|
|
671
675
|
default:
|
|
672
676
|
return n.quarter(t, {
|
|
673
677
|
width: "wide",
|
|
@@ -679,23 +683,27 @@ const C = {
|
|
|
679
683
|
q: function(r, e, n) {
|
|
680
684
|
const t = Math.ceil((r.getMonth() + 1) / 3);
|
|
681
685
|
switch (e) {
|
|
686
|
+
// 1, 2, 3, 4
|
|
682
687
|
case "q":
|
|
683
688
|
return String(t);
|
|
689
|
+
// 01, 02, 03, 04
|
|
684
690
|
case "qq":
|
|
685
691
|
return l(t, 2);
|
|
692
|
+
// 1st, 2nd, 3rd, 4th
|
|
686
693
|
case "qo":
|
|
687
694
|
return n.ordinalNumber(t, { unit: "quarter" });
|
|
695
|
+
// Q1, Q2, Q3, Q4
|
|
688
696
|
case "qqq":
|
|
689
697
|
return n.quarter(t, {
|
|
690
698
|
width: "abbreviated",
|
|
691
699
|
context: "standalone"
|
|
692
700
|
});
|
|
701
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
693
702
|
case "qqqqq":
|
|
694
703
|
return n.quarter(t, {
|
|
695
704
|
width: "narrow",
|
|
696
705
|
context: "standalone"
|
|
697
706
|
});
|
|
698
|
-
case "qqqq":
|
|
699
707
|
default:
|
|
700
708
|
return n.quarter(t, {
|
|
701
709
|
width: "wide",
|
|
@@ -710,19 +718,21 @@ const C = {
|
|
|
710
718
|
case "M":
|
|
711
719
|
case "MM":
|
|
712
720
|
return C.M(r, e);
|
|
721
|
+
// 1st, 2nd, ..., 12th
|
|
713
722
|
case "Mo":
|
|
714
723
|
return n.ordinalNumber(t + 1, { unit: "month" });
|
|
724
|
+
// Jan, Feb, ..., Dec
|
|
715
725
|
case "MMM":
|
|
716
726
|
return n.month(t, {
|
|
717
727
|
width: "abbreviated",
|
|
718
728
|
context: "formatting"
|
|
719
729
|
});
|
|
730
|
+
// J, F, ..., D
|
|
720
731
|
case "MMMMM":
|
|
721
732
|
return n.month(t, {
|
|
722
733
|
width: "narrow",
|
|
723
734
|
context: "formatting"
|
|
724
735
|
});
|
|
725
|
-
case "MMMM":
|
|
726
736
|
default:
|
|
727
737
|
return n.month(t, { width: "wide", context: "formatting" });
|
|
728
738
|
}
|
|
@@ -731,23 +741,27 @@ const C = {
|
|
|
731
741
|
L: function(r, e, n) {
|
|
732
742
|
const t = r.getMonth();
|
|
733
743
|
switch (e) {
|
|
744
|
+
// 1, 2, ..., 12
|
|
734
745
|
case "L":
|
|
735
746
|
return String(t + 1);
|
|
747
|
+
// 01, 02, ..., 12
|
|
736
748
|
case "LL":
|
|
737
749
|
return l(t + 1, 2);
|
|
750
|
+
// 1st, 2nd, ..., 12th
|
|
738
751
|
case "Lo":
|
|
739
752
|
return n.ordinalNumber(t + 1, { unit: "month" });
|
|
753
|
+
// Jan, Feb, ..., Dec
|
|
740
754
|
case "LLL":
|
|
741
755
|
return n.month(t, {
|
|
742
756
|
width: "abbreviated",
|
|
743
757
|
context: "standalone"
|
|
744
758
|
});
|
|
759
|
+
// J, F, ..., D
|
|
745
760
|
case "LLLLL":
|
|
746
761
|
return n.month(t, {
|
|
747
762
|
width: "narrow",
|
|
748
763
|
context: "standalone"
|
|
749
764
|
});
|
|
750
|
-
case "LLLL":
|
|
751
765
|
default:
|
|
752
766
|
return n.month(t, { width: "wide", context: "standalone" });
|
|
753
767
|
}
|
|
@@ -775,6 +789,7 @@ const C = {
|
|
|
775
789
|
E: function(r, e, n) {
|
|
776
790
|
const t = r.getDay();
|
|
777
791
|
switch (e) {
|
|
792
|
+
// Tue
|
|
778
793
|
case "E":
|
|
779
794
|
case "EE":
|
|
780
795
|
case "EEE":
|
|
@@ -782,17 +797,18 @@ const C = {
|
|
|
782
797
|
width: "abbreviated",
|
|
783
798
|
context: "formatting"
|
|
784
799
|
});
|
|
800
|
+
// T
|
|
785
801
|
case "EEEEE":
|
|
786
802
|
return n.day(t, {
|
|
787
803
|
width: "narrow",
|
|
788
804
|
context: "formatting"
|
|
789
805
|
});
|
|
806
|
+
// Tu
|
|
790
807
|
case "EEEEEE":
|
|
791
808
|
return n.day(t, {
|
|
792
809
|
width: "short",
|
|
793
810
|
context: "formatting"
|
|
794
811
|
});
|
|
795
|
-
case "EEEE":
|
|
796
812
|
default:
|
|
797
813
|
return n.day(t, {
|
|
798
814
|
width: "wide",
|
|
@@ -804,10 +820,13 @@ const C = {
|
|
|
804
820
|
e: function(r, e, n, t) {
|
|
805
821
|
const a = r.getDay(), o = (a - t.weekStartsOn + 8) % 7 || 7;
|
|
806
822
|
switch (e) {
|
|
823
|
+
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
807
824
|
case "e":
|
|
808
825
|
return String(o);
|
|
826
|
+
// Padded numerical value
|
|
809
827
|
case "ee":
|
|
810
828
|
return l(o, 2);
|
|
829
|
+
// 1st, 2nd, ..., 7th
|
|
811
830
|
case "eo":
|
|
812
831
|
return n.ordinalNumber(o, { unit: "day" });
|
|
813
832
|
case "eee":
|
|
@@ -815,17 +834,18 @@ const C = {
|
|
|
815
834
|
width: "abbreviated",
|
|
816
835
|
context: "formatting"
|
|
817
836
|
});
|
|
837
|
+
// T
|
|
818
838
|
case "eeeee":
|
|
819
839
|
return n.day(a, {
|
|
820
840
|
width: "narrow",
|
|
821
841
|
context: "formatting"
|
|
822
842
|
});
|
|
843
|
+
// Tu
|
|
823
844
|
case "eeeeee":
|
|
824
845
|
return n.day(a, {
|
|
825
846
|
width: "short",
|
|
826
847
|
context: "formatting"
|
|
827
848
|
});
|
|
828
|
-
case "eeee":
|
|
829
849
|
default:
|
|
830
850
|
return n.day(a, {
|
|
831
851
|
width: "wide",
|
|
@@ -837,10 +857,13 @@ const C = {
|
|
|
837
857
|
c: function(r, e, n, t) {
|
|
838
858
|
const a = r.getDay(), o = (a - t.weekStartsOn + 8) % 7 || 7;
|
|
839
859
|
switch (e) {
|
|
860
|
+
// Numerical value (same as in `e`)
|
|
840
861
|
case "c":
|
|
841
862
|
return String(o);
|
|
863
|
+
// Padded numerical value
|
|
842
864
|
case "cc":
|
|
843
865
|
return l(o, e.length);
|
|
866
|
+
// 1st, 2nd, ..., 7th
|
|
844
867
|
case "co":
|
|
845
868
|
return n.ordinalNumber(o, { unit: "day" });
|
|
846
869
|
case "ccc":
|
|
@@ -848,17 +871,18 @@ const C = {
|
|
|
848
871
|
width: "abbreviated",
|
|
849
872
|
context: "standalone"
|
|
850
873
|
});
|
|
874
|
+
// T
|
|
851
875
|
case "ccccc":
|
|
852
876
|
return n.day(a, {
|
|
853
877
|
width: "narrow",
|
|
854
878
|
context: "standalone"
|
|
855
879
|
});
|
|
880
|
+
// Tu
|
|
856
881
|
case "cccccc":
|
|
857
882
|
return n.day(a, {
|
|
858
883
|
width: "short",
|
|
859
884
|
context: "standalone"
|
|
860
885
|
});
|
|
861
|
-
case "cccc":
|
|
862
886
|
default:
|
|
863
887
|
return n.day(a, {
|
|
864
888
|
width: "wide",
|
|
@@ -870,28 +894,33 @@ const C = {
|
|
|
870
894
|
i: function(r, e, n) {
|
|
871
895
|
const t = r.getDay(), a = t === 0 ? 7 : t;
|
|
872
896
|
switch (e) {
|
|
897
|
+
// 2
|
|
873
898
|
case "i":
|
|
874
899
|
return String(a);
|
|
900
|
+
// 02
|
|
875
901
|
case "ii":
|
|
876
902
|
return l(a, e.length);
|
|
903
|
+
// 2nd
|
|
877
904
|
case "io":
|
|
878
905
|
return n.ordinalNumber(a, { unit: "day" });
|
|
906
|
+
// Tue
|
|
879
907
|
case "iii":
|
|
880
908
|
return n.day(t, {
|
|
881
909
|
width: "abbreviated",
|
|
882
910
|
context: "formatting"
|
|
883
911
|
});
|
|
912
|
+
// T
|
|
884
913
|
case "iiiii":
|
|
885
914
|
return n.day(t, {
|
|
886
915
|
width: "narrow",
|
|
887
916
|
context: "formatting"
|
|
888
917
|
});
|
|
918
|
+
// Tu
|
|
889
919
|
case "iiiiii":
|
|
890
920
|
return n.day(t, {
|
|
891
921
|
width: "short",
|
|
892
922
|
context: "formatting"
|
|
893
923
|
});
|
|
894
|
-
case "iiii":
|
|
895
924
|
default:
|
|
896
925
|
return n.day(t, {
|
|
897
926
|
width: "wide",
|
|
@@ -919,7 +948,6 @@ const C = {
|
|
|
919
948
|
width: "narrow",
|
|
920
949
|
context: "formatting"
|
|
921
950
|
});
|
|
922
|
-
case "aaaa":
|
|
923
951
|
default:
|
|
924
952
|
return n.dayPeriod(a, {
|
|
925
953
|
width: "wide",
|
|
@@ -948,7 +976,6 @@ const C = {
|
|
|
948
976
|
width: "narrow",
|
|
949
977
|
context: "formatting"
|
|
950
978
|
});
|
|
951
|
-
case "bbbb":
|
|
952
979
|
default:
|
|
953
980
|
return n.dayPeriod(a, {
|
|
954
981
|
width: "wide",
|
|
@@ -973,7 +1000,6 @@ const C = {
|
|
|
973
1000
|
width: "narrow",
|
|
974
1001
|
context: "formatting"
|
|
975
1002
|
});
|
|
976
|
-
case "BBBB":
|
|
977
1003
|
default:
|
|
978
1004
|
return n.dayPeriod(a, {
|
|
979
1005
|
width: "wide",
|
|
@@ -1021,13 +1047,16 @@ const C = {
|
|
|
1021
1047
|
if (t === 0)
|
|
1022
1048
|
return "Z";
|
|
1023
1049
|
switch (e) {
|
|
1050
|
+
// Hours and optional minutes
|
|
1024
1051
|
case "X":
|
|
1025
1052
|
return me(t);
|
|
1053
|
+
// Hours, minutes and optional seconds without `:` delimiter
|
|
1054
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1055
|
+
// so this token always has the same output as `XX`
|
|
1026
1056
|
case "XXXX":
|
|
1027
1057
|
case "XX":
|
|
1028
1058
|
return E(t);
|
|
1029
|
-
|
|
1030
|
-
case "XXX":
|
|
1059
|
+
// Hours and minutes with `:` delimiter
|
|
1031
1060
|
default:
|
|
1032
1061
|
return E(t, ":");
|
|
1033
1062
|
}
|
|
@@ -1036,13 +1065,16 @@ const C = {
|
|
|
1036
1065
|
x: function(r, e, n) {
|
|
1037
1066
|
const t = r.getTimezoneOffset();
|
|
1038
1067
|
switch (e) {
|
|
1068
|
+
// Hours and optional minutes
|
|
1039
1069
|
case "x":
|
|
1040
1070
|
return me(t);
|
|
1071
|
+
// Hours, minutes and optional seconds without `:` delimiter
|
|
1072
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1073
|
+
// so this token always has the same output as `xx`
|
|
1041
1074
|
case "xxxx":
|
|
1042
1075
|
case "xx":
|
|
1043
1076
|
return E(t);
|
|
1044
|
-
|
|
1045
|
-
case "xxx":
|
|
1077
|
+
// Hours and minutes with `:` delimiter
|
|
1046
1078
|
default:
|
|
1047
1079
|
return E(t, ":");
|
|
1048
1080
|
}
|
|
@@ -1051,11 +1083,11 @@ const C = {
|
|
|
1051
1083
|
O: function(r, e, n) {
|
|
1052
1084
|
const t = r.getTimezoneOffset();
|
|
1053
1085
|
switch (e) {
|
|
1086
|
+
// Short
|
|
1054
1087
|
case "O":
|
|
1055
1088
|
case "OO":
|
|
1056
1089
|
case "OOO":
|
|
1057
1090
|
return "GMT" + pe(t, ":");
|
|
1058
|
-
case "OOOO":
|
|
1059
1091
|
default:
|
|
1060
1092
|
return "GMT" + E(t, ":");
|
|
1061
1093
|
}
|
|
@@ -1064,11 +1096,11 @@ const C = {
|
|
|
1064
1096
|
z: function(r, e, n) {
|
|
1065
1097
|
const t = r.getTimezoneOffset();
|
|
1066
1098
|
switch (e) {
|
|
1099
|
+
// Short
|
|
1067
1100
|
case "z":
|
|
1068
1101
|
case "zz":
|
|
1069
1102
|
case "zzz":
|
|
1070
1103
|
return "GMT" + pe(t, ":");
|
|
1071
|
-
case "zzzz":
|
|
1072
1104
|
default:
|
|
1073
1105
|
return "GMT" + E(t, ":");
|
|
1074
1106
|
}
|
|
@@ -1103,7 +1135,6 @@ const we = (r, e) => {
|
|
|
1103
1135
|
return e.date({ width: "medium" });
|
|
1104
1136
|
case "PPP":
|
|
1105
1137
|
return e.date({ width: "long" });
|
|
1106
|
-
case "PPPP":
|
|
1107
1138
|
default:
|
|
1108
1139
|
return e.date({ width: "full" });
|
|
1109
1140
|
}
|
|
@@ -1115,7 +1146,6 @@ const we = (r, e) => {
|
|
|
1115
1146
|
return e.time({ width: "medium" });
|
|
1116
1147
|
case "ppp":
|
|
1117
1148
|
return e.time({ width: "long" });
|
|
1118
|
-
case "pppp":
|
|
1119
1149
|
default:
|
|
1120
1150
|
return e.time({ width: "full" });
|
|
1121
1151
|
}
|
|
@@ -1134,7 +1164,6 @@ const we = (r, e) => {
|
|
|
1134
1164
|
case "PPP":
|
|
1135
1165
|
o = e.dateTime({ width: "long" });
|
|
1136
1166
|
break;
|
|
1137
|
-
case "PPPP":
|
|
1138
1167
|
default:
|
|
1139
1168
|
o = e.dateTime({ width: "full" });
|
|
1140
1169
|
break;
|
|
@@ -1282,13 +1311,14 @@ class zt extends u {
|
|
|
1282
1311
|
priority = 140;
|
|
1283
1312
|
parse(e, n, t) {
|
|
1284
1313
|
switch (n) {
|
|
1314
|
+
// AD, BC
|
|
1285
1315
|
case "G":
|
|
1286
1316
|
case "GG":
|
|
1287
1317
|
case "GGG":
|
|
1288
1318
|
return t.era(e, { width: "abbreviated" }) || t.era(e, { width: "narrow" });
|
|
1319
|
+
// A, B
|
|
1289
1320
|
case "GGGGG":
|
|
1290
1321
|
return t.era(e, { width: "narrow" });
|
|
1291
|
-
case "GGGG":
|
|
1292
1322
|
default:
|
|
1293
1323
|
return t.era(e, { width: "wide" }) || t.era(e, { width: "abbreviated" }) || t.era(e, { width: "narrow" });
|
|
1294
1324
|
}
|
|
@@ -1412,9 +1442,6 @@ function oe(r) {
|
|
|
1412
1442
|
case "noon":
|
|
1413
1443
|
case "afternoon":
|
|
1414
1444
|
return 12;
|
|
1415
|
-
case "am":
|
|
1416
|
-
case "midnight":
|
|
1417
|
-
case "night":
|
|
1418
1445
|
default:
|
|
1419
1446
|
return 0;
|
|
1420
1447
|
}
|
|
@@ -1568,11 +1595,14 @@ class St extends u {
|
|
|
1568
1595
|
priority = 120;
|
|
1569
1596
|
parse(e, n, t) {
|
|
1570
1597
|
switch (n) {
|
|
1598
|
+
// 1, 2, 3, 4
|
|
1571
1599
|
case "Q":
|
|
1572
1600
|
case "QQ":
|
|
1573
1601
|
return b(n.length, e);
|
|
1602
|
+
// 1st, 2nd, 3rd, 4th
|
|
1574
1603
|
case "Qo":
|
|
1575
1604
|
return t.ordinalNumber(e, { unit: "quarter" });
|
|
1605
|
+
// Q1, Q2, Q3, Q4
|
|
1576
1606
|
case "QQQ":
|
|
1577
1607
|
return t.quarter(e, {
|
|
1578
1608
|
width: "abbreviated",
|
|
@@ -1581,12 +1611,12 @@ class St extends u {
|
|
|
1581
1611
|
width: "narrow",
|
|
1582
1612
|
context: "formatting"
|
|
1583
1613
|
});
|
|
1614
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
1584
1615
|
case "QQQQQ":
|
|
1585
1616
|
return t.quarter(e, {
|
|
1586
1617
|
width: "narrow",
|
|
1587
1618
|
context: "formatting"
|
|
1588
1619
|
});
|
|
1589
|
-
case "QQQQ":
|
|
1590
1620
|
default:
|
|
1591
1621
|
return t.quarter(e, {
|
|
1592
1622
|
width: "wide",
|
|
@@ -1627,11 +1657,14 @@ class en extends u {
|
|
|
1627
1657
|
priority = 120;
|
|
1628
1658
|
parse(e, n, t) {
|
|
1629
1659
|
switch (n) {
|
|
1660
|
+
// 1, 2, 3, 4
|
|
1630
1661
|
case "q":
|
|
1631
1662
|
case "qq":
|
|
1632
1663
|
return b(n.length, e);
|
|
1664
|
+
// 1st, 2nd, 3rd, 4th
|
|
1633
1665
|
case "qo":
|
|
1634
1666
|
return t.ordinalNumber(e, { unit: "quarter" });
|
|
1667
|
+
// Q1, Q2, Q3, Q4
|
|
1635
1668
|
case "qqq":
|
|
1636
1669
|
return t.quarter(e, {
|
|
1637
1670
|
width: "abbreviated",
|
|
@@ -1640,12 +1673,12 @@ class en extends u {
|
|
|
1640
1673
|
width: "narrow",
|
|
1641
1674
|
context: "standalone"
|
|
1642
1675
|
});
|
|
1676
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
1643
1677
|
case "qqqqq":
|
|
1644
1678
|
return t.quarter(e, {
|
|
1645
1679
|
width: "narrow",
|
|
1646
1680
|
context: "standalone"
|
|
1647
1681
|
});
|
|
1648
|
-
case "qqqq":
|
|
1649
1682
|
default:
|
|
1650
1683
|
return t.quarter(e, {
|
|
1651
1684
|
width: "wide",
|
|
@@ -1702,13 +1735,16 @@ class tn extends u {
|
|
|
1702
1735
|
parse(e, n, t) {
|
|
1703
1736
|
const a = (o) => o - 1;
|
|
1704
1737
|
switch (n) {
|
|
1738
|
+
// 1, 2, ..., 12
|
|
1705
1739
|
case "M":
|
|
1706
1740
|
return g(
|
|
1707
1741
|
p(y.month, e),
|
|
1708
1742
|
a
|
|
1709
1743
|
);
|
|
1744
|
+
// 01, 02, ..., 12
|
|
1710
1745
|
case "MM":
|
|
1711
1746
|
return g(b(2, e), a);
|
|
1747
|
+
// 1st, 2nd, ..., 12th
|
|
1712
1748
|
case "Mo":
|
|
1713
1749
|
return g(
|
|
1714
1750
|
t.ordinalNumber(e, {
|
|
@@ -1716,17 +1752,18 @@ class tn extends u {
|
|
|
1716
1752
|
}),
|
|
1717
1753
|
a
|
|
1718
1754
|
);
|
|
1755
|
+
// Jan, Feb, ..., Dec
|
|
1719
1756
|
case "MMM":
|
|
1720
1757
|
return t.month(e, {
|
|
1721
1758
|
width: "abbreviated",
|
|
1722
1759
|
context: "formatting"
|
|
1723
1760
|
}) || t.month(e, { width: "narrow", context: "formatting" });
|
|
1761
|
+
// J, F, ..., D
|
|
1724
1762
|
case "MMMMM":
|
|
1725
1763
|
return t.month(e, {
|
|
1726
1764
|
width: "narrow",
|
|
1727
1765
|
context: "formatting"
|
|
1728
1766
|
});
|
|
1729
|
-
case "MMMM":
|
|
1730
1767
|
default:
|
|
1731
1768
|
return t.month(e, { width: "wide", context: "formatting" }) || t.month(e, {
|
|
1732
1769
|
width: "abbreviated",
|
|
@@ -1746,13 +1783,16 @@ class nn extends u {
|
|
|
1746
1783
|
parse(e, n, t) {
|
|
1747
1784
|
const a = (o) => o - 1;
|
|
1748
1785
|
switch (n) {
|
|
1786
|
+
// 1, 2, ..., 12
|
|
1749
1787
|
case "L":
|
|
1750
1788
|
return g(
|
|
1751
1789
|
p(y.month, e),
|
|
1752
1790
|
a
|
|
1753
1791
|
);
|
|
1792
|
+
// 01, 02, ..., 12
|
|
1754
1793
|
case "LL":
|
|
1755
1794
|
return g(b(2, e), a);
|
|
1795
|
+
// 1st, 2nd, ..., 12th
|
|
1756
1796
|
case "Lo":
|
|
1757
1797
|
return g(
|
|
1758
1798
|
t.ordinalNumber(e, {
|
|
@@ -1760,17 +1800,18 @@ class nn extends u {
|
|
|
1760
1800
|
}),
|
|
1761
1801
|
a
|
|
1762
1802
|
);
|
|
1803
|
+
// Jan, Feb, ..., Dec
|
|
1763
1804
|
case "LLL":
|
|
1764
1805
|
return t.month(e, {
|
|
1765
1806
|
width: "abbreviated",
|
|
1766
1807
|
context: "standalone"
|
|
1767
1808
|
}) || t.month(e, { width: "narrow", context: "standalone" });
|
|
1809
|
+
// J, F, ..., D
|
|
1768
1810
|
case "LLLLL":
|
|
1769
1811
|
return t.month(e, {
|
|
1770
1812
|
width: "narrow",
|
|
1771
1813
|
context: "standalone"
|
|
1772
1814
|
});
|
|
1773
|
-
case "LLLL":
|
|
1774
1815
|
default:
|
|
1775
1816
|
return t.month(e, { width: "wide", context: "standalone" }) || t.month(e, {
|
|
1776
1817
|
width: "abbreviated",
|
|
@@ -1973,6 +2014,7 @@ class hn extends u {
|
|
|
1973
2014
|
priority = 90;
|
|
1974
2015
|
parse(e, n, t) {
|
|
1975
2016
|
switch (n) {
|
|
2017
|
+
// Tue
|
|
1976
2018
|
case "E":
|
|
1977
2019
|
case "EE":
|
|
1978
2020
|
case "EEE":
|
|
@@ -1980,14 +2022,15 @@ class hn extends u {
|
|
|
1980
2022
|
width: "abbreviated",
|
|
1981
2023
|
context: "formatting"
|
|
1982
2024
|
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
2025
|
+
// T
|
|
1983
2026
|
case "EEEEE":
|
|
1984
2027
|
return t.day(e, {
|
|
1985
2028
|
width: "narrow",
|
|
1986
2029
|
context: "formatting"
|
|
1987
2030
|
});
|
|
2031
|
+
// Tu
|
|
1988
2032
|
case "EEEEEE":
|
|
1989
2033
|
return t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
1990
|
-
case "EEEE":
|
|
1991
2034
|
default:
|
|
1992
2035
|
return t.day(e, { width: "wide", context: "formatting" }) || t.day(e, {
|
|
1993
2036
|
width: "abbreviated",
|
|
@@ -2011,9 +2054,11 @@ class fn extends u {
|
|
|
2011
2054
|
return (s + a.weekStartsOn + 6) % 7 + i;
|
|
2012
2055
|
};
|
|
2013
2056
|
switch (n) {
|
|
2057
|
+
// 3
|
|
2014
2058
|
case "e":
|
|
2015
2059
|
case "ee":
|
|
2016
2060
|
return g(b(n.length, e), o);
|
|
2061
|
+
// 3rd
|
|
2017
2062
|
case "eo":
|
|
2018
2063
|
return g(
|
|
2019
2064
|
t.ordinalNumber(e, {
|
|
@@ -2021,19 +2066,21 @@ class fn extends u {
|
|
|
2021
2066
|
}),
|
|
2022
2067
|
o
|
|
2023
2068
|
);
|
|
2069
|
+
// Tue
|
|
2024
2070
|
case "eee":
|
|
2025
2071
|
return t.day(e, {
|
|
2026
2072
|
width: "abbreviated",
|
|
2027
2073
|
context: "formatting"
|
|
2028
2074
|
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
2075
|
+
// T
|
|
2029
2076
|
case "eeeee":
|
|
2030
2077
|
return t.day(e, {
|
|
2031
2078
|
width: "narrow",
|
|
2032
2079
|
context: "formatting"
|
|
2033
2080
|
});
|
|
2081
|
+
// Tu
|
|
2034
2082
|
case "eeeeee":
|
|
2035
2083
|
return t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
2036
|
-
case "eeee":
|
|
2037
2084
|
default:
|
|
2038
2085
|
return t.day(e, { width: "wide", context: "formatting" }) || t.day(e, {
|
|
2039
2086
|
width: "abbreviated",
|
|
@@ -2073,9 +2120,11 @@ class pn extends u {
|
|
|
2073
2120
|
return (s + a.weekStartsOn + 6) % 7 + i;
|
|
2074
2121
|
};
|
|
2075
2122
|
switch (n) {
|
|
2123
|
+
// 3
|
|
2076
2124
|
case "c":
|
|
2077
2125
|
case "cc":
|
|
2078
2126
|
return g(b(n.length, e), o);
|
|
2127
|
+
// 3rd
|
|
2079
2128
|
case "co":
|
|
2080
2129
|
return g(
|
|
2081
2130
|
t.ordinalNumber(e, {
|
|
@@ -2083,19 +2132,21 @@ class pn extends u {
|
|
|
2083
2132
|
}),
|
|
2084
2133
|
o
|
|
2085
2134
|
);
|
|
2135
|
+
// Tue
|
|
2086
2136
|
case "ccc":
|
|
2087
2137
|
return t.day(e, {
|
|
2088
2138
|
width: "abbreviated",
|
|
2089
2139
|
context: "standalone"
|
|
2090
2140
|
}) || t.day(e, { width: "short", context: "standalone" }) || t.day(e, { width: "narrow", context: "standalone" });
|
|
2141
|
+
// T
|
|
2091
2142
|
case "ccccc":
|
|
2092
2143
|
return t.day(e, {
|
|
2093
2144
|
width: "narrow",
|
|
2094
2145
|
context: "standalone"
|
|
2095
2146
|
});
|
|
2147
|
+
// Tu
|
|
2096
2148
|
case "cccccc":
|
|
2097
2149
|
return t.day(e, { width: "short", context: "standalone" }) || t.day(e, { width: "narrow", context: "standalone" });
|
|
2098
|
-
case "cccc":
|
|
2099
2150
|
default:
|
|
2100
2151
|
return t.day(e, { width: "wide", context: "standalone" }) || t.day(e, {
|
|
2101
2152
|
width: "abbreviated",
|
|
@@ -2136,11 +2187,14 @@ class wn extends u {
|
|
|
2136
2187
|
parse(e, n, t) {
|
|
2137
2188
|
const a = (o) => o === 0 ? 7 : o;
|
|
2138
2189
|
switch (n) {
|
|
2190
|
+
// 2
|
|
2139
2191
|
case "i":
|
|
2140
2192
|
case "ii":
|
|
2141
2193
|
return b(n.length, e);
|
|
2194
|
+
// 2nd
|
|
2142
2195
|
case "io":
|
|
2143
2196
|
return t.ordinalNumber(e, { unit: "day" });
|
|
2197
|
+
// Tue
|
|
2144
2198
|
case "iii":
|
|
2145
2199
|
return g(
|
|
2146
2200
|
t.day(e, {
|
|
@@ -2155,6 +2209,7 @@ class wn extends u {
|
|
|
2155
2209
|
}),
|
|
2156
2210
|
a
|
|
2157
2211
|
);
|
|
2212
|
+
// T
|
|
2158
2213
|
case "iiiii":
|
|
2159
2214
|
return g(
|
|
2160
2215
|
t.day(e, {
|
|
@@ -2163,6 +2218,7 @@ class wn extends u {
|
|
|
2163
2218
|
}),
|
|
2164
2219
|
a
|
|
2165
2220
|
);
|
|
2221
|
+
// Tu
|
|
2166
2222
|
case "iiiiii":
|
|
2167
2223
|
return g(
|
|
2168
2224
|
t.day(e, {
|
|
@@ -2174,7 +2230,6 @@ class wn extends u {
|
|
|
2174
2230
|
}),
|
|
2175
2231
|
a
|
|
2176
2232
|
);
|
|
2177
|
-
case "iiii":
|
|
2178
2233
|
default:
|
|
2179
2234
|
return g(
|
|
2180
2235
|
t.day(e, {
|
|
@@ -2237,7 +2292,6 @@ class bn extends u {
|
|
|
2237
2292
|
width: "narrow",
|
|
2238
2293
|
context: "formatting"
|
|
2239
2294
|
});
|
|
2240
|
-
case "aaaa":
|
|
2241
2295
|
default:
|
|
2242
2296
|
return t.dayPeriod(e, {
|
|
2243
2297
|
width: "wide",
|
|
@@ -2275,7 +2329,6 @@ class yn extends u {
|
|
|
2275
2329
|
width: "narrow",
|
|
2276
2330
|
context: "formatting"
|
|
2277
2331
|
});
|
|
2278
|
-
case "bbbb":
|
|
2279
2332
|
default:
|
|
2280
2333
|
return t.dayPeriod(e, {
|
|
2281
2334
|
width: "wide",
|
|
@@ -2313,7 +2366,6 @@ class gn extends u {
|
|
|
2313
2366
|
width: "narrow",
|
|
2314
2367
|
context: "formatting"
|
|
2315
2368
|
});
|
|
2316
|
-
case "BBBB":
|
|
2317
2369
|
default:
|
|
2318
2370
|
return t.dayPeriod(e, {
|
|
2319
2371
|
width: "wide",
|
|
@@ -2486,7 +2538,6 @@ class Tn extends u {
|
|
|
2486
2538
|
P.extendedOptionalSeconds,
|
|
2487
2539
|
e
|
|
2488
2540
|
);
|
|
2489
|
-
case "XXX":
|
|
2490
2541
|
default:
|
|
2491
2542
|
return T(P.extended, e);
|
|
2492
2543
|
}
|
|
@@ -2520,7 +2571,6 @@ class Yn extends u {
|
|
|
2520
2571
|
P.extendedOptionalSeconds,
|
|
2521
2572
|
e
|
|
2522
2573
|
);
|
|
2523
|
-
case "xxx":
|
|
2524
2574
|
default:
|
|
2525
2575
|
return T(P.extended, e);
|
|
2526
2576
|
}
|
|
@@ -3036,7 +3086,6 @@ const _e = {
|
|
|
3036
3086
|
* @internal
|
|
3037
3087
|
*/
|
|
3038
3088
|
minChanged(t, a) {
|
|
3039
|
-
/* v8 ignore if -- @preserve */
|
|
3040
3089
|
this.proxy instanceof HTMLInputElement && (this.proxy.min = a, this.validate());
|
|
3041
3090
|
}
|
|
3042
3091
|
/**
|
|
@@ -3049,7 +3098,6 @@ const _e = {
|
|
|
3049
3098
|
* @internal
|
|
3050
3099
|
*/
|
|
3051
3100
|
maxChanged(t, a) {
|
|
3052
|
-
/* v8 ignore if -- @preserve */
|
|
3053
3101
|
this.proxy instanceof HTMLInputElement && (this.proxy.max = a, this.validate());
|
|
3054
3102
|
}
|
|
3055
3103
|
/**
|