nubomed-ui 2.0.49 → 2.0.51

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/nubomed-ui.umd.js CHANGED
@@ -306,6 +306,145 @@ module.exports = function (i) {
306
306
 
307
307
  /***/ }),
308
308
 
309
+ /***/ 7294:
310
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
311
+
312
+ "use strict";
313
+
314
+ // EXPORTS
315
+ __webpack_require__.d(__webpack_exports__, {
316
+ Ay: function() { return /* binding */ locale; },
317
+ t: function() { return /* binding */ t; }
318
+ });
319
+
320
+ // UNUSED EXPORTS: i18n, use
321
+
322
+ ;// ./locale/lang/zh-CN.js
323
+ /*
324
+ * @Author: chenghuan.dong
325
+ * @Date: 2024-11-11 11:59:27
326
+ * @LastEditTime: 2024-11-11 12:00:24
327
+ * @LastEditors: chenghuan.dong
328
+ * @Description:
329
+ * @FilePath: \nubomed-ui\locale\lang\zh-CN.JS
330
+ */
331
+ /* harmony default export */ var zh_CN = ({
332
+ nbUI: {
333
+ name: '品名',
334
+ consumableInfo: '耗材信息',
335
+ spec: '规格',
336
+ model: '型号',
337
+ barcode: '唯一码',
338
+ combineCode: '品规码',
339
+ batch: '批号',
340
+ expiry: '效期',
341
+ count: '数量',
342
+ position: '位置',
343
+ curPosition: '当前位置',
344
+ lastPosition: '上次位置',
345
+ manufacturer: '生产厂家',
346
+ brand: '品牌',
347
+ supplier: '供应商',
348
+ unit: '单位',
349
+ price: '金额',
350
+ unitPrice: '单价',
351
+ // 用户相关
352
+ operation: '操作',
353
+ operator: '操作人',
354
+ operateTime: '操作时间',
355
+ operateType: '操作类型',
356
+ // 按钮相关
357
+ replyDelete: '回删',
358
+ search: '搜索',
359
+ detail: '详情',
360
+ cancel: '取消',
361
+ confirm: '确定',
362
+ known: '知道了',
363
+ refresh: '刷新',
364
+ retest: '重新检测',
365
+ copy: '复制',
366
+ copySuccess: '复制成功',
367
+ inventory: '盘点',
368
+ inventorying: '盘点中...',
369
+ inventorySurplus: '盘盈',
370
+ inventoryLoss: '盘亏',
371
+ inventoryAccount: '账盘',
372
+ inventoryActual: '机盘',
373
+ // 时间
374
+ yesterday: '昨天',
375
+ today: '今天',
376
+ tomorrow: '明天',
377
+ oneWeekAgo: '近一周',
378
+ oneMonthAgo: '近一月',
379
+ clear: '清空',
380
+ startDt: '开始日期',
381
+ endDt: '结束日期',
382
+ // 近效期
383
+ overdue: '过期',
384
+ oneMonth: '1个月',
385
+ threeMonth: '3个月',
386
+ sixMonth: '6个月',
387
+ // 柜
388
+ upCabinet: '上柜',
389
+ downCabinet: '下柜',
390
+ leftCabinet: '左柜',
391
+ rightCabinet: '右柜',
392
+ cabinetUnconnected: '未连接',
393
+ cabinetUnlock: '柜未锁',
394
+ cabinetLock: '柜已锁',
395
+ cabinetUnclosed: '柜未关',
396
+ cabinetClosed: '柜已关',
397
+ // 其它
398
+ temporaryStop: '临时停用',
399
+ loading: '加载中...',
400
+ release: '释放更新',
401
+ pullRefresh: '下拉刷新',
402
+ noMore: '没有更多了',
403
+ noneData: '暂无数据',
404
+ pleaseInputNumber: '请输入数字!'
405
+ }
406
+ });
407
+ ;// ./locale/index.js
408
+
409
+ let lang = zh_CN;
410
+ let i18nHandler = function () {
411
+ const vuei18n = Object.getPrototypeOf(this).$t;
412
+ if (typeof vuei18n === 'function') {
413
+ return vuei18n.apply(this, arguments);
414
+ }
415
+ };
416
+
417
+ // eslint-disable-next-line no-unused-vars
418
+ const t = function (path, options) {
419
+ let value = i18nHandler.apply(this, arguments);
420
+ if (value !== null && typeof value !== 'undefined') {
421
+ return value;
422
+ }
423
+ const array = path.split('.');
424
+ let current = lang;
425
+ for (let i = 0, j = array.length; i < j; i++) {
426
+ const property = array[i];
427
+ value = current[property];
428
+ if (i === j - 1) return value;
429
+ if (!value) return '';
430
+ current = value;
431
+ }
432
+ return '';
433
+ };
434
+ const use = function (l) {
435
+ lang = l || lang;
436
+ };
437
+ const i18n = function (fn) {
438
+ i18nHandler = fn || i18nHandler;
439
+ };
440
+ /* harmony default export */ var locale = ({
441
+ use,
442
+ t,
443
+ i18n
444
+ });
445
+
446
+ /***/ }),
447
+
309
448
  /***/ 3134:
