@progress/kendo-vue-dropdowns 5.2.0-dev.202406271321 → 5.2.0-dev.202407150706

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -304,29 +304,27 @@ var MultiSelectTreeVue2 = {
304
304
  },
305
305
  // @ts-ignore
306
306
  render: function render(createElement) {
307
- var _this2 = this;
308
- var _a, _b;
309
307
  var _this = this;
310
308
  var h = gh || createElement;
311
309
  var id = this.$props.id || this.componentGuid;
312
- var _c = this.$props,
313
- dataItems = _c.dataItems,
314
- dataItemKey = _c.dataItemKey,
315
- _d = _c.popupSettings,
316
- popupSettings = _d === void 0 ? {} : _d,
317
- disabled = _c.disabled,
318
- placeholder = _c.placeholder,
319
- label = _c.label,
320
- name = _c.name,
321
- checkField = _c.checkField,
322
- checkIndeterminateField = _c.checkIndeterminateField,
323
- subItemsField = _c.subItemsField,
324
- validationMessage = _c.validationMessage,
325
- valid = _c.valid,
326
- value = _c.value,
327
- required = _c.required,
328
- validityStyles = _c.validityStyles,
329
- adaptiveTitle = _c.adaptiveTitle;
310
+ var _a = this.$props,
311
+ dataItems = _a.dataItems,
312
+ dataItemKey = _a.dataItemKey,
313
+ _b = _a.popupSettings,
314
+ popupSettings = _b === void 0 ? {} : _b,
315
+ disabled = _a.disabled,
316
+ placeholder = _a.placeholder,
317
+ label = _a.label,
318
+ name = _a.name,
319
+ checkField = _a.checkField,
320
+ checkIndeterminateField = _a.checkIndeterminateField,
321
+ subItemsField = _a.subItemsField,
322
+ validationMessage = _a.validationMessage,
323
+ valid = _a.valid,
324
+ value = _a.value,
325
+ required = _a.required,
326
+ validityStyles = _a.validityStyles,
327
+ adaptiveTitle = _a.adaptiveTitle;
330
328
  var tabIndex = getTabIndex(this.$props.tabIndex, disabled);
331
329
  var localization = provideLocalizationService(this);
332
330
  var validity = getValidity({
@@ -360,10 +358,10 @@ var MultiSelectTreeVue2 = {
360
358
  template: listNoDataRender
361
359
  });
362
360
  var isValid = !validityStyles || validity.valid;
363
- var _e = this.$props,
364
- size = _e.size,
365
- rounded = _e.rounded,
366
- fillMode = _e.fillMode;
361
+ var _c = this.$props,
362
+ size = _c.size,
363
+ rounded = _c.rounded,
364
+ fillMode = _c.fillMode;
367
365
  var adaptiveActionSheetHeaderTemplateDef = function adaptiveActionSheetHeaderTemplateDef() {
368
366
  return [h("div", {
369
367
  "class": "k-actionsheet-titlebar-group k-hbox"
@@ -550,15 +548,42 @@ var MultiSelectTreeVue2 = {
550
548
  navigatableElements: ['input.k-input-inner', '.k-actionsheet-actions > button']
551
549
  });
552
550
  };
553
- var component = h("span", {
554
- ref: setRef(this, 'kendoAnchor', this.anchor),
555
- "class": classNames('k-multiselecttree k-input', this.$props.className, (_a = {}, _a["k-input-".concat(sizeMap[size] || size)] = size, _a["k-rounded-".concat(roundedMap[rounded] || rounded)] = rounded, _a["k-input-".concat(fillMode)] = fillMode, _a['k-focus'] = this.focusedState && !disabled, _a['k-invalid'] = !isValid, _a['k-disabled'] = disabled, _a['k-loading'] = this.$props.loading, _a['k-required'] = required, _a)),
556
- tabIndex: tabIndex,
557
- attrs: this.v3 ? undefined : {
551
+ var component = function component() {
552
+ var _this2 = this;
553
+ var _a, _b;
554
+ var _this = this;
555
+ return h("span", {
556
+ ref: setRef(this, 'kendoAnchor', this.anchor),
557
+ "class": classNames('k-multiselecttree k-input', this.$props.className, (_a = {}, _a["k-input-".concat(sizeMap[size] || size)] = size, _a["k-rounded-".concat(roundedMap[rounded] || rounded)] = rounded, _a["k-input-".concat(fillMode)] = fillMode, _a['k-focus'] = this.focusedState && !disabled, _a['k-invalid'] = !isValid, _a['k-disabled'] = disabled, _a['k-loading'] = this.$props.loading, _a['k-required'] = required, _a)),
558
558
  tabIndex: tabIndex,
559
+ attrs: this.v3 ? undefined : {
560
+ tabIndex: tabIndex,
561
+ accessKey: this.$props.accessKey,
562
+ id: id,
563
+ dir: dir,
564
+ role: "combobox",
565
+ "aria-haspopup": "tree",
566
+ "aria-expanded": this.isOpen,
567
+ "aria-disabled": disabled,
568
+ "aria-label": label,
569
+ "aria-labelledby": this.$props.ariaLabelledBy,
570
+ "aria-describedby": this.$props.ariaLabelledBy ? this.$props.ariaLabelledBy : 'tagslist-' + id,
571
+ "aria-required": this.$props.required
572
+ },
559
573
  accessKey: this.$props.accessKey,
560
574
  id: id,
561
575
  dir: dir,
576
+ onKeydown: this.onWrapperKeyDown,
577
+ on: this.v3 ? undefined : {
578
+ "keydown": this.onWrapperKeyDown,
579
+ "mousedown": this.onWrapperMouseDown,
580
+ "focusin": this.onFocus,
581
+ "focusout": this.onBlur,
582
+ "click": this.onWrapperClick
583
+ },
584
+ onMousedown: this.onWrapperMouseDown,
585
+ onFocusin: this.onFocus,
586
+ onFocusout: this.onBlur,
562
587
  role: "combobox",
563
588
  "aria-haspopup": "tree",
564
589
  "aria-expanded": this.isOpen,
@@ -566,36 +591,28 @@ var MultiSelectTreeVue2 = {
566
591
  "aria-label": label,
567
592
  "aria-labelledby": this.$props.ariaLabelledBy,
568
593
  "aria-describedby": this.$props.ariaLabelledBy ? this.$props.ariaLabelledBy : 'tagslist-' + id,
569
- "aria-required": this.$props.required
570
- },
571
- accessKey: this.$props.accessKey,
572
- id: id,
573
- dir: dir,
574
- onKeydown: this.onWrapperKeyDown,
575
- on: this.v3 ? undefined : {
576
- "keydown": this.onWrapperKeyDown,
577
- "mousedown": this.onWrapperMouseDown,
578
- "focusin": this.onFocus,
579
- "focusout": this.onBlur,
580
- "click": this.onWrapperClick
581
- },
582
- onMousedown: this.onWrapperMouseDown,
583
- onFocusin: this.onFocus,
584
- onFocusout: this.onBlur,
585
- role: "combobox",
586
- "aria-haspopup": "tree",
587
- "aria-expanded": this.isOpen,
588
- "aria-disabled": disabled,
589
- "aria-label": label,
590
- "aria-labelledby": this.$props.ariaLabelledBy,
591
- "aria-describedby": this.$props.ariaLabelledBy ? this.$props.ariaLabelledBy : 'tagslist-' + id,
592
- "aria-required": this.$props.required,
593
- onClick: this.onWrapperClick
594
- }, [this.tagsToRenderRef.length > 0 && h(TagList, {
595
- id: 'tagslist-' + id,
596
- attrs: this.v3 ? undefined : {
594
+ "aria-required": this.$props.required,
595
+ onClick: this.onWrapperClick
596
+ }, [this.tagsToRenderRef.length > 0 && h(TagList, {
597
597
  id: 'tagslist-' + id,
598
+ attrs: this.v3 ? undefined : {
599
+ id: 'tagslist-' + id,
600
+ tagRender: tagTemplate,
601
+ dataItems: this.tagsToRenderRef,
602
+ guid: id,
603
+ focused: this.focusedTagState ? this.tagsToRenderRef.find(function (t) {
604
+ return _this.focusedTagState && matchTags(t, _this.focusedTagState, dataItemKey);
605
+ }) : undefined,
606
+ tagsRounded: rounded,
607
+ size: size,
608
+ fillMode: fillMode
609
+ },
610
+ "class": classNames('k-input-values k-chip-list k-selection-multiple', (_b = {}, _b["k-chip-list-".concat(sizeMap[size] || size)] = size, _b['k-readonly'] = this.hasValue, _b)),
598
611
  tagRender: tagTemplate,
612
+ onTagdelete: this.onTagDelete,
613
+ on: this.v3 ? undefined : {
614
+ "tagdelete": this.onTagDelete
615
+ },
599
616
  dataItems: this.tagsToRenderRef,
600
617
  guid: id,
601
618
  focused: this.focusedTagState ? this.tagsToRenderRef.find(function (t) {
@@ -604,108 +621,164 @@ var MultiSelectTreeVue2 = {
604
621
  tagsRounded: rounded,
605
622
  size: size,
606
623
  fillMode: fillMode
607
- },
608
- "class": classNames('k-input-values k-chip-list k-selection-multiple', (_b = {}, _b["k-chip-list-".concat(sizeMap[size] || size)] = size, _b['k-readonly'] = this.hasValue, _b)),
609
- tagRender: tagTemplate,
610
- onTagdelete: this.onTagDelete,
611
- on: this.v3 ? undefined : {
612
- "tagdelete": this.onTagDelete
613
- },
614
- dataItems: this.tagsToRenderRef,
615
- guid: id,
616
- focused: this.focusedTagState ? this.tagsToRenderRef.find(function (t) {
617
- return _this.focusedTagState && matchTags(t, _this.focusedTagState, dataItemKey);
618
- }) : undefined,
619
- tagsRounded: rounded,
620
- size: size,
621
- fillMode: fillMode
622
- }), h("span", {
623
- "class": "k-input-inner",
624
- role: 'combobox',
625
- attrs: this.v3 ? undefined : {
624
+ }), h("span", {
625
+ "class": "k-input-inner",
626
626
  role: 'combobox',
627
+ attrs: this.v3 ? undefined : {
628
+ role: 'combobox',
629
+ tabIndex: tabIndex,
630
+ "aria-expanded": this.isOpen,
631
+ "aria-describedby": 'tagslist-' + id,
632
+ "aria-label": this.$props.ariaLabelledBy
633
+ },
627
634
  tabIndex: tabIndex,
628
635
  "aria-expanded": this.isOpen,
629
636
  "aria-describedby": 'tagslist-' + id,
630
637
  "aria-label": this.$props.ariaLabelledBy
631
- },
632
- tabIndex: tabIndex,
633
- "aria-expanded": this.isOpen,
634
- "aria-describedby": 'tagslist-' + id,
635
- "aria-label": this.$props.ariaLabelledBy
636
- }, [this.tagsToRenderRef.length === 0 && h("span", {
637
- "class": "k-input-value-text"
638
- }, [placeholder])]), this.$props.loading && h(Icon, {
639
- "class": "k-input-loading-icon",
640
- name: "loading",
641
- attrs: this.v3 ? undefined : {
642
- name: "loading"
643
- }
644
- }), this.hasValue && !disabled && h(ClearButton, {
645
- onClearclick: this.onClear,
646
- on: this.v3 ? undefined : {
647
- "clearclick": this.onClear
648
- }
649
- }), /* Dummy component to support forms */h("select", {
650
- name: name,
651
- attrs: this.v3 ? undefined : {
638
+ }, [this.tagsToRenderRef.length === 0 && h("span", {
639
+ "class": "k-input-value-text"
640
+ }, [placeholder])]), this.$props.loading && h(Icon, {
641
+ "class": "k-input-loading-icon",
642
+ name: "loading",
643
+ attrs: this.v3 ? undefined : {
644
+ name: "loading"
645
+ }
646
+ }), this.hasValue && !disabled && h(ClearButton, {
647
+ onClearclick: this.onClear,
648
+ on: this.v3 ? undefined : {
649
+ "clearclick": this.onClear
650
+ }
651
+ }), /* Dummy component to support forms */h("select", {
652
652
  name: name,
653
+ attrs: this.v3 ? undefined : {
654
+ name: name,
655
+ tabIndex: -1,
656
+ "aria-hidden": true,
657
+ required: required,
658
+ title: label
659
+ },
660
+ ref: setRef(this, 'select'),
653
661
  tabIndex: -1,
654
662
  "aria-hidden": true,
655
663
  required: required,
656
- title: label
657
- },
658
- ref: setRef(this, 'select'),
659
- tabIndex: -1,
660
- "aria-hidden": true,
661
- required: required,
662
- title: label,
663
- style: {
664
- opacity: 0,
665
- width: 1,
666
- border: 0,
667
- zIndex: -1,
668
- position: 'absolute',
669
- left: '50%'
670
- }
671
- }, [h("option", {
672
- value: this.v3 ? this.$props.valueMap ? this.$props.valueMap.call(undefined, value) : value : null,
673
- domProps: this.v3 ? undefined : {
674
- "value": this.$props.valueMap ? this.$props.valueMap.call(undefined, value) : value
675
- }
676
- })]), !renderAdaptive &&
677
- // @ts-ignore function children
678
- h(Popup, {
679
- style: {
680
- width: this.popupWidth,
681
- direction: dir
682
- },
683
- popupClass: classNames(popupSettings.popupClass, 'k-multiselecttree-popup', 'popup-' + this.componentGuid),
684
- attrs: this.v3 ? undefined : {
664
+ title: label,
665
+ style: {
666
+ opacity: 0,
667
+ width: 1,
668
+ border: 0,
669
+ zIndex: -1,
670
+ position: 'absolute',
671
+ left: '50%'
672
+ }
673
+ }, [h("option", {
674
+ value: this.v3 ? this.$props.valueMap ? this.$props.valueMap.call(undefined, value) : value : null,
675
+ domProps: this.v3 ? undefined : {
676
+ "value": this.$props.valueMap ? this.$props.valueMap.call(undefined, value) : value
677
+ }
678
+ })]), !renderAdaptive &&
679
+ // @ts-ignore function children
680
+ h(Popup, {
681
+ style: {
682
+ width: this.popupWidth,
683
+ direction: dir
684
+ },
685
685
  popupClass: classNames(popupSettings.popupClass, 'k-multiselecttree-popup', 'popup-' + this.componentGuid),
686
+ attrs: this.v3 ? undefined : {
687
+ popupClass: classNames(popupSettings.popupClass, 'k-multiselecttree-popup', 'popup-' + this.componentGuid),
688
+ animate: popupSettings.animate,
689
+ anchor: this.anchor,
690
+ show: this.isOpen,
691
+ appendTo: popupSettings.appendTo
692
+ },
693
+ "class": classNames(popupSettings.className, {
694
+ 'k-rtl': dir === 'rtl'
695
+ }),
686
696
  animate: popupSettings.animate,
687
697
  anchor: this.anchor,
688
698
  show: this.isOpen,
689
- appendTo: popupSettings.appendTo
690
- },
691
- "class": classNames(popupSettings.className, {
692
- 'k-rtl': dir === 'rtl'
693
- }),
694
- animate: popupSettings.animate,
695
- anchor: this.anchor,
696
- show: this.isOpen,
697
- onOpen: this.onPopupOpened,
698
- on: this.v3 ? undefined : {
699
- "open": this.onPopupOpened,
700
- "close": this.onPopupClosed
701
- },
702
- onClose: this.onPopupClosed,
703
- appendTo: popupSettings.appendTo,
704
- ref: setRef(this, 'popup')
705
- }, this.v3 ? function () {
706
- return [_this2.$props.filterable &&
707
- // @ts-ignore
708
- h(ListFilter, {
699
+ onOpen: this.onPopupOpened,
700
+ on: this.v3 ? undefined : {
701
+ "open": this.onPopupOpened,
702
+ "close": this.onPopupClosed
703
+ },
704
+ onClose: this.onPopupClosed,
705
+ appendTo: popupSettings.appendTo,
706
+ ref: setRef(this, 'popup')
707
+ }, this.v3 ? function () {
708
+ return [_this2.$props.filterable &&
709
+ // @ts-ignore
710
+ h(ListFilter, {
711
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
712
+ attrs: _this2.v3 ? undefined : {
713
+ value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
714
+ size: size,
715
+ rounded: rounded,
716
+ fillMode: fillMode
717
+ },
718
+ ref: setRef(_this2, 'input'),
719
+ onChange: _this2.onFilterChange,
720
+ on: _this2.v3 ? undefined : {
721
+ "change": _this2.onFilterChange,
722
+ "keydown": _this2.onInputKeyDown,
723
+ "focus": _this2.onFocus,
724
+ "blur": _this2.onBlur
725
+ },
726
+ onKeydown: _this2.onInputKeyDown,
727
+ size: size,
728
+ rounded: rounded,
729
+ fillMode: fillMode,
730
+ onFocus: _this2.onFocus,
731
+ onBlur: _this2.onBlur
732
+ }), header && h("div", {
733
+ "class": "k-list-header"
734
+ }, [header]), dataItems.length > 0 ?
735
+ // @ts-ignore
736
+ h(TreeView, {
737
+ ref: setRef(_this2, 'treeView'),
738
+ tabIndex: tabIndex,
739
+ attrs: _this2.v3 ? undefined : {
740
+ tabIndex: tabIndex,
741
+ dataItems: dataItems,
742
+ focusIdField: dataItemKey,
743
+ textField: _this2.$props.textField,
744
+ checkField: checkField,
745
+ checkIndeterminateField: checkIndeterminateField,
746
+ expandField: _this2.$props.expandField,
747
+ childrenField: subItemsField,
748
+ expandIcons: true,
749
+ checkboxes: true,
750
+ size: size,
751
+ item: itemTemplate
752
+ },
753
+ dataItems: dataItems,
754
+ focusIdField: dataItemKey,
755
+ textField: _this2.$props.textField,
756
+ checkField: checkField,
757
+ checkIndeterminateField: checkIndeterminateField,
758
+ expandField: _this2.$props.expandField,
759
+ childrenField: subItemsField,
760
+ expandIcons: true,
761
+ onItemclick: _this2.onChange,
762
+ on: _this2.v3 ? undefined : {
763
+ "itemclick": _this2.onChange,
764
+ "checkchange": _this2.onChange,
765
+ "expandchange": _this2.onExpand,
766
+ "focus": _this2.onFocus,
767
+ "blur": _this2.onBlur,
768
+ "keydown": _this2.onWrapperKeyDown
769
+ },
770
+ onCheckchange: _this2.onChange,
771
+ onExpandchange: _this2.onExpand,
772
+ onFocus: _this2.onFocus,
773
+ onBlur: _this2.onBlur,
774
+ onKeydown: _this2.onWrapperKeyDown,
775
+ checkboxes: true,
776
+ size: size,
777
+ item: itemTemplate
778
+ }) : noDataTemplate, footer && h("div", {
779
+ "class": "k-list-footer"
780
+ }, [footer])];
781
+ } : [_this2.$props.filterable && h(ListFilter, {
709
782
  value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
710
783
  attrs: _this2.v3 ? undefined : {
711
784
  value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
@@ -729,9 +802,7 @@ var MultiSelectTreeVue2 = {
729
802
  onBlur: _this2.onBlur
730
803
  }), header && h("div", {
731
804
  "class": "k-list-header"
732
- }, [header]), dataItems.length > 0 ?
733
- // @ts-ignore
734
- h(TreeView, {
805
+ }, [header]), dataItems.length > 0 ? h(TreeView, {
735
806
  ref: setRef(_this2, 'treeView'),
736
807
  tabIndex: tabIndex,
737
808
  attrs: _this2.v3 ? undefined : {
@@ -775,80 +846,12 @@ var MultiSelectTreeVue2 = {
775
846
  item: itemTemplate
776
847
  }) : noDataTemplate, footer && h("div", {
777
848
  "class": "k-list-footer"
778
- }, [footer])];
779
- } : [_this2.$props.filterable && h(ListFilter, {
780
- value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
781
- attrs: _this2.v3 ? undefined : {
782
- value: _this2.$props.filter === undefined ? _this2.filterState : _this2.$props.filter,
783
- size: size,
784
- rounded: rounded,
785
- fillMode: fillMode
786
- },
787
- ref: setRef(_this2, 'input'),
788
- onChange: _this2.onFilterChange,
789
- on: _this2.v3 ? undefined : {
790
- "change": _this2.onFilterChange,
791
- "keydown": _this2.onInputKeyDown,
792
- "focus": _this2.onFocus,
793
- "blur": _this2.onBlur
794
- },
795
- onKeydown: _this2.onInputKeyDown,
796
- size: size,
797
- rounded: rounded,
798
- fillMode: fillMode,
799
- onFocus: _this2.onFocus,
800
- onBlur: _this2.onBlur
801
- }), header && h("div", {
802
- "class": "k-list-header"
803
- }, [header]), dataItems.length > 0 ? h(TreeView, {
804
- ref: setRef(_this2, 'treeView'),
805
- tabIndex: tabIndex,
806
- attrs: _this2.v3 ? undefined : {
807
- tabIndex: tabIndex,
808
- dataItems: dataItems,
809
- focusIdField: dataItemKey,
810
- textField: _this2.$props.textField,
811
- checkField: checkField,
812
- checkIndeterminateField: checkIndeterminateField,
813
- expandField: _this2.$props.expandField,
814
- childrenField: subItemsField,
815
- expandIcons: true,
816
- checkboxes: true,
817
- size: size,
818
- item: itemTemplate
819
- },
820
- dataItems: dataItems,
821
- focusIdField: dataItemKey,
822
- textField: _this2.$props.textField,
823
- checkField: checkField,
824
- checkIndeterminateField: checkIndeterminateField,
825
- expandField: _this2.$props.expandField,
826
- childrenField: subItemsField,
827
- expandIcons: true,
828
- onItemclick: _this2.onChange,
829
- on: _this2.v3 ? undefined : {
830
- "itemclick": _this2.onChange,
831
- "checkchange": _this2.onChange,
832
- "expandchange": _this2.onExpand,
833
- "focus": _this2.onFocus,
834
- "blur": _this2.onBlur,
835
- "keydown": _this2.onWrapperKeyDown
836
- },
837
- onCheckchange: _this2.onChange,
838
- onExpandchange: _this2.onExpand,
839
- onFocus: _this2.onFocus,
840
- onBlur: _this2.onBlur,
841
- onKeydown: _this2.onWrapperKeyDown,
842
- checkboxes: true,
843
- size: size,
844
- item: itemTemplate
845
- }) : noDataTemplate, footer && h("div", {
846
- "class": "k-list-footer"
847
- }, [footer])])]);
849
+ }, [footer])])]);
850
+ };
848
851
  // The following one combines the default rendering of the MultiSelect and the Adaptive rendering.
849
852
  // This is needed because of Vue 2 specifics
850
- var multiselecttree = [component, renderAdaptive && renderAdaptiveListContainer.call(this)];
851
- var multiselecttreeToRender = isV3 ? multiselecttree : this.$props.adaptive ? h("span", [multiselecttree]) : component;
853
+ var multiselecttree = [isV3 ? h(component.call(this), __assign({}, this.$attrs)) : component.call(this), renderAdaptive && renderAdaptiveListContainer.call(this)];
854
+ var multiselecttreeToRender = isV3 ? multiselecttree : this.$props.adaptive ? h("span", [multiselecttree]) : component.call(this);
852
855
  return label ?
853
856
  // @ts-ignore function children
854
857
  h(FloatingLabel, {
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-dropdowns',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1719493949,
8
+ publishDate: 1721026677,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
11
11
  };