nubomed-ui 2.0.79 → 2.0.80
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.
Potentially problematic release.
This version of nubomed-ui might be problematic. Click here for more details.
- package/css/nb-ui/index.css +1 -1
 - package/fonts/iconfont.js +1 -1
 - package/lang/en-US.js +181 -1
 - package/lang/zh-CN.js +195 -1
 - package/nubomed-ui.common.js +133 -11
 - package/nubomed-ui.common.js.map +1 -1
 - package/nubomed-ui.umd.js +133 -11
 - package/nubomed-ui.umd.js.map +1 -1
 - package/nubomed-ui.umd.min.js +2 -2
 - package/nubomed-ui.umd.min.js.map +1 -1
 - package/package.json +2 -2
 
    
        package/nubomed-ui.umd.js
    CHANGED
    
    | 
         @@ -1538,7 +1538,7 @@ src.install = function (Vue) { 
     | 
|
| 
       1538 
1538 
     | 
    
         | 
| 
       1539 
1539 
     | 
    
         
             
            /***/ }),
         
     | 
| 
       1540 
1540 
     | 
    
         | 
| 
       1541 
     | 
    
         
            -
            /***/  
     | 
| 
      
 1541 
     | 
    
         
            +
            /***/ 9390:
         
     | 
| 
       1542 
1542 
     | 
    
         
             
            /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
         
     | 
| 
       1543 
1543 
     | 
    
         | 
| 
       1544 
1544 
     | 
    
         
             
            "use strict";
         
     | 
| 
         @@ -1550,8 +1550,8 @@ __webpack_require__.d(__webpack_exports__, { 
     | 
|
| 
       1550 
1550 
     | 
    
         
             
              "default": function() { return /* binding */ NBCheckboxGroup; }
         
     | 
| 
       1551 
1551 
     | 
    
         
             
            });
         
     | 
| 
       1552 
1552 
     | 
    
         | 
| 
       1553 
     | 
    
         
            -
            ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBCheckboxGroup/src/index.vue?vue&type=template&id= 
     | 
| 
       1554 
     | 
    
         
            -
            var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-checkbox-group"},_vm._l((_vm.options),function(item,index){return _c('div',{key:index,staticClass:"nb-checkbox-group__item",class:_vm.getItemClass(item),style:(("min-width: " + _vm.minWidth + "px")),on:{"click":function($event){$event.stopPropagation();return _vm.handleClick(item)}}},[_c('nb-icon',{attrs:{"icon":"checked-corner-bottom"}}), 
     | 
| 
      
 1553 
     | 
    
         
            +
            ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBCheckboxGroup/src/index.vue?vue&type=template&id=36060e84&scoped=true
         
     | 
| 
      
 1554 
     | 
    
         
            +
            var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-checkbox-group"},_vm._l((_vm.options),function(item,index){return _c('div',{key:index,staticClass:"nb-checkbox-group__item",class:_vm.getItemClass(item),style:(("min-width: " + _vm.minWidth + "px")),on:{"click":function($event){$event.stopPropagation();return _vm.handleClick(item)}}},[_c('nb-icon',{attrs:{"icon":"checked-corner-bottom"}}),_vm._t("default",function(){return [( true)?_c('span',[_vm._v(_vm._s(item.label)+" ")]):0]},{"row":item})],2)}),0)}
         
     | 
| 
       1555 
1555 
     | 
    
         
             
            var staticRenderFns = []
         
     | 
| 
       1556 
1556 
     | 
    
         | 
| 
       1557 
1557 
     | 
    
         | 
| 
         @@ -1594,10 +1594,6 @@ var esnext_iterator_map = __webpack_require__(1454); 
     | 
|
| 
       1594 
1594 
     | 
    
         
             
            //
         
     | 
| 
       1595 
1595 
     | 
    
         
             
            //
         
     | 
| 
       1596 
1596 
     | 
    
         
             
            //
         
     | 
