nubomed-ui 2.0.49 → 2.0.51

Sign up to get free protection for your applications and to get access to all the features.
@@ -296,6 +296,145 @@ module.exports = function (i) {
296
296
 
297
297
  /***/ }),
298
298
 
299
+ /***/ 4820:
300
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
301
+
302
+ "use strict";
303
+
304
+ // EXPORTS
305
+ __webpack_require__.d(__webpack_exports__, {
306
+ Ay: function() { return /* binding */ locale; },
307
+ t: function() { return /* binding */ t; }
308
+ });
309
+
310
+ // UNUSED EXPORTS: i18n, use
311
+
312
+ ;// ./locale/lang/zh-CN.js
313
+ /*
314
+ * @Author: chenghuan.dong
315
+ * @Date: 2024-11-11 11:59:27
316
+ * @LastEditTime: 2024-11-11 12:00:24
317
+ * @LastEditors: chenghuan.dong
318
+ * @Description:
319
+ * @FilePath: \nubomed-ui\locale\lang\zh-CN.JS
320
+ */
321
+ /* harmony default export */ var zh_CN = ({
322
+ nbUI: {
323
+ name: '品名',
324
+ consumableInfo: '耗材信息',
325
+ spec: '规格',
326
+ model: '型号',
327
+ barcode: '唯一码',
328
+ combineCode: '品规码',
329
+ batch: '批号',
330
+ expiry: '效期',
331
+ count: '数量',
332
+ position: '位置',
333
+ curPosition: '当前位置',
334
+ lastPosition: '上次位置',
335
+ manufacturer: '生产厂家',
336
+ brand: '品牌',
337
+ supplier: '供应商',
338
+ unit: '单位',
339
+ price: '金额',
340
+ unitPrice: '单价',
341
+ // 用户相关
342
+ operation: '操作',
343
+ operator: '操作人',
344
+ operateTime: '操作时间',
345
+ operateType: '操作类型',
346
+ // 按钮相关
347
+ replyDelete: '回删',
348
+ search: '搜索',
349
+ detail: '详情',
350
+ cancel: '取消',
351
+ confirm: '确定',
352
+ known: '知道了',
353
+ refresh: '刷新',
354
+ retest: '重新检测',
355
+ copy: '复制',
356
+ copySuccess: '复制成功',
357
+ inventory: '盘点',
358
+ inventorying: '盘点中...',
359
+ inventorySurplus: '盘盈',
360
+ inventoryLoss: '盘亏',
361
+ inventoryAccount: '账盘',
362
+ inventoryActual: '机盘',
363
+ // 时间
364
+ yesterday: '昨天',
365
+ today: '今天',
366
+ tomorrow: '明天',
367
+ oneWeekAgo: '近一周',
368
+ oneMonthAgo: '近一月',
369
+ clear: '清空',
370
+ startDt: '开始日期',
371
+ endDt: '结束日期',
372
+ // 近效期
373
+ overdue: '过期',
374
+ oneMonth: '1个月',
375
+ threeMonth: '3个月',
376
+ sixMonth: '6个月',
377
+ // 柜
378
+ upCabinet: '上柜',
379
+ downCabinet: '下柜',
380
+ leftCabinet: '左柜',
381
+ rightCabinet: '右柜',
382
+ cabinetUnconnected: '未连接',
383
+ cabinetUnlock: '柜未锁',
384
+ cabinetLock: '柜已锁',
385
+ cabinetUnclosed: '柜未关',
386
+ cabinetClosed: '柜已关',
387
+ // 其它
388
+ temporaryStop: '临时停用',
389
+ loading: '加载中...',
390
+ release: '释放更新',
391
+ pullRefresh: '下拉刷新',
392
+ noMore: '没有更多了',
393
+ noneData: '暂无数据',
394
+ pleaseInputNumber: '请输入数字!'
395
+ }
396
+ });
397
+ ;// ./locale/index.js
398
+
399
+ let lang = zh_CN;
400
+ let i18nHandler = function () {
401
+ const vuei18n = Object.getPrototypeOf(this).$t;
402
+ if (typeof vuei18n === 'function') {
403
+ return vuei18n.apply(this, arguments);
404
+ }
405
+ };
406
+
407
+ // eslint-disable-next-line no-unused-vars
408
+ const t = function (path, options) {
409
+ let value = i18nHandler.apply(this, arguments);
410
+ if (value !== null && typeof value !== 'undefined') {
411
+ return value;
412
+ }
413
+ const array = path.split('.');
414
+ let current = lang;
415
+ for (let i = 0, j = array.length; i < j; i++) {
416
+ const property = array[i];
417
+ value = current[property];
418
+ if (i === j - 1) return value;
419
+ if (!value) return '';
420
+ current = value;
421
+ }
422
+ return '';
423
+ };
424
+ const use = function (l) {
425
+ lang = l || lang;
426
+ };
427
+ const i18n = function (fn) {
428
+ i18nHandler = fn || i18nHandler;
429
+ };
430
+ /* harmony default export */ var locale = ({
431
+ use,
432
+ t,
433
+ i18n
434
+ });
435
+
436
+ /***/ }),
437
+
299
438
  /***/ 3250:
