@mescius/wijmo.vue2.input 5.20242.23-nightly.d20241114.t020149 → 5.20242.23-nightly.d20241119.t030240
Sign up to get free protection for your applications and to get access to all the features.
- package/es2015-commonjs.js +2 -2
- package/es2015-esm.js +2 -2
- package/es5-esm.js +2 -2
- package/index.d.ts +1 -1
- package/index.js +2 -2
- package/package.json +4 -4
package/es2015-commonjs.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
*
|
3
|
-
* Wijmo Library 5.20242.23-nightly.
|
3
|
+
* Wijmo Library 5.20242.23-nightly.d20241119.t030240
|
4
4
|
* https://developer.mescius.com/wijmo
|
5
5
|
*
|
6
6
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
@@ -11,4 +11,4 @@
|
|
11
11
|
*
|
12
12
|
*/
|
13
13
|
|
14
|
-
"use strict";var __importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.hasOwnProperty.call(e,o)&&(t[o]=e[o]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});const wijmo_vue2_base_1=require("@mescius/wijmo.vue2.base"),wjcCore=__importStar(require("@mescius/wijmo")),wjcInput=__importStar(require("@mescius/wijmo.input"));class WjListBoxBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjListBoxBehavior.tag="wj-list-box";WjListBoxBehavior.props=["isDisabled","tabOrder","behavioralFlags","isContentHtml","maxHeight","selectedValuePath","itemFormatter","displayMemberPath","checkedMemberPath","caseSensitiveSearch","itemsSource","virtualizationThreshold","showGroups","selectedIndex","selectedItem","selectedValue","checkedItems"];WjListBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","formatItem","itemsChanged","itemChecked"];WjListBoxBehavior.changeEvents={selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],checkedItemsChanged:["checkedItems"]};WjListBoxBehavior.classCtor=function(){return wjcInput.ListBox};WjListBoxBehavior.modelProp="selectedValue";exports.WjListBox=WjListBoxBehavior.register();function registerV3WjListBox(e){e.component(WjListBoxBehavior.tag,exports.WjListBox)}class WjMultiSelectListBoxBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjMultiSelectListBoxBehavior.tag="wj-multi-select-list-box";WjMultiSelectListBoxBehavior.props=["isDisabled","tabOrder","behavioralFlags","itemsSource","displayMemberPath","selectedIndex","isContentHtml","showGroups","checkOnFilter","showFilterInput","filterInputPlaceholder","showSelectAllCheckbox","selectAllLabel","delay","caseSensitiveSearch","checkedMemberPath","virtualizationThreshold","checkedItems"];WjMultiSelectListBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjMultiSelectListBoxBehavior.changeEvents={selectedIndexChanged:["selectedIndex"],checkedItemsChanged:["checkedItems"]};WjMultiSelectListBoxBehavior.classCtor=function(){return wjcInput.MultiSelectListBox};WjMultiSelectListBoxBehavior.modelProp="checkedItems";exports.WjMultiSelectListBox=WjMultiSelectListBoxBehavior.register();function registerV3WjMultiSelectListBox(e){e.component(WjMultiSelectListBoxBehavior.tag,exports.WjMultiSelectListBox)}class WjComboBoxBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjComboBoxBehavior.tag="wj-combo-box";WjComboBoxBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","itemsSource","text","selectedIndex","selectedItem","selectedValue"];WjComboBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjComboBoxBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"]};WjComboBoxBehavior.classCtor=function(){return wjcInput.ComboBox};WjComboBoxBehavior.modelProp="selectedValue";exports.WjComboBox=WjComboBoxBehavior.register();function registerV3WjComboBox(e){e.component(WjComboBoxBehavior.tag,exports.WjComboBox)}class WjAutoCompleteBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjAutoCompleteBehavior.tag="wj-auto-complete";WjAutoCompleteBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","delay","maxItems","minLength","cssMatch","itemsSourceFunction","searchMemberPath","beginsWithSearch","itemsSource","text","selectedIndex","selectedItem","selectedValue"];WjAutoCompleteBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjAutoCompleteBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"]};WjAutoCompleteBehavior.classCtor=function(){return wjcInput.AutoComplete};WjAutoCompleteBehavior.modelProp="selectedValue";exports.WjAutoComplete=WjAutoCompleteBehavior.register();function registerV3WjAutoComplete(e){e.component(WjAutoCompleteBehavior.tag,exports.WjAutoComplete)}class WjCalendarBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjCalendarBehavior.tag="wj-calendar";WjCalendarBehavior.props=["isDisabled","tabOrder","behavioralFlags","monthView","showHeader","itemFormatter","itemValidator","firstDayOfWeek","max","min","formatYearMonth","formatDayHeaders","formatDays","formatYear","formatMonths","selectionMode","isReadOnly","handleWheel","repeatButtons","showYearPicker","value","displayMonth","monthCount","showMonthPicker","weeksBefore","weeksAfter","rangeEnd","rangeMin","rangeMax"];WjCalendarBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","rangeChanged","formatItem"];WjCalendarBehavior.changeEvents={valueChanged:["value"],displayMonthChanged:["displayMonth"],rangeEndChanged:["rangeEnd"]};WjCalendarBehavior.classCtor=function(){return wjcInput.Calendar};WjCalendarBehavior.modelProp="value";exports.WjCalendar=WjCalendarBehavior.register();function registerV3WjCalendar(e){e.component(WjCalendarBehavior.tag,exports.WjCalendar)}class WjColorPickerBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjColorPickerBehavior.tag="wj-color-picker";WjColorPickerBehavior.props=["isDisabled","tabOrder","behavioralFlags","showAlphaChannel","showColorString","palette","value"];WjColorPickerBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjColorPickerBehavior.changeEvents={valueChanged:["value"]};WjColorPickerBehavior.classCtor=function(){return wjcInput.ColorPicker};WjColorPickerBehavior.modelProp="value";exports.WjColorPicker=WjColorPickerBehavior.register();function registerV3WjColorPicker(e){e.component(WjColorPickerBehavior.tag,exports.WjColorPicker)}class WjInputMaskBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjInputMaskBehavior.tag="wj-input-mask";WjInputMaskBehavior.props=["isDisabled","tabOrder","behavioralFlags","mask","overwriteMode","isRequired","isReadOnly","promptChar","placeholder","inputType","rawValue","value"];WjInputMaskBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjInputMaskBehavior.changeEvents={valueChanged:["rawValue","value"]};WjInputMaskBehavior.classCtor=function(){return wjcInput.InputMask};WjInputMaskBehavior.modelProp="value";exports.WjInputMask=WjInputMaskBehavior.register();function registerV3WjInputMask(e){e.component(WjInputMaskBehavior.tag,exports.WjInputMask)}class WjInputColorBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjInputColorBehavior.tag="wj-input-color";WjInputColorBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","showAlphaChannel","showColorString","value","text"];WjInputColorBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging"];WjInputColorBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"]};WjInputColorBehavior.classCtor=function(){return wjcInput.InputColor};WjInputColorBehavior.modelProp="value";exports.WjInputColor=WjInputColorBehavior.register();function registerV3WjInputColor(e){e.component(WjInputColorBehavior.tag,exports.WjInputColor)}class WjMultiSelectBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjMultiSelectBehavior.tag="wj-multi-select";WjMultiSelectBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","checkedMemberPath","maxHeaderItems","headerFormat","headerFormatter","showSelectAllCheckbox","selectAllLabel","showFilterInput","filterInputPlaceholder","checkOnFilter","delay","caseSensitiveSearch","itemsSource","checkedItems","text","selectedIndex","selectedItem","selectedValue"];WjMultiSelectBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMultiSelectBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],checkedItemsChanged:["checkedItems"]};WjMultiSelectBehavior.classCtor=function(){return wjcInput.MultiSelect};WjMultiSelectBehavior.modelProp="checkedItems";exports.WjMultiSelect=WjMultiSelectBehavior.register();function registerV3WjMultiSelect(e){e.component(WjMultiSelectBehavior.tag,exports.WjMultiSelect)}class WjMultiAutoCompleteBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjMultiAutoCompleteBehavior.tag="wj-multi-auto-complete";WjMultiAutoCompleteBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","delay","maxItems","minLength","cssMatch","itemsSourceFunction","searchMemberPath","beginsWithSearch","maxSelectedItems","selectedItems","itemsSource","selectedMemberPath","text","selectedIndex","selectedItem","selectedValue"];WjMultiAutoCompleteBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMultiAutoCompleteBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],selectedItemsChanged:["selectedItems"]};WjMultiAutoCompleteBehavior.classCtor=function(){return wjcInput.MultiAutoComplete};WjMultiAutoCompleteBehavior.modelProp="selectedItems";exports.WjMultiAutoComplete=WjMultiAutoCompleteBehavior.register();function registerV3WjMultiAutoComplete(e){e.component(WjMultiAutoCompleteBehavior.tag,exports.WjMultiAutoComplete)}class WjInputNumberBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjInputNumberBehavior.tag="wj-input-number";WjInputNumberBehavior.props=["isDisabled","tabOrder","behavioralFlags","showSpinner","repeatButtons","max","min","step","isRequired","placeholder","inputType","format","isReadOnly","handleWheel","value","text"];WjInputNumberBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjInputNumberBehavior.changeEvents={valueChanged:["value"],textChanged:["text"]};WjInputNumberBehavior.classCtor=function(){return wjcInput.InputNumber};WjInputNumberBehavior.modelProp="value";exports.WjInputNumber=WjInputNumberBehavior.register();function registerV3WjInputNumber(e){e.component(WjInputNumberBehavior.tag,exports.WjInputNumber)}class WjInputDateBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjInputDateBehavior.tag="wj-input-date";WjInputDateBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","text","value","rangeEnd","keepInvalidText","preserveCalendarNavigation"];WjInputDateBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateBehavior.classCtor=function(){return wjcInput.InputDate};WjInputDateBehavior.modelProp="value";exports.WjInputDate=WjInputDateBehavior.register();function registerV3WjInputDate(e){e.component(WjInputDateBehavior.tag,exports.WjInputDate)}class WjInputTimeBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjInputTimeBehavior.tag="wj-input-time";WjInputTimeBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","max","min","step","format","mask","inputType","itemsSource","text","selectedIndex","selectedItem","selectedValue","value"];WjInputTimeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjInputTimeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],valueChanged:["value"]};WjInputTimeBehavior.classCtor=function(){return wjcInput.InputTime};WjInputTimeBehavior.modelProp="value";exports.WjInputTime=WjInputTimeBehavior.register();function registerV3WjInputTime(e){e.component(WjInputTimeBehavior.tag,exports.WjInputTime)}class WjInputDateTimeBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjInputDateTimeBehavior.tag="wj-input-date-time";WjInputDateTimeBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","timeMax","timeMin","timeStep","timeFormat","text","value","rangeEnd","preserveCalendarNavigation"];WjInputDateTimeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateTimeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateTimeBehavior.classCtor=function(){return wjcInput.InputDateTime};WjInputDateTimeBehavior.modelProp="value";exports.WjInputDateTime=WjInputDateTimeBehavior.register();function registerV3WjInputDateTime(e){e.component(WjInputDateTimeBehavior.tag,exports.WjInputDateTime)}class WjInputDateRangeBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjInputDateRangeBehavior.tag="wj-input-date-range";WjInputDateRangeBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","text","value","rangeEnd","preserveCalendarNavigation"];WjInputDateRangeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateRangeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateRangeBehavior.classCtor=function(){return wjcInput.InputDateRange};WjInputDateRangeBehavior.modelProp="value";exports.WjInputDateRange=WjInputDateRangeBehavior.register();function registerV3WjInputDateRange(e){e.component(WjInputDateRangeBehavior.tag,exports.WjInputDateRange)}class WjMenuBehavior extends wijmo_vue2_base_1.WjComponentBehavior{get value(){return this._value}set value(e){this._value=e;if(null!=e){this.control.selectedValue=e;this._updateHeader()}}_createControl(){const e=super._createControl();e.itemsSource=new wjcCore.ObservableArray;e.selectedIndex=0;e.listBox.formatItem.addHandler(this._fmtItem,this);e.invalidate();e.itemClicked.addHandler(e=>{this.value=this.control.selectedValue});return e}_updateControl(e,t){super._updateControl(e,t);if("header"===e){this._definedHeader=t;this._updateHeader()}"value"===e&&(this.value=t)}_updateHeader(){this.control.header=this._definedHeader||"";const e=this.control.selectedItem;if(null!=this.value&&e&&this.control.displayMemberPath){let t=null;if(e instanceof WjMenuItemBehavior){const o=e.contentRoot;t=o?o.innerHTML:e[this.control.displayMemberPath]}null!=t&&(this.control.header+=": <b>"+t+"</b>")}}_fmtItem(e,t){if(t.data instanceof WjMenuItemBehavior||t.data instanceof WjMenuSeparatorBehavior){t.item.textContent="";t.item.appendChild(t.data.contentRoot);t.data.added(t.item)}}}WjMenuBehavior.tag="wj-menu";WjMenuBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","header","commandParameterPath","commandPath","subItemsPath","openOnHover","closeOnLeave","isButton","itemsSource","text","selectedIndex","selectedItem","selectedValue","value","ariaLabel","autoSelectOnFocus"];WjMenuBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMenuBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],itemClicked:["value"]};WjMenuBehavior.classCtor=function(){return wjcInput.Menu};WjMenuBehavior.modelProp="selectedValue";exports.WjMenu=WjMenuBehavior.register();function registerV3WjMenu(e){e.component(WjMenuBehavior.tag,exports.WjMenu)}class WjMenuItemBehavior extends wijmo_vue2_base_1.WjComponentBehavior{_createControl(){const e=this.parent.control;1==e.itemsSource.length&&e.selectedIndex<0&&(e.selectedIndex=0);e.displayMemberPath||(e.displayMemberPath="header");e.selectedValuePath||(e.selectedValuePath="value");e.commandPath||(e.commandPath="cmd");e.commandParameterPath||(e.commandParameterPath="cmdParam");this.contentRoot=this.component.$el.firstElementChild;this.component.$el.style.display="none";return this}added(e){}}WjMenuItemBehavior.tag="wj-menu-item";WjMenuItemBehavior.parentProp="itemsSource";WjMenuItemBehavior.siblingId="menuItemDir";WjMenuItemBehavior.props=["wjProperty","value","cmd","cmdParam"];WjMenuItemBehavior.events=["initialized"];WjMenuItemBehavior.render=function(e){if(wijmo_vue2_base_1.VueApi.isV3Plus){const e=wijmo_vue2_base_1.VueApi.h,t=this.$slots.default;return e("div",{},[e("div",{},t&&t())])}return e("div",[e("div",[this.$slots.default])])};exports.WjMenuItem=WjMenuItemBehavior.register();function registerV3WjMenuItem(e){e.component(WjMenuItemBehavior.tag,exports.WjMenuItem)}class WjMenuSeparatorBehavior extends wijmo_vue2_base_1.WjComponentBehavior{_createControl(){this.contentRoot=this.component.$el.firstElementChild;this.component.$el.style.display="none";return this}added(e){wjcCore.addClass(e,wjcCore.ControlStateClsNames.disabled);wjcCore.setAttribute(e,"role","separator",!1)}}WjMenuSeparatorBehavior.tag="wj-menu-separator";WjMenuSeparatorBehavior.parentProp="itemsSource";WjMenuSeparatorBehavior.siblingId="menuItemDir";WjMenuSeparatorBehavior.props=["wjProperty"];WjMenuSeparatorBehavior.events=["initialized"];WjMenuSeparatorBehavior.render=function(e){const t={width:"100%",height:"1px","background-color":"lightgray"};if(wijmo_vue2_base_1.VueApi.isV3Plus){const e=wijmo_vue2_base_1.VueApi.h;return e("div",{},[e("div",{style:t})])}return e("div",[e("div",{style:t})])};exports.WjMenuSeparator=WjMenuSeparatorBehavior.register();function registerV3WjMenuSeparator(e){e.component(WjMenuSeparatorBehavior.tag,exports.WjMenuSeparator)}const WjItemTemplateDefinition={render:function(e){return wijmo_vue2_base_1.VueApi.isV3Plus?wijmo_vue2_base_1.VueApi.h("div"):e("div")},mounted:function(){const e=this.$parent;if(e){let t=e[wijmo_vue2_base_1.WjComponentBehavior._behProp];t._mountedCB(()=>{const e=t.control;this.ownerControl=e instanceof wjcInput.ListBox?e:e.listBox instanceof wjcInput.ListBox?e.listBox:void 0;this.itemComponents=[];const o=wijmo_vue2_base_1.VueApi.isV3Plus?this.$slots.default:this.$scopedSlots.default,i=this.ownerControl;if(i&&o){this.formatItemHandler=(e,t)=>{const a=t.index;if(!this.itemComponents[a])if(wijmo_vue2_base_1.VueApi.isV3Plus){const e=wijmo_vue2_base_1.VueApi.h,n={parent:this.component,render:()=>e("div",{},o&&o({itemIndex:a,item:t.data,control:i}))},r=e(n);this.itemComponents[a]=t.item;t.item.textContent="";wijmo_vue2_base_1.VueApi.render(r,t.item)}else{const e=ItemTemplateComponentFactory(o,{itemIndex:a,item:t.data,control:i},this).$mount();this.itemComponents[a]=e;t.item.textContent="";t.item.appendChild(e.$el)}};i.formatItem.addHandler(this.formatItemHandler,this);i.loadingItems.addHandler(e=>{this._destroyItemComponents()})}})}},methods:{_destroyItemComponents(){(this.itemComponents||[]).forEach(e=>{wijmo_vue2_base_1.VueApi.isV3Plus?wijmo_vue2_base_1.VueApi.render(null,e):e.$destroy()});this.itemComponents=[]}}};WjItemTemplateDefinition[wijmo_vue2_base_1.VueApi.isV3Plus?"unmounted":"destroyed"]=function(){this.formatItemHandler&&this.ownerControl.formatItem.removeHandler(this.formatItemHandler,this);this._destroyItemComponents()};const ItemTemplateComponentFactory=(e,t,o)=>{const i=new ItemTemplateComponent({parent:o});i.itemTemplate=e;i.itemData=t;return i},ItemTemplateComponent=wijmo_vue2_base_1.VueApi.extend({render:function(e){return e("div",{},this.itemTemplate&&this.itemTemplate(this.itemData))}}),WjItemTemplateTag="wj-item-template";exports.WjItemTemplate=wijmo_vue2_base_1.VueApi.isV3Plus?WjItemTemplateDefinition:wijmo_vue2_base_1.VueApi.component(WjItemTemplateTag,WjItemTemplateDefinition);function registerV3WjItemTemplate(e){e.component(WjItemTemplateTag,exports.WjItemTemplate)}class WjPopupBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjPopupBehavior.tag="wj-popup";WjPopupBehavior.props=["isDisabled","tabOrder","behavioralFlags","owner","showTrigger","hideTrigger","fadeIn","fadeOut","isDraggable","isResizable","dialogResultEnter","dialogResultSubmit","modal","removeOnHide"];WjPopupBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","showing","shown","hiding","hidden","resizing","sizeChanging","sizeChanged","resized","dragging","positionChanging","positionChanged","dragged"];WjPopupBehavior.classCtor=function(){return wjcInput.Popup};exports.WjPopup=WjPopupBehavior.register();function registerV3WjPopup(e){e.component(WjPopupBehavior.tag,exports.WjPopup)}class _CtxMenuUtils{constructor(){this.key="__wjCtxMenu"}get definition(){return wijmo_vue2_base_1.VueApi.isV3Plus?{mounted:this._bind.bind(this),updated:this._update.bind(this),unmounted:this._unbind.bind(this)}:{bind:this._bind.bind(this),update:this._update.bind(this),unbind:this._unbind.bind(this)}}_bind(e,t,o){const listener=i=>{if(wjcCore.closest(i.target,"[disabled]"))return;const a=this._getMenuControl(t,o);if(a&&a.dropDown){i.preventDefault();i.stopPropagation();a.owner=e;a.show(i)}};e.addEventListener("contextmenu",listener);e[this.key]={binding:t,listener:listener}}_unbind(e){const t=e[this.key]&&e[this.key].listener;t&&e.removeEventListener("contextmenu",t);e[this.key]=null}_update(e,t,o){const i=e[this.key]&&e[this.key].binding;if(!i||i.value!==t.value){this._unbind(e);this._bind(e,t,o)}}_getMenuControl(e,t){let o=null,i=null,a=e.value;if(null==a&&0===e.expression.indexOf("$refs.")){a=new wjcCore.Binding(e.expression).getValue(t.context)}wjcCore.isString(a)?i=document.getElementById(a):a instanceof HTMLElement&&(i=a);o=i?wjcCore.Control.getControl(i):a&&a.control||a;return wjcCore.tryCast(o,wjcInput.Menu)}}const wjContextMenuDefinition=(new _CtxMenuUtils).definition,WjContextMenuTag="wjContextMenu";exports.WjContextMenu=wijmo_vue2_base_1.VueApi.isV3Plus?wjContextMenuDefinition:wijmo_vue2_base_1.VueApi.directive(WjContextMenuTag,wjContextMenuDefinition);function registerV3WjContextMenu(e){e.directive(WjContextMenuTag,exports.WjContextMenu)}class WjCollectionViewNavigatorBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjCollectionViewNavigatorBehavior.tag="wj-collection-view-navigator";WjCollectionViewNavigatorBehavior.props=["isDisabled","tabOrder","behavioralFlags","cv","byPage","headerFormat","repeatButtons"];WjCollectionViewNavigatorBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjCollectionViewNavigatorBehavior.classCtor=function(){return wjcInput.CollectionViewNavigator};exports.WjCollectionViewNavigator=WjCollectionViewNavigatorBehavior.register();function registerV3WjCollectionViewNavigator(e){e.component(WjCollectionViewNavigatorBehavior.tag,exports.WjCollectionViewNavigator)}function registerInput(e){if(wijmo_vue2_base_1.VueApi.isV3Plus){registerV3WjListBox(e);registerV3WjMultiSelectListBox(e);registerV3WjComboBox(e);registerV3WjAutoComplete(e);registerV3WjCalendar(e);registerV3WjColorPicker(e);registerV3WjInputMask(e);registerV3WjInputColor(e);registerV3WjMultiSelect(e);registerV3WjMultiAutoComplete(e);registerV3WjInputNumber(e);registerV3WjInputDate(e);registerV3WjInputTime(e);registerV3WjInputDateTime(e);registerV3WjInputDateRange(e);registerV3WjMenu(e);registerV3WjMenuItem(e);registerV3WjMenuSeparator(e);registerV3WjItemTemplate(e);registerV3WjPopup(e);registerV3WjContextMenu(e);registerV3WjCollectionViewNavigator(e)}}exports.registerInput=registerInput;
|
14
|
+
"use strict";var __importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.hasOwnProperty.call(e,o)&&(t[o]=e[o]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});const wijmo_vue2_base_1=require("@mescius/wijmo.vue2.base"),wjcCore=__importStar(require("@mescius/wijmo")),wjcInput=__importStar(require("@mescius/wijmo.input"));class WjListBoxBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjListBoxBehavior.tag="wj-list-box";WjListBoxBehavior.props=["isDisabled","tabOrder","isContentHtml","maxHeight","selectedValuePath","itemFormatter","displayMemberPath","checkedMemberPath","caseSensitiveSearch","itemsSource","virtualizationThreshold","showGroups","selectedIndex","selectedItem","selectedValue","checkedItems"];WjListBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","formatItem","itemsChanged","itemChecked"];WjListBoxBehavior.changeEvents={selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],checkedItemsChanged:["checkedItems"]};WjListBoxBehavior.classCtor=function(){return wjcInput.ListBox};WjListBoxBehavior.modelProp="selectedValue";exports.WjListBox=WjListBoxBehavior.register();function registerV3WjListBox(e){e.component(WjListBoxBehavior.tag,exports.WjListBox)}class WjMultiSelectListBoxBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjMultiSelectListBoxBehavior.tag="wj-multi-select-list-box";WjMultiSelectListBoxBehavior.props=["isDisabled","tabOrder","itemsSource","displayMemberPath","selectedIndex","isContentHtml","showGroups","checkOnFilter","showFilterInput","filterInputPlaceholder","showSelectAllCheckbox","selectAllLabel","delay","caseSensitiveSearch","checkedMemberPath","virtualizationThreshold","checkedItems"];WjMultiSelectListBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjMultiSelectListBoxBehavior.changeEvents={selectedIndexChanged:["selectedIndex"],checkedItemsChanged:["checkedItems"]};WjMultiSelectListBoxBehavior.classCtor=function(){return wjcInput.MultiSelectListBox};WjMultiSelectListBoxBehavior.modelProp="checkedItems";exports.WjMultiSelectListBox=WjMultiSelectListBoxBehavior.register();function registerV3WjMultiSelectListBox(e){e.component(WjMultiSelectListBoxBehavior.tag,exports.WjMultiSelectListBox)}class WjComboBoxBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjComboBoxBehavior.tag="wj-combo-box";WjComboBoxBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","itemsSource","text","selectedIndex","selectedItem","selectedValue"];WjComboBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjComboBoxBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"]};WjComboBoxBehavior.classCtor=function(){return wjcInput.ComboBox};WjComboBoxBehavior.modelProp="selectedValue";exports.WjComboBox=WjComboBoxBehavior.register();function registerV3WjComboBox(e){e.component(WjComboBoxBehavior.tag,exports.WjComboBox)}class WjAutoCompleteBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjAutoCompleteBehavior.tag="wj-auto-complete";WjAutoCompleteBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","delay","maxItems","minLength","cssMatch","itemsSourceFunction","searchMemberPath","beginsWithSearch","itemsSource","text","selectedIndex","selectedItem","selectedValue"];WjAutoCompleteBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjAutoCompleteBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"]};WjAutoCompleteBehavior.classCtor=function(){return wjcInput.AutoComplete};WjAutoCompleteBehavior.modelProp="selectedValue";exports.WjAutoComplete=WjAutoCompleteBehavior.register();function registerV3WjAutoComplete(e){e.component(WjAutoCompleteBehavior.tag,exports.WjAutoComplete)}class WjCalendarBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjCalendarBehavior.tag="wj-calendar";WjCalendarBehavior.props=["isDisabled","tabOrder","monthView","showHeader","itemFormatter","itemValidator","firstDayOfWeek","max","min","formatYearMonth","formatDayHeaders","formatDays","formatYear","formatMonths","selectionMode","isReadOnly","handleWheel","repeatButtons","showYearPicker","value","displayMonth","monthCount","showMonthPicker","weeksBefore","weeksAfter","rangeEnd","rangeMin","rangeMax"];WjCalendarBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","rangeChanged","formatItem"];WjCalendarBehavior.changeEvents={valueChanged:["value"],displayMonthChanged:["displayMonth"],rangeEndChanged:["rangeEnd"]};WjCalendarBehavior.classCtor=function(){return wjcInput.Calendar};WjCalendarBehavior.modelProp="value";exports.WjCalendar=WjCalendarBehavior.register();function registerV3WjCalendar(e){e.component(WjCalendarBehavior.tag,exports.WjCalendar)}class WjColorPickerBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjColorPickerBehavior.tag="wj-color-picker";WjColorPickerBehavior.props=["isDisabled","tabOrder","showAlphaChannel","showColorString","palette","value"];WjColorPickerBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjColorPickerBehavior.changeEvents={valueChanged:["value"]};WjColorPickerBehavior.classCtor=function(){return wjcInput.ColorPicker};WjColorPickerBehavior.modelProp="value";exports.WjColorPicker=WjColorPickerBehavior.register();function registerV3WjColorPicker(e){e.component(WjColorPickerBehavior.tag,exports.WjColorPicker)}class WjInputMaskBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjInputMaskBehavior.tag="wj-input-mask";WjInputMaskBehavior.props=["isDisabled","tabOrder","mask","overwriteMode","isRequired","isReadOnly","promptChar","placeholder","inputType","rawValue","value"];WjInputMaskBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjInputMaskBehavior.changeEvents={valueChanged:["rawValue","value"]};WjInputMaskBehavior.classCtor=function(){return wjcInput.InputMask};WjInputMaskBehavior.modelProp="value";exports.WjInputMask=WjInputMaskBehavior.register();function registerV3WjInputMask(e){e.component(WjInputMaskBehavior.tag,exports.WjInputMask)}class WjInputColorBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjInputColorBehavior.tag="wj-input-color";WjInputColorBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","showAlphaChannel","showColorString","value","text"];WjInputColorBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging"];WjInputColorBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"]};WjInputColorBehavior.classCtor=function(){return wjcInput.InputColor};WjInputColorBehavior.modelProp="value";exports.WjInputColor=WjInputColorBehavior.register();function registerV3WjInputColor(e){e.component(WjInputColorBehavior.tag,exports.WjInputColor)}class WjMultiSelectBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjMultiSelectBehavior.tag="wj-multi-select";WjMultiSelectBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","checkedMemberPath","maxHeaderItems","headerFormat","headerFormatter","showSelectAllCheckbox","selectAllLabel","showFilterInput","filterInputPlaceholder","checkOnFilter","delay","caseSensitiveSearch","itemsSource","checkedItems","text","selectedIndex","selectedItem","selectedValue"];WjMultiSelectBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMultiSelectBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],checkedItemsChanged:["checkedItems"]};WjMultiSelectBehavior.classCtor=function(){return wjcInput.MultiSelect};WjMultiSelectBehavior.modelProp="checkedItems";exports.WjMultiSelect=WjMultiSelectBehavior.register();function registerV3WjMultiSelect(e){e.component(WjMultiSelectBehavior.tag,exports.WjMultiSelect)}class WjMultiAutoCompleteBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjMultiAutoCompleteBehavior.tag="wj-multi-auto-complete";WjMultiAutoCompleteBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","delay","maxItems","minLength","cssMatch","itemsSourceFunction","searchMemberPath","beginsWithSearch","maxSelectedItems","selectedItems","itemsSource","selectedMemberPath","text","selectedIndex","selectedItem","selectedValue"];WjMultiAutoCompleteBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMultiAutoCompleteBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],selectedItemsChanged:["selectedItems"]};WjMultiAutoCompleteBehavior.classCtor=function(){return wjcInput.MultiAutoComplete};WjMultiAutoCompleteBehavior.modelProp="selectedItems";exports.WjMultiAutoComplete=WjMultiAutoCompleteBehavior.register();function registerV3WjMultiAutoComplete(e){e.component(WjMultiAutoCompleteBehavior.tag,exports.WjMultiAutoComplete)}class WjInputNumberBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjInputNumberBehavior.tag="wj-input-number";WjInputNumberBehavior.props=["isDisabled","tabOrder","showSpinner","repeatButtons","max","min","step","isRequired","placeholder","inputType","format","isReadOnly","handleWheel","value","text"];WjInputNumberBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjInputNumberBehavior.changeEvents={valueChanged:["value"],textChanged:["text"]};WjInputNumberBehavior.classCtor=function(){return wjcInput.InputNumber};WjInputNumberBehavior.modelProp="value";exports.WjInputNumber=WjInputNumberBehavior.register();function registerV3WjInputNumber(e){e.component(WjInputNumberBehavior.tag,exports.WjInputNumber)}class WjInputDateBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjInputDateBehavior.tag="wj-input-date";WjInputDateBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","text","value","rangeEnd","keepInvalidText","preserveCalendarNavigation"];WjInputDateBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateBehavior.classCtor=function(){return wjcInput.InputDate};WjInputDateBehavior.modelProp="value";exports.WjInputDate=WjInputDateBehavior.register();function registerV3WjInputDate(e){e.component(WjInputDateBehavior.tag,exports.WjInputDate)}class WjInputTimeBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjInputTimeBehavior.tag="wj-input-time";WjInputTimeBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","max","min","step","format","mask","inputType","itemsSource","text","selectedIndex","selectedItem","selectedValue","value"];WjInputTimeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjInputTimeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],valueChanged:["value"]};WjInputTimeBehavior.classCtor=function(){return wjcInput.InputTime};WjInputTimeBehavior.modelProp="value";exports.WjInputTime=WjInputTimeBehavior.register();function registerV3WjInputTime(e){e.component(WjInputTimeBehavior.tag,exports.WjInputTime)}class WjInputDateTimeBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjInputDateTimeBehavior.tag="wj-input-date-time";WjInputDateTimeBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","timeMax","timeMin","timeStep","timeFormat","text","value","rangeEnd","preserveCalendarNavigation"];WjInputDateTimeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateTimeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateTimeBehavior.classCtor=function(){return wjcInput.InputDateTime};WjInputDateTimeBehavior.modelProp="value";exports.WjInputDateTime=WjInputDateTimeBehavior.register();function registerV3WjInputDateTime(e){e.component(WjInputDateTimeBehavior.tag,exports.WjInputDateTime)}class WjInputDateRangeBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjInputDateRangeBehavior.tag="wj-input-date-range";WjInputDateRangeBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","text","value","rangeEnd","preserveCalendarNavigation"];WjInputDateRangeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateRangeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateRangeBehavior.classCtor=function(){return wjcInput.InputDateRange};WjInputDateRangeBehavior.modelProp="value";exports.WjInputDateRange=WjInputDateRangeBehavior.register();function registerV3WjInputDateRange(e){e.component(WjInputDateRangeBehavior.tag,exports.WjInputDateRange)}class WjMenuBehavior extends wijmo_vue2_base_1.WjComponentBehavior{get value(){return this._value}set value(e){this._value=e;if(null!=e){this.control.selectedValue=e;this._updateHeader()}}_createControl(){const e=super._createControl();e.itemsSource=new wjcCore.ObservableArray;e.selectedIndex=0;e.listBox.formatItem.addHandler(this._fmtItem,this);e.invalidate();e.itemClicked.addHandler(e=>{this.value=this.control.selectedValue});return e}_updateControl(e,t){super._updateControl(e,t);if("header"===e){this._definedHeader=t;this._updateHeader()}"value"===e&&(this.value=t)}_updateHeader(){this.control.header=this._definedHeader||"";const e=this.control.selectedItem;if(null!=this.value&&e&&this.control.displayMemberPath){let t=null;if(e instanceof WjMenuItemBehavior){const o=e.contentRoot;t=o?o.innerHTML:e[this.control.displayMemberPath]}null!=t&&(this.control.header+=": <b>"+t+"</b>")}}_fmtItem(e,t){if(t.data instanceof WjMenuItemBehavior||t.data instanceof WjMenuSeparatorBehavior){t.item.textContent="";t.item.appendChild(t.data.contentRoot);t.data.added(t.item)}}}WjMenuBehavior.tag="wj-menu";WjMenuBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","header","commandParameterPath","commandPath","subItemsPath","openOnHover","closeOnLeave","isButton","itemsSource","text","selectedIndex","selectedItem","selectedValue","value","ariaLabel","autoSelectOnFocus"];WjMenuBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMenuBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],itemClicked:["value"]};WjMenuBehavior.classCtor=function(){return wjcInput.Menu};WjMenuBehavior.modelProp="selectedValue";exports.WjMenu=WjMenuBehavior.register();function registerV3WjMenu(e){e.component(WjMenuBehavior.tag,exports.WjMenu)}class WjMenuItemBehavior extends wijmo_vue2_base_1.WjComponentBehavior{_createControl(){const e=this.parent.control;1==e.itemsSource.length&&e.selectedIndex<0&&(e.selectedIndex=0);e.displayMemberPath||(e.displayMemberPath="header");e.selectedValuePath||(e.selectedValuePath="value");e.commandPath||(e.commandPath="cmd");e.commandParameterPath||(e.commandParameterPath="cmdParam");this.contentRoot=this.component.$el.firstElementChild;this.component.$el.style.display="none";return this}added(e){}}WjMenuItemBehavior.tag="wj-menu-item";WjMenuItemBehavior.parentProp="itemsSource";WjMenuItemBehavior.siblingId="menuItemDir";WjMenuItemBehavior.props=["wjProperty","value","cmd","cmdParam"];WjMenuItemBehavior.events=["initialized"];WjMenuItemBehavior.render=function(e){if(wijmo_vue2_base_1.VueApi.isV3Plus){const e=wijmo_vue2_base_1.VueApi.h,t=this.$slots.default;return e("div",{},[e("div",{},t&&t())])}return e("div",[e("div",[this.$slots.default])])};exports.WjMenuItem=WjMenuItemBehavior.register();function registerV3WjMenuItem(e){e.component(WjMenuItemBehavior.tag,exports.WjMenuItem)}class WjMenuSeparatorBehavior extends wijmo_vue2_base_1.WjComponentBehavior{_createControl(){this.contentRoot=this.component.$el.firstElementChild;this.component.$el.style.display="none";return this}added(e){wjcCore.addClass(e,wjcCore.ControlStateClsNames.disabled);wjcCore.setAttribute(e,"role","separator",!1)}}WjMenuSeparatorBehavior.tag="wj-menu-separator";WjMenuSeparatorBehavior.parentProp="itemsSource";WjMenuSeparatorBehavior.siblingId="menuItemDir";WjMenuSeparatorBehavior.props=["wjProperty"];WjMenuSeparatorBehavior.events=["initialized"];WjMenuSeparatorBehavior.render=function(e){const t={width:"100%",height:"1px","background-color":"lightgray"};if(wijmo_vue2_base_1.VueApi.isV3Plus){const e=wijmo_vue2_base_1.VueApi.h;return e("div",{},[e("div",{style:t})])}return e("div",[e("div",{style:t})])};exports.WjMenuSeparator=WjMenuSeparatorBehavior.register();function registerV3WjMenuSeparator(e){e.component(WjMenuSeparatorBehavior.tag,exports.WjMenuSeparator)}const WjItemTemplateDefinition={render:function(e){return wijmo_vue2_base_1.VueApi.isV3Plus?wijmo_vue2_base_1.VueApi.h("div"):e("div")},mounted:function(){const e=this.$parent;if(e){let t=e[wijmo_vue2_base_1.WjComponentBehavior._behProp];t._mountedCB(()=>{const e=t.control;this.ownerControl=e instanceof wjcInput.ListBox?e:e.listBox instanceof wjcInput.ListBox?e.listBox:void 0;this.itemComponents=[];const o=wijmo_vue2_base_1.VueApi.isV3Plus?this.$slots.default:this.$scopedSlots.default,i=this.ownerControl;if(i&&o){this.formatItemHandler=(e,t)=>{const n=t.index;if(!this.itemComponents[n])if(wijmo_vue2_base_1.VueApi.isV3Plus){const e=wijmo_vue2_base_1.VueApi.h,a={parent:this.component,render:()=>e("div",{},o&&o({itemIndex:n,item:t.data,control:i}))},r=e(a);this.itemComponents[n]=t.item;t.item.textContent="";wijmo_vue2_base_1.VueApi.render(r,t.item)}else{const e=ItemTemplateComponentFactory(o,{itemIndex:n,item:t.data,control:i},this).$mount();this.itemComponents[n]=e;t.item.textContent="";t.item.appendChild(e.$el)}};i.formatItem.addHandler(this.formatItemHandler,this);i.loadingItems.addHandler(e=>{this._destroyItemComponents()})}})}},methods:{_destroyItemComponents(){(this.itemComponents||[]).forEach(e=>{wijmo_vue2_base_1.VueApi.isV3Plus?wijmo_vue2_base_1.VueApi.render(null,e):e.$destroy()});this.itemComponents=[]}}};WjItemTemplateDefinition[wijmo_vue2_base_1.VueApi.isV3Plus?"unmounted":"destroyed"]=function(){this.formatItemHandler&&this.ownerControl.formatItem.removeHandler(this.formatItemHandler,this);this._destroyItemComponents()};const ItemTemplateComponentFactory=(e,t,o)=>{const i=new ItemTemplateComponent({parent:o});i.itemTemplate=e;i.itemData=t;return i},ItemTemplateComponent=wijmo_vue2_base_1.VueApi.extend({render:function(e){return e("div",{},this.itemTemplate&&this.itemTemplate(this.itemData))}}),WjItemTemplateTag="wj-item-template";exports.WjItemTemplate=wijmo_vue2_base_1.VueApi.isV3Plus?WjItemTemplateDefinition:wijmo_vue2_base_1.VueApi.component(WjItemTemplateTag,WjItemTemplateDefinition);function registerV3WjItemTemplate(e){e.component(WjItemTemplateTag,exports.WjItemTemplate)}class WjPopupBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjPopupBehavior.tag="wj-popup";WjPopupBehavior.props=["isDisabled","tabOrder","owner","showTrigger","hideTrigger","fadeIn","fadeOut","isDraggable","isResizable","dialogResultEnter","dialogResultSubmit","modal","removeOnHide"];WjPopupBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","showing","shown","hiding","hidden","resizing","sizeChanging","sizeChanged","resized","dragging","positionChanging","positionChanged","dragged"];WjPopupBehavior.classCtor=function(){return wjcInput.Popup};exports.WjPopup=WjPopupBehavior.register();function registerV3WjPopup(e){e.component(WjPopupBehavior.tag,exports.WjPopup)}class _CtxMenuUtils{constructor(){this.key="__wjCtxMenu"}get definition(){return wijmo_vue2_base_1.VueApi.isV3Plus?{mounted:this._bind.bind(this),updated:this._update.bind(this),unmounted:this._unbind.bind(this)}:{bind:this._bind.bind(this),update:this._update.bind(this),unbind:this._unbind.bind(this)}}_bind(e,t,o){const listener=i=>{if(wjcCore.closest(i.target,"[disabled]"))return;const n=this._getMenuControl(t,o);if(n&&n.dropDown){i.preventDefault();i.stopPropagation();n.owner=e;n.show(i)}};e.addEventListener("contextmenu",listener);e[this.key]={binding:t,listener:listener}}_unbind(e){const t=e[this.key]&&e[this.key].listener;t&&e.removeEventListener("contextmenu",t);e[this.key]=null}_update(e,t,o){const i=e[this.key]&&e[this.key].binding;if(!i||i.value!==t.value){this._unbind(e);this._bind(e,t,o)}}_getMenuControl(e,t){let o=null,i=null,n=e.value;if(null==n&&0===e.expression.indexOf("$refs.")){n=new wjcCore.Binding(e.expression).getValue(t.context)}wjcCore.isString(n)?i=document.getElementById(n):n instanceof HTMLElement&&(i=n);o=i?wjcCore.Control.getControl(i):n&&n.control||n;return wjcCore.tryCast(o,wjcInput.Menu)}}const wjContextMenuDefinition=(new _CtxMenuUtils).definition,WjContextMenuTag="wjContextMenu";exports.WjContextMenu=wijmo_vue2_base_1.VueApi.isV3Plus?wjContextMenuDefinition:wijmo_vue2_base_1.VueApi.directive(WjContextMenuTag,wjContextMenuDefinition);function registerV3WjContextMenu(e){e.directive(WjContextMenuTag,exports.WjContextMenu)}class WjCollectionViewNavigatorBehavior extends wijmo_vue2_base_1.WjComponentBehavior{}WjCollectionViewNavigatorBehavior.tag="wj-collection-view-navigator";WjCollectionViewNavigatorBehavior.props=["isDisabled","tabOrder","cv","byPage","headerFormat","repeatButtons"];WjCollectionViewNavigatorBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjCollectionViewNavigatorBehavior.classCtor=function(){return wjcInput.CollectionViewNavigator};exports.WjCollectionViewNavigator=WjCollectionViewNavigatorBehavior.register();function registerV3WjCollectionViewNavigator(e){e.component(WjCollectionViewNavigatorBehavior.tag,exports.WjCollectionViewNavigator)}function registerInput(e){if(wijmo_vue2_base_1.VueApi.isV3Plus){registerV3WjListBox(e);registerV3WjMultiSelectListBox(e);registerV3WjComboBox(e);registerV3WjAutoComplete(e);registerV3WjCalendar(e);registerV3WjColorPicker(e);registerV3WjInputMask(e);registerV3WjInputColor(e);registerV3WjMultiSelect(e);registerV3WjMultiAutoComplete(e);registerV3WjInputNumber(e);registerV3WjInputDate(e);registerV3WjInputTime(e);registerV3WjInputDateTime(e);registerV3WjInputDateRange(e);registerV3WjMenu(e);registerV3WjMenuItem(e);registerV3WjMenuSeparator(e);registerV3WjItemTemplate(e);registerV3WjPopup(e);registerV3WjContextMenu(e);registerV3WjCollectionViewNavigator(e)}}exports.registerInput=registerInput;
|
package/es2015-esm.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
*
|
3
|
-
* Wijmo Library 5.20242.23-nightly.
|
3
|
+
* Wijmo Library 5.20242.23-nightly.d20241119.t030240
|
4
4
|
* https://developer.mescius.com/wijmo
|
5
5
|
*
|
6
6
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
@@ -11,4 +11,4 @@
|
|
11
11
|
*
|
12
12
|
*/
|
13
13
|
|
14
|
-
import{VueApi,WjComponentBehavior}from"@mescius/wijmo.vue2.base";import*as wjcCore from"@mescius/wijmo";import*as wjcInput from"@mescius/wijmo.input";class WjListBoxBehavior extends WjComponentBehavior{}WjListBoxBehavior.tag="wj-list-box";WjListBoxBehavior.props=["isDisabled","tabOrder","behavioralFlags","isContentHtml","maxHeight","selectedValuePath","itemFormatter","displayMemberPath","checkedMemberPath","caseSensitiveSearch","itemsSource","virtualizationThreshold","showGroups","selectedIndex","selectedItem","selectedValue","checkedItems"];WjListBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","formatItem","itemsChanged","itemChecked"];WjListBoxBehavior.changeEvents={selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],checkedItemsChanged:["checkedItems"]};WjListBoxBehavior.classCtor=function(){return wjcInput.ListBox};WjListBoxBehavior.modelProp="selectedValue";export var WjListBox=WjListBoxBehavior.register();function registerV3WjListBox(e){e.component(WjListBoxBehavior.tag,WjListBox)}class WjMultiSelectListBoxBehavior extends WjComponentBehavior{}WjMultiSelectListBoxBehavior.tag="wj-multi-select-list-box";WjMultiSelectListBoxBehavior.props=["isDisabled","tabOrder","behavioralFlags","itemsSource","displayMemberPath","selectedIndex","isContentHtml","showGroups","checkOnFilter","showFilterInput","filterInputPlaceholder","showSelectAllCheckbox","selectAllLabel","delay","caseSensitiveSearch","checkedMemberPath","virtualizationThreshold","checkedItems"];WjMultiSelectListBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjMultiSelectListBoxBehavior.changeEvents={selectedIndexChanged:["selectedIndex"],checkedItemsChanged:["checkedItems"]};WjMultiSelectListBoxBehavior.classCtor=function(){return wjcInput.MultiSelectListBox};WjMultiSelectListBoxBehavior.modelProp="checkedItems";export var WjMultiSelectListBox=WjMultiSelectListBoxBehavior.register();function registerV3WjMultiSelectListBox(e){e.component(WjMultiSelectListBoxBehavior.tag,WjMultiSelectListBox)}class WjComboBoxBehavior extends WjComponentBehavior{}WjComboBoxBehavior.tag="wj-combo-box";WjComboBoxBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","itemsSource","text","selectedIndex","selectedItem","selectedValue"];WjComboBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjComboBoxBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"]};WjComboBoxBehavior.classCtor=function(){return wjcInput.ComboBox};WjComboBoxBehavior.modelProp="selectedValue";export var WjComboBox=WjComboBoxBehavior.register();function registerV3WjComboBox(e){e.component(WjComboBoxBehavior.tag,WjComboBox)}class WjAutoCompleteBehavior extends WjComponentBehavior{}WjAutoCompleteBehavior.tag="wj-auto-complete";WjAutoCompleteBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","delay","maxItems","minLength","cssMatch","itemsSourceFunction","searchMemberPath","beginsWithSearch","itemsSource","text","selectedIndex","selectedItem","selectedValue"];WjAutoCompleteBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjAutoCompleteBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"]};WjAutoCompleteBehavior.classCtor=function(){return wjcInput.AutoComplete};WjAutoCompleteBehavior.modelProp="selectedValue";export var WjAutoComplete=WjAutoCompleteBehavior.register();function registerV3WjAutoComplete(e){e.component(WjAutoCompleteBehavior.tag,WjAutoComplete)}class WjCalendarBehavior extends WjComponentBehavior{}WjCalendarBehavior.tag="wj-calendar";WjCalendarBehavior.props=["isDisabled","tabOrder","behavioralFlags","monthView","showHeader","itemFormatter","itemValidator","firstDayOfWeek","max","min","formatYearMonth","formatDayHeaders","formatDays","formatYear","formatMonths","selectionMode","isReadOnly","handleWheel","repeatButtons","showYearPicker","value","displayMonth","monthCount","showMonthPicker","weeksBefore","weeksAfter","rangeEnd","rangeMin","rangeMax"];WjCalendarBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","rangeChanged","formatItem"];WjCalendarBehavior.changeEvents={valueChanged:["value"],displayMonthChanged:["displayMonth"],rangeEndChanged:["rangeEnd"]};WjCalendarBehavior.classCtor=function(){return wjcInput.Calendar};WjCalendarBehavior.modelProp="value";export var WjCalendar=WjCalendarBehavior.register();function registerV3WjCalendar(e){e.component(WjCalendarBehavior.tag,WjCalendar)}class WjColorPickerBehavior extends WjComponentBehavior{}WjColorPickerBehavior.tag="wj-color-picker";WjColorPickerBehavior.props=["isDisabled","tabOrder","behavioralFlags","showAlphaChannel","showColorString","palette","value"];WjColorPickerBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjColorPickerBehavior.changeEvents={valueChanged:["value"]};WjColorPickerBehavior.classCtor=function(){return wjcInput.ColorPicker};WjColorPickerBehavior.modelProp="value";export var WjColorPicker=WjColorPickerBehavior.register();function registerV3WjColorPicker(e){e.component(WjColorPickerBehavior.tag,WjColorPicker)}class WjInputMaskBehavior extends WjComponentBehavior{}WjInputMaskBehavior.tag="wj-input-mask";WjInputMaskBehavior.props=["isDisabled","tabOrder","behavioralFlags","mask","overwriteMode","isRequired","isReadOnly","promptChar","placeholder","inputType","rawValue","value"];WjInputMaskBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjInputMaskBehavior.changeEvents={valueChanged:["rawValue","value"]};WjInputMaskBehavior.classCtor=function(){return wjcInput.InputMask};WjInputMaskBehavior.modelProp="value";export var WjInputMask=WjInputMaskBehavior.register();function registerV3WjInputMask(e){e.component(WjInputMaskBehavior.tag,WjInputMask)}class WjInputColorBehavior extends WjComponentBehavior{}WjInputColorBehavior.tag="wj-input-color";WjInputColorBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","showAlphaChannel","showColorString","value","text"];WjInputColorBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging"];WjInputColorBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"]};WjInputColorBehavior.classCtor=function(){return wjcInput.InputColor};WjInputColorBehavior.modelProp="value";export var WjInputColor=WjInputColorBehavior.register();function registerV3WjInputColor(e){e.component(WjInputColorBehavior.tag,WjInputColor)}class WjMultiSelectBehavior extends WjComponentBehavior{}WjMultiSelectBehavior.tag="wj-multi-select";WjMultiSelectBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","checkedMemberPath","maxHeaderItems","headerFormat","headerFormatter","showSelectAllCheckbox","selectAllLabel","showFilterInput","filterInputPlaceholder","checkOnFilter","delay","caseSensitiveSearch","itemsSource","checkedItems","text","selectedIndex","selectedItem","selectedValue"];WjMultiSelectBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMultiSelectBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],checkedItemsChanged:["checkedItems"]};WjMultiSelectBehavior.classCtor=function(){return wjcInput.MultiSelect};WjMultiSelectBehavior.modelProp="checkedItems";export var WjMultiSelect=WjMultiSelectBehavior.register();function registerV3WjMultiSelect(e){e.component(WjMultiSelectBehavior.tag,WjMultiSelect)}class WjMultiAutoCompleteBehavior extends WjComponentBehavior{}WjMultiAutoCompleteBehavior.tag="wj-multi-auto-complete";WjMultiAutoCompleteBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","delay","maxItems","minLength","cssMatch","itemsSourceFunction","searchMemberPath","beginsWithSearch","maxSelectedItems","selectedItems","itemsSource","selectedMemberPath","text","selectedIndex","selectedItem","selectedValue"];WjMultiAutoCompleteBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMultiAutoCompleteBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],selectedItemsChanged:["selectedItems"]};WjMultiAutoCompleteBehavior.classCtor=function(){return wjcInput.MultiAutoComplete};WjMultiAutoCompleteBehavior.modelProp="selectedItems";export var WjMultiAutoComplete=WjMultiAutoCompleteBehavior.register();function registerV3WjMultiAutoComplete(e){e.component(WjMultiAutoCompleteBehavior.tag,WjMultiAutoComplete)}class WjInputNumberBehavior extends WjComponentBehavior{}WjInputNumberBehavior.tag="wj-input-number";WjInputNumberBehavior.props=["isDisabled","tabOrder","behavioralFlags","showSpinner","repeatButtons","max","min","step","isRequired","placeholder","inputType","format","isReadOnly","handleWheel","value","text"];WjInputNumberBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjInputNumberBehavior.changeEvents={valueChanged:["value"],textChanged:["text"]};WjInputNumberBehavior.classCtor=function(){return wjcInput.InputNumber};WjInputNumberBehavior.modelProp="value";export var WjInputNumber=WjInputNumberBehavior.register();function registerV3WjInputNumber(e){e.component(WjInputNumberBehavior.tag,WjInputNumber)}class WjInputDateBehavior extends WjComponentBehavior{}WjInputDateBehavior.tag="wj-input-date";WjInputDateBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","text","value","rangeEnd","keepInvalidText","preserveCalendarNavigation"];WjInputDateBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateBehavior.classCtor=function(){return wjcInput.InputDate};WjInputDateBehavior.modelProp="value";export var WjInputDate=WjInputDateBehavior.register();function registerV3WjInputDate(e){e.component(WjInputDateBehavior.tag,WjInputDate)}class WjInputTimeBehavior extends WjComponentBehavior{}WjInputTimeBehavior.tag="wj-input-time";WjInputTimeBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","max","min","step","format","mask","inputType","itemsSource","text","selectedIndex","selectedItem","selectedValue","value"];WjInputTimeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjInputTimeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],valueChanged:["value"]};WjInputTimeBehavior.classCtor=function(){return wjcInput.InputTime};WjInputTimeBehavior.modelProp="value";export var WjInputTime=WjInputTimeBehavior.register();function registerV3WjInputTime(e){e.component(WjInputTimeBehavior.tag,WjInputTime)}class WjInputDateTimeBehavior extends WjComponentBehavior{}WjInputDateTimeBehavior.tag="wj-input-date-time";WjInputDateTimeBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","timeMax","timeMin","timeStep","timeFormat","text","value","rangeEnd","preserveCalendarNavigation"];WjInputDateTimeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateTimeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateTimeBehavior.classCtor=function(){return wjcInput.InputDateTime};WjInputDateTimeBehavior.modelProp="value";export var WjInputDateTime=WjInputDateTimeBehavior.register();function registerV3WjInputDateTime(e){e.component(WjInputDateTimeBehavior.tag,WjInputDateTime)}class WjInputDateRangeBehavior extends WjComponentBehavior{}WjInputDateRangeBehavior.tag="wj-input-date-range";WjInputDateRangeBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","text","value","rangeEnd","preserveCalendarNavigation"];WjInputDateRangeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateRangeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateRangeBehavior.classCtor=function(){return wjcInput.InputDateRange};WjInputDateRangeBehavior.modelProp="value";export var WjInputDateRange=WjInputDateRangeBehavior.register();function registerV3WjInputDateRange(e){e.component(WjInputDateRangeBehavior.tag,WjInputDateRange)}class WjMenuBehavior extends WjComponentBehavior{get value(){return this._value}set value(e){this._value=e;if(null!=e){this.control.selectedValue=e;this._updateHeader()}}_createControl(){const e=super._createControl();e.itemsSource=new wjcCore.ObservableArray;e.selectedIndex=0;e.listBox.formatItem.addHandler(this._fmtItem,this);e.invalidate();e.itemClicked.addHandler(e=>{this.value=this.control.selectedValue});return e}_updateControl(e,t){super._updateControl(e,t);if("header"===e){this._definedHeader=t;this._updateHeader()}"value"===e&&(this.value=t)}_updateHeader(){this.control.header=this._definedHeader||"";const e=this.control.selectedItem;if(null!=this.value&&e&&this.control.displayMemberPath){let t=null;if(e instanceof WjMenuItemBehavior){const o=e.contentRoot;t=o?o.innerHTML:e[this.control.displayMemberPath]}null!=t&&(this.control.header+=": <b>"+t+"</b>")}}_fmtItem(e,t){if(t.data instanceof WjMenuItemBehavior||t.data instanceof WjMenuSeparatorBehavior){t.item.textContent="";t.item.appendChild(t.data.contentRoot);t.data.added(t.item)}}}WjMenuBehavior.tag="wj-menu";WjMenuBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","header","commandParameterPath","commandPath","subItemsPath","openOnHover","closeOnLeave","isButton","itemsSource","text","selectedIndex","selectedItem","selectedValue","value","ariaLabel","autoSelectOnFocus"];WjMenuBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMenuBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],itemClicked:["value"]};WjMenuBehavior.classCtor=function(){return wjcInput.Menu};WjMenuBehavior.modelProp="selectedValue";export var WjMenu=WjMenuBehavior.register();function registerV3WjMenu(e){e.component(WjMenuBehavior.tag,WjMenu)}class WjMenuItemBehavior extends WjComponentBehavior{_createControl(){const e=this.parent.control;1==e.itemsSource.length&&e.selectedIndex<0&&(e.selectedIndex=0);e.displayMemberPath||(e.displayMemberPath="header");e.selectedValuePath||(e.selectedValuePath="value");e.commandPath||(e.commandPath="cmd");e.commandParameterPath||(e.commandParameterPath="cmdParam");this.contentRoot=this.component.$el.firstElementChild;this.component.$el.style.display="none";return this}added(e){}}WjMenuItemBehavior.tag="wj-menu-item";WjMenuItemBehavior.parentProp="itemsSource";WjMenuItemBehavior.siblingId="menuItemDir";WjMenuItemBehavior.props=["wjProperty","value","cmd","cmdParam"];WjMenuItemBehavior.events=["initialized"];WjMenuItemBehavior.render=function(e){if(VueApi.isV3Plus){const e=VueApi.h,t=this.$slots.default;return e("div",{},[e("div",{},t&&t())])}return e("div",[e("div",[this.$slots.default])])};export var WjMenuItem=WjMenuItemBehavior.register();function registerV3WjMenuItem(e){e.component(WjMenuItemBehavior.tag,WjMenuItem)}class WjMenuSeparatorBehavior extends WjComponentBehavior{_createControl(){this.contentRoot=this.component.$el.firstElementChild;this.component.$el.style.display="none";return this}added(e){wjcCore.addClass(e,wjcCore.ControlStateClsNames.disabled);wjcCore.setAttribute(e,"role","separator",!1)}}WjMenuSeparatorBehavior.tag="wj-menu-separator";WjMenuSeparatorBehavior.parentProp="itemsSource";WjMenuSeparatorBehavior.siblingId="menuItemDir";WjMenuSeparatorBehavior.props=["wjProperty"];WjMenuSeparatorBehavior.events=["initialized"];WjMenuSeparatorBehavior.render=function(e){const t={width:"100%",height:"1px","background-color":"lightgray"};if(VueApi.isV3Plus){const e=VueApi.h;return e("div",{},[e("div",{style:t})])}return e("div",[e("div",{style:t})])};export var WjMenuSeparator=WjMenuSeparatorBehavior.register();function registerV3WjMenuSeparator(e){e.component(WjMenuSeparatorBehavior.tag,WjMenuSeparator)}const WjItemTemplateDefinition={render:function(e){return VueApi.isV3Plus?VueApi.h("div"):e("div")},mounted:function(){const e=this.$parent;if(e){let t=e[WjComponentBehavior._behProp];t._mountedCB(()=>{const e=t.control;this.ownerControl=e instanceof wjcInput.ListBox?e:e.listBox instanceof wjcInput.ListBox?e.listBox:void 0;this.itemComponents=[];const o=VueApi.isV3Plus?this.$slots.default:this.$scopedSlots.default,i=this.ownerControl;if(i&&o){this.formatItemHandler=(e,t)=>{const n=t.index;if(!this.itemComponents[n])if(VueApi.isV3Plus){const e=VueApi.h,a={parent:this.component,render:()=>e("div",{},o&&o({itemIndex:n,item:t.data,control:i}))},r=e(a);this.itemComponents[n]=t.item;t.item.textContent="";VueApi.render(r,t.item)}else{const e=ItemTemplateComponentFactory(o,{itemIndex:n,item:t.data,control:i},this).$mount();this.itemComponents[n]=e;t.item.textContent="";t.item.appendChild(e.$el)}};i.formatItem.addHandler(this.formatItemHandler,this);i.loadingItems.addHandler(e=>{this._destroyItemComponents()})}})}},methods:{_destroyItemComponents(){(this.itemComponents||[]).forEach(e=>{VueApi.isV3Plus?VueApi.render(null,e):e.$destroy()});this.itemComponents=[]}}};WjItemTemplateDefinition[VueApi.isV3Plus?"unmounted":"destroyed"]=function(){this.formatItemHandler&&this.ownerControl.formatItem.removeHandler(this.formatItemHandler,this);this._destroyItemComponents()};const ItemTemplateComponentFactory=(e,t,o)=>{const i=new ItemTemplateComponent({parent:o});i.itemTemplate=e;i.itemData=t;return i},ItemTemplateComponent=VueApi.extend({render:function(e){return e("div",{},this.itemTemplate&&this.itemTemplate(this.itemData))}}),WjItemTemplateTag="wj-item-template";export var WjItemTemplate=VueApi.isV3Plus?WjItemTemplateDefinition:VueApi.component(WjItemTemplateTag,WjItemTemplateDefinition);function registerV3WjItemTemplate(e){e.component(WjItemTemplateTag,WjItemTemplate)}class WjPopupBehavior extends WjComponentBehavior{}WjPopupBehavior.tag="wj-popup";WjPopupBehavior.props=["isDisabled","tabOrder","behavioralFlags","owner","showTrigger","hideTrigger","fadeIn","fadeOut","isDraggable","isResizable","dialogResultEnter","dialogResultSubmit","modal","removeOnHide"];WjPopupBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","showing","shown","hiding","hidden","resizing","sizeChanging","sizeChanged","resized","dragging","positionChanging","positionChanged","dragged"];WjPopupBehavior.classCtor=function(){return wjcInput.Popup};export var WjPopup=WjPopupBehavior.register();function registerV3WjPopup(e){e.component(WjPopupBehavior.tag,WjPopup)}class _CtxMenuUtils{constructor(){this.key="__wjCtxMenu"}get definition(){return VueApi.isV3Plus?{mounted:this._bind.bind(this),updated:this._update.bind(this),unmounted:this._unbind.bind(this)}:{bind:this._bind.bind(this),update:this._update.bind(this),unbind:this._unbind.bind(this)}}_bind(e,t,o){const listener=i=>{if(wjcCore.closest(i.target,"[disabled]"))return;const n=this._getMenuControl(t,o);if(n&&n.dropDown){i.preventDefault();i.stopPropagation();n.owner=e;n.show(i)}};e.addEventListener("contextmenu",listener);e[this.key]={binding:t,listener:listener}}_unbind(e){const t=e[this.key]&&e[this.key].listener;t&&e.removeEventListener("contextmenu",t);e[this.key]=null}_update(e,t,o){const i=e[this.key]&&e[this.key].binding;if(!i||i.value!==t.value){this._unbind(e);this._bind(e,t,o)}}_getMenuControl(e,t){let o=null,i=null,n=e.value;if(null==n&&0===e.expression.indexOf("$refs.")){n=new wjcCore.Binding(e.expression).getValue(t.context)}wjcCore.isString(n)?i=document.getElementById(n):n instanceof HTMLElement&&(i=n);o=i?wjcCore.Control.getControl(i):n&&n.control||n;return wjcCore.tryCast(o,wjcInput.Menu)}}const wjContextMenuDefinition=(new _CtxMenuUtils).definition,WjContextMenuTag="wjContextMenu";export var WjContextMenu=VueApi.isV3Plus?wjContextMenuDefinition:VueApi.directive(WjContextMenuTag,wjContextMenuDefinition);function registerV3WjContextMenu(e){e.directive(WjContextMenuTag,WjContextMenu)}class WjCollectionViewNavigatorBehavior extends WjComponentBehavior{}WjCollectionViewNavigatorBehavior.tag="wj-collection-view-navigator";WjCollectionViewNavigatorBehavior.props=["isDisabled","tabOrder","behavioralFlags","cv","byPage","headerFormat","repeatButtons"];WjCollectionViewNavigatorBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjCollectionViewNavigatorBehavior.classCtor=function(){return wjcInput.CollectionViewNavigator};export var WjCollectionViewNavigator=WjCollectionViewNavigatorBehavior.register();function registerV3WjCollectionViewNavigator(e){e.component(WjCollectionViewNavigatorBehavior.tag,WjCollectionViewNavigator)}export function registerInput(e){if(VueApi.isV3Plus){registerV3WjListBox(e);registerV3WjMultiSelectListBox(e);registerV3WjComboBox(e);registerV3WjAutoComplete(e);registerV3WjCalendar(e);registerV3WjColorPicker(e);registerV3WjInputMask(e);registerV3WjInputColor(e);registerV3WjMultiSelect(e);registerV3WjMultiAutoComplete(e);registerV3WjInputNumber(e);registerV3WjInputDate(e);registerV3WjInputTime(e);registerV3WjInputDateTime(e);registerV3WjInputDateRange(e);registerV3WjMenu(e);registerV3WjMenuItem(e);registerV3WjMenuSeparator(e);registerV3WjItemTemplate(e);registerV3WjPopup(e);registerV3WjContextMenu(e);registerV3WjCollectionViewNavigator(e)}}
|
14
|
+
import{VueApi,WjComponentBehavior}from"@mescius/wijmo.vue2.base";import*as wjcCore from"@mescius/wijmo";import*as wjcInput from"@mescius/wijmo.input";class WjListBoxBehavior extends WjComponentBehavior{}WjListBoxBehavior.tag="wj-list-box";WjListBoxBehavior.props=["isDisabled","tabOrder","isContentHtml","maxHeight","selectedValuePath","itemFormatter","displayMemberPath","checkedMemberPath","caseSensitiveSearch","itemsSource","virtualizationThreshold","showGroups","selectedIndex","selectedItem","selectedValue","checkedItems"];WjListBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","formatItem","itemsChanged","itemChecked"];WjListBoxBehavior.changeEvents={selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],checkedItemsChanged:["checkedItems"]};WjListBoxBehavior.classCtor=function(){return wjcInput.ListBox};WjListBoxBehavior.modelProp="selectedValue";export var WjListBox=WjListBoxBehavior.register();function registerV3WjListBox(e){e.component(WjListBoxBehavior.tag,WjListBox)}class WjMultiSelectListBoxBehavior extends WjComponentBehavior{}WjMultiSelectListBoxBehavior.tag="wj-multi-select-list-box";WjMultiSelectListBoxBehavior.props=["isDisabled","tabOrder","itemsSource","displayMemberPath","selectedIndex","isContentHtml","showGroups","checkOnFilter","showFilterInput","filterInputPlaceholder","showSelectAllCheckbox","selectAllLabel","delay","caseSensitiveSearch","checkedMemberPath","virtualizationThreshold","checkedItems"];WjMultiSelectListBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjMultiSelectListBoxBehavior.changeEvents={selectedIndexChanged:["selectedIndex"],checkedItemsChanged:["checkedItems"]};WjMultiSelectListBoxBehavior.classCtor=function(){return wjcInput.MultiSelectListBox};WjMultiSelectListBoxBehavior.modelProp="checkedItems";export var WjMultiSelectListBox=WjMultiSelectListBoxBehavior.register();function registerV3WjMultiSelectListBox(e){e.component(WjMultiSelectListBoxBehavior.tag,WjMultiSelectListBox)}class WjComboBoxBehavior extends WjComponentBehavior{}WjComboBoxBehavior.tag="wj-combo-box";WjComboBoxBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","itemsSource","text","selectedIndex","selectedItem","selectedValue"];WjComboBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjComboBoxBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"]};WjComboBoxBehavior.classCtor=function(){return wjcInput.ComboBox};WjComboBoxBehavior.modelProp="selectedValue";export var WjComboBox=WjComboBoxBehavior.register();function registerV3WjComboBox(e){e.component(WjComboBoxBehavior.tag,WjComboBox)}class WjAutoCompleteBehavior extends WjComponentBehavior{}WjAutoCompleteBehavior.tag="wj-auto-complete";WjAutoCompleteBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","delay","maxItems","minLength","cssMatch","itemsSourceFunction","searchMemberPath","beginsWithSearch","itemsSource","text","selectedIndex","selectedItem","selectedValue"];WjAutoCompleteBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjAutoCompleteBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"]};WjAutoCompleteBehavior.classCtor=function(){return wjcInput.AutoComplete};WjAutoCompleteBehavior.modelProp="selectedValue";export var WjAutoComplete=WjAutoCompleteBehavior.register();function registerV3WjAutoComplete(e){e.component(WjAutoCompleteBehavior.tag,WjAutoComplete)}class WjCalendarBehavior extends WjComponentBehavior{}WjCalendarBehavior.tag="wj-calendar";WjCalendarBehavior.props=["isDisabled","tabOrder","monthView","showHeader","itemFormatter","itemValidator","firstDayOfWeek","max","min","formatYearMonth","formatDayHeaders","formatDays","formatYear","formatMonths","selectionMode","isReadOnly","handleWheel","repeatButtons","showYearPicker","value","displayMonth","monthCount","showMonthPicker","weeksBefore","weeksAfter","rangeEnd","rangeMin","rangeMax"];WjCalendarBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","rangeChanged","formatItem"];WjCalendarBehavior.changeEvents={valueChanged:["value"],displayMonthChanged:["displayMonth"],rangeEndChanged:["rangeEnd"]};WjCalendarBehavior.classCtor=function(){return wjcInput.Calendar};WjCalendarBehavior.modelProp="value";export var WjCalendar=WjCalendarBehavior.register();function registerV3WjCalendar(e){e.component(WjCalendarBehavior.tag,WjCalendar)}class WjColorPickerBehavior extends WjComponentBehavior{}WjColorPickerBehavior.tag="wj-color-picker";WjColorPickerBehavior.props=["isDisabled","tabOrder","showAlphaChannel","showColorString","palette","value"];WjColorPickerBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjColorPickerBehavior.changeEvents={valueChanged:["value"]};WjColorPickerBehavior.classCtor=function(){return wjcInput.ColorPicker};WjColorPickerBehavior.modelProp="value";export var WjColorPicker=WjColorPickerBehavior.register();function registerV3WjColorPicker(e){e.component(WjColorPickerBehavior.tag,WjColorPicker)}class WjInputMaskBehavior extends WjComponentBehavior{}WjInputMaskBehavior.tag="wj-input-mask";WjInputMaskBehavior.props=["isDisabled","tabOrder","mask","overwriteMode","isRequired","isReadOnly","promptChar","placeholder","inputType","rawValue","value"];WjInputMaskBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjInputMaskBehavior.changeEvents={valueChanged:["rawValue","value"]};WjInputMaskBehavior.classCtor=function(){return wjcInput.InputMask};WjInputMaskBehavior.modelProp="value";export var WjInputMask=WjInputMaskBehavior.register();function registerV3WjInputMask(e){e.component(WjInputMaskBehavior.tag,WjInputMask)}class WjInputColorBehavior extends WjComponentBehavior{}WjInputColorBehavior.tag="wj-input-color";WjInputColorBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","showAlphaChannel","showColorString","value","text"];WjInputColorBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging"];WjInputColorBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"]};WjInputColorBehavior.classCtor=function(){return wjcInput.InputColor};WjInputColorBehavior.modelProp="value";export var WjInputColor=WjInputColorBehavior.register();function registerV3WjInputColor(e){e.component(WjInputColorBehavior.tag,WjInputColor)}class WjMultiSelectBehavior extends WjComponentBehavior{}WjMultiSelectBehavior.tag="wj-multi-select";WjMultiSelectBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","checkedMemberPath","maxHeaderItems","headerFormat","headerFormatter","showSelectAllCheckbox","selectAllLabel","showFilterInput","filterInputPlaceholder","checkOnFilter","delay","caseSensitiveSearch","itemsSource","checkedItems","text","selectedIndex","selectedItem","selectedValue"];WjMultiSelectBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMultiSelectBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],checkedItemsChanged:["checkedItems"]};WjMultiSelectBehavior.classCtor=function(){return wjcInput.MultiSelect};WjMultiSelectBehavior.modelProp="checkedItems";export var WjMultiSelect=WjMultiSelectBehavior.register();function registerV3WjMultiSelect(e){e.component(WjMultiSelectBehavior.tag,WjMultiSelect)}class WjMultiAutoCompleteBehavior extends WjComponentBehavior{}WjMultiAutoCompleteBehavior.tag="wj-multi-auto-complete";WjMultiAutoCompleteBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","delay","maxItems","minLength","cssMatch","itemsSourceFunction","searchMemberPath","beginsWithSearch","maxSelectedItems","selectedItems","itemsSource","selectedMemberPath","text","selectedIndex","selectedItem","selectedValue"];WjMultiAutoCompleteBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMultiAutoCompleteBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],selectedItemsChanged:["selectedItems"]};WjMultiAutoCompleteBehavior.classCtor=function(){return wjcInput.MultiAutoComplete};WjMultiAutoCompleteBehavior.modelProp="selectedItems";export var WjMultiAutoComplete=WjMultiAutoCompleteBehavior.register();function registerV3WjMultiAutoComplete(e){e.component(WjMultiAutoCompleteBehavior.tag,WjMultiAutoComplete)}class WjInputNumberBehavior extends WjComponentBehavior{}WjInputNumberBehavior.tag="wj-input-number";WjInputNumberBehavior.props=["isDisabled","tabOrder","showSpinner","repeatButtons","max","min","step","isRequired","placeholder","inputType","format","isReadOnly","handleWheel","value","text"];WjInputNumberBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjInputNumberBehavior.changeEvents={valueChanged:["value"],textChanged:["text"]};WjInputNumberBehavior.classCtor=function(){return wjcInput.InputNumber};WjInputNumberBehavior.modelProp="value";export var WjInputNumber=WjInputNumberBehavior.register();function registerV3WjInputNumber(e){e.component(WjInputNumberBehavior.tag,WjInputNumber)}class WjInputDateBehavior extends WjComponentBehavior{}WjInputDateBehavior.tag="wj-input-date";WjInputDateBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","text","value","rangeEnd","keepInvalidText","preserveCalendarNavigation"];WjInputDateBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateBehavior.classCtor=function(){return wjcInput.InputDate};WjInputDateBehavior.modelProp="value";export var WjInputDate=WjInputDateBehavior.register();function registerV3WjInputDate(e){e.component(WjInputDateBehavior.tag,WjInputDate)}class WjInputTimeBehavior extends WjComponentBehavior{}WjInputTimeBehavior.tag="wj-input-time";WjInputTimeBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","max","min","step","format","mask","inputType","itemsSource","text","selectedIndex","selectedItem","selectedValue","value"];WjInputTimeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjInputTimeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],valueChanged:["value"]};WjInputTimeBehavior.classCtor=function(){return wjcInput.InputTime};WjInputTimeBehavior.modelProp="value";export var WjInputTime=WjInputTimeBehavior.register();function registerV3WjInputTime(e){e.component(WjInputTimeBehavior.tag,WjInputTime)}class WjInputDateTimeBehavior extends WjComponentBehavior{}WjInputDateTimeBehavior.tag="wj-input-date-time";WjInputDateTimeBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","timeMax","timeMin","timeStep","timeFormat","text","value","rangeEnd","preserveCalendarNavigation"];WjInputDateTimeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateTimeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateTimeBehavior.classCtor=function(){return wjcInput.InputDateTime};WjInputDateTimeBehavior.modelProp="value";export var WjInputDateTime=WjInputDateTimeBehavior.register();function registerV3WjInputDateTime(e){e.component(WjInputDateTimeBehavior.tag,WjInputDateTime)}class WjInputDateRangeBehavior extends WjComponentBehavior{}WjInputDateRangeBehavior.tag="wj-input-date-range";WjInputDateRangeBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","text","value","rangeEnd","preserveCalendarNavigation"];WjInputDateRangeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateRangeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateRangeBehavior.classCtor=function(){return wjcInput.InputDateRange};WjInputDateRangeBehavior.modelProp="value";export var WjInputDateRange=WjInputDateRangeBehavior.register();function registerV3WjInputDateRange(e){e.component(WjInputDateRangeBehavior.tag,WjInputDateRange)}class WjMenuBehavior extends WjComponentBehavior{get value(){return this._value}set value(e){this._value=e;if(null!=e){this.control.selectedValue=e;this._updateHeader()}}_createControl(){const e=super._createControl();e.itemsSource=new wjcCore.ObservableArray;e.selectedIndex=0;e.listBox.formatItem.addHandler(this._fmtItem,this);e.invalidate();e.itemClicked.addHandler(e=>{this.value=this.control.selectedValue});return e}_updateControl(e,t){super._updateControl(e,t);if("header"===e){this._definedHeader=t;this._updateHeader()}"value"===e&&(this.value=t)}_updateHeader(){this.control.header=this._definedHeader||"";const e=this.control.selectedItem;if(null!=this.value&&e&&this.control.displayMemberPath){let t=null;if(e instanceof WjMenuItemBehavior){const o=e.contentRoot;t=o?o.innerHTML:e[this.control.displayMemberPath]}null!=t&&(this.control.header+=": <b>"+t+"</b>")}}_fmtItem(e,t){if(t.data instanceof WjMenuItemBehavior||t.data instanceof WjMenuSeparatorBehavior){t.item.textContent="";t.item.appendChild(t.data.contentRoot);t.data.added(t.item)}}}WjMenuBehavior.tag="wj-menu";WjMenuBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","header","commandParameterPath","commandPath","subItemsPath","openOnHover","closeOnLeave","isButton","itemsSource","text","selectedIndex","selectedItem","selectedValue","value","ariaLabel","autoSelectOnFocus"];WjMenuBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMenuBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],itemClicked:["value"]};WjMenuBehavior.classCtor=function(){return wjcInput.Menu};WjMenuBehavior.modelProp="selectedValue";export var WjMenu=WjMenuBehavior.register();function registerV3WjMenu(e){e.component(WjMenuBehavior.tag,WjMenu)}class WjMenuItemBehavior extends WjComponentBehavior{_createControl(){const e=this.parent.control;1==e.itemsSource.length&&e.selectedIndex<0&&(e.selectedIndex=0);e.displayMemberPath||(e.displayMemberPath="header");e.selectedValuePath||(e.selectedValuePath="value");e.commandPath||(e.commandPath="cmd");e.commandParameterPath||(e.commandParameterPath="cmdParam");this.contentRoot=this.component.$el.firstElementChild;this.component.$el.style.display="none";return this}added(e){}}WjMenuItemBehavior.tag="wj-menu-item";WjMenuItemBehavior.parentProp="itemsSource";WjMenuItemBehavior.siblingId="menuItemDir";WjMenuItemBehavior.props=["wjProperty","value","cmd","cmdParam"];WjMenuItemBehavior.events=["initialized"];WjMenuItemBehavior.render=function(e){if(VueApi.isV3Plus){const e=VueApi.h,t=this.$slots.default;return e("div",{},[e("div",{},t&&t())])}return e("div",[e("div",[this.$slots.default])])};export var WjMenuItem=WjMenuItemBehavior.register();function registerV3WjMenuItem(e){e.component(WjMenuItemBehavior.tag,WjMenuItem)}class WjMenuSeparatorBehavior extends WjComponentBehavior{_createControl(){this.contentRoot=this.component.$el.firstElementChild;this.component.$el.style.display="none";return this}added(e){wjcCore.addClass(e,wjcCore.ControlStateClsNames.disabled);wjcCore.setAttribute(e,"role","separator",!1)}}WjMenuSeparatorBehavior.tag="wj-menu-separator";WjMenuSeparatorBehavior.parentProp="itemsSource";WjMenuSeparatorBehavior.siblingId="menuItemDir";WjMenuSeparatorBehavior.props=["wjProperty"];WjMenuSeparatorBehavior.events=["initialized"];WjMenuSeparatorBehavior.render=function(e){const t={width:"100%",height:"1px","background-color":"lightgray"};if(VueApi.isV3Plus){const e=VueApi.h;return e("div",{},[e("div",{style:t})])}return e("div",[e("div",{style:t})])};export var WjMenuSeparator=WjMenuSeparatorBehavior.register();function registerV3WjMenuSeparator(e){e.component(WjMenuSeparatorBehavior.tag,WjMenuSeparator)}const WjItemTemplateDefinition={render:function(e){return VueApi.isV3Plus?VueApi.h("div"):e("div")},mounted:function(){const e=this.$parent;if(e){let t=e[WjComponentBehavior._behProp];t._mountedCB(()=>{const e=t.control;this.ownerControl=e instanceof wjcInput.ListBox?e:e.listBox instanceof wjcInput.ListBox?e.listBox:void 0;this.itemComponents=[];const o=VueApi.isV3Plus?this.$slots.default:this.$scopedSlots.default,i=this.ownerControl;if(i&&o){this.formatItemHandler=(e,t)=>{const n=t.index;if(!this.itemComponents[n])if(VueApi.isV3Plus){const e=VueApi.h,a={parent:this.component,render:()=>e("div",{},o&&o({itemIndex:n,item:t.data,control:i}))},r=e(a);this.itemComponents[n]=t.item;t.item.textContent="";VueApi.render(r,t.item)}else{const e=ItemTemplateComponentFactory(o,{itemIndex:n,item:t.data,control:i},this).$mount();this.itemComponents[n]=e;t.item.textContent="";t.item.appendChild(e.$el)}};i.formatItem.addHandler(this.formatItemHandler,this);i.loadingItems.addHandler(e=>{this._destroyItemComponents()})}})}},methods:{_destroyItemComponents(){(this.itemComponents||[]).forEach(e=>{VueApi.isV3Plus?VueApi.render(null,e):e.$destroy()});this.itemComponents=[]}}};WjItemTemplateDefinition[VueApi.isV3Plus?"unmounted":"destroyed"]=function(){this.formatItemHandler&&this.ownerControl.formatItem.removeHandler(this.formatItemHandler,this);this._destroyItemComponents()};const ItemTemplateComponentFactory=(e,t,o)=>{const i=new ItemTemplateComponent({parent:o});i.itemTemplate=e;i.itemData=t;return i},ItemTemplateComponent=VueApi.extend({render:function(e){return e("div",{},this.itemTemplate&&this.itemTemplate(this.itemData))}}),WjItemTemplateTag="wj-item-template";export var WjItemTemplate=VueApi.isV3Plus?WjItemTemplateDefinition:VueApi.component(WjItemTemplateTag,WjItemTemplateDefinition);function registerV3WjItemTemplate(e){e.component(WjItemTemplateTag,WjItemTemplate)}class WjPopupBehavior extends WjComponentBehavior{}WjPopupBehavior.tag="wj-popup";WjPopupBehavior.props=["isDisabled","tabOrder","owner","showTrigger","hideTrigger","fadeIn","fadeOut","isDraggable","isResizable","dialogResultEnter","dialogResultSubmit","modal","removeOnHide"];WjPopupBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","showing","shown","hiding","hidden","resizing","sizeChanging","sizeChanged","resized","dragging","positionChanging","positionChanged","dragged"];WjPopupBehavior.classCtor=function(){return wjcInput.Popup};export var WjPopup=WjPopupBehavior.register();function registerV3WjPopup(e){e.component(WjPopupBehavior.tag,WjPopup)}class _CtxMenuUtils{constructor(){this.key="__wjCtxMenu"}get definition(){return VueApi.isV3Plus?{mounted:this._bind.bind(this),updated:this._update.bind(this),unmounted:this._unbind.bind(this)}:{bind:this._bind.bind(this),update:this._update.bind(this),unbind:this._unbind.bind(this)}}_bind(e,t,o){const listener=i=>{if(wjcCore.closest(i.target,"[disabled]"))return;const n=this._getMenuControl(t,o);if(n&&n.dropDown){i.preventDefault();i.stopPropagation();n.owner=e;n.show(i)}};e.addEventListener("contextmenu",listener);e[this.key]={binding:t,listener:listener}}_unbind(e){const t=e[this.key]&&e[this.key].listener;t&&e.removeEventListener("contextmenu",t);e[this.key]=null}_update(e,t,o){const i=e[this.key]&&e[this.key].binding;if(!i||i.value!==t.value){this._unbind(e);this._bind(e,t,o)}}_getMenuControl(e,t){let o=null,i=null,n=e.value;if(null==n&&0===e.expression.indexOf("$refs.")){n=new wjcCore.Binding(e.expression).getValue(t.context)}wjcCore.isString(n)?i=document.getElementById(n):n instanceof HTMLElement&&(i=n);o=i?wjcCore.Control.getControl(i):n&&n.control||n;return wjcCore.tryCast(o,wjcInput.Menu)}}const wjContextMenuDefinition=(new _CtxMenuUtils).definition,WjContextMenuTag="wjContextMenu";export var WjContextMenu=VueApi.isV3Plus?wjContextMenuDefinition:VueApi.directive(WjContextMenuTag,wjContextMenuDefinition);function registerV3WjContextMenu(e){e.directive(WjContextMenuTag,WjContextMenu)}class WjCollectionViewNavigatorBehavior extends WjComponentBehavior{}WjCollectionViewNavigatorBehavior.tag="wj-collection-view-navigator";WjCollectionViewNavigatorBehavior.props=["isDisabled","tabOrder","cv","byPage","headerFormat","repeatButtons"];WjCollectionViewNavigatorBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjCollectionViewNavigatorBehavior.classCtor=function(){return wjcInput.CollectionViewNavigator};export var WjCollectionViewNavigator=WjCollectionViewNavigatorBehavior.register();function registerV3WjCollectionViewNavigator(e){e.component(WjCollectionViewNavigatorBehavior.tag,WjCollectionViewNavigator)}export function registerInput(e){if(VueApi.isV3Plus){registerV3WjListBox(e);registerV3WjMultiSelectListBox(e);registerV3WjComboBox(e);registerV3WjAutoComplete(e);registerV3WjCalendar(e);registerV3WjColorPicker(e);registerV3WjInputMask(e);registerV3WjInputColor(e);registerV3WjMultiSelect(e);registerV3WjMultiAutoComplete(e);registerV3WjInputNumber(e);registerV3WjInputDate(e);registerV3WjInputTime(e);registerV3WjInputDateTime(e);registerV3WjInputDateRange(e);registerV3WjMenu(e);registerV3WjMenuItem(e);registerV3WjMenuSeparator(e);registerV3WjItemTemplate(e);registerV3WjPopup(e);registerV3WjContextMenu(e);registerV3WjCollectionViewNavigator(e)}}
|
package/es5-esm.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
*
|
3
|
-
* Wijmo Library 5.20242.23-nightly.
|
3
|
+
* Wijmo Library 5.20242.23-nightly.d20241119.t030240
|
4
4
|
* https://developer.mescius.com/wijmo
|
5
5
|
*
|
6
6
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
@@ -11,4 +11,4 @@
|
|
11
11
|
*
|
12
12
|
*/
|
13
13
|
|
14
|
-
var __extends=this&&this.__extends||function(){var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};return function(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}}();import{VueApi,WjComponentBehavior}from"@mescius/wijmo.vue2.base";import*as wjcCore from"@mescius/wijmo";import*as wjcInput from"@mescius/wijmo.input";var WjListBoxBehavior=function(e){__extends(WjListBoxBehavior,e);function WjListBoxBehavior(){return null!==e&&e.apply(this,arguments)||this}WjListBoxBehavior.tag="wj-list-box";WjListBoxBehavior.props=["isDisabled","tabOrder","behavioralFlags","isContentHtml","maxHeight","selectedValuePath","itemFormatter","displayMemberPath","checkedMemberPath","caseSensitiveSearch","itemsSource","virtualizationThreshold","showGroups","selectedIndex","selectedItem","selectedValue","checkedItems"];WjListBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","formatItem","itemsChanged","itemChecked"];WjListBoxBehavior.changeEvents={selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],checkedItemsChanged:["checkedItems"]};WjListBoxBehavior.classCtor=function(){return wjcInput.ListBox};WjListBoxBehavior.modelProp="selectedValue";return WjListBoxBehavior}(WjComponentBehavior);export var WjListBox=WjListBoxBehavior.register();function registerV3WjListBox(e){e.component(WjListBoxBehavior.tag,WjListBox)}var WjMultiSelectListBoxBehavior=function(e){__extends(WjMultiSelectListBoxBehavior,e);function WjMultiSelectListBoxBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMultiSelectListBoxBehavior.tag="wj-multi-select-list-box";WjMultiSelectListBoxBehavior.props=["isDisabled","tabOrder","behavioralFlags","itemsSource","displayMemberPath","selectedIndex","isContentHtml","showGroups","checkOnFilter","showFilterInput","filterInputPlaceholder","showSelectAllCheckbox","selectAllLabel","delay","caseSensitiveSearch","checkedMemberPath","virtualizationThreshold","checkedItems"];WjMultiSelectListBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjMultiSelectListBoxBehavior.changeEvents={selectedIndexChanged:["selectedIndex"],checkedItemsChanged:["checkedItems"]};WjMultiSelectListBoxBehavior.classCtor=function(){return wjcInput.MultiSelectListBox};WjMultiSelectListBoxBehavior.modelProp="checkedItems";return WjMultiSelectListBoxBehavior}(WjComponentBehavior);export var WjMultiSelectListBox=WjMultiSelectListBoxBehavior.register();function registerV3WjMultiSelectListBox(e){e.component(WjMultiSelectListBoxBehavior.tag,WjMultiSelectListBox)}var WjComboBoxBehavior=function(e){__extends(WjComboBoxBehavior,e);function WjComboBoxBehavior(){return null!==e&&e.apply(this,arguments)||this}WjComboBoxBehavior.tag="wj-combo-box";WjComboBoxBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","itemsSource","text","selectedIndex","selectedItem","selectedValue"];WjComboBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjComboBoxBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"]};WjComboBoxBehavior.classCtor=function(){return wjcInput.ComboBox};WjComboBoxBehavior.modelProp="selectedValue";return WjComboBoxBehavior}(WjComponentBehavior);export var WjComboBox=WjComboBoxBehavior.register();function registerV3WjComboBox(e){e.component(WjComboBoxBehavior.tag,WjComboBox)}var WjAutoCompleteBehavior=function(e){__extends(WjAutoCompleteBehavior,e);function WjAutoCompleteBehavior(){return null!==e&&e.apply(this,arguments)||this}WjAutoCompleteBehavior.tag="wj-auto-complete";WjAutoCompleteBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","delay","maxItems","minLength","cssMatch","itemsSourceFunction","searchMemberPath","beginsWithSearch","itemsSource","text","selectedIndex","selectedItem","selectedValue"];WjAutoCompleteBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjAutoCompleteBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"]};WjAutoCompleteBehavior.classCtor=function(){return wjcInput.AutoComplete};WjAutoCompleteBehavior.modelProp="selectedValue";return WjAutoCompleteBehavior}(WjComponentBehavior);export var WjAutoComplete=WjAutoCompleteBehavior.register();function registerV3WjAutoComplete(e){e.component(WjAutoCompleteBehavior.tag,WjAutoComplete)}var WjCalendarBehavior=function(e){__extends(WjCalendarBehavior,e);function WjCalendarBehavior(){return null!==e&&e.apply(this,arguments)||this}WjCalendarBehavior.tag="wj-calendar";WjCalendarBehavior.props=["isDisabled","tabOrder","behavioralFlags","monthView","showHeader","itemFormatter","itemValidator","firstDayOfWeek","max","min","formatYearMonth","formatDayHeaders","formatDays","formatYear","formatMonths","selectionMode","isReadOnly","handleWheel","repeatButtons","showYearPicker","value","displayMonth","monthCount","showMonthPicker","weeksBefore","weeksAfter","rangeEnd","rangeMin","rangeMax"];WjCalendarBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","rangeChanged","formatItem"];WjCalendarBehavior.changeEvents={valueChanged:["value"],displayMonthChanged:["displayMonth"],rangeEndChanged:["rangeEnd"]};WjCalendarBehavior.classCtor=function(){return wjcInput.Calendar};WjCalendarBehavior.modelProp="value";return WjCalendarBehavior}(WjComponentBehavior);export var WjCalendar=WjCalendarBehavior.register();function registerV3WjCalendar(e){e.component(WjCalendarBehavior.tag,WjCalendar)}var WjColorPickerBehavior=function(e){__extends(WjColorPickerBehavior,e);function WjColorPickerBehavior(){return null!==e&&e.apply(this,arguments)||this}WjColorPickerBehavior.tag="wj-color-picker";WjColorPickerBehavior.props=["isDisabled","tabOrder","behavioralFlags","showAlphaChannel","showColorString","palette","value"];WjColorPickerBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjColorPickerBehavior.changeEvents={valueChanged:["value"]};WjColorPickerBehavior.classCtor=function(){return wjcInput.ColorPicker};WjColorPickerBehavior.modelProp="value";return WjColorPickerBehavior}(WjComponentBehavior);export var WjColorPicker=WjColorPickerBehavior.register();function registerV3WjColorPicker(e){e.component(WjColorPickerBehavior.tag,WjColorPicker)}var WjInputMaskBehavior=function(e){__extends(WjInputMaskBehavior,e);function WjInputMaskBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputMaskBehavior.tag="wj-input-mask";WjInputMaskBehavior.props=["isDisabled","tabOrder","behavioralFlags","mask","overwriteMode","isRequired","isReadOnly","promptChar","placeholder","inputType","rawValue","value"];WjInputMaskBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjInputMaskBehavior.changeEvents={valueChanged:["rawValue","value"]};WjInputMaskBehavior.classCtor=function(){return wjcInput.InputMask};WjInputMaskBehavior.modelProp="value";return WjInputMaskBehavior}(WjComponentBehavior);export var WjInputMask=WjInputMaskBehavior.register();function registerV3WjInputMask(e){e.component(WjInputMaskBehavior.tag,WjInputMask)}var WjInputColorBehavior=function(e){__extends(WjInputColorBehavior,e);function WjInputColorBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputColorBehavior.tag="wj-input-color";WjInputColorBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","showAlphaChannel","showColorString","value","text"];WjInputColorBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging"];WjInputColorBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"]};WjInputColorBehavior.classCtor=function(){return wjcInput.InputColor};WjInputColorBehavior.modelProp="value";return WjInputColorBehavior}(WjComponentBehavior);export var WjInputColor=WjInputColorBehavior.register();function registerV3WjInputColor(e){e.component(WjInputColorBehavior.tag,WjInputColor)}var WjMultiSelectBehavior=function(e){__extends(WjMultiSelectBehavior,e);function WjMultiSelectBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMultiSelectBehavior.tag="wj-multi-select";WjMultiSelectBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","checkedMemberPath","maxHeaderItems","headerFormat","headerFormatter","showSelectAllCheckbox","selectAllLabel","showFilterInput","filterInputPlaceholder","checkOnFilter","delay","caseSensitiveSearch","itemsSource","checkedItems","text","selectedIndex","selectedItem","selectedValue"];WjMultiSelectBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMultiSelectBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],checkedItemsChanged:["checkedItems"]};WjMultiSelectBehavior.classCtor=function(){return wjcInput.MultiSelect};WjMultiSelectBehavior.modelProp="checkedItems";return WjMultiSelectBehavior}(WjComponentBehavior);export var WjMultiSelect=WjMultiSelectBehavior.register();function registerV3WjMultiSelect(e){e.component(WjMultiSelectBehavior.tag,WjMultiSelect)}var WjMultiAutoCompleteBehavior=function(e){__extends(WjMultiAutoCompleteBehavior,e);function WjMultiAutoCompleteBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMultiAutoCompleteBehavior.tag="wj-multi-auto-complete";WjMultiAutoCompleteBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","delay","maxItems","minLength","cssMatch","itemsSourceFunction","searchMemberPath","beginsWithSearch","maxSelectedItems","selectedItems","itemsSource","selectedMemberPath","text","selectedIndex","selectedItem","selectedValue"];WjMultiAutoCompleteBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMultiAutoCompleteBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],selectedItemsChanged:["selectedItems"]};WjMultiAutoCompleteBehavior.classCtor=function(){return wjcInput.MultiAutoComplete};WjMultiAutoCompleteBehavior.modelProp="selectedItems";return WjMultiAutoCompleteBehavior}(WjComponentBehavior);export var WjMultiAutoComplete=WjMultiAutoCompleteBehavior.register();function registerV3WjMultiAutoComplete(e){e.component(WjMultiAutoCompleteBehavior.tag,WjMultiAutoComplete)}var WjInputNumberBehavior=function(e){__extends(WjInputNumberBehavior,e);function WjInputNumberBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputNumberBehavior.tag="wj-input-number";WjInputNumberBehavior.props=["isDisabled","tabOrder","behavioralFlags","showSpinner","repeatButtons","max","min","step","isRequired","placeholder","inputType","format","isReadOnly","handleWheel","value","text"];WjInputNumberBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjInputNumberBehavior.changeEvents={valueChanged:["value"],textChanged:["text"]};WjInputNumberBehavior.classCtor=function(){return wjcInput.InputNumber};WjInputNumberBehavior.modelProp="value";return WjInputNumberBehavior}(WjComponentBehavior);export var WjInputNumber=WjInputNumberBehavior.register();function registerV3WjInputNumber(e){e.component(WjInputNumberBehavior.tag,WjInputNumber)}var WjInputDateBehavior=function(e){__extends(WjInputDateBehavior,e);function WjInputDateBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputDateBehavior.tag="wj-input-date";WjInputDateBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","text","value","rangeEnd","keepInvalidText","preserveCalendarNavigation"];WjInputDateBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateBehavior.classCtor=function(){return wjcInput.InputDate};WjInputDateBehavior.modelProp="value";return WjInputDateBehavior}(WjComponentBehavior);export var WjInputDate=WjInputDateBehavior.register();function registerV3WjInputDate(e){e.component(WjInputDateBehavior.tag,WjInputDate)}var WjInputTimeBehavior=function(e){__extends(WjInputTimeBehavior,e);function WjInputTimeBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputTimeBehavior.tag="wj-input-time";WjInputTimeBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","max","min","step","format","mask","inputType","itemsSource","text","selectedIndex","selectedItem","selectedValue","value"];WjInputTimeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjInputTimeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],valueChanged:["value"]};WjInputTimeBehavior.classCtor=function(){return wjcInput.InputTime};WjInputTimeBehavior.modelProp="value";return WjInputTimeBehavior}(WjComponentBehavior);export var WjInputTime=WjInputTimeBehavior.register();function registerV3WjInputTime(e){e.component(WjInputTimeBehavior.tag,WjInputTime)}var WjInputDateTimeBehavior=function(e){__extends(WjInputDateTimeBehavior,e);function WjInputDateTimeBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputDateTimeBehavior.tag="wj-input-date-time";WjInputDateTimeBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","timeMax","timeMin","timeStep","timeFormat","text","value","rangeEnd","preserveCalendarNavigation"];WjInputDateTimeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateTimeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateTimeBehavior.classCtor=function(){return wjcInput.InputDateTime};WjInputDateTimeBehavior.modelProp="value";return WjInputDateTimeBehavior}(WjComponentBehavior);export var WjInputDateTime=WjInputDateTimeBehavior.register();function registerV3WjInputDateTime(e){e.component(WjInputDateTimeBehavior.tag,WjInputDateTime)}var WjInputDateRangeBehavior=function(e){__extends(WjInputDateRangeBehavior,e);function WjInputDateRangeBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputDateRangeBehavior.tag="wj-input-date-range";WjInputDateRangeBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","text","value","rangeEnd","preserveCalendarNavigation"];WjInputDateRangeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateRangeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateRangeBehavior.classCtor=function(){return wjcInput.InputDateRange};WjInputDateRangeBehavior.modelProp="value";return WjInputDateRangeBehavior}(WjComponentBehavior);export var WjInputDateRange=WjInputDateRangeBehavior.register();function registerV3WjInputDateRange(e){e.component(WjInputDateRangeBehavior.tag,WjInputDateRange)}var WjMenuBehavior=function(e){__extends(WjMenuBehavior,e);function WjMenuBehavior(){return null!==e&&e.apply(this,arguments)||this}Object.defineProperty(WjMenuBehavior.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e;if(null!=e){this.control.selectedValue=e;this._updateHeader()}},enumerable:!0,configurable:!0});WjMenuBehavior.prototype._createControl=function(){var t=this,o=e.prototype._createControl.call(this);o.itemsSource=new wjcCore.ObservableArray;o.selectedIndex=0;o.listBox.formatItem.addHandler(this._fmtItem,this);o.invalidate();o.itemClicked.addHandler((function(e){t.value=t.control.selectedValue}));return o};WjMenuBehavior.prototype._updateControl=function(t,o){e.prototype._updateControl.call(this,t,o);if("header"===t){this._definedHeader=o;this._updateHeader()}"value"===t&&(this.value=o)};WjMenuBehavior.prototype._updateHeader=function(){this.control.header=this._definedHeader||"";var e=this.control.selectedItem;if(null!=this.value&&e&&this.control.displayMemberPath){var t=null;if(e instanceof WjMenuItemBehavior){var o=e.contentRoot;t=o?o.innerHTML:e[this.control.displayMemberPath]}null!=t&&(this.control.header+=": <b>"+t+"</b>")}};WjMenuBehavior.prototype._fmtItem=function(e,t){if(t.data instanceof WjMenuItemBehavior||t.data instanceof WjMenuSeparatorBehavior){t.item.textContent="";t.item.appendChild(t.data.contentRoot);t.data.added(t.item)}};WjMenuBehavior.tag="wj-menu";WjMenuBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","header","commandParameterPath","commandPath","subItemsPath","openOnHover","closeOnLeave","isButton","itemsSource","text","selectedIndex","selectedItem","selectedValue","value","ariaLabel","autoSelectOnFocus"];WjMenuBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMenuBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],itemClicked:["value"]};WjMenuBehavior.classCtor=function(){return wjcInput.Menu};WjMenuBehavior.modelProp="selectedValue";return WjMenuBehavior}(WjComponentBehavior);export var WjMenu=WjMenuBehavior.register();function registerV3WjMenu(e){e.component(WjMenuBehavior.tag,WjMenu)}var WjMenuItemBehavior=function(e){__extends(WjMenuItemBehavior,e);function WjMenuItemBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMenuItemBehavior.prototype._createControl=function(){var e=this.parent.control;1==e.itemsSource.length&&e.selectedIndex<0&&(e.selectedIndex=0);e.displayMemberPath||(e.displayMemberPath="header");e.selectedValuePath||(e.selectedValuePath="value");e.commandPath||(e.commandPath="cmd");e.commandParameterPath||(e.commandParameterPath="cmdParam");this.contentRoot=this.component.$el.firstElementChild;this.component.$el.style.display="none";return this};WjMenuItemBehavior.prototype.added=function(e){};WjMenuItemBehavior.tag="wj-menu-item";WjMenuItemBehavior.parentProp="itemsSource";WjMenuItemBehavior.siblingId="menuItemDir";WjMenuItemBehavior.props=["wjProperty","value","cmd","cmdParam"];WjMenuItemBehavior.events=["initialized"];WjMenuItemBehavior.render=function(e){if(VueApi.isV3Plus){var t=VueApi.h,o=this.$slots.default;return t("div",{},[t("div",{},o&&o())])}return e("div",[e("div",[this.$slots.default])])};return WjMenuItemBehavior}(WjComponentBehavior);export var WjMenuItem=WjMenuItemBehavior.register();function registerV3WjMenuItem(e){e.component(WjMenuItemBehavior.tag,WjMenuItem)}var WjMenuSeparatorBehavior=function(e){__extends(WjMenuSeparatorBehavior,e);function WjMenuSeparatorBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMenuSeparatorBehavior.prototype._createControl=function(){this.contentRoot=this.component.$el.firstElementChild;this.component.$el.style.display="none";return this};WjMenuSeparatorBehavior.prototype.added=function(e){wjcCore.addClass(e,wjcCore.ControlStateClsNames.disabled);wjcCore.setAttribute(e,"role","separator",!1)};WjMenuSeparatorBehavior.tag="wj-menu-separator";WjMenuSeparatorBehavior.parentProp="itemsSource";WjMenuSeparatorBehavior.siblingId="menuItemDir";WjMenuSeparatorBehavior.props=["wjProperty"];WjMenuSeparatorBehavior.events=["initialized"];WjMenuSeparatorBehavior.render=function(e){var t={width:"100%",height:"1px","background-color":"lightgray"};if(VueApi.isV3Plus){var o=VueApi.h;return o("div",{},[o("div",{style:t})])}return e("div",[e("div",{style:t})])};return WjMenuSeparatorBehavior}(WjComponentBehavior);export var WjMenuSeparator=WjMenuSeparatorBehavior.register();function registerV3WjMenuSeparator(e){e.component(WjMenuSeparatorBehavior.tag,WjMenuSeparator)}var WjItemTemplateDefinition={render:function(e){return VueApi.isV3Plus?VueApi.h("div"):e("div")},mounted:function(){var e=this,t=this.$parent;if(t){var o=t[WjComponentBehavior._behProp];o._mountedCB((function(){var t=o.control;e.ownerControl=t instanceof wjcInput.ListBox?t:t.listBox instanceof wjcInput.ListBox?t.listBox:void 0;e.itemComponents=[];var n=VueApi.isV3Plus?e.$slots.default:e.$scopedSlots.default,i=e.ownerControl;if(i&&n){e.formatItemHandler=function(t,o){var r=o.index;if(!e.itemComponents[r])if(VueApi.isV3Plus){var a=VueApi.h,s={parent:e.component,render:function(){return a("div",{},n&&n({itemIndex:r,item:o.data,control:i}))}},l=a(s);e.itemComponents[r]=o.item;o.item.textContent="";VueApi.render(l,o.item)}else{s=ItemTemplateComponentFactory(n,{itemIndex:r,item:o.data,control:i},e).$mount();e.itemComponents[r]=s;o.item.textContent="";o.item.appendChild(s.$el)}};i.formatItem.addHandler(e.formatItemHandler,e);i.loadingItems.addHandler((function(t){e._destroyItemComponents()}))}}))}},methods:{_destroyItemComponents:function(){(this.itemComponents||[]).forEach((function(e){VueApi.isV3Plus?VueApi.render(null,e):e.$destroy()}));this.itemComponents=[]}}};WjItemTemplateDefinition[VueApi.isV3Plus?"unmounted":"destroyed"]=function(){this.formatItemHandler&&this.ownerControl.formatItem.removeHandler(this.formatItemHandler,this);this._destroyItemComponents()};var ItemTemplateComponentFactory=function(e,t,o){var n=new ItemTemplateComponent({parent:o});n.itemTemplate=e;n.itemData=t;return n},ItemTemplateComponent=VueApi.extend({render:function(e){return e("div",{},this.itemTemplate&&this.itemTemplate(this.itemData))}}),WjItemTemplateTag="wj-item-template";export var WjItemTemplate=VueApi.isV3Plus?WjItemTemplateDefinition:VueApi.component(WjItemTemplateTag,WjItemTemplateDefinition);function registerV3WjItemTemplate(e){e.component(WjItemTemplateTag,WjItemTemplate)}var WjPopupBehavior=function(e){__extends(WjPopupBehavior,e);function WjPopupBehavior(){return null!==e&&e.apply(this,arguments)||this}WjPopupBehavior.tag="wj-popup";WjPopupBehavior.props=["isDisabled","tabOrder","behavioralFlags","owner","showTrigger","hideTrigger","fadeIn","fadeOut","isDraggable","isResizable","dialogResultEnter","dialogResultSubmit","modal","removeOnHide"];WjPopupBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","showing","shown","hiding","hidden","resizing","sizeChanging","sizeChanged","resized","dragging","positionChanging","positionChanged","dragged"];WjPopupBehavior.classCtor=function(){return wjcInput.Popup};return WjPopupBehavior}(WjComponentBehavior);export var WjPopup=WjPopupBehavior.register();function registerV3WjPopup(e){e.component(WjPopupBehavior.tag,WjPopup)}var _CtxMenuUtils=function(){function _CtxMenuUtils(){this.key="__wjCtxMenu"}Object.defineProperty(_CtxMenuUtils.prototype,"definition",{get:function(){return VueApi.isV3Plus?{mounted:this._bind.bind(this),updated:this._update.bind(this),unmounted:this._unbind.bind(this)}:{bind:this._bind.bind(this),update:this._update.bind(this),unbind:this._unbind.bind(this)}},enumerable:!0,configurable:!0});_CtxMenuUtils.prototype._bind=function(e,t,o){var n=this,listener=function(i){if(!wjcCore.closest(i.target,"[disabled]")){var r=n._getMenuControl(t,o);if(r&&r.dropDown){i.preventDefault();i.stopPropagation();r.owner=e;r.show(i)}}};e.addEventListener("contextmenu",listener);e[this.key]={binding:t,listener:listener}};_CtxMenuUtils.prototype._unbind=function(e){var t=e[this.key]&&e[this.key].listener;t&&e.removeEventListener("contextmenu",t);e[this.key]=null};_CtxMenuUtils.prototype._update=function(e,t,o){var n=e[this.key]&&e[this.key].binding;if(!n||n.value!==t.value){this._unbind(e);this._bind(e,t,o)}};_CtxMenuUtils.prototype._getMenuControl=function(e,t){var o=null,n=null,i=e.value;if(null==i&&0===e.expression.indexOf("$refs.")){i=new wjcCore.Binding(e.expression).getValue(t.context)}wjcCore.isString(i)?n=document.getElementById(i):i instanceof HTMLElement&&(n=i);o=n?wjcCore.Control.getControl(n):i&&i.control||i;return wjcCore.tryCast(o,wjcInput.Menu)};return _CtxMenuUtils}(),wjContextMenuDefinition=(new _CtxMenuUtils).definition,WjContextMenuTag="wjContextMenu";export var WjContextMenu=VueApi.isV3Plus?wjContextMenuDefinition:VueApi.directive(WjContextMenuTag,wjContextMenuDefinition);function registerV3WjContextMenu(e){e.directive(WjContextMenuTag,WjContextMenu)}var WjCollectionViewNavigatorBehavior=function(e){__extends(WjCollectionViewNavigatorBehavior,e);function WjCollectionViewNavigatorBehavior(){return null!==e&&e.apply(this,arguments)||this}WjCollectionViewNavigatorBehavior.tag="wj-collection-view-navigator";WjCollectionViewNavigatorBehavior.props=["isDisabled","tabOrder","behavioralFlags","cv","byPage","headerFormat","repeatButtons"];WjCollectionViewNavigatorBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjCollectionViewNavigatorBehavior.classCtor=function(){return wjcInput.CollectionViewNavigator};return WjCollectionViewNavigatorBehavior}(WjComponentBehavior);export var WjCollectionViewNavigator=WjCollectionViewNavigatorBehavior.register();function registerV3WjCollectionViewNavigator(e){e.component(WjCollectionViewNavigatorBehavior.tag,WjCollectionViewNavigator)}export function registerInput(e){if(VueApi.isV3Plus){registerV3WjListBox(e);registerV3WjMultiSelectListBox(e);registerV3WjComboBox(e);registerV3WjAutoComplete(e);registerV3WjCalendar(e);registerV3WjColorPicker(e);registerV3WjInputMask(e);registerV3WjInputColor(e);registerV3WjMultiSelect(e);registerV3WjMultiAutoComplete(e);registerV3WjInputNumber(e);registerV3WjInputDate(e);registerV3WjInputTime(e);registerV3WjInputDateTime(e);registerV3WjInputDateRange(e);registerV3WjMenu(e);registerV3WjMenuItem(e);registerV3WjMenuSeparator(e);registerV3WjItemTemplate(e);registerV3WjPopup(e);registerV3WjContextMenu(e);registerV3WjCollectionViewNavigator(e)}}
|
14
|
+
var __extends=this&&this.__extends||function(){var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};return function(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}}();import{VueApi,WjComponentBehavior}from"@mescius/wijmo.vue2.base";import*as wjcCore from"@mescius/wijmo";import*as wjcInput from"@mescius/wijmo.input";var WjListBoxBehavior=function(e){__extends(WjListBoxBehavior,e);function WjListBoxBehavior(){return null!==e&&e.apply(this,arguments)||this}WjListBoxBehavior.tag="wj-list-box";WjListBoxBehavior.props=["isDisabled","tabOrder","isContentHtml","maxHeight","selectedValuePath","itemFormatter","displayMemberPath","checkedMemberPath","caseSensitiveSearch","itemsSource","virtualizationThreshold","showGroups","selectedIndex","selectedItem","selectedValue","checkedItems"];WjListBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","formatItem","itemsChanged","itemChecked"];WjListBoxBehavior.changeEvents={selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],checkedItemsChanged:["checkedItems"]};WjListBoxBehavior.classCtor=function(){return wjcInput.ListBox};WjListBoxBehavior.modelProp="selectedValue";return WjListBoxBehavior}(WjComponentBehavior);export var WjListBox=WjListBoxBehavior.register();function registerV3WjListBox(e){e.component(WjListBoxBehavior.tag,WjListBox)}var WjMultiSelectListBoxBehavior=function(e){__extends(WjMultiSelectListBoxBehavior,e);function WjMultiSelectListBoxBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMultiSelectListBoxBehavior.tag="wj-multi-select-list-box";WjMultiSelectListBoxBehavior.props=["isDisabled","tabOrder","itemsSource","displayMemberPath","selectedIndex","isContentHtml","showGroups","checkOnFilter","showFilterInput","filterInputPlaceholder","showSelectAllCheckbox","selectAllLabel","delay","caseSensitiveSearch","checkedMemberPath","virtualizationThreshold","checkedItems"];WjMultiSelectListBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjMultiSelectListBoxBehavior.changeEvents={selectedIndexChanged:["selectedIndex"],checkedItemsChanged:["checkedItems"]};WjMultiSelectListBoxBehavior.classCtor=function(){return wjcInput.MultiSelectListBox};WjMultiSelectListBoxBehavior.modelProp="checkedItems";return WjMultiSelectListBoxBehavior}(WjComponentBehavior);export var WjMultiSelectListBox=WjMultiSelectListBoxBehavior.register();function registerV3WjMultiSelectListBox(e){e.component(WjMultiSelectListBoxBehavior.tag,WjMultiSelectListBox)}var WjComboBoxBehavior=function(e){__extends(WjComboBoxBehavior,e);function WjComboBoxBehavior(){return null!==e&&e.apply(this,arguments)||this}WjComboBoxBehavior.tag="wj-combo-box";WjComboBoxBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","itemsSource","text","selectedIndex","selectedItem","selectedValue"];WjComboBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjComboBoxBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"]};WjComboBoxBehavior.classCtor=function(){return wjcInput.ComboBox};WjComboBoxBehavior.modelProp="selectedValue";return WjComboBoxBehavior}(WjComponentBehavior);export var WjComboBox=WjComboBoxBehavior.register();function registerV3WjComboBox(e){e.component(WjComboBoxBehavior.tag,WjComboBox)}var WjAutoCompleteBehavior=function(e){__extends(WjAutoCompleteBehavior,e);function WjAutoCompleteBehavior(){return null!==e&&e.apply(this,arguments)||this}WjAutoCompleteBehavior.tag="wj-auto-complete";WjAutoCompleteBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","delay","maxItems","minLength","cssMatch","itemsSourceFunction","searchMemberPath","beginsWithSearch","itemsSource","text","selectedIndex","selectedItem","selectedValue"];WjAutoCompleteBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjAutoCompleteBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"]};WjAutoCompleteBehavior.classCtor=function(){return wjcInput.AutoComplete};WjAutoCompleteBehavior.modelProp="selectedValue";return WjAutoCompleteBehavior}(WjComponentBehavior);export var WjAutoComplete=WjAutoCompleteBehavior.register();function registerV3WjAutoComplete(e){e.component(WjAutoCompleteBehavior.tag,WjAutoComplete)}var WjCalendarBehavior=function(e){__extends(WjCalendarBehavior,e);function WjCalendarBehavior(){return null!==e&&e.apply(this,arguments)||this}WjCalendarBehavior.tag="wj-calendar";WjCalendarBehavior.props=["isDisabled","tabOrder","monthView","showHeader","itemFormatter","itemValidator","firstDayOfWeek","max","min","formatYearMonth","formatDayHeaders","formatDays","formatYear","formatMonths","selectionMode","isReadOnly","handleWheel","repeatButtons","showYearPicker","value","displayMonth","monthCount","showMonthPicker","weeksBefore","weeksAfter","rangeEnd","rangeMin","rangeMax"];WjCalendarBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","rangeChanged","formatItem"];WjCalendarBehavior.changeEvents={valueChanged:["value"],displayMonthChanged:["displayMonth"],rangeEndChanged:["rangeEnd"]};WjCalendarBehavior.classCtor=function(){return wjcInput.Calendar};WjCalendarBehavior.modelProp="value";return WjCalendarBehavior}(WjComponentBehavior);export var WjCalendar=WjCalendarBehavior.register();function registerV3WjCalendar(e){e.component(WjCalendarBehavior.tag,WjCalendar)}var WjColorPickerBehavior=function(e){__extends(WjColorPickerBehavior,e);function WjColorPickerBehavior(){return null!==e&&e.apply(this,arguments)||this}WjColorPickerBehavior.tag="wj-color-picker";WjColorPickerBehavior.props=["isDisabled","tabOrder","showAlphaChannel","showColorString","palette","value"];WjColorPickerBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjColorPickerBehavior.changeEvents={valueChanged:["value"]};WjColorPickerBehavior.classCtor=function(){return wjcInput.ColorPicker};WjColorPickerBehavior.modelProp="value";return WjColorPickerBehavior}(WjComponentBehavior);export var WjColorPicker=WjColorPickerBehavior.register();function registerV3WjColorPicker(e){e.component(WjColorPickerBehavior.tag,WjColorPicker)}var WjInputMaskBehavior=function(e){__extends(WjInputMaskBehavior,e);function WjInputMaskBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputMaskBehavior.tag="wj-input-mask";WjInputMaskBehavior.props=["isDisabled","tabOrder","mask","overwriteMode","isRequired","isReadOnly","promptChar","placeholder","inputType","rawValue","value"];WjInputMaskBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjInputMaskBehavior.changeEvents={valueChanged:["rawValue","value"]};WjInputMaskBehavior.classCtor=function(){return wjcInput.InputMask};WjInputMaskBehavior.modelProp="value";return WjInputMaskBehavior}(WjComponentBehavior);export var WjInputMask=WjInputMaskBehavior.register();function registerV3WjInputMask(e){e.component(WjInputMaskBehavior.tag,WjInputMask)}var WjInputColorBehavior=function(e){__extends(WjInputColorBehavior,e);function WjInputColorBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputColorBehavior.tag="wj-input-color";WjInputColorBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","showAlphaChannel","showColorString","value","text"];WjInputColorBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging"];WjInputColorBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"]};WjInputColorBehavior.classCtor=function(){return wjcInput.InputColor};WjInputColorBehavior.modelProp="value";return WjInputColorBehavior}(WjComponentBehavior);export var WjInputColor=WjInputColorBehavior.register();function registerV3WjInputColor(e){e.component(WjInputColorBehavior.tag,WjInputColor)}var WjMultiSelectBehavior=function(e){__extends(WjMultiSelectBehavior,e);function WjMultiSelectBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMultiSelectBehavior.tag="wj-multi-select";WjMultiSelectBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","checkedMemberPath","maxHeaderItems","headerFormat","headerFormatter","showSelectAllCheckbox","selectAllLabel","showFilterInput","filterInputPlaceholder","checkOnFilter","delay","caseSensitiveSearch","itemsSource","checkedItems","text","selectedIndex","selectedItem","selectedValue"];WjMultiSelectBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMultiSelectBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],checkedItemsChanged:["checkedItems"]};WjMultiSelectBehavior.classCtor=function(){return wjcInput.MultiSelect};WjMultiSelectBehavior.modelProp="checkedItems";return WjMultiSelectBehavior}(WjComponentBehavior);export var WjMultiSelect=WjMultiSelectBehavior.register();function registerV3WjMultiSelect(e){e.component(WjMultiSelectBehavior.tag,WjMultiSelect)}var WjMultiAutoCompleteBehavior=function(e){__extends(WjMultiAutoCompleteBehavior,e);function WjMultiAutoCompleteBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMultiAutoCompleteBehavior.tag="wj-multi-auto-complete";WjMultiAutoCompleteBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","delay","maxItems","minLength","cssMatch","itemsSourceFunction","searchMemberPath","beginsWithSearch","maxSelectedItems","selectedItems","itemsSource","selectedMemberPath","text","selectedIndex","selectedItem","selectedValue"];WjMultiAutoCompleteBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMultiAutoCompleteBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],selectedItemsChanged:["selectedItems"]};WjMultiAutoCompleteBehavior.classCtor=function(){return wjcInput.MultiAutoComplete};WjMultiAutoCompleteBehavior.modelProp="selectedItems";return WjMultiAutoCompleteBehavior}(WjComponentBehavior);export var WjMultiAutoComplete=WjMultiAutoCompleteBehavior.register();function registerV3WjMultiAutoComplete(e){e.component(WjMultiAutoCompleteBehavior.tag,WjMultiAutoComplete)}var WjInputNumberBehavior=function(e){__extends(WjInputNumberBehavior,e);function WjInputNumberBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputNumberBehavior.tag="wj-input-number";WjInputNumberBehavior.props=["isDisabled","tabOrder","showSpinner","repeatButtons","max","min","step","isRequired","placeholder","inputType","format","isReadOnly","handleWheel","value","text"];WjInputNumberBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjInputNumberBehavior.changeEvents={valueChanged:["value"],textChanged:["text"]};WjInputNumberBehavior.classCtor=function(){return wjcInput.InputNumber};WjInputNumberBehavior.modelProp="value";return WjInputNumberBehavior}(WjComponentBehavior);export var WjInputNumber=WjInputNumberBehavior.register();function registerV3WjInputNumber(e){e.component(WjInputNumberBehavior.tag,WjInputNumber)}var WjInputDateBehavior=function(e){__extends(WjInputDateBehavior,e);function WjInputDateBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputDateBehavior.tag="wj-input-date";WjInputDateBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","text","value","rangeEnd","keepInvalidText","preserveCalendarNavigation"];WjInputDateBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateBehavior.classCtor=function(){return wjcInput.InputDate};WjInputDateBehavior.modelProp="value";return WjInputDateBehavior}(WjComponentBehavior);export var WjInputDate=WjInputDateBehavior.register();function registerV3WjInputDate(e){e.component(WjInputDateBehavior.tag,WjInputDate)}var WjInputTimeBehavior=function(e){__extends(WjInputTimeBehavior,e);function WjInputTimeBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputTimeBehavior.tag="wj-input-time";WjInputTimeBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","max","min","step","format","mask","inputType","itemsSource","text","selectedIndex","selectedItem","selectedValue","value"];WjInputTimeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjInputTimeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],valueChanged:["value"]};WjInputTimeBehavior.classCtor=function(){return wjcInput.InputTime};WjInputTimeBehavior.modelProp="value";return WjInputTimeBehavior}(WjComponentBehavior);export var WjInputTime=WjInputTimeBehavior.register();function registerV3WjInputTime(e){e.component(WjInputTimeBehavior.tag,WjInputTime)}var WjInputDateTimeBehavior=function(e){__extends(WjInputDateTimeBehavior,e);function WjInputDateTimeBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputDateTimeBehavior.tag="wj-input-date-time";WjInputDateTimeBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","timeMax","timeMin","timeStep","timeFormat","text","value","rangeEnd","preserveCalendarNavigation"];WjInputDateTimeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateTimeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateTimeBehavior.classCtor=function(){return wjcInput.InputDateTime};WjInputDateTimeBehavior.modelProp="value";return WjInputDateTimeBehavior}(WjComponentBehavior);export var WjInputDateTime=WjInputDateTimeBehavior.register();function registerV3WjInputDateTime(e){e.component(WjInputDateTimeBehavior.tag,WjInputDateTime)}var WjInputDateRangeBehavior=function(e){__extends(WjInputDateRangeBehavior,e);function WjInputDateRangeBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputDateRangeBehavior.tag="wj-input-date-range";WjInputDateRangeBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","text","value","rangeEnd","preserveCalendarNavigation"];WjInputDateRangeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateRangeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateRangeBehavior.classCtor=function(){return wjcInput.InputDateRange};WjInputDateRangeBehavior.modelProp="value";return WjInputDateRangeBehavior}(WjComponentBehavior);export var WjInputDateRange=WjInputDateRangeBehavior.register();function registerV3WjInputDateRange(e){e.component(WjInputDateRangeBehavior.tag,WjInputDateRange)}var WjMenuBehavior=function(e){__extends(WjMenuBehavior,e);function WjMenuBehavior(){return null!==e&&e.apply(this,arguments)||this}Object.defineProperty(WjMenuBehavior.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e;if(null!=e){this.control.selectedValue=e;this._updateHeader()}},enumerable:!0,configurable:!0});WjMenuBehavior.prototype._createControl=function(){var t=this,o=e.prototype._createControl.call(this);o.itemsSource=new wjcCore.ObservableArray;o.selectedIndex=0;o.listBox.formatItem.addHandler(this._fmtItem,this);o.invalidate();o.itemClicked.addHandler((function(e){t.value=t.control.selectedValue}));return o};WjMenuBehavior.prototype._updateControl=function(t,o){e.prototype._updateControl.call(this,t,o);if("header"===t){this._definedHeader=o;this._updateHeader()}"value"===t&&(this.value=o)};WjMenuBehavior.prototype._updateHeader=function(){this.control.header=this._definedHeader||"";var e=this.control.selectedItem;if(null!=this.value&&e&&this.control.displayMemberPath){var t=null;if(e instanceof WjMenuItemBehavior){var o=e.contentRoot;t=o?o.innerHTML:e[this.control.displayMemberPath]}null!=t&&(this.control.header+=": <b>"+t+"</b>")}};WjMenuBehavior.prototype._fmtItem=function(e,t){if(t.data instanceof WjMenuItemBehavior||t.data instanceof WjMenuSeparatorBehavior){t.item.textContent="";t.item.appendChild(t.data.contentRoot);t.data.added(t.item)}};WjMenuBehavior.tag="wj-menu";WjMenuBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","header","commandParameterPath","commandPath","subItemsPath","openOnHover","closeOnLeave","isButton","itemsSource","text","selectedIndex","selectedItem","selectedValue","value","ariaLabel","autoSelectOnFocus"];WjMenuBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMenuBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],itemClicked:["value"]};WjMenuBehavior.classCtor=function(){return wjcInput.Menu};WjMenuBehavior.modelProp="selectedValue";return WjMenuBehavior}(WjComponentBehavior);export var WjMenu=WjMenuBehavior.register();function registerV3WjMenu(e){e.component(WjMenuBehavior.tag,WjMenu)}var WjMenuItemBehavior=function(e){__extends(WjMenuItemBehavior,e);function WjMenuItemBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMenuItemBehavior.prototype._createControl=function(){var e=this.parent.control;1==e.itemsSource.length&&e.selectedIndex<0&&(e.selectedIndex=0);e.displayMemberPath||(e.displayMemberPath="header");e.selectedValuePath||(e.selectedValuePath="value");e.commandPath||(e.commandPath="cmd");e.commandParameterPath||(e.commandParameterPath="cmdParam");this.contentRoot=this.component.$el.firstElementChild;this.component.$el.style.display="none";return this};WjMenuItemBehavior.prototype.added=function(e){};WjMenuItemBehavior.tag="wj-menu-item";WjMenuItemBehavior.parentProp="itemsSource";WjMenuItemBehavior.siblingId="menuItemDir";WjMenuItemBehavior.props=["wjProperty","value","cmd","cmdParam"];WjMenuItemBehavior.events=["initialized"];WjMenuItemBehavior.render=function(e){if(VueApi.isV3Plus){var t=VueApi.h,o=this.$slots.default;return t("div",{},[t("div",{},o&&o())])}return e("div",[e("div",[this.$slots.default])])};return WjMenuItemBehavior}(WjComponentBehavior);export var WjMenuItem=WjMenuItemBehavior.register();function registerV3WjMenuItem(e){e.component(WjMenuItemBehavior.tag,WjMenuItem)}var WjMenuSeparatorBehavior=function(e){__extends(WjMenuSeparatorBehavior,e);function WjMenuSeparatorBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMenuSeparatorBehavior.prototype._createControl=function(){this.contentRoot=this.component.$el.firstElementChild;this.component.$el.style.display="none";return this};WjMenuSeparatorBehavior.prototype.added=function(e){wjcCore.addClass(e,wjcCore.ControlStateClsNames.disabled);wjcCore.setAttribute(e,"role","separator",!1)};WjMenuSeparatorBehavior.tag="wj-menu-separator";WjMenuSeparatorBehavior.parentProp="itemsSource";WjMenuSeparatorBehavior.siblingId="menuItemDir";WjMenuSeparatorBehavior.props=["wjProperty"];WjMenuSeparatorBehavior.events=["initialized"];WjMenuSeparatorBehavior.render=function(e){var t={width:"100%",height:"1px","background-color":"lightgray"};if(VueApi.isV3Plus){var o=VueApi.h;return o("div",{},[o("div",{style:t})])}return e("div",[e("div",{style:t})])};return WjMenuSeparatorBehavior}(WjComponentBehavior);export var WjMenuSeparator=WjMenuSeparatorBehavior.register();function registerV3WjMenuSeparator(e){e.component(WjMenuSeparatorBehavior.tag,WjMenuSeparator)}var WjItemTemplateDefinition={render:function(e){return VueApi.isV3Plus?VueApi.h("div"):e("div")},mounted:function(){var e=this,t=this.$parent;if(t){var o=t[WjComponentBehavior._behProp];o._mountedCB((function(){var t=o.control;e.ownerControl=t instanceof wjcInput.ListBox?t:t.listBox instanceof wjcInput.ListBox?t.listBox:void 0;e.itemComponents=[];var n=VueApi.isV3Plus?e.$slots.default:e.$scopedSlots.default,i=e.ownerControl;if(i&&n){e.formatItemHandler=function(t,o){var r=o.index;if(!e.itemComponents[r])if(VueApi.isV3Plus){var a=VueApi.h,s={parent:e.component,render:function(){return a("div",{},n&&n({itemIndex:r,item:o.data,control:i}))}},u=a(s);e.itemComponents[r]=o.item;o.item.textContent="";VueApi.render(u,o.item)}else{s=ItemTemplateComponentFactory(n,{itemIndex:r,item:o.data,control:i},e).$mount();e.itemComponents[r]=s;o.item.textContent="";o.item.appendChild(s.$el)}};i.formatItem.addHandler(e.formatItemHandler,e);i.loadingItems.addHandler((function(t){e._destroyItemComponents()}))}}))}},methods:{_destroyItemComponents:function(){(this.itemComponents||[]).forEach((function(e){VueApi.isV3Plus?VueApi.render(null,e):e.$destroy()}));this.itemComponents=[]}}};WjItemTemplateDefinition[VueApi.isV3Plus?"unmounted":"destroyed"]=function(){this.formatItemHandler&&this.ownerControl.formatItem.removeHandler(this.formatItemHandler,this);this._destroyItemComponents()};var ItemTemplateComponentFactory=function(e,t,o){var n=new ItemTemplateComponent({parent:o});n.itemTemplate=e;n.itemData=t;return n},ItemTemplateComponent=VueApi.extend({render:function(e){return e("div",{},this.itemTemplate&&this.itemTemplate(this.itemData))}}),WjItemTemplateTag="wj-item-template";export var WjItemTemplate=VueApi.isV3Plus?WjItemTemplateDefinition:VueApi.component(WjItemTemplateTag,WjItemTemplateDefinition);function registerV3WjItemTemplate(e){e.component(WjItemTemplateTag,WjItemTemplate)}var WjPopupBehavior=function(e){__extends(WjPopupBehavior,e);function WjPopupBehavior(){return null!==e&&e.apply(this,arguments)||this}WjPopupBehavior.tag="wj-popup";WjPopupBehavior.props=["isDisabled","tabOrder","owner","showTrigger","hideTrigger","fadeIn","fadeOut","isDraggable","isResizable","dialogResultEnter","dialogResultSubmit","modal","removeOnHide"];WjPopupBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","showing","shown","hiding","hidden","resizing","sizeChanging","sizeChanged","resized","dragging","positionChanging","positionChanged","dragged"];WjPopupBehavior.classCtor=function(){return wjcInput.Popup};return WjPopupBehavior}(WjComponentBehavior);export var WjPopup=WjPopupBehavior.register();function registerV3WjPopup(e){e.component(WjPopupBehavior.tag,WjPopup)}var _CtxMenuUtils=function(){function _CtxMenuUtils(){this.key="__wjCtxMenu"}Object.defineProperty(_CtxMenuUtils.prototype,"definition",{get:function(){return VueApi.isV3Plus?{mounted:this._bind.bind(this),updated:this._update.bind(this),unmounted:this._unbind.bind(this)}:{bind:this._bind.bind(this),update:this._update.bind(this),unbind:this._unbind.bind(this)}},enumerable:!0,configurable:!0});_CtxMenuUtils.prototype._bind=function(e,t,o){var n=this,listener=function(i){if(!wjcCore.closest(i.target,"[disabled]")){var r=n._getMenuControl(t,o);if(r&&r.dropDown){i.preventDefault();i.stopPropagation();r.owner=e;r.show(i)}}};e.addEventListener("contextmenu",listener);e[this.key]={binding:t,listener:listener}};_CtxMenuUtils.prototype._unbind=function(e){var t=e[this.key]&&e[this.key].listener;t&&e.removeEventListener("contextmenu",t);e[this.key]=null};_CtxMenuUtils.prototype._update=function(e,t,o){var n=e[this.key]&&e[this.key].binding;if(!n||n.value!==t.value){this._unbind(e);this._bind(e,t,o)}};_CtxMenuUtils.prototype._getMenuControl=function(e,t){var o=null,n=null,i=e.value;if(null==i&&0===e.expression.indexOf("$refs.")){i=new wjcCore.Binding(e.expression).getValue(t.context)}wjcCore.isString(i)?n=document.getElementById(i):i instanceof HTMLElement&&(n=i);o=n?wjcCore.Control.getControl(n):i&&i.control||i;return wjcCore.tryCast(o,wjcInput.Menu)};return _CtxMenuUtils}(),wjContextMenuDefinition=(new _CtxMenuUtils).definition,WjContextMenuTag="wjContextMenu";export var WjContextMenu=VueApi.isV3Plus?wjContextMenuDefinition:VueApi.directive(WjContextMenuTag,wjContextMenuDefinition);function registerV3WjContextMenu(e){e.directive(WjContextMenuTag,WjContextMenu)}var WjCollectionViewNavigatorBehavior=function(e){__extends(WjCollectionViewNavigatorBehavior,e);function WjCollectionViewNavigatorBehavior(){return null!==e&&e.apply(this,arguments)||this}WjCollectionViewNavigatorBehavior.tag="wj-collection-view-navigator";WjCollectionViewNavigatorBehavior.props=["isDisabled","tabOrder","cv","byPage","headerFormat","repeatButtons"];WjCollectionViewNavigatorBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjCollectionViewNavigatorBehavior.classCtor=function(){return wjcInput.CollectionViewNavigator};return WjCollectionViewNavigatorBehavior}(WjComponentBehavior);export var WjCollectionViewNavigator=WjCollectionViewNavigatorBehavior.register();function registerV3WjCollectionViewNavigator(e){e.component(WjCollectionViewNavigatorBehavior.tag,WjCollectionViewNavigator)}export function registerInput(e){if(VueApi.isV3Plus){registerV3WjListBox(e);registerV3WjMultiSelectListBox(e);registerV3WjComboBox(e);registerV3WjAutoComplete(e);registerV3WjCalendar(e);registerV3WjColorPicker(e);registerV3WjInputMask(e);registerV3WjInputColor(e);registerV3WjMultiSelect(e);registerV3WjMultiAutoComplete(e);registerV3WjInputNumber(e);registerV3WjInputDate(e);registerV3WjInputTime(e);registerV3WjInputDateTime(e);registerV3WjInputDateRange(e);registerV3WjMenu(e);registerV3WjMenuItem(e);registerV3WjMenuSeparator(e);registerV3WjItemTemplate(e);registerV3WjPopup(e);registerV3WjContextMenu(e);registerV3WjCollectionViewNavigator(e)}}
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
*
|
3
|
-
* Wijmo Library 5.20242.23-nightly.
|
3
|
+
* Wijmo Library 5.20242.23-nightly.d20241119.t030240
|
4
4
|
* https://developer.mescius.com/wijmo
|
5
5
|
*
|
6
6
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
@@ -11,4 +11,4 @@
|
|
11
11
|
*
|
12
12
|
*/
|
13
13
|
|
14
|
-
"use strict";var __extends=this&&this.__extends||function(){var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};return function(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}}(),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.hasOwnProperty.call(e,o)&&(t[o]=e[o]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});var wijmo_vue2_base_1=require("@mescius/wijmo.vue2.base"),wjcCore=__importStar(require("@mescius/wijmo")),wjcInput=__importStar(require("@mescius/wijmo.input")),WjListBoxBehavior=function(e){__extends(WjListBoxBehavior,e);function WjListBoxBehavior(){return null!==e&&e.apply(this,arguments)||this}WjListBoxBehavior.tag="wj-list-box";WjListBoxBehavior.props=["isDisabled","tabOrder","behavioralFlags","isContentHtml","maxHeight","selectedValuePath","itemFormatter","displayMemberPath","checkedMemberPath","caseSensitiveSearch","itemsSource","virtualizationThreshold","showGroups","selectedIndex","selectedItem","selectedValue","checkedItems"];WjListBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","formatItem","itemsChanged","itemChecked"];WjListBoxBehavior.changeEvents={selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],checkedItemsChanged:["checkedItems"]};WjListBoxBehavior.classCtor=function(){return wjcInput.ListBox};WjListBoxBehavior.modelProp="selectedValue";return WjListBoxBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjListBox=WjListBoxBehavior.register();function registerV3WjListBox(e){e.component(WjListBoxBehavior.tag,exports.WjListBox)}var WjMultiSelectListBoxBehavior=function(e){__extends(WjMultiSelectListBoxBehavior,e);function WjMultiSelectListBoxBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMultiSelectListBoxBehavior.tag="wj-multi-select-list-box";WjMultiSelectListBoxBehavior.props=["isDisabled","tabOrder","behavioralFlags","itemsSource","displayMemberPath","selectedIndex","isContentHtml","showGroups","checkOnFilter","showFilterInput","filterInputPlaceholder","showSelectAllCheckbox","selectAllLabel","delay","caseSensitiveSearch","checkedMemberPath","virtualizationThreshold","checkedItems"];WjMultiSelectListBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjMultiSelectListBoxBehavior.changeEvents={selectedIndexChanged:["selectedIndex"],checkedItemsChanged:["checkedItems"]};WjMultiSelectListBoxBehavior.classCtor=function(){return wjcInput.MultiSelectListBox};WjMultiSelectListBoxBehavior.modelProp="checkedItems";return WjMultiSelectListBoxBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjMultiSelectListBox=WjMultiSelectListBoxBehavior.register();function registerV3WjMultiSelectListBox(e){e.component(WjMultiSelectListBoxBehavior.tag,exports.WjMultiSelectListBox)}var WjComboBoxBehavior=function(e){__extends(WjComboBoxBehavior,e);function WjComboBoxBehavior(){return null!==e&&e.apply(this,arguments)||this}WjComboBoxBehavior.tag="wj-combo-box";WjComboBoxBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","itemsSource","text","selectedIndex","selectedItem","selectedValue"];WjComboBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjComboBoxBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"]};WjComboBoxBehavior.classCtor=function(){return wjcInput.ComboBox};WjComboBoxBehavior.modelProp="selectedValue";return WjComboBoxBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjComboBox=WjComboBoxBehavior.register();function registerV3WjComboBox(e){e.component(WjComboBoxBehavior.tag,exports.WjComboBox)}var WjAutoCompleteBehavior=function(e){__extends(WjAutoCompleteBehavior,e);function WjAutoCompleteBehavior(){return null!==e&&e.apply(this,arguments)||this}WjAutoCompleteBehavior.tag="wj-auto-complete";WjAutoCompleteBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","delay","maxItems","minLength","cssMatch","itemsSourceFunction","searchMemberPath","beginsWithSearch","itemsSource","text","selectedIndex","selectedItem","selectedValue"];WjAutoCompleteBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjAutoCompleteBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"]};WjAutoCompleteBehavior.classCtor=function(){return wjcInput.AutoComplete};WjAutoCompleteBehavior.modelProp="selectedValue";return WjAutoCompleteBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjAutoComplete=WjAutoCompleteBehavior.register();function registerV3WjAutoComplete(e){e.component(WjAutoCompleteBehavior.tag,exports.WjAutoComplete)}var WjCalendarBehavior=function(e){__extends(WjCalendarBehavior,e);function WjCalendarBehavior(){return null!==e&&e.apply(this,arguments)||this}WjCalendarBehavior.tag="wj-calendar";WjCalendarBehavior.props=["isDisabled","tabOrder","behavioralFlags","monthView","showHeader","itemFormatter","itemValidator","firstDayOfWeek","max","min","formatYearMonth","formatDayHeaders","formatDays","formatYear","formatMonths","selectionMode","isReadOnly","handleWheel","repeatButtons","showYearPicker","value","displayMonth","monthCount","showMonthPicker","weeksBefore","weeksAfter","rangeEnd","rangeMin","rangeMax"];WjCalendarBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","rangeChanged","formatItem"];WjCalendarBehavior.changeEvents={valueChanged:["value"],displayMonthChanged:["displayMonth"],rangeEndChanged:["rangeEnd"]};WjCalendarBehavior.classCtor=function(){return wjcInput.Calendar};WjCalendarBehavior.modelProp="value";return WjCalendarBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjCalendar=WjCalendarBehavior.register();function registerV3WjCalendar(e){e.component(WjCalendarBehavior.tag,exports.WjCalendar)}var WjColorPickerBehavior=function(e){__extends(WjColorPickerBehavior,e);function WjColorPickerBehavior(){return null!==e&&e.apply(this,arguments)||this}WjColorPickerBehavior.tag="wj-color-picker";WjColorPickerBehavior.props=["isDisabled","tabOrder","behavioralFlags","showAlphaChannel","showColorString","palette","value"];WjColorPickerBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjColorPickerBehavior.changeEvents={valueChanged:["value"]};WjColorPickerBehavior.classCtor=function(){return wjcInput.ColorPicker};WjColorPickerBehavior.modelProp="value";return WjColorPickerBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjColorPicker=WjColorPickerBehavior.register();function registerV3WjColorPicker(e){e.component(WjColorPickerBehavior.tag,exports.WjColorPicker)}var WjInputMaskBehavior=function(e){__extends(WjInputMaskBehavior,e);function WjInputMaskBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputMaskBehavior.tag="wj-input-mask";WjInputMaskBehavior.props=["isDisabled","tabOrder","behavioralFlags","mask","overwriteMode","isRequired","isReadOnly","promptChar","placeholder","inputType","rawValue","value"];WjInputMaskBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjInputMaskBehavior.changeEvents={valueChanged:["rawValue","value"]};WjInputMaskBehavior.classCtor=function(){return wjcInput.InputMask};WjInputMaskBehavior.modelProp="value";return WjInputMaskBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjInputMask=WjInputMaskBehavior.register();function registerV3WjInputMask(e){e.component(WjInputMaskBehavior.tag,exports.WjInputMask)}var WjInputColorBehavior=function(e){__extends(WjInputColorBehavior,e);function WjInputColorBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputColorBehavior.tag="wj-input-color";WjInputColorBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","showAlphaChannel","showColorString","value","text"];WjInputColorBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging"];WjInputColorBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"]};WjInputColorBehavior.classCtor=function(){return wjcInput.InputColor};WjInputColorBehavior.modelProp="value";return WjInputColorBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjInputColor=WjInputColorBehavior.register();function registerV3WjInputColor(e){e.component(WjInputColorBehavior.tag,exports.WjInputColor)}var WjMultiSelectBehavior=function(e){__extends(WjMultiSelectBehavior,e);function WjMultiSelectBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMultiSelectBehavior.tag="wj-multi-select";WjMultiSelectBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","checkedMemberPath","maxHeaderItems","headerFormat","headerFormatter","showSelectAllCheckbox","selectAllLabel","showFilterInput","filterInputPlaceholder","checkOnFilter","delay","caseSensitiveSearch","itemsSource","checkedItems","text","selectedIndex","selectedItem","selectedValue"];WjMultiSelectBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMultiSelectBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],checkedItemsChanged:["checkedItems"]};WjMultiSelectBehavior.classCtor=function(){return wjcInput.MultiSelect};WjMultiSelectBehavior.modelProp="checkedItems";return WjMultiSelectBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjMultiSelect=WjMultiSelectBehavior.register();function registerV3WjMultiSelect(e){e.component(WjMultiSelectBehavior.tag,exports.WjMultiSelect)}var WjMultiAutoCompleteBehavior=function(e){__extends(WjMultiAutoCompleteBehavior,e);function WjMultiAutoCompleteBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMultiAutoCompleteBehavior.tag="wj-multi-auto-complete";WjMultiAutoCompleteBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","delay","maxItems","minLength","cssMatch","itemsSourceFunction","searchMemberPath","beginsWithSearch","maxSelectedItems","selectedItems","itemsSource","selectedMemberPath","text","selectedIndex","selectedItem","selectedValue"];WjMultiAutoCompleteBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMultiAutoCompleteBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],selectedItemsChanged:["selectedItems"]};WjMultiAutoCompleteBehavior.classCtor=function(){return wjcInput.MultiAutoComplete};WjMultiAutoCompleteBehavior.modelProp="selectedItems";return WjMultiAutoCompleteBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjMultiAutoComplete=WjMultiAutoCompleteBehavior.register();function registerV3WjMultiAutoComplete(e){e.component(WjMultiAutoCompleteBehavior.tag,exports.WjMultiAutoComplete)}var WjInputNumberBehavior=function(e){__extends(WjInputNumberBehavior,e);function WjInputNumberBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputNumberBehavior.tag="wj-input-number";WjInputNumberBehavior.props=["isDisabled","tabOrder","behavioralFlags","showSpinner","repeatButtons","max","min","step","isRequired","placeholder","inputType","format","isReadOnly","handleWheel","value","text"];WjInputNumberBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjInputNumberBehavior.changeEvents={valueChanged:["value"],textChanged:["text"]};WjInputNumberBehavior.classCtor=function(){return wjcInput.InputNumber};WjInputNumberBehavior.modelProp="value";return WjInputNumberBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjInputNumber=WjInputNumberBehavior.register();function registerV3WjInputNumber(e){e.component(WjInputNumberBehavior.tag,exports.WjInputNumber)}var WjInputDateBehavior=function(e){__extends(WjInputDateBehavior,e);function WjInputDateBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputDateBehavior.tag="wj-input-date";WjInputDateBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","text","value","rangeEnd","keepInvalidText","preserveCalendarNavigation"];WjInputDateBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateBehavior.classCtor=function(){return wjcInput.InputDate};WjInputDateBehavior.modelProp="value";return WjInputDateBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjInputDate=WjInputDateBehavior.register();function registerV3WjInputDate(e){e.component(WjInputDateBehavior.tag,exports.WjInputDate)}var WjInputTimeBehavior=function(e){__extends(WjInputTimeBehavior,e);function WjInputTimeBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputTimeBehavior.tag="wj-input-time";WjInputTimeBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","max","min","step","format","mask","inputType","itemsSource","text","selectedIndex","selectedItem","selectedValue","value"];WjInputTimeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjInputTimeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],valueChanged:["value"]};WjInputTimeBehavior.classCtor=function(){return wjcInput.InputTime};WjInputTimeBehavior.modelProp="value";return WjInputTimeBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjInputTime=WjInputTimeBehavior.register();function registerV3WjInputTime(e){e.component(WjInputTimeBehavior.tag,exports.WjInputTime)}var WjInputDateTimeBehavior=function(e){__extends(WjInputDateTimeBehavior,e);function WjInputDateTimeBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputDateTimeBehavior.tag="wj-input-date-time";WjInputDateTimeBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","timeMax","timeMin","timeStep","timeFormat","text","value","rangeEnd","preserveCalendarNavigation"];WjInputDateTimeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateTimeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateTimeBehavior.classCtor=function(){return wjcInput.InputDateTime};WjInputDateTimeBehavior.modelProp="value";return WjInputDateTimeBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjInputDateTime=WjInputDateTimeBehavior.register();function registerV3WjInputDateTime(e){e.component(WjInputDateTimeBehavior.tag,exports.WjInputDateTime)}var WjInputDateRangeBehavior=function(e){__extends(WjInputDateRangeBehavior,e);function WjInputDateRangeBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputDateRangeBehavior.tag="wj-input-date-range";WjInputDateRangeBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","text","value","rangeEnd","preserveCalendarNavigation"];WjInputDateRangeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateRangeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateRangeBehavior.classCtor=function(){return wjcInput.InputDateRange};WjInputDateRangeBehavior.modelProp="value";return WjInputDateRangeBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjInputDateRange=WjInputDateRangeBehavior.register();function registerV3WjInputDateRange(e){e.component(WjInputDateRangeBehavior.tag,exports.WjInputDateRange)}var WjMenuBehavior=function(e){__extends(WjMenuBehavior,e);function WjMenuBehavior(){return null!==e&&e.apply(this,arguments)||this}Object.defineProperty(WjMenuBehavior.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e;if(null!=e){this.control.selectedValue=e;this._updateHeader()}},enumerable:!0,configurable:!0});WjMenuBehavior.prototype._createControl=function(){var t=this,o=e.prototype._createControl.call(this);o.itemsSource=new wjcCore.ObservableArray;o.selectedIndex=0;o.listBox.formatItem.addHandler(this._fmtItem,this);o.invalidate();o.itemClicked.addHandler((function(e){t.value=t.control.selectedValue}));return o};WjMenuBehavior.prototype._updateControl=function(t,o){e.prototype._updateControl.call(this,t,o);if("header"===t){this._definedHeader=o;this._updateHeader()}"value"===t&&(this.value=o)};WjMenuBehavior.prototype._updateHeader=function(){this.control.header=this._definedHeader||"";var e=this.control.selectedItem;if(null!=this.value&&e&&this.control.displayMemberPath){var t=null;if(e instanceof WjMenuItemBehavior){var o=e.contentRoot;t=o?o.innerHTML:e[this.control.displayMemberPath]}null!=t&&(this.control.header+=": <b>"+t+"</b>")}};WjMenuBehavior.prototype._fmtItem=function(e,t){if(t.data instanceof WjMenuItemBehavior||t.data instanceof WjMenuSeparatorBehavior){t.item.textContent="";t.item.appendChild(t.data.contentRoot);t.data.added(t.item)}};WjMenuBehavior.tag="wj-menu";WjMenuBehavior.props=["isDisabled","tabOrder","behavioralFlags","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","header","commandParameterPath","commandPath","subItemsPath","openOnHover","closeOnLeave","isButton","itemsSource","text","selectedIndex","selectedItem","selectedValue","value","ariaLabel","autoSelectOnFocus"];WjMenuBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMenuBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],itemClicked:["value"]};WjMenuBehavior.classCtor=function(){return wjcInput.Menu};WjMenuBehavior.modelProp="selectedValue";return WjMenuBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjMenu=WjMenuBehavior.register();function registerV3WjMenu(e){e.component(WjMenuBehavior.tag,exports.WjMenu)}var WjMenuItemBehavior=function(e){__extends(WjMenuItemBehavior,e);function WjMenuItemBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMenuItemBehavior.prototype._createControl=function(){var e=this.parent.control;1==e.itemsSource.length&&e.selectedIndex<0&&(e.selectedIndex=0);e.displayMemberPath||(e.displayMemberPath="header");e.selectedValuePath||(e.selectedValuePath="value");e.commandPath||(e.commandPath="cmd");e.commandParameterPath||(e.commandParameterPath="cmdParam");this.contentRoot=this.component.$el.firstElementChild;this.component.$el.style.display="none";return this};WjMenuItemBehavior.prototype.added=function(e){};WjMenuItemBehavior.tag="wj-menu-item";WjMenuItemBehavior.parentProp="itemsSource";WjMenuItemBehavior.siblingId="menuItemDir";WjMenuItemBehavior.props=["wjProperty","value","cmd","cmdParam"];WjMenuItemBehavior.events=["initialized"];WjMenuItemBehavior.render=function(e){if(wijmo_vue2_base_1.VueApi.isV3Plus){var t=wijmo_vue2_base_1.VueApi.h,o=this.$slots.default;return t("div",{},[t("div",{},o&&o())])}return e("div",[e("div",[this.$slots.default])])};return WjMenuItemBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjMenuItem=WjMenuItemBehavior.register();function registerV3WjMenuItem(e){e.component(WjMenuItemBehavior.tag,exports.WjMenuItem)}var WjMenuSeparatorBehavior=function(e){__extends(WjMenuSeparatorBehavior,e);function WjMenuSeparatorBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMenuSeparatorBehavior.prototype._createControl=function(){this.contentRoot=this.component.$el.firstElementChild;this.component.$el.style.display="none";return this};WjMenuSeparatorBehavior.prototype.added=function(e){wjcCore.addClass(e,wjcCore.ControlStateClsNames.disabled);wjcCore.setAttribute(e,"role","separator",!1)};WjMenuSeparatorBehavior.tag="wj-menu-separator";WjMenuSeparatorBehavior.parentProp="itemsSource";WjMenuSeparatorBehavior.siblingId="menuItemDir";WjMenuSeparatorBehavior.props=["wjProperty"];WjMenuSeparatorBehavior.events=["initialized"];WjMenuSeparatorBehavior.render=function(e){var t={width:"100%",height:"1px","background-color":"lightgray"};if(wijmo_vue2_base_1.VueApi.isV3Plus){var o=wijmo_vue2_base_1.VueApi.h;return o("div",{},[o("div",{style:t})])}return e("div",[e("div",{style:t})])};return WjMenuSeparatorBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjMenuSeparator=WjMenuSeparatorBehavior.register();function registerV3WjMenuSeparator(e){e.component(WjMenuSeparatorBehavior.tag,exports.WjMenuSeparator)}var WjItemTemplateDefinition={render:function(e){return wijmo_vue2_base_1.VueApi.isV3Plus?wijmo_vue2_base_1.VueApi.h("div"):e("div")},mounted:function(){var e=this,t=this.$parent;if(t){var o=t[wijmo_vue2_base_1.WjComponentBehavior._behProp];o._mountedCB((function(){var t=o.control;e.ownerControl=t instanceof wjcInput.ListBox?t:t.listBox instanceof wjcInput.ListBox?t.listBox:void 0;e.itemComponents=[];var i=wijmo_vue2_base_1.VueApi.isV3Plus?e.$slots.default:e.$scopedSlots.default,n=e.ownerControl;if(n&&i){e.formatItemHandler=function(t,o){var r=o.index;if(!e.itemComponents[r])if(wijmo_vue2_base_1.VueApi.isV3Plus){var a=wijmo_vue2_base_1.VueApi.h,s={parent:e.component,render:function(){return a("div",{},i&&i({itemIndex:r,item:o.data,control:n}))}},u=a(s);e.itemComponents[r]=o.item;o.item.textContent="";wijmo_vue2_base_1.VueApi.render(u,o.item)}else{s=ItemTemplateComponentFactory(i,{itemIndex:r,item:o.data,control:n},e).$mount();e.itemComponents[r]=s;o.item.textContent="";o.item.appendChild(s.$el)}};n.formatItem.addHandler(e.formatItemHandler,e);n.loadingItems.addHandler((function(t){e._destroyItemComponents()}))}}))}},methods:{_destroyItemComponents:function(){(this.itemComponents||[]).forEach((function(e){wijmo_vue2_base_1.VueApi.isV3Plus?wijmo_vue2_base_1.VueApi.render(null,e):e.$destroy()}));this.itemComponents=[]}}};WjItemTemplateDefinition[wijmo_vue2_base_1.VueApi.isV3Plus?"unmounted":"destroyed"]=function(){this.formatItemHandler&&this.ownerControl.formatItem.removeHandler(this.formatItemHandler,this);this._destroyItemComponents()};var ItemTemplateComponentFactory=function(e,t,o){var i=new ItemTemplateComponent({parent:o});i.itemTemplate=e;i.itemData=t;return i},ItemTemplateComponent=wijmo_vue2_base_1.VueApi.extend({render:function(e){return e("div",{},this.itemTemplate&&this.itemTemplate(this.itemData))}}),WjItemTemplateTag="wj-item-template";exports.WjItemTemplate=wijmo_vue2_base_1.VueApi.isV3Plus?WjItemTemplateDefinition:wijmo_vue2_base_1.VueApi.component(WjItemTemplateTag,WjItemTemplateDefinition);function registerV3WjItemTemplate(e){e.component(WjItemTemplateTag,exports.WjItemTemplate)}var WjPopupBehavior=function(e){__extends(WjPopupBehavior,e);function WjPopupBehavior(){return null!==e&&e.apply(this,arguments)||this}WjPopupBehavior.tag="wj-popup";WjPopupBehavior.props=["isDisabled","tabOrder","behavioralFlags","owner","showTrigger","hideTrigger","fadeIn","fadeOut","isDraggable","isResizable","dialogResultEnter","dialogResultSubmit","modal","removeOnHide"];WjPopupBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","showing","shown","hiding","hidden","resizing","sizeChanging","sizeChanged","resized","dragging","positionChanging","positionChanged","dragged"];WjPopupBehavior.classCtor=function(){return wjcInput.Popup};return WjPopupBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjPopup=WjPopupBehavior.register();function registerV3WjPopup(e){e.component(WjPopupBehavior.tag,exports.WjPopup)}var _CtxMenuUtils=function(){function _CtxMenuUtils(){this.key="__wjCtxMenu"}Object.defineProperty(_CtxMenuUtils.prototype,"definition",{get:function(){return wijmo_vue2_base_1.VueApi.isV3Plus?{mounted:this._bind.bind(this),updated:this._update.bind(this),unmounted:this._unbind.bind(this)}:{bind:this._bind.bind(this),update:this._update.bind(this),unbind:this._unbind.bind(this)}},enumerable:!0,configurable:!0});_CtxMenuUtils.prototype._bind=function(e,t,o){var i=this,listener=function(n){if(!wjcCore.closest(n.target,"[disabled]")){var r=i._getMenuControl(t,o);if(r&&r.dropDown){n.preventDefault();n.stopPropagation();r.owner=e;r.show(n)}}};e.addEventListener("contextmenu",listener);e[this.key]={binding:t,listener:listener}};_CtxMenuUtils.prototype._unbind=function(e){var t=e[this.key]&&e[this.key].listener;t&&e.removeEventListener("contextmenu",t);e[this.key]=null};_CtxMenuUtils.prototype._update=function(e,t,o){var i=e[this.key]&&e[this.key].binding;if(!i||i.value!==t.value){this._unbind(e);this._bind(e,t,o)}};_CtxMenuUtils.prototype._getMenuControl=function(e,t){var o=null,i=null,n=e.value;if(null==n&&0===e.expression.indexOf("$refs.")){n=new wjcCore.Binding(e.expression).getValue(t.context)}wjcCore.isString(n)?i=document.getElementById(n):n instanceof HTMLElement&&(i=n);o=i?wjcCore.Control.getControl(i):n&&n.control||n;return wjcCore.tryCast(o,wjcInput.Menu)};return _CtxMenuUtils}(),wjContextMenuDefinition=(new _CtxMenuUtils).definition,WjContextMenuTag="wjContextMenu";exports.WjContextMenu=wijmo_vue2_base_1.VueApi.isV3Plus?wjContextMenuDefinition:wijmo_vue2_base_1.VueApi.directive(WjContextMenuTag,wjContextMenuDefinition);function registerV3WjContextMenu(e){e.directive(WjContextMenuTag,exports.WjContextMenu)}var WjCollectionViewNavigatorBehavior=function(e){__extends(WjCollectionViewNavigatorBehavior,e);function WjCollectionViewNavigatorBehavior(){return null!==e&&e.apply(this,arguments)||this}WjCollectionViewNavigatorBehavior.tag="wj-collection-view-navigator";WjCollectionViewNavigatorBehavior.props=["isDisabled","tabOrder","behavioralFlags","cv","byPage","headerFormat","repeatButtons"];WjCollectionViewNavigatorBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjCollectionViewNavigatorBehavior.classCtor=function(){return wjcInput.CollectionViewNavigator};return WjCollectionViewNavigatorBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjCollectionViewNavigator=WjCollectionViewNavigatorBehavior.register();function registerV3WjCollectionViewNavigator(e){e.component(WjCollectionViewNavigatorBehavior.tag,exports.WjCollectionViewNavigator)}function registerInput(e){if(wijmo_vue2_base_1.VueApi.isV3Plus){registerV3WjListBox(e);registerV3WjMultiSelectListBox(e);registerV3WjComboBox(e);registerV3WjAutoComplete(e);registerV3WjCalendar(e);registerV3WjColorPicker(e);registerV3WjInputMask(e);registerV3WjInputColor(e);registerV3WjMultiSelect(e);registerV3WjMultiAutoComplete(e);registerV3WjInputNumber(e);registerV3WjInputDate(e);registerV3WjInputTime(e);registerV3WjInputDateTime(e);registerV3WjInputDateRange(e);registerV3WjMenu(e);registerV3WjMenuItem(e);registerV3WjMenuSeparator(e);registerV3WjItemTemplate(e);registerV3WjPopup(e);registerV3WjContextMenu(e);registerV3WjCollectionViewNavigator(e)}}exports.registerInput=registerInput;
|
14
|
+
"use strict";var __extends=this&&this.__extends||function(){var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};return function(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}}(),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.hasOwnProperty.call(e,o)&&(t[o]=e[o]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});var wijmo_vue2_base_1=require("@mescius/wijmo.vue2.base"),wjcCore=__importStar(require("@mescius/wijmo")),wjcInput=__importStar(require("@mescius/wijmo.input")),WjListBoxBehavior=function(e){__extends(WjListBoxBehavior,e);function WjListBoxBehavior(){return null!==e&&e.apply(this,arguments)||this}WjListBoxBehavior.tag="wj-list-box";WjListBoxBehavior.props=["isDisabled","tabOrder","isContentHtml","maxHeight","selectedValuePath","itemFormatter","displayMemberPath","checkedMemberPath","caseSensitiveSearch","itemsSource","virtualizationThreshold","showGroups","selectedIndex","selectedItem","selectedValue","checkedItems"];WjListBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","formatItem","itemsChanged","itemChecked"];WjListBoxBehavior.changeEvents={selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],checkedItemsChanged:["checkedItems"]};WjListBoxBehavior.classCtor=function(){return wjcInput.ListBox};WjListBoxBehavior.modelProp="selectedValue";return WjListBoxBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjListBox=WjListBoxBehavior.register();function registerV3WjListBox(e){e.component(WjListBoxBehavior.tag,exports.WjListBox)}var WjMultiSelectListBoxBehavior=function(e){__extends(WjMultiSelectListBoxBehavior,e);function WjMultiSelectListBoxBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMultiSelectListBoxBehavior.tag="wj-multi-select-list-box";WjMultiSelectListBoxBehavior.props=["isDisabled","tabOrder","itemsSource","displayMemberPath","selectedIndex","isContentHtml","showGroups","checkOnFilter","showFilterInput","filterInputPlaceholder","showSelectAllCheckbox","selectAllLabel","delay","caseSensitiveSearch","checkedMemberPath","virtualizationThreshold","checkedItems"];WjMultiSelectListBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjMultiSelectListBoxBehavior.changeEvents={selectedIndexChanged:["selectedIndex"],checkedItemsChanged:["checkedItems"]};WjMultiSelectListBoxBehavior.classCtor=function(){return wjcInput.MultiSelectListBox};WjMultiSelectListBoxBehavior.modelProp="checkedItems";return WjMultiSelectListBoxBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjMultiSelectListBox=WjMultiSelectListBoxBehavior.register();function registerV3WjMultiSelectListBox(e){e.component(WjMultiSelectListBoxBehavior.tag,exports.WjMultiSelectListBox)}var WjComboBoxBehavior=function(e){__extends(WjComboBoxBehavior,e);function WjComboBoxBehavior(){return null!==e&&e.apply(this,arguments)||this}WjComboBoxBehavior.tag="wj-combo-box";WjComboBoxBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","itemsSource","text","selectedIndex","selectedItem","selectedValue"];WjComboBoxBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjComboBoxBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"]};WjComboBoxBehavior.classCtor=function(){return wjcInput.ComboBox};WjComboBoxBehavior.modelProp="selectedValue";return WjComboBoxBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjComboBox=WjComboBoxBehavior.register();function registerV3WjComboBox(e){e.component(WjComboBoxBehavior.tag,exports.WjComboBox)}var WjAutoCompleteBehavior=function(e){__extends(WjAutoCompleteBehavior,e);function WjAutoCompleteBehavior(){return null!==e&&e.apply(this,arguments)||this}WjAutoCompleteBehavior.tag="wj-auto-complete";WjAutoCompleteBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","delay","maxItems","minLength","cssMatch","itemsSourceFunction","searchMemberPath","beginsWithSearch","itemsSource","text","selectedIndex","selectedItem","selectedValue"];WjAutoCompleteBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjAutoCompleteBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"]};WjAutoCompleteBehavior.classCtor=function(){return wjcInput.AutoComplete};WjAutoCompleteBehavior.modelProp="selectedValue";return WjAutoCompleteBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjAutoComplete=WjAutoCompleteBehavior.register();function registerV3WjAutoComplete(e){e.component(WjAutoCompleteBehavior.tag,exports.WjAutoComplete)}var WjCalendarBehavior=function(e){__extends(WjCalendarBehavior,e);function WjCalendarBehavior(){return null!==e&&e.apply(this,arguments)||this}WjCalendarBehavior.tag="wj-calendar";WjCalendarBehavior.props=["isDisabled","tabOrder","monthView","showHeader","itemFormatter","itemValidator","firstDayOfWeek","max","min","formatYearMonth","formatDayHeaders","formatDays","formatYear","formatMonths","selectionMode","isReadOnly","handleWheel","repeatButtons","showYearPicker","value","displayMonth","monthCount","showMonthPicker","weeksBefore","weeksAfter","rangeEnd","rangeMin","rangeMax"];WjCalendarBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","rangeChanged","formatItem"];WjCalendarBehavior.changeEvents={valueChanged:["value"],displayMonthChanged:["displayMonth"],rangeEndChanged:["rangeEnd"]};WjCalendarBehavior.classCtor=function(){return wjcInput.Calendar};WjCalendarBehavior.modelProp="value";return WjCalendarBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjCalendar=WjCalendarBehavior.register();function registerV3WjCalendar(e){e.component(WjCalendarBehavior.tag,exports.WjCalendar)}var WjColorPickerBehavior=function(e){__extends(WjColorPickerBehavior,e);function WjColorPickerBehavior(){return null!==e&&e.apply(this,arguments)||this}WjColorPickerBehavior.tag="wj-color-picker";WjColorPickerBehavior.props=["isDisabled","tabOrder","showAlphaChannel","showColorString","palette","value"];WjColorPickerBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjColorPickerBehavior.changeEvents={valueChanged:["value"]};WjColorPickerBehavior.classCtor=function(){return wjcInput.ColorPicker};WjColorPickerBehavior.modelProp="value";return WjColorPickerBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjColorPicker=WjColorPickerBehavior.register();function registerV3WjColorPicker(e){e.component(WjColorPickerBehavior.tag,exports.WjColorPicker)}var WjInputMaskBehavior=function(e){__extends(WjInputMaskBehavior,e);function WjInputMaskBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputMaskBehavior.tag="wj-input-mask";WjInputMaskBehavior.props=["isDisabled","tabOrder","mask","overwriteMode","isRequired","isReadOnly","promptChar","placeholder","inputType","rawValue","value"];WjInputMaskBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjInputMaskBehavior.changeEvents={valueChanged:["rawValue","value"]};WjInputMaskBehavior.classCtor=function(){return wjcInput.InputMask};WjInputMaskBehavior.modelProp="value";return WjInputMaskBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjInputMask=WjInputMaskBehavior.register();function registerV3WjInputMask(e){e.component(WjInputMaskBehavior.tag,exports.WjInputMask)}var WjInputColorBehavior=function(e){__extends(WjInputColorBehavior,e);function WjInputColorBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputColorBehavior.tag="wj-input-color";WjInputColorBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","showAlphaChannel","showColorString","value","text"];WjInputColorBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging"];WjInputColorBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"]};WjInputColorBehavior.classCtor=function(){return wjcInput.InputColor};WjInputColorBehavior.modelProp="value";return WjInputColorBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjInputColor=WjInputColorBehavior.register();function registerV3WjInputColor(e){e.component(WjInputColorBehavior.tag,exports.WjInputColor)}var WjMultiSelectBehavior=function(e){__extends(WjMultiSelectBehavior,e);function WjMultiSelectBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMultiSelectBehavior.tag="wj-multi-select";WjMultiSelectBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","checkedMemberPath","maxHeaderItems","headerFormat","headerFormatter","showSelectAllCheckbox","selectAllLabel","showFilterInput","filterInputPlaceholder","checkOnFilter","delay","caseSensitiveSearch","itemsSource","checkedItems","text","selectedIndex","selectedItem","selectedValue"];WjMultiSelectBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMultiSelectBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],checkedItemsChanged:["checkedItems"]};WjMultiSelectBehavior.classCtor=function(){return wjcInput.MultiSelect};WjMultiSelectBehavior.modelProp="checkedItems";return WjMultiSelectBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjMultiSelect=WjMultiSelectBehavior.register();function registerV3WjMultiSelect(e){e.component(WjMultiSelectBehavior.tag,exports.WjMultiSelect)}var WjMultiAutoCompleteBehavior=function(e){__extends(WjMultiAutoCompleteBehavior,e);function WjMultiAutoCompleteBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMultiAutoCompleteBehavior.tag="wj-multi-auto-complete";WjMultiAutoCompleteBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","delay","maxItems","minLength","cssMatch","itemsSourceFunction","searchMemberPath","beginsWithSearch","maxSelectedItems","selectedItems","itemsSource","selectedMemberPath","text","selectedIndex","selectedItem","selectedValue"];WjMultiAutoCompleteBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMultiAutoCompleteBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],selectedItemsChanged:["selectedItems"]};WjMultiAutoCompleteBehavior.classCtor=function(){return wjcInput.MultiAutoComplete};WjMultiAutoCompleteBehavior.modelProp="selectedItems";return WjMultiAutoCompleteBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjMultiAutoComplete=WjMultiAutoCompleteBehavior.register();function registerV3WjMultiAutoComplete(e){e.component(WjMultiAutoCompleteBehavior.tag,exports.WjMultiAutoComplete)}var WjInputNumberBehavior=function(e){__extends(WjInputNumberBehavior,e);function WjInputNumberBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputNumberBehavior.tag="wj-input-number";WjInputNumberBehavior.props=["isDisabled","tabOrder","showSpinner","repeatButtons","max","min","step","isRequired","placeholder","inputType","format","isReadOnly","handleWheel","value","text"];WjInputNumberBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjInputNumberBehavior.changeEvents={valueChanged:["value"],textChanged:["text"]};WjInputNumberBehavior.classCtor=function(){return wjcInput.InputNumber};WjInputNumberBehavior.modelProp="value";return WjInputNumberBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjInputNumber=WjInputNumberBehavior.register();function registerV3WjInputNumber(e){e.component(WjInputNumberBehavior.tag,exports.WjInputNumber)}var WjInputDateBehavior=function(e){__extends(WjInputDateBehavior,e);function WjInputDateBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputDateBehavior.tag="wj-input-date";WjInputDateBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","text","value","rangeEnd","keepInvalidText","preserveCalendarNavigation"];WjInputDateBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateBehavior.classCtor=function(){return wjcInput.InputDate};WjInputDateBehavior.modelProp="value";return WjInputDateBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjInputDate=WjInputDateBehavior.register();function registerV3WjInputDate(e){e.component(WjInputDateBehavior.tag,exports.WjInputDate)}var WjInputTimeBehavior=function(e){__extends(WjInputTimeBehavior,e);function WjInputTimeBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputTimeBehavior.tag="wj-input-time";WjInputTimeBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","max","min","step","format","mask","inputType","itemsSource","text","selectedIndex","selectedItem","selectedValue","value"];WjInputTimeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjInputTimeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],valueChanged:["value"]};WjInputTimeBehavior.classCtor=function(){return wjcInput.InputTime};WjInputTimeBehavior.modelProp="value";return WjInputTimeBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjInputTime=WjInputTimeBehavior.register();function registerV3WjInputTime(e){e.component(WjInputTimeBehavior.tag,exports.WjInputTime)}var WjInputDateTimeBehavior=function(e){__extends(WjInputDateTimeBehavior,e);function WjInputDateTimeBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputDateTimeBehavior.tag="wj-input-date-time";WjInputDateTimeBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","timeMax","timeMin","timeStep","timeFormat","text","value","rangeEnd","preserveCalendarNavigation"];WjInputDateTimeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateTimeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateTimeBehavior.classCtor=function(){return wjcInput.InputDateTime};WjInputDateTimeBehavior.modelProp="value";return WjInputDateTimeBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjInputDateTime=WjInputDateTimeBehavior.register();function registerV3WjInputDateTime(e){e.component(WjInputDateTimeBehavior.tag,exports.WjInputDateTime)}var WjInputDateRangeBehavior=function(e){__extends(WjInputDateRangeBehavior,e);function WjInputDateRangeBehavior(){return null!==e&&e.apply(this,arguments)||this}WjInputDateRangeBehavior.tag="wj-input-date-range";WjInputDateRangeBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","selectionMode","format","mask","max","min","inputType","repeatButtons","showYearPicker","itemValidator","itemFormatter","monthCount","handleWheel","showMonthPicker","showHeader","weeksBefore","weeksAfter","rangeMin","rangeMax","separator","alwaysShowCalendar","predefinedRanges","closeOnSelection","text","value","rangeEnd","preserveCalendarNavigation"];WjInputDateRangeBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","rangeChanged"];WjInputDateRangeBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],valueChanged:["value"],rangeEndChanged:["rangeEnd"]};WjInputDateRangeBehavior.classCtor=function(){return wjcInput.InputDateRange};WjInputDateRangeBehavior.modelProp="value";return WjInputDateRangeBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjInputDateRange=WjInputDateRangeBehavior.register();function registerV3WjInputDateRange(e){e.component(WjInputDateRangeBehavior.tag,exports.WjInputDateRange)}var WjMenuBehavior=function(e){__extends(WjMenuBehavior,e);function WjMenuBehavior(){return null!==e&&e.apply(this,arguments)||this}Object.defineProperty(WjMenuBehavior.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e;if(null!=e){this.control.selectedValue=e;this._updateHeader()}},enumerable:!0,configurable:!0});WjMenuBehavior.prototype._createControl=function(){var t=this,o=e.prototype._createControl.call(this);o.itemsSource=new wjcCore.ObservableArray;o.selectedIndex=0;o.listBox.formatItem.addHandler(this._fmtItem,this);o.invalidate();o.itemClicked.addHandler((function(e){t.value=t.control.selectedValue}));return o};WjMenuBehavior.prototype._updateControl=function(t,o){e.prototype._updateControl.call(this,t,o);if("header"===t){this._definedHeader=o;this._updateHeader()}"value"===t&&(this.value=o)};WjMenuBehavior.prototype._updateHeader=function(){this.control.header=this._definedHeader||"";var e=this.control.selectedItem;if(null!=this.value&&e&&this.control.displayMemberPath){var t=null;if(e instanceof WjMenuItemBehavior){var o=e.contentRoot;t=o?o.innerHTML:e[this.control.displayMemberPath]}null!=t&&(this.control.header+=": <b>"+t+"</b>")}};WjMenuBehavior.prototype._fmtItem=function(e,t){if(t.data instanceof WjMenuItemBehavior||t.data instanceof WjMenuSeparatorBehavior){t.item.textContent="";t.item.appendChild(t.data.contentRoot);t.data.added(t.item)}};WjMenuBehavior.tag="wj-menu";WjMenuBehavior.props=["isDisabled","tabOrder","isDroppedDown","showDropDownButton","autoExpandSelection","placeholder","dropDownCssClass","isAnimated","isReadOnly","isRequired","inputType","clickAction","displayMemberPath","selectedValuePath","headerPath","isContentHtml","isEditable","handleWheel","maxDropDownHeight","maxDropDownWidth","itemFormatter","showGroups","trimText","caseSensitiveSearch","virtualizationThreshold","header","commandParameterPath","commandPath","subItemsPath","openOnHover","closeOnLeave","isButton","itemsSource","text","selectedIndex","selectedItem","selectedValue","value","ariaLabel","autoSelectOnFocus"];WjMenuBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","isDroppedDownChanging","itemsSourceChanged","formatItem"];WjMenuBehavior.changeEvents={isDroppedDownChanged:["isDroppedDown"],textChanged:["text"],selectedIndexChanged:["selectedIndex","selectedItem","selectedValue"],itemClicked:["value"]};WjMenuBehavior.classCtor=function(){return wjcInput.Menu};WjMenuBehavior.modelProp="selectedValue";return WjMenuBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjMenu=WjMenuBehavior.register();function registerV3WjMenu(e){e.component(WjMenuBehavior.tag,exports.WjMenu)}var WjMenuItemBehavior=function(e){__extends(WjMenuItemBehavior,e);function WjMenuItemBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMenuItemBehavior.prototype._createControl=function(){var e=this.parent.control;1==e.itemsSource.length&&e.selectedIndex<0&&(e.selectedIndex=0);e.displayMemberPath||(e.displayMemberPath="header");e.selectedValuePath||(e.selectedValuePath="value");e.commandPath||(e.commandPath="cmd");e.commandParameterPath||(e.commandParameterPath="cmdParam");this.contentRoot=this.component.$el.firstElementChild;this.component.$el.style.display="none";return this};WjMenuItemBehavior.prototype.added=function(e){};WjMenuItemBehavior.tag="wj-menu-item";WjMenuItemBehavior.parentProp="itemsSource";WjMenuItemBehavior.siblingId="menuItemDir";WjMenuItemBehavior.props=["wjProperty","value","cmd","cmdParam"];WjMenuItemBehavior.events=["initialized"];WjMenuItemBehavior.render=function(e){if(wijmo_vue2_base_1.VueApi.isV3Plus){var t=wijmo_vue2_base_1.VueApi.h,o=this.$slots.default;return t("div",{},[t("div",{},o&&o())])}return e("div",[e("div",[this.$slots.default])])};return WjMenuItemBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjMenuItem=WjMenuItemBehavior.register();function registerV3WjMenuItem(e){e.component(WjMenuItemBehavior.tag,exports.WjMenuItem)}var WjMenuSeparatorBehavior=function(e){__extends(WjMenuSeparatorBehavior,e);function WjMenuSeparatorBehavior(){return null!==e&&e.apply(this,arguments)||this}WjMenuSeparatorBehavior.prototype._createControl=function(){this.contentRoot=this.component.$el.firstElementChild;this.component.$el.style.display="none";return this};WjMenuSeparatorBehavior.prototype.added=function(e){wjcCore.addClass(e,wjcCore.ControlStateClsNames.disabled);wjcCore.setAttribute(e,"role","separator",!1)};WjMenuSeparatorBehavior.tag="wj-menu-separator";WjMenuSeparatorBehavior.parentProp="itemsSource";WjMenuSeparatorBehavior.siblingId="menuItemDir";WjMenuSeparatorBehavior.props=["wjProperty"];WjMenuSeparatorBehavior.events=["initialized"];WjMenuSeparatorBehavior.render=function(e){var t={width:"100%",height:"1px","background-color":"lightgray"};if(wijmo_vue2_base_1.VueApi.isV3Plus){var o=wijmo_vue2_base_1.VueApi.h;return o("div",{},[o("div",{style:t})])}return e("div",[e("div",{style:t})])};return WjMenuSeparatorBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjMenuSeparator=WjMenuSeparatorBehavior.register();function registerV3WjMenuSeparator(e){e.component(WjMenuSeparatorBehavior.tag,exports.WjMenuSeparator)}var WjItemTemplateDefinition={render:function(e){return wijmo_vue2_base_1.VueApi.isV3Plus?wijmo_vue2_base_1.VueApi.h("div"):e("div")},mounted:function(){var e=this,t=this.$parent;if(t){var o=t[wijmo_vue2_base_1.WjComponentBehavior._behProp];o._mountedCB((function(){var t=o.control;e.ownerControl=t instanceof wjcInput.ListBox?t:t.listBox instanceof wjcInput.ListBox?t.listBox:void 0;e.itemComponents=[];var i=wijmo_vue2_base_1.VueApi.isV3Plus?e.$slots.default:e.$scopedSlots.default,n=e.ownerControl;if(n&&i){e.formatItemHandler=function(t,o){var r=o.index;if(!e.itemComponents[r])if(wijmo_vue2_base_1.VueApi.isV3Plus){var a=wijmo_vue2_base_1.VueApi.h,s={parent:e.component,render:function(){return a("div",{},i&&i({itemIndex:r,item:o.data,control:n}))}},u=a(s);e.itemComponents[r]=o.item;o.item.textContent="";wijmo_vue2_base_1.VueApi.render(u,o.item)}else{s=ItemTemplateComponentFactory(i,{itemIndex:r,item:o.data,control:n},e).$mount();e.itemComponents[r]=s;o.item.textContent="";o.item.appendChild(s.$el)}};n.formatItem.addHandler(e.formatItemHandler,e);n.loadingItems.addHandler((function(t){e._destroyItemComponents()}))}}))}},methods:{_destroyItemComponents:function(){(this.itemComponents||[]).forEach((function(e){wijmo_vue2_base_1.VueApi.isV3Plus?wijmo_vue2_base_1.VueApi.render(null,e):e.$destroy()}));this.itemComponents=[]}}};WjItemTemplateDefinition[wijmo_vue2_base_1.VueApi.isV3Plus?"unmounted":"destroyed"]=function(){this.formatItemHandler&&this.ownerControl.formatItem.removeHandler(this.formatItemHandler,this);this._destroyItemComponents()};var ItemTemplateComponentFactory=function(e,t,o){var i=new ItemTemplateComponent({parent:o});i.itemTemplate=e;i.itemData=t;return i},ItemTemplateComponent=wijmo_vue2_base_1.VueApi.extend({render:function(e){return e("div",{},this.itemTemplate&&this.itemTemplate(this.itemData))}}),WjItemTemplateTag="wj-item-template";exports.WjItemTemplate=wijmo_vue2_base_1.VueApi.isV3Plus?WjItemTemplateDefinition:wijmo_vue2_base_1.VueApi.component(WjItemTemplateTag,WjItemTemplateDefinition);function registerV3WjItemTemplate(e){e.component(WjItemTemplateTag,exports.WjItemTemplate)}var WjPopupBehavior=function(e){__extends(WjPopupBehavior,e);function WjPopupBehavior(){return null!==e&&e.apply(this,arguments)||this}WjPopupBehavior.tag="wj-popup";WjPopupBehavior.props=["isDisabled","tabOrder","owner","showTrigger","hideTrigger","fadeIn","fadeOut","isDraggable","isResizable","dialogResultEnter","dialogResultSubmit","modal","removeOnHide"];WjPopupBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput","showing","shown","hiding","hidden","resizing","sizeChanging","sizeChanged","resized","dragging","positionChanging","positionChanged","dragged"];WjPopupBehavior.classCtor=function(){return wjcInput.Popup};return WjPopupBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjPopup=WjPopupBehavior.register();function registerV3WjPopup(e){e.component(WjPopupBehavior.tag,exports.WjPopup)}var _CtxMenuUtils=function(){function _CtxMenuUtils(){this.key="__wjCtxMenu"}Object.defineProperty(_CtxMenuUtils.prototype,"definition",{get:function(){return wijmo_vue2_base_1.VueApi.isV3Plus?{mounted:this._bind.bind(this),updated:this._update.bind(this),unmounted:this._unbind.bind(this)}:{bind:this._bind.bind(this),update:this._update.bind(this),unbind:this._unbind.bind(this)}},enumerable:!0,configurable:!0});_CtxMenuUtils.prototype._bind=function(e,t,o){var i=this,listener=function(n){if(!wjcCore.closest(n.target,"[disabled]")){var r=i._getMenuControl(t,o);if(r&&r.dropDown){n.preventDefault();n.stopPropagation();r.owner=e;r.show(n)}}};e.addEventListener("contextmenu",listener);e[this.key]={binding:t,listener:listener}};_CtxMenuUtils.prototype._unbind=function(e){var t=e[this.key]&&e[this.key].listener;t&&e.removeEventListener("contextmenu",t);e[this.key]=null};_CtxMenuUtils.prototype._update=function(e,t,o){var i=e[this.key]&&e[this.key].binding;if(!i||i.value!==t.value){this._unbind(e);this._bind(e,t,o)}};_CtxMenuUtils.prototype._getMenuControl=function(e,t){var o=null,i=null,n=e.value;if(null==n&&0===e.expression.indexOf("$refs.")){n=new wjcCore.Binding(e.expression).getValue(t.context)}wjcCore.isString(n)?i=document.getElementById(n):n instanceof HTMLElement&&(i=n);o=i?wjcCore.Control.getControl(i):n&&n.control||n;return wjcCore.tryCast(o,wjcInput.Menu)};return _CtxMenuUtils}(),wjContextMenuDefinition=(new _CtxMenuUtils).definition,WjContextMenuTag="wjContextMenu";exports.WjContextMenu=wijmo_vue2_base_1.VueApi.isV3Plus?wjContextMenuDefinition:wijmo_vue2_base_1.VueApi.directive(WjContextMenuTag,wjContextMenuDefinition);function registerV3WjContextMenu(e){e.directive(WjContextMenuTag,exports.WjContextMenu)}var WjCollectionViewNavigatorBehavior=function(e){__extends(WjCollectionViewNavigatorBehavior,e);function WjCollectionViewNavigatorBehavior(){return null!==e&&e.apply(this,arguments)||this}WjCollectionViewNavigatorBehavior.tag="wj-collection-view-navigator";WjCollectionViewNavigatorBehavior.props=["isDisabled","tabOrder","cv","byPage","headerFormat","repeatButtons"];WjCollectionViewNavigatorBehavior.events=["initialized","gotFocus","lostFocus","refreshing","refreshed","invalidInput"];WjCollectionViewNavigatorBehavior.classCtor=function(){return wjcInput.CollectionViewNavigator};return WjCollectionViewNavigatorBehavior}(wijmo_vue2_base_1.WjComponentBehavior);exports.WjCollectionViewNavigator=WjCollectionViewNavigatorBehavior.register();function registerV3WjCollectionViewNavigator(e){e.component(WjCollectionViewNavigatorBehavior.tag,exports.WjCollectionViewNavigator)}function registerInput(e){if(wijmo_vue2_base_1.VueApi.isV3Plus){registerV3WjListBox(e);registerV3WjMultiSelectListBox(e);registerV3WjComboBox(e);registerV3WjAutoComplete(e);registerV3WjCalendar(e);registerV3WjColorPicker(e);registerV3WjInputMask(e);registerV3WjInputColor(e);registerV3WjMultiSelect(e);registerV3WjMultiAutoComplete(e);registerV3WjInputNumber(e);registerV3WjInputDate(e);registerV3WjInputTime(e);registerV3WjInputDateTime(e);registerV3WjInputDateRange(e);registerV3WjMenu(e);registerV3WjMenuItem(e);registerV3WjMenuSeparator(e);registerV3WjItemTemplate(e);registerV3WjPopup(e);registerV3WjContextMenu(e);registerV3WjCollectionViewNavigator(e)}}exports.registerInput=registerInput;
|
package/package.json
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mescius/wijmo.vue2.input",
|
3
|
-
"version": "5.20242.23-nightly.
|
3
|
+
"version": "5.20242.23-nightly.d20241119.t030240",
|
4
4
|
"description": "UI library for pure JS, Angular, React, Vue and more...",
|
5
5
|
"author": "MESCIUS inc",
|
6
6
|
"license": "Commercial",
|
7
7
|
"main": "./index.js",
|
8
8
|
"types": "./index.d.ts",
|
9
9
|
"dependencies": {
|
10
|
-
"@mescius/wijmo": "5.20242.23-nightly.
|
11
|
-
"@mescius/wijmo.input": "5.20242.23-nightly.
|
12
|
-
"@mescius/wijmo.vue2.base": "5.20242.23-nightly.
|
10
|
+
"@mescius/wijmo": "5.20242.23-nightly.d20241119.t030240",
|
11
|
+
"@mescius/wijmo.input": "5.20242.23-nightly.d20241119.t030240",
|
12
|
+
"@mescius/wijmo.vue2.base": "5.20242.23-nightly.d20241119.t030240"
|
13
13
|
},
|
14
14
|
"homepage": "https://developer.mescius.com/wijmo",
|
15
15
|
"bugs": {
|