310
449
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
311
450
 
@@ -914,6 +1053,149 @@ src.install = function (Vue) {
914
1053
 
915
1054
  /***/ }),
916
1055
 
1056
+ /***/ 5691:
1057
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1058
+
1059
+ "use strict";
1060
+ // ESM COMPAT FLAG
1061
+ __webpack_require__.r(__webpack_exports__);
1062
+
1063
+ // EXPORTS
1064
+ __webpack_require__.d(__webpack_exports__, {
1065
+ "default": function() { return /* binding */ NBExpiryIcon; }
1066
+ });
1067
+
1068
+ ;// ./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/NBExpiryIcon/src/index.vue?vue&type=template&id=79975692&scoped=true
1069
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.icon)?_c('span',{staticClass:"nb-expiry-icon",class:("nb-expiry-icon--" + _vm.value)},[_vm._v(_vm._s(_vm.icon))]):_vm._e()}
1070
+ var staticRenderFns = []
1071
+
1072
+
1073
+ // EXTERNAL MODULE: ./locale/index.js + 1 modules
1074
+ var locale = __webpack_require__(7294);
1075
+ ;// ./packages/mixins/index.js
1076
+ /*
1077
+ * @Author: chenghuan.dong
1078
+ * @Date: 2024-11-18 11:19:51
1079
+ * @LastEditTime: 2024-11-18 11:21:28
1080
+ * @LastEditors: chenghuan.dong
1081
+ * @Description:
1082
+ * @FilePath: \nubomed-ui\packages\mixins\index.js
1083
+ */
1084
+
1085
+ /* harmony default export */ var mixins = ({
1086
+ methods: {
1087
+ $t(...args) {
1088
+ return locale.t.apply(this, args);
1089
+ }
1090
+ }
1091
+ });
1092
+ ;// ./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/NBExpiryIcon/src/index.vue?vue&type=script&lang=js
1093
+ //
1094
+ //
1095
+ //
1096
+ //
1097
+ //
1098
+ //
1099
+ //
1100
+ //
1101
+ //
1102
+ //
1103
+ //
1104
+ //
1105
+
1106
+
1107
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
1108
+ name: 'NBExpiryIcon',
1109
+ mixins: [mixins],
1110
+ props: {
1111
+ // 效期值:-1正常 0:已过期, 1:1个月 3:3个月效期 6:6个月效期
1112
+ value: {
1113
+ type: [Number, String],
1114
+ default: null
1115
+ },
1116
+ // 语言
1117
+ language: {
1118
+ type: String,
1119
+ default: ''
1120
+ }
1121
+ },
1122
+ computed: {
1123
+ // 实际的语言
1124
+ factLocal() {
1125
+ return this.language || 'zh-cn';
1126
+ },
1127
+ icon() {
1128
+ if (![0, 1, 3, 6].includes(parseInt(this.value))) {
1129
+ return '';
1130
+ }
1131
+ if (['en', 'en-us'].includes(this.factLocal)) {
1132
+ switch (parseInt(this.value)) {
1133
+ case 0:
1134
+ return `Expired`;
1135
+ default:
1136
+ return `EXP ${this.value}M`;
1137
+ }
1138
+ } else if (this.factLocal === 'fr') {
1139
+ switch (parseInt(this.value)) {
1140
+ case 0:
1141
+ return `Périmé`;
1142
+ default:
1143
+ return `EXP ${this.value}M`;
1144
+ }
1145
+ } else {
1146
+ switch (parseInt(this.value)) {
1147
+ case 0:
1148
+ return this.$t('nbUI.overdue');
1149
+ // '过期'
1150
+ case 1:
1151
+ return this.$t('nbUI.oneMonth');
1152
+ // '1个月'
1153
+ case 3:
1154
+ return this.$t('nbUI.threeMonth');
1155
+ // '3个月'
1156
+ case 6:
1157
+ return this.$t('nbUI.sixMonth');
1158
+ // '6个月'
1159
+ default:
1160
+ return '';
1161
+ }
1162
+ }
1163
+ }
1164
+ }
1165
+ });
1166
+ ;// ./packages/components/NBExpiryIcon/src/index.vue?vue&type=script&lang=js
1167
+ /* harmony default export */ var NBExpiryIcon_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
1168
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1169
+ var componentNormalizer = __webpack_require__(1656);
1170
+ ;// ./packages/components/NBExpiryIcon/src/index.vue
1171
+
1172
+
1173
+
1174
+
1175
+
1176
+ /* normalize component */
1177
+ ;
1178
+ var component = (0,componentNormalizer/* default */.A)(
1179
+ NBExpiryIcon_srcvue_type_script_lang_js,
1180
+ render,
1181
+ staticRenderFns,
1182
+ false,
1183
+ null,
1184
+ "79975692",
1185
+ null
1186
+
1187
+ )
1188
+
1189
+ /* harmony default export */ var src = (component.exports);
1190
+ ;// ./packages/components/NBExpiryIcon/index.js
1191
+
1192
+ src.install = function (Vue) {
1193
+ Vue.component(src.name, src);
1194
+ };
1195
+ /* harmony default export */ var NBExpiryIcon = (src);
1196
+
1197
+ /***/ }),
1198
+
917
1199
  /***/ 1516:
918
1200
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
919
1201
 
@@ -3132,6 +3414,7 @@ var map = {
3132
3414
  "./NBCheckboxGroup/index.js": 2129,
3133
3415
  "./NBDialog/index.js": 4066,
3134
3416
  "./NBEmpty/index.js": 2846,
3417
+ "./NBExpiryIcon/index.js": 5691,
3135
3418
  "./NBFullscreenDialog/index.js": 1516,
3136
3419
  "./NBHeader/index.js": 6523,
3137
3420
  "./NBIcon/index.js": 5408,
@@ -6020,129 +6303,8 @@ var esnext_iterator_for_each = __webpack_require__(3949);
6020
6303
  function camelToKebab(camelCaseStr) {
6021
6304
  return camelCaseStr.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
6022
6305
  }
6023
- ;// ./locale/lang/zh-CN.js
6024
- /*
6025
- * @Author: chenghuan.dong
6026
- * @Date: 2024-11-11 11:59:27
6027
- * @LastEditTime: 2024-11-11 12:00:24
6028
- * @LastEditors: chenghuan.dong
6029
- * @Description:
6030
- * @FilePath: \nubomed-ui\locale\lang\zh-CN.JS
6031
- */
6032
- /* harmony default export */ var zh_CN = ({
6033
- nbUI: {
6034
- name: '品名',
6035
- consumableInfo: '耗材信息',
6036
- spec: '规格',
6037
- model: '型号',
6038
- barcode: '唯一码',
6039
- combineCode: '品规码',
6040
- batch: '批号',
6041
- expiry: '效期',
6042
- count: '数量',
6043
- position: '位置',
6044
- curPosition: '当前位置',
6045
- lastPosition: '上次位置',
6046
- manufacturer: '生产厂家',
6047
- brand: '品牌',
6048
- supplier: '供应商',
6049
- unit: '单位',
6050
- price: '金额',
6051
- unitPrice: '单价',
6052
- // 用户相关
6053
- operation: '操作',
6054
- operator: '操作人',
6055
- operateTime: '操作时间',
6056
- operateType: '操作类型',
6057
- // 按钮相关
6058
- replyDelete: '回删',
6059
- search: '搜索',
6060
- detail: '详情',
6061
- cancel: '取消',
6062
- confirm: '确定',
6063
- known: '知道了',
6064
- refresh: '刷新',
6065
- retest: '重新检测',
6066
- copy: '复制',
6067
- copySuccess: '复制成功',
6068
- inventory: '盘点',
6069
- inventorying: '盘点中...',
6070
- inventorySurplus: '盘盈',
6071
- inventoryLoss: '盘亏',
6072
- inventoryAccount: '账盘',
6073
- inventoryActual: '机盘',
6074
- // 时间
6075
- yesterday: '昨天',
6076
- today: '今天',
6077
- tomorrow: '明天',
6078
- oneWeekAgo: '近一周',
6079
- oneMonthAgo: '近一月',
6080
- clear: '清空',
6081
- startDt: '开始日期',
6082
- endDt: '结束日期',
6083
- // 近效期
6084
- overdue: '过期',
6085
- oneMonth: '1个月',
6086
- threeMonth: '3个月',
6087
- sixMonth: '6个月',
6088
- // 柜
6089
- upCabinet: '上柜',
6090
- downCabinet: '下柜',
6091
- leftCabinet: '左柜',
6092
- rightCabinet: '右柜',
6093
- cabinetUnconnected: '未连接',
6094
- cabinetUnlock: '柜未锁',
6095
- cabinetLock: '柜已锁',
6096
- cabinetUnclosed: '柜未关',
6097
- cabinetClosed: '柜已关',
6098
- // 其它
6099
- temporaryStop: '临时停用',
6100
- loading: '加载中...',
6101
- release: '释放更新',
6102
- pullRefresh: '下拉刷新',
6103
- noMore: '没有更多了',
6104
- noneData: '暂无数据',
6105
- pleaseInputNumber: '请输入数字!'
6106
- }
6107
- });
6108
- ;// ./locale/index.js
6109
-
6110
- let lang = zh_CN;
6111
- let i18nHandler = function () {
6112
- const vuei18n = Object.getPrototypeOf(this).$t;
6113
- if (typeof vuei18n === 'function') {
6114
- return vuei18n.apply(this, arguments);
6115
- }
6116
- };
6117
-
6118
- // eslint-disable-next-line no-unused-vars
6119
- const t = function (path, options) {
6120
- let value = i18nHandler.apply(this, arguments);
6121
- if (value !== null && typeof value !== 'undefined') {
6122
- return value;
6123
- }
6124
- const array = path.split('.');
6125
- let current = lang;
6126
- for (let i = 0, j = array.length; i < j; i++) {
6127
- const property = array[i];
6128
- value = current[property];
6129
- if (i === j - 1) return value;
6130
- if (!value) return '';
6131
- current = value;
6132
- }
6133
- return '';
6134
- };
6135
- const use = function (l) {
6136
- lang = l || lang;
6137
- };
6138
- const i18n = function (fn) {
6139
- i18nHandler = fn || i18nHandler;
6140
- };
6141
- /* harmony default export */ var locale = ({
6142
- use,
6143
- t,
6144
- i18n
6145
- });
6306
+ // EXTERNAL MODULE: ./locale/index.js + 1 modules
6307
+ var locale = __webpack_require__(7294);
6146
6308
  // EXTERNAL MODULE: ./packages/iconfont/iconfont.css
6147
6309
  var iconfont = __webpack_require__(2170);
6148
6310
  ;// ./packages/index.js
@@ -6152,7 +6314,7 @@ var iconfont = __webpack_require__(2170);
6152
6314
  /*
6153
6315
  * @Author: chenghuan.dong
6154
6316
  * @Date: 2024-11-08 17:23:47
6155
- * @LastEditTime: 2024-11-18 14:05:00
6317
+ * @LastEditTime: 2024-11-18 18:33:47
6156
6318
  * @LastEditors: chenghuan.dong
6157
6319
  * @Description: 主index.js导出全部组件
6158
6320
  * @FilePath: \nubomed-ui\packages\index.js
@@ -6173,14 +6335,14 @@ req.keys().forEach(v => {
6173
6335
  });
6174
6336
  const install = function (Vue, options = {}) {
6175
6337
  //设置多语言
6176
- locale.use(options.locale);
6177
- locale.i18n(options.i18n);
6338
+ locale/* default.use */.Ay.use(options.locale);
6339
+ locale/* default.i18n */.Ay.i18n(options.i18n);
6178
6340
 
6179
6341
  // 组件
6180
6342
  if (install.installed) return;
6181
6343
  components.forEach(component => {
6182
6344
  const name = 'nb-' + camelToKebab(component.name.slice(2));
6183
- 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'];
6345
+ 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'];
6184
6346
  if (installNames.includes(name)) {
6185
6347
  console.log('%c' + '√ ' + name, 'color: #00A572;');
6186
6348
  } else {
@@ -6194,12 +6356,12 @@ const install = function (Vue, options = {}) {
6194
6356
  // 全局
6195
6357
  // Vue.prototype.$nbNotify = nbNotify
6196
6358
  };
6197
- const packages_i18n = locale.i18n;
6359
+ const i18n = locale/* default.i18n */.Ay.i18n;
6198
6360
  /* harmony default export */ var packages_0 = ({
6199
6361
  install,
6200
6362
  ...components,
6201
- locale: locale,
6202
- i18n: packages_i18n
6363
+ locale: locale/* default */.Ay,
6364
+ i18n
6203
6365
  });
6204
6366
  ;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
6205
6367