300
439
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
301
440
 
@@ -904,6 +1043,149 @@ src.install = function (Vue) {
904
1043
 
905
1044
  /***/ }),
906
1045
 
1046
+ /***/ 979:
1047
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1048
+
1049
+ "use strict";
1050
+ // ESM COMPAT FLAG
1051
+ __webpack_require__.r(__webpack_exports__);
1052
+
1053
+ // EXPORTS
1054
+ __webpack_require__.d(__webpack_exports__, {
1055
+ "default": function() { return /* binding */ NBExpiryIcon; }
1056
+ });
1057
+
1058
+ ;// ./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
1059
+ 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()}
1060
+ var staticRenderFns = []
1061
+
1062
+
1063
+ // EXTERNAL MODULE: ./locale/index.js + 1 modules
1064
+ var locale = __webpack_require__(4820);
1065
+ ;// ./packages/mixins/index.js
1066
+ /*
1067
+ * @Author: chenghuan.dong
1068
+ * @Date: 2024-11-18 11:19:51
1069
+ * @LastEditTime: 2024-11-18 11:21:28
1070
+ * @LastEditors: chenghuan.dong
1071
+ * @Description:
1072
+ * @FilePath: \nubomed-ui\packages\mixins\index.js
1073
+ */
1074
+
1075
+ /* harmony default export */ var mixins = ({
1076
+ methods: {
1077
+ $t(...args) {
1078
+ return locale.t.apply(this, args);
1079
+ }
1080
+ }
1081
+ });
1082
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
1083
+ //
1084
+ //
1085
+ //
1086
+ //
1087
+ //
1088
+ //
1089
+ //
1090
+ //
1091
+ //
1092
+ //
1093
+ //
1094
+ //
1095
+
1096
+
1097
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
1098
+ name: 'NBExpiryIcon',
1099
+ mixins: [mixins],
1100
+ props: {
1101
+ // 效期值:-1正常 0:已过期, 1:1个月 3:3个月效期 6:6个月效期
1102
+ value: {
1103
+ type: [Number, String],
1104
+ default: null
1105
+ },
1106
+ // 语言
1107
+ language: {
1108
+ type: String,
1109
+ default: ''
1110
+ }
1111
+ },
1112
+ computed: {
1113
+ // 实际的语言
1114
+ factLocal() {
1115
+ return this.language || 'zh-cn';
1116
+ },
1117
+ icon() {
1118
+ if (![0, 1, 3, 6].includes(parseInt(this.value))) {
1119
+ return '';
1120
+ }
1121
+ if (['en', 'en-us'].includes(this.factLocal)) {
1122
+ switch (parseInt(this.value)) {
1123
+ case 0:
1124
+ return `Expired`;
1125
+ default:
1126
+ return `EXP ${this.value}M`;
1127
+ }
1128
+ } else if (this.factLocal === 'fr') {
1129
+ switch (parseInt(this.value)) {
1130
+ case 0:
1131
+ return `Périmé`;
1132
+ default:
1133
+ return `EXP ${this.value}M`;
1134
+ }
1135
+ } else {
1136
+ switch (parseInt(this.value)) {
1137
+ case 0:
1138
+ return this.$t('nbUI.overdue');
1139
+ // '过期'
1140
+ case 1:
1141
+ return this.$t('nbUI.oneMonth');
1142
+ // '1个月'
1143
+ case 3:
1144
+ return this.$t('nbUI.threeMonth');
1145
+ // '3个月'
1146
+ case 6:
1147
+ return this.$t('nbUI.sixMonth');
1148
+ // '6个月'
1149
+ default:
1150
+ return '';
1151
+ }
1152
+ }
1153
+ }
1154
+ }
1155
+ });
1156
+ ;// ./packages/components/NBExpiryIcon/src/index.vue?vue&type=script&lang=js
1157
+ /* harmony default export */ var NBExpiryIcon_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
1158
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1159
+ var componentNormalizer = __webpack_require__(1656);
1160
+ ;// ./packages/components/NBExpiryIcon/src/index.vue
1161
+
1162
+
1163
+
1164
+
1165
+
1166
+ /* normalize component */
1167
+ ;
1168
+ var component = (0,componentNormalizer/* default */.A)(
1169
+ NBExpiryIcon_srcvue_type_script_lang_js,
1170
+ render,
1171
+ staticRenderFns,
1172
+ false,
1173
+ null,
1174
+ "79975692",
1175
+ null
1176
+
1177
+ )
1178
+
1179
+ /* harmony default export */ var src = (component.exports);
1180
+ ;// ./packages/components/NBExpiryIcon/index.js
1181
+
1182
+ src.install = function (Vue) {
1183
+ Vue.component(src.name, src);
1184
+ };
1185
+ /* harmony default export */ var NBExpiryIcon = (src);
1186
+
1187
+ /***/ }),
1188
+
907
1189
  /***/ 4531:
908
1190
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
909
1191
 
@@ -3122,6 +3404,7 @@ var map = {
3122
3404
  "./NBCheckboxGroup/index.js": 9070,
3123
3405
  "./NBDialog/index.js": 6571,
3124
3406
  "./NBEmpty/index.js": 4400,
3407
+ "./NBExpiryIcon/index.js": 979,
3125
3408
  "./NBFullscreenDialog/index.js": 4531,
3126
3409
  "./NBHeader/index.js": 1001,
3127
3410
  "./NBIcon/index.js": 79,
@@ -6010,129 +6293,8 @@ var esnext_iterator_for_each = __webpack_require__(3949);
6010
6293
  function camelToKebab(camelCaseStr) {
6011
6294
  return camelCaseStr.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
6012
6295
  }
6013
- ;// ./locale/lang/zh-CN.js
6014
- /*
6015
- * @Author: chenghuan.dong
6016
- * @Date: 2024-11-11 11:59:27
6017
- * @LastEditTime: 2024-11-11 12:00:24
6018
- * @LastEditors: chenghuan.dong
6019
- * @Description:
6020
- * @FilePath: \nubomed-ui\locale\lang\zh-CN.JS
6021
- */
6022
- /* harmony default export */ var zh_CN = ({
6023
- nbUI: {
6024
- name: '品名',
6025
- consumableInfo: '耗材信息',
6026
- spec: '规格',
6027
- model: '型号',
6028
- barcode: '唯一码',
6029
- combineCode: '品规码',
6030
- batch: '批号',
6031
- expiry: '效期',
6032
- count: '数量',
6033
- position: '位置',
6034
- curPosition: '当前位置',
6035
- lastPosition: '上次位置',
6036
- manufacturer: '生产厂家',
6037
- brand: '品牌',
6038
- supplier: '供应商',
6039
- unit: '单位',
6040
- price: '金额',
6041
- unitPrice: '单价',
6042
- // 用户相关
6043
- operation: '操作',
6044
- operator: '操作人',
6045
- operateTime: '操作时间',
6046
- operateType: '操作类型',
6047
- // 按钮相关
6048
- replyDelete: '回删',
6049
- search: '搜索',
6050
- detail: '详情',
6051
- cancel: '取消',
6052
- confirm: '确定',
6053
- known: '知道了',
6054
- refresh: '刷新',
6055
- retest: '重新检测',
6056
- copy: '复制',
6057
- copySuccess: '复制成功',
6058
- inventory: '盘点',
6059
- inventorying: '盘点中...',
6060
- inventorySurplus: '盘盈',
6061
- inventoryLoss: '盘亏',
6062
- inventoryAccount: '账盘',
6063
- inventoryActual: '机盘',
6064
- // 时间
6065
- yesterday: '昨天',
6066
- today: '今天',
6067
- tomorrow: '明天',
6068
- oneWeekAgo: '近一周',
6069
- oneMonthAgo: '近一月',
6070
- clear: '清空',
6071
- startDt: '开始日期',
6072
- endDt: '结束日期',
6073
- // 近效期
6074
- overdue: '过期',
6075
- oneMonth: '1个月',
6076
- threeMonth: '3个月',
6077
- sixMonth: '6个月',
6078
- // 柜
6079
- upCabinet: '上柜',
6080
- downCabinet: '下柜',
6081
- leftCabinet: '左柜',
6082
- rightCabinet: '右柜',
6083
- cabinetUnconnected: '未连接',
6084
- cabinetUnlock: '柜未锁',
6085
- cabinetLock: '柜已锁',
6086
- cabinetUnclosed: '柜未关',
6087
- cabinetClosed: '柜已关',
6088
- // 其它
6089
- temporaryStop: '临时停用',
6090
- loading: '加载中...',
6091
- release: '释放更新',
6092
- pullRefresh: '下拉刷新',
6093
- noMore: '没有更多了',
6094
- noneData: '暂无数据',
6095
- pleaseInputNumber: '请输入数字!'
6096
- }
6097
- });
6098
- ;// ./locale/index.js
6099
-
6100
- let lang = zh_CN;
6101
- let i18nHandler = function () {
6102
- const vuei18n = Object.getPrototypeOf(this).$t;
6103
- if (typeof vuei18n === 'function') {
6104
- return vuei18n.apply(this, arguments);
6105
- }
6106
- };
6107
-
6108
- // eslint-disable-next-line no-unused-vars
6109
- const t = function (path, options) {
6110
- let value = i18nHandler.apply(this, arguments);
6111
- if (value !== null && typeof value !== 'undefined') {
6112
- return value;
6113
- }
6114
- const array = path.split('.');
6115
- let current = lang;
6116
- for (let i = 0, j = array.length; i < j; i++) {
6117
- const property = array[i];
6118
- value = current[property];
6119
- if (i === j - 1) return value;
6120
- if (!value) return '';
6121
- current = value;
6122
- }
6123
- return '';
6124
- };
6125
- const use = function (l) {
6126
- lang = l || lang;
6127
- };
6128
- const i18n = function (fn) {
6129
- i18nHandler = fn || i18nHandler;
6130
- };
6131
- /* harmony default export */ var locale = ({
6132
- use,
6133
- t,
6134
- i18n
6135
- });
6296
+ // EXTERNAL MODULE: ./locale/index.js + 1 modules
6297
+ var locale = __webpack_require__(4820);
6136
6298
  // EXTERNAL MODULE: ./packages/iconfont/iconfont.css
6137
6299
  var iconfont = __webpack_require__(1970);
6138
6300
  ;// ./packages/index.js
@@ -6142,7 +6304,7 @@ var iconfont = __webpack_require__(1970);
6142
6304
  /*
6143
6305
  * @Author: chenghuan.dong
6144
6306
  * @Date: 2024-11-08 17:23:47
6145
- * @LastEditTime: 2024-11-18 14:05:00
6307
+ * @LastEditTime: 2024-11-18 18:33:47
6146
6308
  * @LastEditors: chenghuan.dong
6147
6309
  * @Description: 主index.js导出全部组件
6148
6310
  * @FilePath: \nubomed-ui\packages\index.js
@@ -6163,14 +6325,14 @@ req.keys().forEach(v => {
6163
6325
  });
6164
6326
  const install = function (Vue, options = {}) {
6165
6327
  //设置多语言
6166
- locale.use(options.locale);
6167
- locale.i18n(options.i18n);
6328
+ locale/* default.use */.Ay.use(options.locale);
6329
+ locale/* default.i18n */.Ay.i18n(options.i18n);
6168
6330
 
6169
6331
  // 组件
6170
6332
  if (install.installed) return;
6171
6333
  components.forEach(component => {
6172
6334
  const name = 'nb-' + camelToKebab(component.name.slice(2));
6173
- 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'];
6335
+ 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'];
6174
6336
  if (installNames.includes(name)) {
6175
6337
  console.log('%c' + '√ ' + name, 'color: #00A572;');
6176
6338
  } else {
@@ -6184,12 +6346,12 @@ const install = function (Vue, options = {}) {
6184
6346
  // 全局
6185
6347
  // Vue.prototype.$nbNotify = nbNotify
6186
6348
  };
6187
- const packages_i18n = locale.i18n;
6349
+ const i18n = locale/* default.i18n */.Ay.i18n;
6188
6350
  /* harmony default export */ var packages_0 = ({
6189
6351
  install,
6190
6352
  ...components,
6191
- locale: locale,
6192
- i18n: packages_i18n
6353
+ locale: locale/* default */.Ay,
6354
+ i18n
6193
6355
  });
6194
6356
  ;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
6195
6357