nubomed-ui 2.0.78 → 2.0.80

Sign up to get free protection for your applications and to get access to all the features.
package/nubomed-ui.umd.js CHANGED
@@ -1194,7 +1194,7 @@ src.install = function (Vue) {
1194
1194
 
1195
1195
  /***/ }),
1196
1196
 
1197
- /***/ 8450:
1197
+ /***/ 960:
1198
1198
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1199
1199
 
1200
1200
  "use strict";
@@ -1206,8 +1206,8 @@ __webpack_require__.d(__webpack_exports__, {
1206
1206
  "default": function() { return /* binding */ NBCabinetLockState; }
1207
1207
  });
1208
1208
 
1209
- ;// ./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/NBCabinetLockState/src/index.vue?vue&type=template&id=489486c3&scoped=true
1210
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-cabinet-lock-state",class:("nb-cabinet-lock-state--" + _vm.size)},[_c('img',{staticClass:"cabinet__img",attrs:{"src":("" + (_vm.item.terModelPic))}}),(_vm.isLeftRightCabinet(_vm.item.sTerModelCode))?[_c('div',{staticClass:"cabinet__left",class:("cabinet__left--" + (_vm.showMask(0) ? 'mask' : ''))},[(_vm.showLocking(0))?_c('i',{staticClass:"el-icon-loading"}):_vm._e(),(_vm.showConnectError(0))?_c('nb-icon',{staticClass:"cabinet__connect-error",attrs:{"icon":"connect-error"}}):_vm._e(),(_vm.showLock(0))?_c('nb-icon',{staticClass:"cabinet__lock",attrs:{"icon":"lock-filled"}}):_vm._e()],1),_c('div',{staticClass:"cabinet__right",class:("cabinet__right--" + (_vm.showMask(1) ? 'mask' : ''))},[(_vm.showLocking(1))?_c('i',{staticClass:"el-icon-loading"}):_vm._e(),(_vm.showConnectError(1))?_c('nb-icon',{staticClass:"cabinet__connect-error",attrs:{"icon":"connect-error"}}):_vm._e(),(_vm.showLock(1))?_c('nb-icon',{staticClass:"cabinet__lock",attrs:{"icon":"lock-filled"}}):_vm._e()],1)]:(_vm.isUpDownCabinet(_vm.item.sTerModelCode))?[_c('div',{staticClass:"cabinet__up",class:("cabinet__up--" + (_vm.showMask(0) ? 'mask' : ''))},[(_vm.showLocking(0))?_c('i',{staticClass:"el-icon-loading"}):_vm._e(),(_vm.showConnectError(0))?_c('nb-icon',{staticClass:"cabinet__connect-error",attrs:{"icon":"connect-error"}}):_vm._e(),(_vm.showLock(0))?_c('nb-icon',{staticClass:"cabinet__lock",attrs:{"icon":"lock-filled"}}):_vm._e()],1),_c('div',{staticClass:"cabinet__down",class:("cabinet__down--" + (_vm.showMask(1) ? 'mask' : ''))},[(_vm.showLocking(1))?_c('i',{staticClass:"el-icon-loading"}):_vm._e(),(_vm.showConnectError(1))?_c('nb-icon',{staticClass:"cabinet__connect-error",attrs:{"icon":"connect-error"}}):_vm._e(),(_vm.showLock(1))?_c('nb-icon',{staticClass:"cabinet__lock",attrs:{"icon":"lock-filled"}}):_vm._e()],1)]:[_c('div',{staticClass:"cabinet__full",class:("cabinet__full--" + (_vm.showMask(0) ? 'mask' : ''))},[(_vm.showLocking(0))?_c('i',{staticClass:"el-icon-loading"}):_vm._e(),(_vm.showConnectError(0))?_c('nb-icon',{staticClass:"cabinet__connect-error",attrs:{"icon":"connect-error"}}):_vm._e(),(_vm.showLock(0))?_c('nb-icon',{staticClass:"cabinet__lock",attrs:{"icon":"lock-filled"}}):_vm._e()],1)]],2)}
1209
+ ;// ./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/NBCabinetLockState/src/index.vue?vue&type=template&id=ca133276&scoped=true
1210
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-cabinet-lock-state",class:("nb-cabinet-lock-state--" + _vm.size)},[_c('img',{staticClass:"cabinet__img",attrs:{"src":("" + (_vm.item.terModelPic))}}),(_vm.isLeftRightCabinet(_vm.item.sTerModelCode))?[_c('div',{staticClass:"cabinet__left",class:("cabinet__left--" + (_vm.showMask(0) ? 'mask' : '')),on:{"click":function($event){$event.stopPropagation();return _vm.onClick(0)}}},[(_vm.showLocking(0))?_c('i',{staticClass:"el-icon-loading"}):_vm._e(),(_vm.showConnectError(0))?_c('nb-icon',{staticClass:"cabinet__connect-error",attrs:{"icon":"connect-error"}}):_vm._e(),(_vm.showLock(0))?_c('nb-icon',{staticClass:"cabinet__lock",attrs:{"icon":"lock-filled"}}):_vm._e()],1),_c('div',{staticClass:"cabinet__right",class:("cabinet__right--" + (_vm.showMask(1) ? 'mask' : '')),on:{"click":function($event){$event.stopPropagation();return _vm.onClick(1)}}},[(_vm.showLocking(1))?_c('i',{staticClass:"el-icon-loading"}):_vm._e(),(_vm.showConnectError(1))?_c('nb-icon',{staticClass:"cabinet__connect-error",attrs:{"icon":"connect-error"}}):_vm._e(),(_vm.showLock(1))?_c('nb-icon',{staticClass:"cabinet__lock",attrs:{"icon":"lock-filled"}}):_vm._e()],1)]:(_vm.isUpDownCabinet(_vm.item.sTerModelCode))?[_c('div',{staticClass:"cabinet__up",class:("cabinet__up--" + (_vm.showMask(0) ? 'mask' : '')),on:{"click":function($event){$event.stopPropagation();return _vm.onClick(0)}}},[(_vm.showLocking(0))?_c('i',{staticClass:"el-icon-loading"}):_vm._e(),(_vm.showConnectError(0))?_c('nb-icon',{staticClass:"cabinet__connect-error",attrs:{"icon":"connect-error"}}):_vm._e(),(_vm.showLock(0))?_c('nb-icon',{staticClass:"cabinet__lock",attrs:{"icon":"lock-filled"}}):_vm._e()],1),_c('div',{staticClass:"cabinet__down",class:("cabinet__down--" + (_vm.showMask(1) ? 'mask' : '')),on:{"click":function($event){$event.stopPropagation();return _vm.onClick(1)}}},[(_vm.showLocking(1))?_c('i',{staticClass:"el-icon-loading"}):_vm._e(),(_vm.showConnectError(1))?_c('nb-icon',{staticClass:"cabinet__connect-error",attrs:{"icon":"connect-error"}}):_vm._e(),(_vm.showLock(1))?_c('nb-icon',{staticClass:"cabinet__lock",attrs:{"icon":"lock-filled"}}):_vm._e()],1)]:[_c('div',{staticClass:"cabinet__full",class:("cabinet__full--" + (_vm.showMask(0) ? 'mask' : '')),on:{"click":function($event){$event.stopPropagation();return _vm.onClick(0)}}},[(_vm.showLocking(0))?_c('i',{staticClass:"el-icon-loading"}):_vm._e(),(_vm.showConnectError(0))?_c('nb-icon',{staticClass:"cabinet__connect-error",attrs:{"icon":"connect-error"}}):_vm._e(),(_vm.showLock(0))?_c('nb-icon',{staticClass:"cabinet__lock",attrs:{"icon":"lock-filled"}}):_vm._e()],1)]],2)}
1211
1211
  var staticRenderFns = []