| 
       1597 
     | 
    
         
            -
            //
         
     | 
| 
       1598 
     | 
    
         
            -
            //
         
     | 
| 
       1599 
     | 
    
         
            -
            //
         
     | 
| 
       1600 
     | 
    
         
            -
            //
         
     | 
| 
       1601 
1597 
     | 
    
         | 
| 
       1602 
1598 
     | 
    
         
             
            /* harmony default export */ var srcvue_type_script_lang_js = ({
         
     | 
| 
       1603 
1599 
     | 
    
         
             
              name: 'NBCheckboxGroup',
         
     | 
| 
         @@ -1682,7 +1678,7 @@ var component = (0,componentNormalizer/* default */.A)( 
     | 
|
| 
       1682 
1678 
     | 
    
         
             
              staticRenderFns,
         
     | 
| 
       1683 
1679 
     | 
    
         
             
              false,
         
     | 
| 
       1684 
1680 
     | 
    
         
             
              null,
         
     | 
| 
       1685 
     | 
    
         
            -
              " 
     | 
| 
      
 1681 
     | 
    
         
            +
              "36060e84",
         
     | 
| 
       1686 
1682 
     | 
    
         
             
              null
         
     | 
| 
       1687 
1683 
     | 
    
         | 
| 
       1688 
1684 
     | 
    
         
             
            )
         
     | 
| 
         @@ -2706,6 +2702,131 @@ src.install = function (Vue) { 
     | 
|
| 
       2706 
2702 
     | 
    
         | 
| 
       2707 
2703 
     | 
    
         
             
            /***/ }),
         
     | 
| 
       2708 
2704 
     | 
    
         | 
| 
      
 2705 
     | 
    
         
            +
            /***/ 7316:
         
     | 
| 
      
 2706 
     | 
    
         
            +
            /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
         
     | 
| 
      
 2707 
     | 
    
         
            +
             
     | 
| 
      
 2708 
     | 
    
         
            +
            "use strict";
         
     | 
| 
      
 2709 
     | 
    
         
            +
            // ESM COMPAT FLAG
         
     | 
| 
      
 2710 
     | 
    
         
            +
            __webpack_require__.r(__webpack_exports__);
         
     | 
| 
      
 2711 
     | 
    
         
            +
             
     | 
| 
      
 2712 
     | 
    
         
            +
            // EXPORTS
         
     | 
| 
      
 2713 
     | 
    
         
            +
            __webpack_require__.d(__webpack_exports__, {
         
     | 
| 
      
 2714 
     | 
    
         
            +
              "default": function() { return /* binding */ NBInputTime; }
         
     | 
| 
      
 2715 
     | 
    
         
            +
            });
         
     | 
| 
      
 2716 
     | 
    
         
            +
             
     | 
| 
      
 2717 
     | 
    
         
            +
            ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBInputTime/src/index.vue?vue&type=template&id=2dd24afd&scoped=true
         
     | 
| 
      
 2718 
     | 
    
         
            +
            var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-input-time"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.hour),expression:"hour"}],ref:"refHour",attrs:{"placeholder":"00"},domProps:{"value":(_vm.hour)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.hour=$event.target.value},_vm.onInputHour]}}),_c('i',[_vm._v(":")]),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.minute),expression:"minute"}],ref:"refMinute",attrs:{"placeholder":"00"},domProps:{"value":(_vm.minute)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.minute=$event.target.value},_vm.onInputMinute]}})])}
         
     | 
| 
      
 2719 
     | 
    
         
            +
            var staticRenderFns = []
         
     | 
| 
      
 2720 
     | 
    
         
            +
             
     | 
| 
      
 2721 
     | 
    
         
            +
             
     | 
| 
      
 2722 
     | 
    
         
            +
            ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-80.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBInputTime/src/index.vue?vue&type=script&lang=js
         
     | 
| 
      
 2723 
     | 
    
         
            +
            //
         
     | 
| 
      
 2724 
     | 
    
         
            +
            //
         
     | 
| 
      
 2725 
     | 
    
         
            +
            //
         
     | 
| 
      
 2726 
     | 
    
         
            +
            //
         
     | 
| 
      
 2727 
     | 
    
         
            +
            //
         
     | 
| 
      
 2728 
     | 
    
         
            +
            //
         
     | 
| 
      
 2729 
     | 
    
         
            +
            //
         
     | 
| 
      
 2730 
     | 
    
         
            +
            //
         
     | 
| 
      
 2731 
     | 
    
         
            +
            //
         
     | 
| 
      
 2732 
     | 
    
         
            +
            //
         
     | 
| 
      
 2733 
     | 
    
         
            +
            //
         
     | 
| 
      
 2734 
     | 
    
         
            +
            //
         
     | 
| 
      
 2735 
     | 
    
         
            +
            //
         
     | 
| 
      
 2736 
     | 
    
         
            +
            //
         
     | 
| 
      
 2737 
     | 
    
         
            +
            //
         
     | 
| 
      
 2738 
     | 
    
         
            +
            //
         
     | 
| 
      
 2739 
     | 
    
         
            +
             
     | 
| 
      
 2740 
     | 
    
         
            +
            /* harmony default export */ var srcvue_type_script_lang_js = ({
         
     | 
| 
      
 2741 
     | 
    
         
            +
              name: 'NBInputTime',
         
     | 
| 
      
 2742 
     | 
    
         
            +
              props: {
         
     | 
| 
      
 2743 
     | 
    
         
            +
                // 默认值
         
     | 
| 
      
 2744 
     | 
    
         
            +
                value: {
         
     | 
| 
      
 2745 
     | 
    
         
            +
                  type: [String, Number, null, undefined],
         
     | 
| 
      
 2746 
     | 
    
         
            +
                  default: ''
         
     | 
| 
      
 2747 
     | 
    
         
            +
                }
         
     | 
| 
      
 2748 
     | 
    
         
            +
              },
         
     | 
| 
      
 2749 
     | 
    
         
            +
              data() {
         
     | 
| 
      
 2750 
     | 
    
         
            +
                return {
         
     | 
| 
      
 2751 
     | 
    
         
            +
                  hour: null,
         
     | 
| 
      
 2752 
     | 
    
         
            +
                  minute: null
         
     | 
| 
      
 2753 
     | 
    
         
            +
                };
         
     | 
| 
      
 2754 
     | 
    
         
            +
              },
         
     | 
| 
      
 2755 
     | 
    
         
            +
              computed: {},
         
     | 
| 
      
 2756 
     | 
    
         
            +
              watch: {
         
     | 
| 
      
 2757 
     | 
    
         
            +
                value: {
         
     | 
| 
      
 2758 
     | 
    
         
            +
                  deep: true,
         
     | 
| 
      
 2759 
     | 
    
         
            +
                  immediate: true,
         
     | 
| 
      
 2760 
     | 
    
         
            +
                  handler(val) {
         
     | 
| 
      
 2761 
     | 
    
         
            +
                    if ((val || '').split(':')[0]) {
         
     | 
| 
      
 2762 
     | 
    
         
            +
                      this.hour = String((val || '').split(':')[0]);
         
     | 
| 
      
 2763 
     | 
    
         
            +
                    }
         
     | 
| 
      
 2764 
     | 
    
         
            +
                    if ((val || '').split(':')[1]) {
         
     | 
| 
      
 2765 
     | 
    
         
            +
                      this.minute = String((val || '').split(':')[1]);
         
     | 
| 
      
 2766 
     | 
    
         
            +
                    }
         
     | 
| 
      
 2767 
     | 
    
         
            +
                  }
         
     | 
| 
      
 2768 
     | 
    
         
            +
                }
         
     | 
| 
      
 2769 
     | 
    
         
            +
              },
         
     | 
| 
      
 2770 
     | 
    
         
            +
              created() {},
         
     | 
| 
      
 2771 
     | 
    
         
            +
              mounted() {},
         
     | 
| 
      
 2772 
     | 
    
         
            +
              beforeDestroy() {},
         
     | 
| 
      
 2773 
     | 
    
         
            +
              filters: {},
         
     | 
| 
      
 2774 
     | 
    
         
            +
              methods: {
         
     | 
| 
      
 2775 
     | 
    
         
            +
                onInputHour(e) {
         
     | 
| 
      
 2776 
     | 
    
         
            +
                  const currentInput = e.target;
         
     | 
| 
      
 2777 
     | 
    
         
            +
                  const value = currentInput.value;
         
     | 
| 
      
 2778 
     | 
    
         
            +
                  // console.log(currentInput, { selectionStart: currentInput.selectionStart, value: currentInput.value })
         
     | 
| 
      
 2779 
     | 
    
         
            +
                  if (value.length === 2 && Number(value) > 0 && Number(value) <= 24) {
         
     | 
| 
      
 2780 
     | 
    
         
            +
                    this.$refs.refMinute && this.$refs.refMinute.focus();
         
     | 
| 
      
 2781 
     | 
    
         
            +
                  }
         
     | 
| 
      
 2782 
     | 
    
         
            +
                  this.$emit('input', (this.hour || '') + ':' + (this.minute || ''));
         
     | 
| 
      
 2783 
     | 
    
         
            +
                },
         
     | 
| 
      
 2784 
     | 
    
         
            +
                onInputMinute(e) {
         
     | 
| 
      
 2785 
     | 
    
         
            +
                  this.$emit('input', (this.hour || '') + ':' + (this.minute || ''));
         
     | 
| 
      
 2786 
     | 
    
         
            +
                }
         
     | 
| 
      
 2787 
     | 
    
         
            +
              }
         
     | 
| 
      
 2788 
     | 
    
         
            +
            });
         
     | 
| 
      
 2789 
     | 
    
         
            +
            ;// ./packages/components/NBInputTime/src/index.vue?vue&type=script&lang=js
         
     | 
| 
      
 2790 
     | 
    
         
            +
             /* harmony default export */ var NBInputTime_srcvue_type_script_lang_js = (srcvue_type_script_lang_js); 
         
     | 
| 
      
 2791 
     | 
    
         
            +
            // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
         
     | 
| 
      
 2792 
     | 
    
         
            +
            var componentNormalizer = __webpack_require__(1656);
         
     | 
| 
      
 2793 
     | 
    
         
            +
            ;// ./packages/components/NBInputTime/src/index.vue
         
     | 
| 
      
 2794 
     | 
    
         
            +
             
     | 
| 
      
 2795 
     | 
    
         
            +
             
     | 
| 
      
 2796 
     | 
    
         
            +
             
     | 
| 
      
 2797 
     | 
    
         
            +
             
     | 
| 
      
 2798 
     | 
    
         
            +
             
     | 
| 
      
 2799 
     | 
    
         
            +
            /* normalize component */
         
     | 
| 
      
 2800 
     | 
    
         
            +
            ;
         
     | 
| 
      
 2801 
     | 
    
         
            +
            var component = (0,componentNormalizer/* default */.A)(
         
     | 
| 
      
 2802 
     | 
    
         
            +
              NBInputTime_srcvue_type_script_lang_js,
         
     | 
| 
      
 2803 
     | 
    
         
            +
              render,
         
     | 
| 
      
 2804 
     | 
    
         
            +
              staticRenderFns,
         
     | 
| 
      
 2805 
     | 
    
         
            +
              false,
         
     | 
| 
      
 2806 
     | 
    
         
            +
              null,
         
     | 
| 
      
 2807 
     | 
    
         
            +
              "2dd24afd",
         
     | 
| 
      
 2808 
     | 
    
         
            +
              null
         
     | 
| 
      
 2809 
     | 
    
         
            +
              
         
     | 
| 
      
 2810 
     | 
    
         
            +
            )
         
     | 
| 
      
 2811 
     | 
    
         
            +
             
     | 
| 
      
 2812 
     | 
    
         
            +
            /* harmony default export */ var src = (component.exports);
         
     | 
| 
      
 2813 
     | 
    
         
            +
            ;// ./packages/components/NBInputTime/index.js
         
     | 
| 
      
 2814 
     | 
    
         
            +
            /*
         
     | 
| 
      
 2815 
     | 
    
         
            +
             * @Author: chenghuan.dong
         
     | 
| 
      
 2816 
     | 
    
         
            +
             * @Date: 2024-11-12 11:27:05
         
     | 
| 
      
 2817 
     | 
    
         
            +
             * @LastEditTime: 2024-11-12 14:38:34
         
     | 
| 
      
 2818 
     | 
    
         
            +
             * @LastEditors: chenghuan.dong
         
     | 
| 
      
 2819 
     | 
    
         
            +
             * @Description: 
         
     | 
| 
      
 2820 
     | 
    
         
            +
             * @FilePath: \nubomed-ui\packages\components\NBIcon\index.js
         
     | 
| 
      
 2821 
     | 
    
         
            +
             */
         
     | 
| 
      
 2822 
     | 
    
         
            +
             
     | 
| 
      
 2823 
     | 
    
         
            +
            src.install = function (Vue) {
         
     | 
| 
      
 2824 
     | 
    
         
            +
              Vue.component(src.name, src);
         
     | 
| 
      
 2825 
     | 
    
         
            +
            };
         
     | 
| 
      
 2826 
     | 
    
         
            +
            /* harmony default export */ var NBInputTime = (src);
         
     | 
| 
      
 2827 
     | 
    
         
            +
             
     | 
| 
      
 2828 
     | 
    
         
            +
            /***/ }),
         
     | 
