@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
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./vivid-element.cjs"),m=require("./key-codes.cjs");var f=Object.defineProperty,l=(r,i,o,e)=>{for(var t=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(t=n(i,o,t)||t);return t&&f(i,o,t),t};const h="form-associated-proxy",d="ElementInternals",c=d in window&&"setFormValue"in window[d].prototype,u=new WeakMap,p=r=>{class i extends r{constructor(...e){super(...e),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return c}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels,t=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`));return Object.freeze(t.concat(Array.from(e)))}else return a.emptyArray}valueChanged(e,t){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.setFormValue(this.value),this.validate()}get currentValue(){return this.value}set currentValue(e){this.value=e}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),a.Updates.enqueue(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(e,t){
|
|
1
|
+
"use strict";const a=require("./vivid-element.cjs"),m=require("./key-codes.cjs");var f=Object.defineProperty,l=(r,i,o,e)=>{for(var t=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(t=n(i,o,t)||t);return t&&f(i,o,t),t};const h="form-associated-proxy",d="ElementInternals",c=d in window&&"setFormValue"in window[d].prototype,u=new WeakMap,p=r=>{class i extends r{constructor(...e){super(...e),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return c}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels,t=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`));return Object.freeze(t.concat(Array.from(e)))}else return a.emptyArray}valueChanged(e,t){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.setFormValue(this.value),this.validate()}get currentValue(){return this.value}set currentValue(e){this.value=e}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),a.Updates.enqueue(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),a.Updates.enqueue(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!c)return null;let e=u.get(this);return e||(e=this.attachInternals(),u.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(e=>this.proxy.removeEventListener(e,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,t,s){if("valid"in e&&this.disabled){const{valid:n,...y}=e;e=y}this.elementInternals?this.elementInternals.setValidity(e,t,s):typeof t=="string"&&this.proxy.setCustomValidity(t)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(e=>this.proxy.addEventListener(e,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",h),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",h)),this.shadowRoot.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){this.removeChild(this.proxy),this.shadowRoot.removeChild(this.proxySlot)}validate(e){if(this.proxy instanceof HTMLElement&&this.elementInternals){const t=this.proxy.validity.valid,s=this.control,n=s&&s.validity&&!s.validity.valid&&(s.validity.tooShort||s.validity.tooLong);t&&n?this.setValidity(s.validity,s.validationMessage,e):this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}}setFormValue(e,t){this.elementInternals&&this.elementInternals.setFormValue(e,t||e)}_keypressHandler(e){e.key===m.keyEnter&&this.form instanceof HTMLFormElement&&this.form.querySelector("[type=submit]")?.click()}stopPropagation(e){e.stopPropagation()}}return l([a.attr({attribute:"current-value"})],i.prototype,"value"),l([a.attr({mode:"fromView",attribute:"value"})],i.prototype,"initialValue"),l([a.attr({mode:"boolean"})],i.prototype,"disabled"),l([a.attr],i.prototype,"name"),l([a.attr({mode:"boolean"})],i.prototype,"required"),i},v={fromView(r){return typeof r=="string"?r.toLowerCase()==="true":!!r},toView(r){return r?"true":"false"}},k=r=>{class i extends p(r){constructor(){super(...arguments),this.dirtyChecked=!1,this.defaultChecked=!1}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(e,t){this.dirtyChecked||(this.dirtyChecked=!0),this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),e!==void 0&&this.$emit("change"),this.validate()}get checkedAttribute(){return this.defaultChecked}set checkedAttribute(e){this.defaultChecked=e}get currentChecked(){return this.checked}set currentChecked(e){this.checked=e}updateForm(){const e=this.checked?this.value:null;this.setFormValue(e,e)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.defaultChecked,this.dirtyChecked=!1}}return l([a.attr({attribute:"checked",mode:"boolean"})],i.prototype,"defaultChecked"),l([a.attr({attribute:"current-checked",converter:v})],i.prototype,"checked"),i};exports.CheckableFormAssociated=k;exports.FormAssociated=p;
|
|
@@ -67,6 +67,7 @@ const d = "form-associated-proxy", c = "ElementInternals", u = c in window && "s
|
|
|
67
67
|
this.dirtyValue = !0, this.proxy instanceof HTMLElement && (this.proxy.value = this.value), this.setFormValue(this.value), this.validate();
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
+
* @internal
|
|
70
71
|
* @deprecated Use `value` instead.
|
|
71
72
|
*/
|
|
72
73
|
get currentValue() {
|
|
@@ -91,7 +92,6 @@ const d = "form-associated-proxy", c = "ElementInternals", u = c in window && "s
|
|
|
91
92
|
* @internal
|
|
92
93
|
*/
|
|
93
94
|
nameChanged(e, t) {
|
|
94
|
-
/* v8 ignore if -- @preserve */
|
|
95
95
|
this.proxy instanceof HTMLElement && (this.proxy.name = this.name);
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
@@ -153,7 +153,6 @@ const d = "form-associated-proxy", c = "ElementInternals", u = c in window && "s
|
|
|
153
153
|
const { valid: n, ...y } = e;
|
|
154
154
|
e = y;
|
|
155
155
|
}
|
|
156
|
-
/* v8 ignore else -- @preserve */
|
|
157
156
|
this.elementInternals ? this.elementInternals.setValidity(e, t, s) : typeof t == "string" && this.proxy.setCustomValidity(t);
|
|
158
157
|
}
|
|
159
158
|
/**
|
|
@@ -176,14 +175,9 @@ const d = "form-associated-proxy", c = "ElementInternals", u = c in window && "s
|
|
|
176
175
|
* @internal
|
|
177
176
|
*/
|
|
178
177
|
attachProxy() {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
), this.proxy.disabled = this.disabled, this.proxy.required = this.required, typeof this.name == "string" && (this.proxy.name = this.name);
|
|
183
|
-
/* v8 ignore else -- @preserve */
|
|
184
|
-
typeof this.value == "string" && (this.proxy.value = this.value), this.proxy.setAttribute("slot", d), this.proxySlot = document.createElement("slot"), this.proxySlot.setAttribute("name", d);
|
|
185
|
-
}
|
|
186
|
-
this.shadowRoot.appendChild(this.proxySlot), this.appendChild(this.proxy);
|
|
178
|
+
this.proxyInitialized || (this.proxyInitialized = !0, this.proxy.style.display = "none", this.proxyEventsToBlock.forEach(
|
|
179
|
+
(e) => this.proxy.addEventListener(e, this.stopPropagation)
|
|
180
|
+
), this.proxy.disabled = this.disabled, this.proxy.required = this.required, typeof this.name == "string" && (this.proxy.name = this.name), typeof this.value == "string" && (this.proxy.value = this.value), this.proxy.setAttribute("slot", d), this.proxySlot = document.createElement("slot"), this.proxySlot.setAttribute("name", d)), this.shadowRoot.appendChild(this.proxySlot), this.appendChild(this.proxy);
|
|
187
181
|
}
|
|
188
182
|
/**
|
|
189
183
|
* Detach the proxy element from the DOM
|
|
@@ -222,13 +216,9 @@ const d = "form-associated-proxy", c = "ElementInternals", u = c in window && "s
|
|
|
222
216
|
* @internal
|
|
223
217
|
*/
|
|
224
218
|
_keypressHandler(e) {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
"[type=submit]"
|
|
229
|
-
)?.click();
|
|
230
|
-
break;
|
|
231
|
-
}
|
|
219
|
+
e.key === f && this.form instanceof HTMLFormElement && this.form.querySelector(
|
|
220
|
+
"[type=submit]"
|
|
221
|
+
)?.click();
|
|
232
222
|
}
|
|
233
223
|
/**
|
|
234
224
|
* Used to stop propagation of proxy element events
|
|
@@ -266,7 +256,6 @@ const d = "form-associated-proxy", c = "ElementInternals", u = c in window && "s
|
|
|
266
256
|
* @internal
|
|
267
257
|
*/
|
|
268
258
|
defaultCheckedChanged() {
|
|
269
|
-
/* v8 ignore else -- @preserve */
|
|
270
259
|
this.dirtyChecked || (this.checked = this.defaultChecked, this.dirtyChecked = !1);
|
|
271
260
|
}
|
|
272
261
|
/**
|
|
@@ -276,6 +265,7 @@ const d = "form-associated-proxy", c = "ElementInternals", u = c in window && "s
|
|
|
276
265
|
this.dirtyChecked || (this.dirtyChecked = !0), this.updateForm(), this.proxy instanceof HTMLInputElement && (this.proxy.checked = this.checked), e !== void 0 && this.$emit("change"), this.validate();
|
|
277
266
|
}
|
|
278
267
|
/**
|
|
268
|
+
* @internal
|
|
279
269
|
* @deprecated Use `defaultChecked` instead.
|
|
280
270
|
*/
|
|
281
271
|
get checkedAttribute() {
|
|
@@ -285,6 +275,7 @@ const d = "form-associated-proxy", c = "ElementInternals", u = c in window && "s
|
|
|
285
275
|
this.defaultChecked = e;
|
|
286
276
|
}
|
|
287
277
|
/**
|
|
278
|
+
* @internal
|
|
288
279
|
* @deprecated Use `checked` instead.
|
|
289
280
|
*/
|
|
290
281
|
get currentChecked() {
|
package/bundled/key-codes.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e="ArrowDown",o="ArrowLeft",n="ArrowRight",
|
|
1
|
+
"use strict";const e="ArrowDown",o="ArrowLeft",n="ArrowRight",k="ArrowUp";const y="Enter",r="Escape",t="Home";const c="PageDown",s="PageUp";exports.keyArrowDown=e;exports.keyArrowLeft=o;exports.keyArrowRight=n;exports.keyArrowUp=k;exports.keyEnd="End";exports.keyEnter=y;exports.keyEscape=r;exports.keyFunction2="F2";exports.keyHome=t;exports.keyPageDown=c;exports.keyPageUp=s;exports.keySpace=" ";exports.keyTab="Tab";
|
package/bundled/listbox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const p=require("./definition12.cjs"),o=require("./vivid-element.cjs"),d=require("./key-codes.cjs"),u=require("./strings.cjs");function f(r,e){let t=r.length;for(;t--;)if(e(r[t],t,r))return t;return-1}var x=Object.defineProperty,a=(r,e,t,i)=>{for(var s=void 0,n=r.length-1,h;n>=0;n--)(h=r[n])&&(s=h(e,t,s)||s);return s&&x(e,t,s),s};const l=class c extends o.VividElement{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1,this._activeDescendant=null}get firstSelectedOption(){return this.selectedOptions[0]??null}get length(){return this.options.length}get options(){return o.Observable.track(this,"options"),this._options}set options(e){const t=this._options;if(this._options=e,o.Observable.notify(this,"options"),this.$fastController.isConnected){const i=this._newDefaultSelectedIndex(t,e,this.selectedIndex);i!==null&&(this.selectedIndex=i)}}static{this.slottedOptionFilter=e=>p.isListboxOption(e)&&!e.hidden}static{this.TYPE_AHEAD_TIMEOUT_MS=1e3}clickHandler(e){const t=e.target.closest("option,[role=option],[data-vvd-component=option]");if(t&&!t.disabled)return this.selectedIndex=this.options.indexOf(t),!0}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(document.activeElement)&&e!==null&&(e.focus(),requestAnimationFrame(()=>{e.scrollIntoView({block:"nearest"})}))}focusinHandler(e){!this.shouldSkipFocus&&e.target===e.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),t=new RegExp(`^${e}`,"gi");return this.options.filter(i=>i.text.trim().match(t))}getNextSelectableIndex(e){const t=this.options.reduce((i,s,n)=>!i&&!s.disabled&&n>=e?s:i,null);return this.options.indexOf(t)}getPreviousSelectableIndex(e){const t=this.options.reduceRight((i,s,n)=>!i&&!s.disabled&&n<=e?s:i,null);return this.options.indexOf(t)}handleChange(e,t){
|
|
1
|
+
"use strict";const p=require("./definition12.cjs"),o=require("./vivid-element.cjs"),d=require("./key-codes.cjs"),u=require("./strings.cjs");function f(r,e){let t=r.length;for(;t--;)if(e(r[t],t,r))return t;return-1}var x=Object.defineProperty,a=(r,e,t,i)=>{for(var s=void 0,n=r.length-1,h;n>=0;n--)(h=r[n])&&(s=h(e,t,s)||s);return s&&x(e,t,s),s};const l=class c extends o.VividElement{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1,this._activeDescendant=null}get firstSelectedOption(){return this.selectedOptions[0]??null}get length(){return this.options.length}get options(){return o.Observable.track(this,"options"),this._options}set options(e){const t=this._options;if(this._options=e,o.Observable.notify(this,"options"),this.$fastController.isConnected){const i=this._newDefaultSelectedIndex(t,e,this.selectedIndex);i!==null&&(this.selectedIndex=i)}}static{this.slottedOptionFilter=e=>p.isListboxOption(e)&&!e.hidden}static{this.TYPE_AHEAD_TIMEOUT_MS=1e3}clickHandler(e){const t=e.target.closest("option,[role=option],[data-vvd-component=option]");if(t&&!t.disabled)return this.selectedIndex=this.options.indexOf(t),!0}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(document.activeElement)&&e!==null&&(e.focus(),requestAnimationFrame(()=>{e.scrollIntoView({block:"nearest"})}))}focusinHandler(e){!this.shouldSkipFocus&&e.target===e.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),t=new RegExp(`^${e}`,"gi");return this.options.filter(i=>i.text.trim().match(t))}getNextSelectableIndex(e){const t=this.options.reduce((i,s,n)=>!i&&!s.disabled&&n>=e?s:i,null);return this.options.indexOf(t)}getPreviousSelectableIndex(e){const t=this.options.reduceRight((i,s,n)=>!i&&!s.disabled&&n<=e?s:i,null);return this.options.indexOf(t)}handleChange(e,t){t==="selected"&&(c.slottedOptionFilter(e)&&(this.selectedIndex=this.options.indexOf(e)),this.setSelectedOptions())}handleTypeAhead(e){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,c.TYPE_AHEAD_TIMEOUT_MS),this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${e}`}keydownHandler(e){if(this.disabled)return!0;this.shouldSkipFocus=!1;const t=e.key;switch(t){case d.keyHome:{e.shiftKey||(e.preventDefault(),this.selectFirstOption());break}case d.keyArrowDown:{e.shiftKey||(e.preventDefault(),this.selectNextOption());break}case d.keyArrowUp:{e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break}case d.keyEnd:{e.preventDefault(),this.selectLastOption();break}case d.keyTab:return this.focusAndScrollOptionIntoView(),!0;case d.keyEnter:case d.keyEscape:return!0;case d.keySpace:if(this.typeaheadExpired)return!0;default:return t.length===1&&this.handleTypeAhead(`${t}`),!0}}mousedownHandler(e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}selectedIndexChanged(e,t){const i=this._validSelectedIndex(t);if(t!==i){this.selectedIndex=i;return}this.setSelectedOptions()}_validSelectedIndex(e){return e>this.options.length-1||e<-1?-1:e}selectedOptionsChanged(e,t){const i=t.filter(c.slottedOptionFilter);this.options.forEach(s=>{const n=o.Observable.getNotifier(s);n.unsubscribe(this,"selected"),s.selected=i.includes(s),n.subscribe(this,"selected")})}selectFirstOption(){this.disabled||(this.selectedIndex=this.options.findIndex(e=>!e.disabled))}selectLastOption(){this.disabled||(this.selectedIndex=f(this.options,e=>!e.disabled))}selectNextOption(){if(!this.disabled&&this.selectedIndex<this.options.length-1){const e=this.getNextSelectableIndex(this.selectedIndex+1);e!==-1&&(this.selectedIndex=e)}}selectPreviousOption(){if(!this.disabled&&this.selectedIndex>0){const e=this.getPreviousSelectableIndex(this.selectedIndex-1);e!==-1&&(this.selectedIndex=e)}}_newDefaultSelectedIndex(e,t,i){for(const[s,n]of t.entries())if(this._isDefaultSelected(n)&&!e.includes(n))return s;return null}_isDefaultSelected(e){return e.defaultSelected}setSelectedOptions(){this.selectedOptions=this.selectedIndex!==-1?[this.options[this.selectedIndex]]:[],this._activeDescendant=this.firstSelectedOption?.id??"",this.focusAndScrollOptionIntoView()}slottedOptionsChanged(e,t){this.options=t.reduce((s,n)=>(p.isListboxOption(n)&&s.push(n),s),[]);const i=`${this.options.length}`;this.options.forEach((s,n)=>{s.id||(s.id=u.uniqueId("option-")),s.ariaPosInSet=`${n+1}`,s.ariaSetSize=i})}typeaheadBufferChanged(e,t){if(this.$fastController.isConnected){const i=this.getTypeaheadMatches();if(i.length){const s=this.options.indexOf(i[0]);s>-1&&(this.selectedIndex=s)}this.typeaheadExpired=!1}}};a([o.attr({mode:"boolean"})],l.prototype,"disabled");a([o.observable],l.prototype,"selectedIndex");a([o.observable],l.prototype,"selectedOptions");a([o.observable],l.prototype,"slottedOptions");a([o.observable],l.prototype,"typeaheadBuffer");a([o.observable],l.prototype,"_activeDescendant");let b=l;exports.Listbox=b;
|
package/bundled/listbox.js
CHANGED
|
@@ -141,13 +141,7 @@ const o = class a extends u {
|
|
|
141
141
|
* @internal
|
|
142
142
|
*/
|
|
143
143
|
handleChange(e, t) {
|
|
144
|
-
|
|
145
|
-
case "selected": {
|
|
146
|
-
/* v8 ignore else -- @preserve */
|
|
147
|
-
a.slottedOptionFilter(e) && (this.selectedIndex = this.options.indexOf(e)), this.setSelectedOptions();
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
144
|
+
t === "selected" && (a.slottedOptionFilter(e) && (this.selectedIndex = this.options.indexOf(e)), this.setSelectedOptions());
|
|
151
145
|
}
|
|
152
146
|
/**
|
|
153
147
|
* Moves focus to an option whose label matches characters typed by the user.
|
|
@@ -160,7 +154,6 @@ const o = class a extends u {
|
|
|
160
154
|
* @internal
|
|
161
155
|
*/
|
|
162
156
|
handleTypeAhead(e) {
|
|
163
|
-
/* v8 ignore else -- @preserve */
|
|
164
157
|
this.typeaheadTimeout && window.clearTimeout(this.typeaheadTimeout), this.typeaheadTimeout = window.setTimeout(
|
|
165
158
|
() => this.typeaheadExpired = !0,
|
|
166
159
|
a.TYPE_AHEAD_TIMEOUT_MS
|
|
@@ -177,21 +170,22 @@ const o = class a extends u {
|
|
|
177
170
|
this.shouldSkipFocus = !1;
|
|
178
171
|
const t = e.key;
|
|
179
172
|
switch (t) {
|
|
173
|
+
// Select the first available option
|
|
180
174
|
case v: {
|
|
181
|
-
/* v8 ignore else -- @preserve */
|
|
182
175
|
e.shiftKey || (e.preventDefault(), this.selectFirstOption());
|
|
183
176
|
break;
|
|
184
177
|
}
|
|
178
|
+
// Select the next selectable option
|
|
185
179
|
case g: {
|
|
186
|
-
/* v8 ignore else -- @preserve */
|
|
187
180
|
e.shiftKey || (e.preventDefault(), this.selectNextOption());
|
|
188
181
|
break;
|
|
189
182
|
}
|
|
183
|
+
// Select the previous selectable option
|
|
190
184
|
case S: {
|
|
191
|
-
/* v8 ignore else -- @preserve */
|
|
192
185
|
e.shiftKey || (e.preventDefault(), this.selectPreviousOption());
|
|
193
186
|
break;
|
|
194
187
|
}
|
|
188
|
+
// Select the last available option
|
|
195
189
|
case b: {
|
|
196
190
|
e.preventDefault(), this.selectLastOption();
|
|
197
191
|
break;
|
|
@@ -201,15 +195,13 @@ const o = class a extends u {
|
|
|
201
195
|
case O:
|
|
202
196
|
case I:
|
|
203
197
|
return !0;
|
|
204
|
-
|
|
205
|
-
|
|
198
|
+
// @ts-expect-error - fallthrough case
|
|
199
|
+
case x:
|
|
206
200
|
if (this.typeaheadExpired)
|
|
207
201
|
return !0;
|
|
208
|
-
|
|
209
|
-
default:
|
|
210
|
-
/* v8 ignore else -- @preserve */
|
|
202
|
+
// fallthrough:
|
|
203
|
+
default:
|
|
211
204
|
return t.length === 1 && this.handleTypeAhead(`${t}`), !0;
|
|
212
|
-
}
|
|
213
205
|
}
|
|
214
206
|
}
|
|
215
207
|
/**
|
|
@@ -258,7 +250,6 @@ const o = class a extends u {
|
|
|
258
250
|
* @public
|
|
259
251
|
*/
|
|
260
252
|
selectFirstOption() {
|
|
261
|
-
/* v8 ignore else -- @preserve */
|
|
262
253
|
this.disabled || (this.selectedIndex = this.options.findIndex((e) => !e.disabled));
|
|
263
254
|
}
|
|
264
255
|
/**
|
|
@@ -267,7 +258,6 @@ const o = class a extends u {
|
|
|
267
258
|
* @internal
|
|
268
259
|
*/
|
|
269
260
|
selectLastOption() {
|
|
270
|
-
/* v8 ignore else -- @preserve */
|
|
271
261
|
this.disabled || (this.selectedIndex = _(this.options, (e) => !e.disabled));
|
|
272
262
|
}
|
|
273
263
|
/**
|
|
@@ -276,7 +266,6 @@ const o = class a extends u {
|
|
|
276
266
|
* @internal
|
|
277
267
|
*/
|
|
278
268
|
selectNextOption() {
|
|
279
|
-
/* v8 ignore else -- @preserve */
|
|
280
269
|
if (!this.disabled && this.selectedIndex < this.options.length - 1) {
|
|
281
270
|
const e = this.getNextSelectableIndex(this.selectedIndex + 1);
|
|
282
271
|
e !== -1 && (this.selectedIndex = e);
|
|
@@ -288,7 +277,6 @@ const o = class a extends u {
|
|
|
288
277
|
* @internal
|
|
289
278
|
*/
|
|
290
279
|
selectPreviousOption() {
|
|
291
|
-
/* v8 ignore else -- @preserve */
|
|
292
280
|
if (!this.disabled && this.selectedIndex > 0) {
|
|
293
281
|
const e = this.getPreviousSelectableIndex(this.selectedIndex - 1);
|
|
294
282
|
e !== -1 && (this.selectedIndex = e);
|
|
@@ -319,10 +307,7 @@ const o = class a extends u {
|
|
|
319
307
|
* @internal
|
|
320
308
|
*/
|
|
321
309
|
slottedOptionsChanged(e, t) {
|
|
322
|
-
this.options = t.reduce((s, n) =>
|
|
323
|
-
/* v8 ignore else -- @preserve */
|
|
324
|
-
return p(n) && s.push(n), s;
|
|
325
|
-
}, []);
|
|
310
|
+
this.options = t.reduce((s, n) => (p(n) && s.push(n), s), []);
|
|
326
311
|
const i = `${this.options.length}`;
|
|
327
312
|
this.options.forEach((s, n) => {
|
|
328
313
|
s.id || (s.id = m("option-")), s.ariaPosInSet = `${n + 1}`, s.ariaSetSize = i;
|
|
@@ -336,10 +321,8 @@ const o = class a extends u {
|
|
|
336
321
|
typeaheadBufferChanged(e, t) {
|
|
337
322
|
if (this.$fastController.isConnected) {
|
|
338
323
|
const i = this.getTypeaheadMatches();
|
|
339
|
-
/* v8 ignore else -- @preserve */
|
|
340
324
|
if (i.length) {
|
|
341
325
|
const s = this.options.indexOf(i[0]);
|
|
342
|
-
/* v8 ignore else -- @preserve */
|
|
343
326
|
s > -1 && (this.selectedIndex = s);
|
|
344
327
|
}
|
|
345
328
|
this.typeaheadExpired = !1;
|
package/bundled/localized.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./vivid-element.cjs"),r="Play",c="Pause",d="Replay",u="Duration",p="LIVE",b="Loaded",g="Progress",h="Fullscreen",m="Mute",L="Unmute",y="Subtitles",f="Captions",C="Chapters",S="Descriptions",k="Close",v="Text",P="White",T="Black",w="Red",M="Green",B="Blue",D="Yellow",x="Magenta",E="Cyan",A="Background",$="Window",F="Transparent",O="Opaque",R="None",I="Raised",N="Depressed",U="Uniform",W="Casual",Y="Script",z="Reset",V="Done",G="Color",_="Opacity",q={"Audio Player":"Audio Player","Video Player":"Video Player",Play:r,Pause:c,Replay:d,"Current Time":"Current Time",Duration:u,"Remaining Time":"Remaining Time","Stream Type":"Stream Type",LIVE:p,"Seek to live, currently behind live":"Seek to live, currently behind live","Seek to live, currently playing live":"Seek to live, currently playing live",Loaded:b,Progress:g,"Progress Bar":"Progress Bar","progress bar timing: currentTime={1} duration={2}":"{1} of {2}",Fullscreen:h,"Exit Fullscreen":"Exit Fullscreen",Mute:m,Unmute:L,"Playback Rate":"Playback Rate",Subtitles:y,"subtitles off":"subtitles off",Captions:f,"captions off":"captions off",Chapters:C,Descriptions:S,"descriptions off":"descriptions off","Audio Track":"Audio Track","Volume Level":"Volume Level","You aborted the media playback":"You aborted the media playback","A network error caused the media download to fail part-way.":"A network error caused the media download to fail part-way.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"The media could not be loaded, either because the server or network failed or because the format is not supported.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.","No compatible source was found for this media.":"No compatible source was found for this media.","The media is encrypted and we do not have the keys to decrypt it.":"The media is encrypted and we do not have the keys to decrypt it.","Play Video":"Play Video",Close:k,"Close Modal Dialog":"Close Modal Dialog","Modal Window":"Modal Window","This is a modal window":"This is a modal window","This modal can be closed by pressing the Escape key or activating the close button.":"This modal can be closed by pressing the Escape key or activating the close button.",", opens captions settings dialog":", opens captions settings dialog",", opens subtitles settings dialog":", opens subtitles settings dialog",", opens descriptions settings dialog":", opens descriptions settings dialog",", selected":", selected","captions settings":"captions settings","subtitles settings":"subtitles settings","descriptions settings":"descriptions settings",Text:v,White:P,Black:T,Red:w,Green:M,Blue:B,Yellow:D,Magenta:x,Cyan:E,Background:A,Window:$,Transparent:F,"Semi-Transparent":"Semi-Transparent",Opaque:O,"Font Size":"Font Size","Text Edge Style":"Text Edge Style",None:R,Raised:I,Depressed:N,Uniform:U,"Drop shadow":"Drop shadow","Font Family":"Font Family","Proportional Sans-Serif":"Proportional Sans-Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Proportional Serif","Monospace Serif":"Monospace Serif",Casual:W,Script:Y,"Small Caps":"Small Caps",Reset:z,"restore all settings to the default values":"restore all settings to the default values",Done:V,"Caption Settings Dialog":"Caption Settings Dialog","Beginning of dialog window. Escape will cancel and close the window.":"Beginning of dialog window. Escape will cancel and close the window.","End of dialog window.":"End of dialog window.","{1} is loading.":"{1} is loading.","Exit Picture-in-Picture":"Exit Picture-in-Picture","Picture-in-Picture":"Picture-in-Picture","No content":"No content",Color:G,Opacity:_,"Text Background":"Text Background","Caption Area Background":"Caption Area Background","Playing in Picture-in-Picture":"Playing in Picture-in-Picture","Skip backward {1} seconds":"Skip backward {1} seconds","Skip forward {1} seconds":"Skip forward {1} seconds"},j=Object.freeze(Object.defineProperty({__proto__:null,Background:A,Black:T,Blue:B,Captions:f,Casual:W,Chapters:C,Close:k,Color:G,Cyan:E,Depressed:N,Descriptions:S,Done:V,Duration:u,Fullscreen:h,Green:M,LIVE:p,Loaded:b,Magenta:x,Mute:m,None:R,Opacity:_,Opaque:O,Pause:c,Play:r,Progress:g,Raised:I,Red:w,Replay:d,Reset:z,Script:Y,Subtitles:y,Text:v,Transparent:F,Uniform:U,Unmute:L,White:P,Window:$,Yellow:D,default:q},Symbol.toStringTag,{value:"Module"})),K={lang:"en-US",common:{useCommaAsDecimalSeparator:!1},pickerField:{clearLabel:"Clear",okLabel:"OK"},calendarPicker:{months:{name:["January","February","March","April","May","June","July","August","September","October","November","December"],shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},weekdays:{name:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},firstDayOfWeek:0,dateFormat:"MM/dd/yyyy",dateFormatPlaceholder:"MM/DD/YYYY",chooseDateLabel:"Choose date",changeDateLabel:e=>`Change date, ${e}`,chooseDatesLabel:"Choose dates",changeDatesLabel:e=>`Change dates, ${e}`,prevYearLabel:"Previous year",prevMonthLabel:"Previous month",nextMonthLabel:"Next month",nextYearLabel:"Next year",todayLabel:"today",selectedLabel:"selected",currentLabel:"current",changeMonthLabel:e=>`Change month, ${e} selected`,showCalendarForMonthLabel:e=>`Show calendar for ${e}`,invalidDateError:"Please enter a valid date.",invalidDateRangeError:"Please enter a valid date range.",startDateAfterMinDateError:e=>`The start date must be ${e} or later.`,endDateBeforeMaxDateError:e=>`The end date must be ${e} or earlier.`},timePicker:{defaultTo12HourClock:!0,chooseTimeLabel:"Choose time",changeTimeLabel:e=>`Change time, ${e}`,hoursLabel:"hours",minutesLabel:"minutes",secondsLabel:"seconds",meridiesLabel:"AM/PM",invalidTimeError:"Please enter a valid time."},dateTimePicker:{chooseDateTimeLabel:"Choose date and time",changeDateTimeLabel:e=>`Change date and time, ${e}`,invalidDateTimeError:"Please enter a valid date and time.",dateBeforeMinDateError:e=>`Date must be ${e} or later.`,dateAfterMaxDateError:e=>`Date must be ${e} or earlier.`,timeBeforeMinTimeError:e=>`Time must be ${e} or later.`,timeAfterMaxTimeError:e=>`Time must be ${e} or earlier.`},filePicker:{invalidFileTypeError:"You can't select files of this type.",maxFilesExceededError:"You can't select any more files.",fileTooBigError:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",removeFileLabel:"Remove file",invalidFilesError:"One or more selected files are invalid. Please, upload only valid file types under the size limit.",uploadFilesLabel:"Upload files"},audioPlayer:{playButtonLabel:"Play",pauseButtonLabel:"Pause",sliderLabel:"Audio progress bar",skipForwardButton:"Skip Forward",skipBackwardButton:"Skip Backward"},alert:{dismissButtonLabel:"Close"},dialog:{dismissButtonLabel:"Close"},popover:{dismissButtonLabel:"Close"},banner:{dismissButtonLabel:"Close"},numberField:{incrementButtonLabel:e=>e===1?"Increase value":`Increase value by ${e}`,decrementButtonLabel:e=>e===1?"Decrease value":`Decrease value by ${e}`,updatedValueAnnouncement:e=>`Updated value: ${e}`},splitButton:{showMoreActionsLabel:"Show more actions"},videoPlayer:j,rangeSlider:{startThumbLabel:"min",endThumbLabel:"max"},dialPad:{inputLabel:"Phone number",deleteButtonLabel:"Delete last digit",callButtonLabel:"Call",endCallButtonLabel:"End call",digitOneLabel:"1",digitTwoLabel:"2 ABC",digitThreeLabel:"3 DEF",digitFourLabel:"4 GHI",digitFiveLabel:"5 JKL",digitSixLabel:"6 MNO",digitSevenLabel:"7 PQRS",digitEightLabel:"8 TUV",digitNineLabel:"9 WXYZ",digitAsteriskLabel:"*",digitZeroLabel:"0",digitHashtagLabel:"#",errorLabel:"Error:"},tab:{dismissButtonLabel:"Press the DELETE key to close this tab"},select:{clearButtonLabel:"Clear selection"},searchableSelect:{clearButtonLabel:"Clear selection",noOptionsMessage:"No options",noMatchesMessage:"No options found",selectAllLabel:"Select All",deselectAllLabel:"Deselect All",selectedAllMessage:"All options selected",deselectedAllMessage:"All options deselected",loadingOptionsMessage:"Loading...",removeTagButtonLabel:e=>`Remove ${e}`,optionSelectedMessage:e=>`Option ${e} selected.`,optionDeselectedMessage:e=>`Option ${e} deselected.`,optionFocusedMessage:(e,t,o,n)=>`Option ${e} focused, ${n?"selected, ":""}${t} of ${o}.`,maxSelectedMessage:(e,t)=>`${e} of ${t} selected.`},richTextEditor:{paragraphStyles:"Paragraph styles",textSize:"Text size",bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",monospace:"Monospace",textColor:"Text color",undo:"Undo",redo:"Redo",bulletList:"Bullet list",numberedList:"Numbered list",alignment:"Alignment",alignments:{left:"Left",center:"Center",right:"Right"},hyperlink:"Hyperlink",linkText:"Text",linkUrl:"URL",linkTextPlaceholder:"Type text to convert into link",linkUrlPlaceholder:"Insert link URL",cancel:"Cancel",apply:"Apply",close:"Close",edit:"Edit",delete:"Delete",imageSizes:{small:"Small",fit:"Fit",original:"Original size"},suggestLoading:"Loading...",suggestNoResults:"No results"},button:{pendingLabel:"Loading..."},feedbackMessage:{errorIconText:"Error:",successIconText:"Success:"},connotationAnnoncement:{accentIcon:"Accent:",alertIcon:"Alert:",informationIcon:"Information:",successIcon:"Success:",warningIcon:"Warning:",announcementIcon:"Announcement:",ctaIcon:"Call to action:"},charCount:{charactersLimitMessage:e=>`You can enter up to ${e} characters`,charactersRemainingMessage:e=>`You have ${e} characters remaining`},dataGrid:{cell:{selected:"Selected",button:"(button)",sortStatus:{ascending:"Sorted ascending.",descending:"Sorted descending.",none:"Not sorted.",other:"Custom sort applied."},sortInstruction:{ascending:"Click to sort descending.",descending:"Click to un-sort.",none:"Click to sort ascending.",other:"Click to reset sorting."}}},pagination:{previousPageLabel:"Go to previous page",nextPageLabel:"Go to next page",goToPageLabel:e=>`Go to page ${e}`},tag:{remove:e=>`Remove ${e}`},toggletip:{anchorLabel:e=>e?`Show more information about ${e}`:"Show more information"},baseColorPicker:{colorSwatchLabel:(e,t,o)=>{let n=t?`Select ${t}, hex: ${e}`:`Select ${e}`;return o&&(n+=", selected."),n}},simpleColorPicker:{colorPaletteLabel:"Color palette"},colorPicker:{popupLabel:"Color Picker",swatchesLabel:"Saved colors",pickerButtonLabel:"Color Picker",hexInputLabel:"HEX color code",saveButtonLabel:"Save current color",closeButtonLabel:"Close Color Picker",copyButtonLabel:"Copy color to clipboard",copyErrorText:"Copy failed. Clipboard access was blocked. Try again.",copySuccessMessage:e=>`Color ${e} copied to clipboard.`,selectionSuccessMessage:e=>`Color ${e} selected.`,maxSwatchesMessage:(e,t)=>`${e} of ${t} colors saved.`}};var X=Object.defineProperty,Z=(e,t,o,n)=>{for(var a=void 0,s=e.length-1,l;s>=0;s--)(l=e[s])&&(a=l(t,o,a)||a);return a&&X(t,o,a),a};class J{constructor(){this.locale=K}}Z([i.observable],J.prototype,"locale");const Q=new J,H=e=>{class t extends e{get locale(){return Q.locale}}return t},ee=e=>{class t extends H(e){localeChanged(){}connectedCallback(){super.connectedCallback(),this.#o()}disconnectedCallback(){super.disconnectedCallback(),this.#a()}#t={handleChange:()=>{this.localeChanged()}};#e;#o(){this.#e=i.Observable.binding(()=>this.locale,this.#t),this.#e.observe(this,i.ExecutionContext.default)}#a(){this.#e.dispose()}}return t};exports.Localized=H;exports.WithObservableLocale=ee;
|
|
1
|
+
"use strict";const i=require("./vivid-element.cjs"),r="Play",c="Pause",d="Replay",u="Duration",p="LIVE",b="Loaded",g="Progress",h="Fullscreen",m="Mute",L="Unmute",y="Subtitles",f="Captions",C="Chapters",S="Descriptions",k="Close",v="Text",P="White",T="Black",w="Red",M="Green",B="Blue",x="Yellow",D="Magenta",E="Cyan",A="Background",$="Window",F="Transparent",O="Opaque",R="None",I="Raised",N="Depressed",U="Uniform",Y="Casual",z="Script",W="Reset",V="Done",_="Color",G="Opacity",j={"Audio Player":"Audio Player","Video Player":"Video Player",Play:r,Pause:c,Replay:d,"Current Time":"Current Time",Duration:u,"Remaining Time":"Remaining Time","Stream Type":"Stream Type",LIVE:p,"Seek to live, currently behind live":"Seek to live, currently behind live","Seek to live, currently playing live":"Seek to live, currently playing live",Loaded:b,Progress:g,"Progress Bar":"Progress Bar","progress bar timing: currentTime={1} duration={2}":"{1} of {2}",Fullscreen:h,"Exit Fullscreen":"Exit Fullscreen",Mute:m,Unmute:L,"Playback Rate":"Playback Rate",Subtitles:y,"subtitles off":"subtitles off",Captions:f,"captions off":"captions off",Chapters:C,Descriptions:S,"descriptions off":"descriptions off","Audio Track":"Audio Track","Volume Level":"Volume Level","You aborted the media playback":"You aborted the media playback","A network error caused the media download to fail part-way.":"A network error caused the media download to fail part-way.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"The media could not be loaded, either because the server or network failed or because the format is not supported.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.","No compatible source was found for this media.":"No compatible source was found for this media.","The media is encrypted and we do not have the keys to decrypt it.":"The media is encrypted and we do not have the keys to decrypt it.","Play Video":"Play Video",Close:k,"Close Modal Dialog":"Close Modal Dialog","Modal Window":"Modal Window","This is a modal window":"This is a modal window","This modal can be closed by pressing the Escape key or activating the close button.":"This modal can be closed by pressing the Escape key or activating the close button.",", opens captions settings dialog":", opens captions settings dialog",", opens subtitles settings dialog":", opens subtitles settings dialog",", opens descriptions settings dialog":", opens descriptions settings dialog",", selected":", selected","captions settings":"captions settings","subtitles settings":"subtitles settings","descriptions settings":"descriptions settings",Text:v,White:P,Black:T,Red:w,Green:M,Blue:B,Yellow:x,Magenta:D,Cyan:E,Background:A,Window:$,Transparent:F,"Semi-Transparent":"Semi-Transparent",Opaque:O,"Font Size":"Font Size","Text Edge Style":"Text Edge Style",None:R,Raised:I,Depressed:N,Uniform:U,"Drop shadow":"Drop shadow","Font Family":"Font Family","Proportional Sans-Serif":"Proportional Sans-Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Proportional Serif","Monospace Serif":"Monospace Serif",Casual:Y,Script:z,"Small Caps":"Small Caps",Reset:W,"restore all settings to the default values":"restore all settings to the default values",Done:V,"Caption Settings Dialog":"Caption Settings Dialog","Beginning of dialog window. Escape will cancel and close the window.":"Beginning of dialog window. Escape will cancel and close the window.","End of dialog window.":"End of dialog window.","{1} is loading.":"{1} is loading.","Exit Picture-in-Picture":"Exit Picture-in-Picture","Picture-in-Picture":"Picture-in-Picture","No content":"No content",Color:_,Opacity:G,"Text Background":"Text Background","Caption Area Background":"Caption Area Background","Playing in Picture-in-Picture":"Playing in Picture-in-Picture","Skip backward {1} seconds":"Skip backward {1} seconds","Skip forward {1} seconds":"Skip forward {1} seconds"},q=Object.freeze(Object.defineProperty({__proto__:null,Background:A,Black:T,Blue:B,Captions:f,Casual:Y,Chapters:C,Close:k,Color:_,Cyan:E,Depressed:N,Descriptions:S,Done:V,Duration:u,Fullscreen:h,Green:M,LIVE:p,Loaded:b,Magenta:D,Mute:m,None:R,Opacity:G,Opaque:O,Pause:c,Play:r,Progress:g,Raised:I,Red:w,Replay:d,Reset:W,Script:z,Subtitles:y,Text:v,Transparent:F,Uniform:U,Unmute:L,White:P,Window:$,Yellow:x,default:j},Symbol.toStringTag,{value:"Module"})),K={lang:"en-US",common:{useCommaAsDecimalSeparator:!1},pickerField:{clearLabel:"Clear",okLabel:"OK"},calendarPicker:{months:{name:["January","February","March","April","May","June","July","August","September","October","November","December"],shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},weekdays:{name:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},firstDayOfWeek:0,dateFormat:"MM/dd/yyyy",dateFormatPlaceholder:"MM/DD/YYYY",chooseDateLabel:"Choose date",changeDateLabel:(e=>`Change date, ${e}`),chooseDatesLabel:"Choose dates",changeDatesLabel:(e=>`Change dates, ${e}`),prevYearLabel:"Previous year",prevMonthLabel:"Previous month",nextMonthLabel:"Next month",nextYearLabel:"Next year",todayLabel:"today",selectedLabel:"selected",currentLabel:"current",changeMonthLabel:(e=>`Change month, ${e} selected`),showCalendarForMonthLabel:(e=>`Show calendar for ${e}`),invalidDateError:"Please enter a valid date.",invalidDateRangeError:"Please enter a valid date range.",startDateAfterMinDateError:(e=>`The start date must be ${e} or later.`),endDateBeforeMaxDateError:(e=>`The end date must be ${e} or earlier.`)},timePicker:{defaultTo12HourClock:!0,chooseTimeLabel:"Choose time",changeTimeLabel:(e=>`Change time, ${e}`),hoursLabel:"hours",minutesLabel:"minutes",secondsLabel:"seconds",meridiesLabel:"AM/PM",invalidTimeError:"Please enter a valid time."},dateTimePicker:{chooseDateTimeLabel:"Choose date and time",changeDateTimeLabel:(e=>`Change date and time, ${e}`),invalidDateTimeError:"Please enter a valid date and time.",dateBeforeMinDateError:(e=>`Date must be ${e} or later.`),dateAfterMaxDateError:(e=>`Date must be ${e} or earlier.`),timeBeforeMinTimeError:(e=>`Time must be ${e} or later.`),timeAfterMaxTimeError:(e=>`Time must be ${e} or earlier.`)},filePicker:{invalidFileTypeError:"You can't select files of this type.",maxFilesExceededError:"You can't select any more files.",fileTooBigError:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",removeFileLabel:"Remove file",invalidFilesError:"One or more selected files are invalid. Please, upload only valid file types under the size limit.",uploadFilesLabel:"Upload files"},audioPlayer:{playButtonLabel:"Play",pauseButtonLabel:"Pause",sliderLabel:"Audio progress bar",skipForwardButton:"Skip Forward",skipBackwardButton:"Skip Backward"},alert:{dismissButtonLabel:"Close"},dialog:{dismissButtonLabel:"Close"},popover:{dismissButtonLabel:"Close"},banner:{dismissButtonLabel:"Close"},numberField:{incrementButtonLabel:(e=>e===1?"Increase value":`Increase value by ${e}`),decrementButtonLabel:(e=>e===1?"Decrease value":`Decrease value by ${e}`),updatedValueAnnouncement:(e=>`Updated value: ${e}`)},splitButton:{showMoreActionsLabel:"Show more actions"},videoPlayer:q,rangeSlider:{startThumbLabel:"min",endThumbLabel:"max"},dialPad:{inputLabel:"Phone number",deleteButtonLabel:"Delete last digit",callButtonLabel:"Call",endCallButtonLabel:"End call",digitOneLabel:"1",digitTwoLabel:"2 ABC",digitThreeLabel:"3 DEF",digitFourLabel:"4 GHI",digitFiveLabel:"5 JKL",digitSixLabel:"6 MNO",digitSevenLabel:"7 PQRS",digitEightLabel:"8 TUV",digitNineLabel:"9 WXYZ",digitAsteriskLabel:"*",digitZeroLabel:"0",digitHashtagLabel:"#",errorLabel:"Error:"},tab:{dismissButtonLabel:"Press the DELETE key to close this tab"},select:{clearButtonLabel:"Clear selection"},searchableSelect:{clearButtonLabel:"Clear selection",noOptionsMessage:"No options",noMatchesMessage:"No options found",selectAllLabel:"Select All",deselectAllLabel:"Deselect All",selectedAllMessage:"All options selected",deselectedAllMessage:"All options deselected",loadingOptionsMessage:"Loading...",removeTagButtonLabel:(e=>`Remove ${e}`),optionSelectedMessage:(e=>`Option ${e} selected.`),optionDeselectedMessage:(e=>`Option ${e} deselected.`),optionFocusedMessage:((e,t,o,n)=>`Option ${e} focused, ${n?"selected, ":""}${t} of ${o}.`),maxSelectedMessage:((e,t)=>`${e} of ${t} selected.`)},richTextEditor:{paragraphStyles:"Paragraph styles",textSize:"Text size",bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",monospace:"Monospace",textColor:"Text color",undo:"Undo",redo:"Redo",bulletList:"Bullet list",numberedList:"Numbered list",alignment:"Alignment",alignments:{left:"Left",center:"Center",right:"Right"},hyperlink:"Hyperlink",linkText:"Text",linkUrl:"URL",linkTextPlaceholder:"Type text to convert into link",linkUrlPlaceholder:"Insert link URL",cancel:"Cancel",apply:"Apply",close:"Close",edit:"Edit",delete:"Delete",imageSizes:{small:"Small",fit:"Fit",original:"Original size"},suggestLoading:"Loading...",suggestNoResults:"No results"},button:{pendingLabel:"Loading..."},feedbackMessage:{errorIconText:"Error:",successIconText:"Success:"},connotationAnnoncement:{accentIcon:"Accent:",alertIcon:"Alert:",informationIcon:"Information:",successIcon:"Success:",warningIcon:"Warning:",announcementIcon:"Announcement:",ctaIcon:"Call to action:"},charCount:{charactersLimitMessage:(e=>`You can enter up to ${e} characters`),charactersRemainingMessage:(e=>`You have ${e} characters remaining`)},dataGrid:{cell:{selected:"Selected",button:"(button)",sortStatus:{ascending:"Sorted ascending.",descending:"Sorted descending.",none:"Not sorted.",other:"Custom sort applied."},sortInstruction:{ascending:"Click to sort descending.",descending:"Click to un-sort.",none:"Click to sort ascending.",other:"Click to reset sorting."}}},pagination:{previousPageLabel:"Go to previous page",nextPageLabel:"Go to next page",goToPageLabel:(e=>`Go to page ${e}`)},tag:{remove:(e=>`Remove ${e}`)},toggletip:{anchorLabel:(e=>e?`Show more information about ${e}`:"Show more information")},baseColorPicker:{colorSwatchLabel:((e,t,o)=>{let n=t?`Select ${t}, hex: ${e}`:`Select ${e}`;return o&&(n+=", selected."),n})},simpleColorPicker:{colorPaletteLabel:"Color palette"},colorPicker:{popupLabel:"Color Picker",swatchesLabel:"Saved colors",pickerButtonLabel:"Color Picker",hexInputLabel:"HEX color code",saveButtonLabel:"Save current color",closeButtonLabel:"Close Color Picker",copyButtonLabel:"Copy color to clipboard",copyErrorText:"Copy failed. Clipboard access was blocked. Try again.",copySuccessMessage:(e=>`Color ${e} copied to clipboard.`),selectionSuccessMessage:(e=>`Color ${e} selected.`),maxSwatchesMessage:((e,t)=>`${e} of ${t} colors saved.`)}};var X=Object.defineProperty,Z=(e,t,o,n)=>{for(var a=void 0,s=e.length-1,l;s>=0;s--)(l=e[s])&&(a=l(t,o,a)||a);return a&&X(t,o,a),a};class J{constructor(){this.locale=K}}Z([i.observable],J.prototype,"locale");const Q=new J,H=e=>{class t extends e{get locale(){return Q.locale}}return t},ee=e=>{class t extends H(e){localeChanged(){}connectedCallback(){super.connectedCallback(),this.#o()}disconnectedCallback(){super.disconnectedCallback(),this.#a()}#t={handleChange:()=>{this.localeChanged()}};#e;#o(){this.#e=i.Observable.binding(()=>this.locale,this.#t),this.#e.observe(this,i.ExecutionContext.default)}#a(){this.#e.dispose()}}return t};exports.Localized=H;exports.WithObservableLocale=ee;
|
package/bundled/localized.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as J, O as H, E as j } from "./vivid-element.js";
|
|
2
|
-
const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Loaded", b = "Progress", g = "Fullscreen", h = "Mute", m = "Unmute", L = "Subtitles", y = "Captions", f = "Chapters", C = "Descriptions", S = "Close", k = "Text",
|
|
2
|
+
const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Loaded", b = "Progress", g = "Fullscreen", h = "Mute", m = "Unmute", L = "Subtitles", y = "Captions", f = "Chapters", C = "Descriptions", S = "Close", k = "Text", v = "White", P = "Black", T = "Red", w = "Green", M = "Blue", B = "Yellow", x = "Magenta", D = "Cyan", E = "Background", A = "Window", $ = "Transparent", F = "Opaque", O = "None", R = "Raised", I = "Depressed", N = "Uniform", U = "Casual", Y = "Script", W = "Reset", z = "Done", V = "Color", _ = "Opacity", q = {
|
|
3
3
|
"Audio Player": "Audio Player",
|
|
4
4
|
"Video Player": "Video Player",
|
|
5
5
|
Play: l,
|
|
@@ -50,14 +50,14 @@ const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Lo
|
|
|
50
50
|
"subtitles settings": "subtitles settings",
|
|
51
51
|
"descriptions settings": "descriptions settings",
|
|
52
52
|
Text: k,
|
|
53
|
-
White:
|
|
54
|
-
Black:
|
|
53
|
+
White: v,
|
|
54
|
+
Black: P,
|
|
55
55
|
Red: T,
|
|
56
56
|
Green: w,
|
|
57
57
|
Blue: M,
|
|
58
58
|
Yellow: B,
|
|
59
|
-
Magenta:
|
|
60
|
-
Cyan:
|
|
59
|
+
Magenta: x,
|
|
60
|
+
Cyan: D,
|
|
61
61
|
Background: E,
|
|
62
62
|
Window: A,
|
|
63
63
|
Transparent: $,
|
|
@@ -76,9 +76,9 @@ const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Lo
|
|
|
76
76
|
"Proportional Serif": "Proportional Serif",
|
|
77
77
|
"Monospace Serif": "Monospace Serif",
|
|
78
78
|
Casual: U,
|
|
79
|
-
Script:
|
|
79
|
+
Script: Y,
|
|
80
80
|
"Small Caps": "Small Caps",
|
|
81
|
-
Reset:
|
|
81
|
+
Reset: W,
|
|
82
82
|
"restore all settings to the default values": "restore all settings to the default values",
|
|
83
83
|
Done: z,
|
|
84
84
|
"Caption Settings Dialog": "Caption Settings Dialog",
|
|
@@ -89,7 +89,7 @@ const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Lo
|
|
|
89
89
|
"Picture-in-Picture": "Picture-in-Picture",
|
|
90
90
|
"No content": "No content",
|
|
91
91
|
Color: V,
|
|
92
|
-
Opacity:
|
|
92
|
+
Opacity: _,
|
|
93
93
|
"Text Background": "Text Background",
|
|
94
94
|
"Caption Area Background": "Caption Area Background",
|
|
95
95
|
"Playing in Picture-in-Picture": "Playing in Picture-in-Picture",
|
|
@@ -98,14 +98,14 @@ const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Lo
|
|
|
98
98
|
}, K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
99
99
|
__proto__: null,
|
|
100
100
|
Background: E,
|
|
101
|
-
Black:
|
|
101
|
+
Black: P,
|
|
102
102
|
Blue: M,
|
|
103
103
|
Captions: y,
|
|
104
104
|
Casual: U,
|
|
105
105
|
Chapters: f,
|
|
106
106
|
Close: S,
|
|
107
107
|
Color: V,
|
|
108
|
-
Cyan:
|
|
108
|
+
Cyan: D,
|
|
109
109
|
Depressed: I,
|
|
110
110
|
Descriptions: C,
|
|
111
111
|
Done: z,
|
|
@@ -114,10 +114,10 @@ const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Lo
|
|
|
114
114
|
Green: w,
|
|
115
115
|
LIVE: u,
|
|
116
116
|
Loaded: p,
|
|
117
|
-
Magenta:
|
|
117
|
+
Magenta: x,
|
|
118
118
|
Mute: h,
|
|
119
119
|
None: O,
|
|
120
|
-
Opacity:
|
|
120
|
+
Opacity: _,
|
|
121
121
|
Opaque: F,
|
|
122
122
|
Pause: r,
|
|
123
123
|
Play: l,
|
|
@@ -125,14 +125,14 @@ const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Lo
|
|
|
125
125
|
Raised: R,
|
|
126
126
|
Red: T,
|
|
127
127
|
Replay: c,
|
|
128
|
-
Reset:
|
|
129
|
-
Script:
|
|
128
|
+
Reset: W,
|
|
129
|
+
Script: Y,
|
|
130
130
|
Subtitles: L,
|
|
131
131
|
Text: k,
|
|
132
132
|
Transparent: $,
|
|
133
133
|
Uniform: N,
|
|
134
134
|
Unmute: m,
|
|
135
|
-
White:
|
|
135
|
+
White: v,
|
|
136
136
|
Window: A,
|
|
137
137
|
Yellow: B,
|
|
138
138
|
default: q
|
|
@@ -194,12 +194,12 @@ const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Lo
|
|
|
194
194
|
chooseDateLabel: "Choose date",
|
|
195
195
|
changeDateLabel: (
|
|
196
196
|
/* istanbul ignore next */
|
|
197
|
-
(e) => `Change date, ${e}`
|
|
197
|
+
((e) => `Change date, ${e}`)
|
|
198
198
|
),
|
|
199
199
|
chooseDatesLabel: "Choose dates",
|
|
200
200
|
changeDatesLabel: (
|
|
201
201
|
/* istanbul ignore next */
|
|
202
|
-
(e) => `Change dates, ${e}`
|
|
202
|
+
((e) => `Change dates, ${e}`)
|
|
203
203
|
),
|
|
204
204
|
prevYearLabel: "Previous year",
|
|
205
205
|
prevMonthLabel: "Previous month",
|
|
@@ -210,21 +210,21 @@ const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Lo
|
|
|
210
210
|
currentLabel: "current",
|
|
211
211
|
changeMonthLabel: (
|
|
212
212
|
/* istanbul ignore next */
|
|
213
|
-
(e) => `Change month, ${e} selected`
|
|
213
|
+
((e) => `Change month, ${e} selected`)
|
|
214
214
|
),
|
|
215
215
|
showCalendarForMonthLabel: (
|
|
216
216
|
/* istanbul ignore next */
|
|
217
|
-
(e) => `Show calendar for ${e}`
|
|
217
|
+
((e) => `Show calendar for ${e}`)
|
|
218
218
|
),
|
|
219
219
|
invalidDateError: "Please enter a valid date.",
|
|
220
220
|
invalidDateRangeError: "Please enter a valid date range.",
|
|
221
221
|
startDateAfterMinDateError: (
|
|
222
222
|
/* istanbul ignore next */
|
|
223
|
-
(e) => `The start date must be ${e} or later.`
|
|
223
|
+
((e) => `The start date must be ${e} or later.`)
|
|
224
224
|
),
|
|
225
225
|
endDateBeforeMaxDateError: (
|
|
226
226
|
/* istanbul ignore next */
|
|
227
|
-
(e) => `The end date must be ${e} or earlier.`
|
|
227
|
+
((e) => `The end date must be ${e} or earlier.`)
|
|
228
228
|
)
|
|
229
229
|
},
|
|
230
230
|
timePicker: {
|
|
@@ -232,7 +232,7 @@ const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Lo
|
|
|
232
232
|
chooseTimeLabel: "Choose time",
|
|
233
233
|
changeTimeLabel: (
|
|
234
234
|
/* istanbul ignore next */
|
|
235
|
-
(e) => `Change time, ${e}`
|
|
235
|
+
((e) => `Change time, ${e}`)
|
|
236
236
|
),
|
|
237
237
|
hoursLabel: "hours",
|
|
238
238
|
minutesLabel: "minutes",
|
|
@@ -244,24 +244,24 @@ const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Lo
|
|
|
244
244
|
chooseDateTimeLabel: "Choose date and time",
|
|
245
245
|
changeDateTimeLabel: (
|
|
246
246
|
/* istanbul ignore next */
|
|
247
|
-
(e) => `Change date and time, ${e}`
|
|
247
|
+
((e) => `Change date and time, ${e}`)
|
|
248
248
|
),
|
|
249
249
|
invalidDateTimeError: "Please enter a valid date and time.",
|
|
250
250
|
dateBeforeMinDateError: (
|
|
251
251
|
/* istanbul ignore next */
|
|
252
|
-
(e) => `Date must be ${e} or later.`
|
|
252
|
+
((e) => `Date must be ${e} or later.`)
|
|
253
253
|
),
|
|
254
254
|
dateAfterMaxDateError: (
|
|
255
255
|
/* istanbul ignore next */
|
|
256
|
-
(e) => `Date must be ${e} or earlier.`
|
|
256
|
+
((e) => `Date must be ${e} or earlier.`)
|
|
257
257
|
),
|
|
258
258
|
timeBeforeMinTimeError: (
|
|
259
259
|
/* istanbul ignore next */
|
|
260
|
-
(e) => `Time must be ${e} or later.`
|
|
260
|
+
((e) => `Time must be ${e} or later.`)
|
|
261
261
|
),
|
|
262
262
|
timeAfterMaxTimeError: (
|
|
263
263
|
/* istanbul ignore next */
|
|
264
|
-
(e) => `Time must be ${e} or earlier.`
|
|
264
|
+
((e) => `Time must be ${e} or earlier.`)
|
|
265
265
|
)
|
|
266
266
|
},
|
|
267
267
|
filePicker: {
|
|
@@ -294,15 +294,15 @@ const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Lo
|
|
|
294
294
|
numberField: {
|
|
295
295
|
incrementButtonLabel: (
|
|
296
296
|
/* istanbul ignore next */
|
|
297
|
-
(e) => e === 1 ? "Increase value" : `Increase value by ${e}`
|
|
297
|
+
((e) => e === 1 ? "Increase value" : `Increase value by ${e}`)
|
|
298
298
|
),
|
|
299
299
|
decrementButtonLabel: (
|
|
300
300
|
/* istanbul ignore next */
|
|
301
|
-
(e) => e === 1 ? "Decrease value" : `Decrease value by ${e}`
|
|
301
|
+
((e) => e === 1 ? "Decrease value" : `Decrease value by ${e}`)
|
|
302
302
|
),
|
|
303
303
|
updatedValueAnnouncement: (
|
|
304
304
|
/* istanbul ignore next */
|
|
305
|
-
(e) => `Updated value: ${e}`
|
|
305
|
+
((e) => `Updated value: ${e}`)
|
|
306
306
|
)
|
|
307
307
|
},
|
|
308
308
|
splitButton: {
|
|
@@ -349,23 +349,23 @@ const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Lo
|
|
|
349
349
|
loadingOptionsMessage: "Loading...",
|
|
350
350
|
removeTagButtonLabel: (
|
|
351
351
|
/* istanbul ignore next */
|
|
352
|
-
(e) => `Remove ${e}`
|
|
352
|
+
((e) => `Remove ${e}`)
|
|
353
353
|
),
|
|
354
354
|
optionSelectedMessage: (
|
|
355
355
|
/* istanbul ignore next */
|
|
356
|
-
(e) => `Option ${e} selected.`
|
|
356
|
+
((e) => `Option ${e} selected.`)
|
|
357
357
|
),
|
|
358
358
|
optionDeselectedMessage: (
|
|
359
359
|
/* istanbul ignore next */
|
|
360
|
-
(e) => `Option ${e} deselected.`
|
|
360
|
+
((e) => `Option ${e} deselected.`)
|
|
361
361
|
),
|
|
362
362
|
optionFocusedMessage: (
|
|
363
363
|
/* istanbul ignore next */
|
|
364
|
-
(e, t, o, s) => `Option ${e} focused, ${s ? "selected, " : ""}${t} of ${o}.`
|
|
364
|
+
((e, t, o, s) => `Option ${e} focused, ${s ? "selected, " : ""}${t} of ${o}.`)
|
|
365
365
|
),
|
|
366
366
|
maxSelectedMessage: (
|
|
367
367
|
/* istanbul ignore next */
|
|
368
|
-
(e, t) => `${e} of ${t} selected.`
|
|
368
|
+
((e, t) => `${e} of ${t} selected.`)
|
|
369
369
|
)
|
|
370
370
|
},
|
|
371
371
|
richTextEditor: {
|
|
@@ -424,11 +424,11 @@ const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Lo
|
|
|
424
424
|
charCount: {
|
|
425
425
|
charactersLimitMessage: (
|
|
426
426
|
/* istanbul ignore next */
|
|
427
|
-
(e) => `You can enter up to ${e} characters`
|
|
427
|
+
((e) => `You can enter up to ${e} characters`)
|
|
428
428
|
),
|
|
429
429
|
charactersRemainingMessage: (
|
|
430
430
|
/* istanbul ignore next */
|
|
431
|
-
(e) => `You have ${e} characters remaining`
|
|
431
|
+
((e) => `You have ${e} characters remaining`)
|
|
432
432
|
)
|
|
433
433
|
},
|
|
434
434
|
dataGrid: {
|
|
@@ -454,28 +454,28 @@ const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Lo
|
|
|
454
454
|
nextPageLabel: "Go to next page",
|
|
455
455
|
goToPageLabel: (
|
|
456
456
|
/* istanbul ignore next */
|
|
457
|
-
(e) => `Go to page ${e}`
|
|
457
|
+
((e) => `Go to page ${e}`)
|
|
458
458
|
)
|
|
459
459
|
},
|
|
460
460
|
tag: {
|
|
461
461
|
remove: (
|
|
462
462
|
/* istanbul ignore next */
|
|
463
|
-
(e) => `Remove ${e}`
|
|
463
|
+
((e) => `Remove ${e}`)
|
|
464
464
|
)
|
|
465
465
|
},
|
|
466
466
|
toggletip: {
|
|
467
467
|
anchorLabel: (
|
|
468
468
|
/* istanbul ignore next */
|
|
469
|
-
(e) => e ? `Show more information about ${e}` : "Show more information"
|
|
469
|
+
((e) => e ? `Show more information about ${e}` : "Show more information")
|
|
470
470
|
)
|
|
471
471
|
},
|
|
472
472
|
baseColorPicker: {
|
|
473
473
|
colorSwatchLabel: (
|
|
474
474
|
/* istanbul ignore next */
|
|
475
|
-
(e, t, o) => {
|
|
475
|
+
((e, t, o) => {
|
|
476
476
|
let s = t ? `Select ${t}, hex: ${e}` : `Select ${e}`;
|
|
477
477
|
return o && (s += ", selected."), s;
|
|
478
|
-
}
|
|
478
|
+
})
|
|
479
479
|
)
|
|
480
480
|
},
|
|
481
481
|
simpleColorPicker: {
|
|
@@ -492,15 +492,15 @@ const l = "Play", r = "Pause", c = "Replay", d = "Duration", u = "LIVE", p = "Lo
|
|
|
492
492
|
copyErrorText: "Copy failed. Clipboard access was blocked. Try again.",
|
|
493
493
|
copySuccessMessage: (
|
|
494
494
|
/* istanbul ignore next */
|
|
495
|
-
(e) => `Color ${e} copied to clipboard.`
|
|
495
|
+
((e) => `Color ${e} copied to clipboard.`)
|
|
496
496
|
),
|
|
497
497
|
selectionSuccessMessage: (
|
|
498
498
|
/* istanbul ignore next */
|
|
499
|
-
(e) => `Color ${e} selected.`
|
|
499
|
+
((e) => `Color ${e} selected.`)
|
|
500
500
|
),
|
|
501
501
|
maxSwatchesMessage: (
|
|
502
502
|
/* istanbul ignore next */
|
|
503
|
-
(e, t) => `${e} of ${t} colors saved.`
|
|
503
|
+
((e, t) => `${e} of ${t} colors saved.`)
|
|
504
504
|
)
|
|
505
505
|
}
|
|
506
506
|
};
|
|
@@ -509,15 +509,15 @@ var Z = Object.defineProperty, Q = (e, t, o, s) => {
|
|
|
509
509
|
(i = e[n]) && (a = i(t, o, a) || a);
|
|
510
510
|
return a && Z(t, o, a), a;
|
|
511
511
|
};
|
|
512
|
-
class
|
|
512
|
+
class G {
|
|
513
513
|
constructor() {
|
|
514
514
|
this.locale = X;
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
Q([
|
|
518
518
|
J
|
|
519
|
-
],
|
|
520
|
-
const ee = new
|
|
519
|
+
], G.prototype, "locale");
|
|
520
|
+
const ee = new G(), te = (e) => {
|
|
521
521
|
class t extends e {
|
|
522
522
|
/**
|
|
523
523
|
* @internal
|