1212
1212
 
1213
1213
 
@@ -1303,6 +1303,10 @@ var cabinet_help = __webpack_require__(2406);
1303
1303
  // 是否显示遮罩
1304
1304
  showMask(index) {
1305
1305
  return this.showLock(index) || this.showLocking(index) || this.showConnectError(index);
1306
+ },
1307
+ // 点击
1308
+ onClick(index) {
1309
+ this.$emit('onClick', index, this.item);
1306
1310
  }
1307
1311
  }
1308
1312
  });
@@ -1324,7 +1328,7 @@ var component = (0,componentNormalizer/* default */.A)(
1324
1328
  staticRenderFns,
1325
1329
  false,
1326
1330
  null,
1327
- "489486c3",
1331
+ "ca133276",
1328
1332
  null
1329
1333
 
1330
1334
  )
@@ -1534,7 +1538,7 @@ src.install = function (Vue) {
1534
1538
 
1535
1539
  /***/ }),
1536
1540
 
1537
- /***/ 1385:
1541
+ /***/ 9390:
1538
1542
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1539
1543
 
1540
1544
  "use strict";
@@ -1546,8 +1550,8 @@ __webpack_require__.d(__webpack_exports__, {
1546
1550
  "default": function() { return /* binding */ NBCheckboxGroup; }
1547
1551
  });