| 
      
 2829 
     | 
    
         
            +
             
     | 
| 
       2709 
2830 
     | 
    
         
             
            /***/ 5355:
         
     | 
| 
       2710 
2831 
     | 
    
         
             
            /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
         
     | 
| 
       2711 
2832 
     | 
    
         | 
| 
         @@ -6881,13 +7002,14 @@ var map = { 
     | 
|
| 
       6881 
7002 
     | 
    
         
             
            	"./NBCabinetInventoryCarousel/index.js": 5433,
         
     | 
| 
       6882 
7003 
     | 
    
         
             
            	"./NBCabinetLockState/index.js": 960,
         
     | 
| 
       6883 
7004 
     | 
    
         
             
            	"./NBCabinetState/index.js": 5540,
         
     | 
| 
       6884 
     | 
    
         
            -
            	"./NBCheckboxGroup/index.js":  
     | 
| 
      
 7005 
     | 
    
         
            +
            	"./NBCheckboxGroup/index.js": 9390,
         
     | 
| 
       6885 
7006 
     | 
    
         
             
            	"./NBDialog/index.js": 2324,
         
     | 
| 
       6886 
7007 
     | 
    
         
             
            	"./NBEmpty/index.js": 5006,
         
     | 
| 
       6887 
7008 
     | 
    
         
             
            	"./NBExpiryIcon/index.js": 3001,
         
     | 
| 
       6888 
7009 
     | 
    
         
             
            	"./NBFullscreenDialog/index.js": 1516,
         
     | 
| 
       6889 
7010 
     | 
    
         
             
            	"./NBHeader/index.js": 6523,
         
     | 
| 
       6890 
7011 
     | 
    
         
             
            	"./NBIcon/index.js": 2333,
         
     | 
| 
      
 7012 
     | 
    
         
            +
            	"./NBInputTime/index.js": 7316,
         
     | 
| 
       6891 
7013 
     | 
    
         
             
            	"./NBMessageDialog/index.js": 5355,
         
     | 
| 
       6892 
7014 
     | 
    
         
             
            	"./NBNameSpecCard/index.js": 6970,
         
     | 
| 
       6893 
7015 
     | 
    
         
             
            	"./NBNameToggleCard/index.js": 7996,
         
     | 
| 
         @@ -9761,7 +9883,7 @@ var locale = __webpack_require__(7294); 
     | 
|
| 
       9761 
9883 
     | 
    
         
             
            /*
         
     | 
| 
       9762 
9884 
     | 
    
         
             
             * @Author: chenghuan.dong
         
     | 
| 
       9763 
9885 
     | 
    
         
             
             * @Date: 2024-11-11 13:46:54
         
     | 
| 
       9764 
     | 
    
         
            -
             * @LastEditTime: 2024-11-26  
     | 
| 
      
 9886 
     | 
    
         
            +
             * @LastEditTime: 2024-11-26 17:12:32
         
     | 
| 
       9765 
9887 
     | 
    
         
             
             * @LastEditors: chenghuan.dong
         
     | 
| 
       9766 
9888 
     | 
    
         
             
             * @Description:
         
     | 
| 
       9767 
9889 
     | 
    
         
             
             * @FilePath: \nubomed-ui\packages\index.js
         
     | 
| 
         @@ -9793,7 +9915,7 @@ const install = function (Vue, options = {}) { 
     | 
|
| 
       9793 
9915 
     | 
    
         
             
              if (install.installed) return;
         
     | 
| 
       9794 
9916 
     | 
    
         
             
              components.forEach(component => {
         
     | 
| 
       9795 
9917 
     | 
    
         
             
                const name = 'nb-' + camelToKebab(component.name.slice(2));
         
     | 
| 
       9796 
     | 
    
         
            -
                const installNames = ['nb-icon', 'nb-tag', 'nb-badge', 'nb-empty', 'nb-radio-group', 'nb-checkbox-group', 'nb-header', 'nb-summary-bar', 'nb-header', 'nb-tabs', 'nb-pagination', 'nb-progress', 'nb-dialog', 'nb-fullscreen-dialog', 'nb-out-footer-dialog', 'nb-message-dialog', 'nb-sidebar-nav-group', 'nb-sidebar-nav', 'nb-expiry-icon', 'nb-reagent-type', 'nb-cabinet-inventory-carousel', 'nb-version-dialog', 'nb-barcode-review-dialog', 'nb-toggle-cate', 'nb-name-spec-card', 'nb-barcode-card', 'nb-name-toggle-card', 'nb-search-keyboard', 'nb-cabinet-state', 'nb-cabinet-lock-state', 'nb-uv-dialog', 'nb-status-bar'];
         
     | 
| 
      
 9918 
     | 
    
         
            +
                const installNames = ['nb-icon', 'nb-tag', 'nb-badge', 'nb-empty', 'nb-radio-group', 'nb-checkbox-group', 'nb-header', 'nb-summary-bar', 'nb-header', 'nb-tabs', 'nb-pagination', 'nb-progress', 'nb-dialog', 'nb-fullscreen-dialog', 'nb-out-footer-dialog', 'nb-message-dialog', 'nb-sidebar-nav-group', 'nb-sidebar-nav', 'nb-expiry-icon', 'nb-reagent-type', 'nb-cabinet-inventory-carousel', 'nb-version-dialog', 'nb-barcode-review-dialog', 'nb-toggle-cate', 'nb-name-spec-card', 'nb-barcode-card', 'nb-name-toggle-card', 'nb-search-keyboard', 'nb-cabinet-state', 'nb-cabinet-lock-state', 'nb-uv-dialog', 'nb-status-bar', 'nb-input-time'];
         
     | 
| 
       9797 
9919 
     | 
    
         
             
                // if (installNames.includes(name)) {
         
     | 
| 
       9798 
9920 
     | 
    
         
             
                //   console.log('%c' + '√ ' + name, 'color: #00A572;')
         
     | 
| 
       9799 
9921 
     | 
    
         
             
                // } else {
         
     |