1548
1552
 
1549
- ;// ./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=481f29cb&scoped=true
1550
- 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"}}),_c('span',[_vm._t("default",function(){return [_vm._v(_vm._s(item.label))]},{"row":item})],2)],1)}),0)}
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)}
1551
1555
  var staticRenderFns = []
1552
1556
 
1553
1557
 
@@ -1590,10 +1594,6 @@ var esnext_iterator_map = __webpack_require__(1454);
1590
1594
  //
1591
1595
  //
1592
1596
  //
1593
- //
1594
- //
1595
- //
1596
- //
1597
1597
 
1598
1598
  /* harmony default export */ var srcvue_type_script_lang_js = ({
1599
1599
  name: 'NBCheckboxGroup',
@@ -1678,7 +1678,7 @@ var component = (0,componentNormalizer/* default */.A)(
1678
1678
  staticRenderFns,
1679
1679
  false,
1680
1680
  null,
1681
- "481f29cb",
1681
+ "36060e84",
1682
1682
  null
1683
1683
 
1684
1684
  )
@@ -2702,6 +2702,131 @@ src.install = function (Vue) {
2702
2702
 
2703
2703
  /***/ }),
2704
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
+
2705
2830
  /***/ 5355:
2706
2831
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2707
2832
 
@@ -6875,15 +7000,16 @@ var map = {
6875
7000
  "./NBBarcodeCard/index.js": 5886,
6876
7001
  "./NBBarcodeReviewDialog/index.js": 6855,
6877
7002
  "./NBCabinetInventoryCarousel/index.js": 5433,
6878
- "./NBCabinetLockState/index.js": 8450,
7003
+ "./NBCabinetLockState/index.js": 960,
6879
7004
  "./NBCabinetState/index.js": 5540,
6880
- "./NBCheckboxGroup/index.js": 1385,
7005
+ "./NBCheckboxGroup/index.js": 9390,
6881
7006
  "./NBDialog/index.js": 2324,
6882
7007
  "./NBEmpty/index.js": 5006,
6883
7008
  "./NBExpiryIcon/index.js": 3001,
6884
7009
  "./NBFullscreenDialog/index.js": 1516,
6885
7010
  "./NBHeader/index.js": 6523,
6886
7011
  "./NBIcon/index.js": 2333,
7012
+ "./NBInputTime/index.js": 7316,
6887
7013
  "./NBMessageDialog/index.js": 5355,
6888
7014
  "./NBNameSpecCard/index.js": 6970,
6889
7015
  "./NBNameToggleCard/index.js": 7996,
@@ -9757,7 +9883,7 @@ var locale = __webpack_require__(7294);
9757
9883
  /*
9758
9884
  * @Author: chenghuan.dong
9759
9885
  * @Date: 2024-11-11 13:46:54
9760
- * @LastEditTime: 2024-11-26 15:14:51
9886
+ * @LastEditTime: 2024-11-26 17:12:32
9761
9887
  * @LastEditors: chenghuan.dong
9762
9888
  * @Description:
9763
9889
  * @FilePath: \nubomed-ui\packages\index.js
@@ -9789,7 +9915,7 @@ const install = function (Vue, options = {}) {
9789
9915
  if (install.installed) return;
9790
9916
  components.forEach(component => {
9791
9917
  const name = 'nb-' + camelToKebab(component.name.slice(2));
9792
- 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'];
9793
9919
  // if (installNames.includes(name)) {
9794
9920
  // console.log('%c' + '√ ' + name, 'color: #00A572;')
9795
9921
  // } else {
@@ -9800,10 +9926,6 @@ const install = function (Vue, options = {}) {
9800
9926
  Vue.component('nb-' + camelToKebab(component.name.slice(2)), component);
9801
9927
  }
9802
9928
  });
9803
-
9804
- // 全局
9805
- // Vue.prototype.$nbNotify = Notify
9806
- // Vue.prototype.$nbNotify = nbNotify
9807
9929
  };
9808
9930
  const i18n = locale/* default.i18n */.Ay.i18n;
9809
9931
  /* harmony default export */ var packages_0 = ({