bkui-vue 1.0.3-beta.60.scrollbar.2 → 1.0.3-beta.60.scrollbar.3

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.
@@ -1,173 +1,14 @@
1
1
  import "../styles/reset.css";
2
2
  import "./virtual-render.less";
3
- import * as __WEBPACK_EXTERNAL_MODULE__components_96ad247a__ from "./components";
4
- import * as __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__ from "./config-provider";
5
- import * as __WEBPACK_EXTERNAL_MODULE__directives_37095733__ from "./directives";
6
- import * as __WEBPACK_EXTERNAL_MODULE__hooks_627f7bfe__ from "./hooks";
7
- import * as __WEBPACK_EXTERNAL_MODULE__plugins_a82c42d7__ from "./plugins";
8
- import * as __WEBPACK_EXTERNAL_MODULE__preset_b854ea38__ from "./preset";
9
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
10
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
11
5
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
12
6
  import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
13
7
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
14
- /******/ var __webpack_modules__ = ({
15
-
16
- /***/ 6064:
17
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
18
-
19
- /* harmony import */ var _preset__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(804);
20
- /* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4151);
21
- /* harmony reexport (checked) */ if(__webpack_require__.o(_components__WEBPACK_IMPORTED_MODULE_1__, "usePrefix")) __webpack_require__.d(__webpack_exports__, { usePrefix: function() { return _components__WEBPACK_IMPORTED_MODULE_1__.usePrefix; } });
22
- /* harmony import */ var _bkui_vue_directives__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6120);
23
- /* harmony reexport (checked) */ if(__webpack_require__.o(_bkui_vue_directives__WEBPACK_IMPORTED_MODULE_2__, "usePrefix")) __webpack_require__.d(__webpack_exports__, { usePrefix: function() { return _bkui_vue_directives__WEBPACK_IMPORTED_MODULE_2__.usePrefix; } });
24
- /* harmony import */ var _bkui_vue_plugins__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4794);
25
- /* harmony import */ var _bkui_vue_config_provider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(635);
26
- /* harmony reexport (checked) */ if(__webpack_require__.o(_bkui_vue_config_provider__WEBPACK_IMPORTED_MODULE_4__, "usePrefix")) __webpack_require__.d(__webpack_exports__, { usePrefix: function() { return _bkui_vue_config_provider__WEBPACK_IMPORTED_MODULE_4__.usePrefix; } });
27
- /* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6253);
28
- /* harmony reexport (checked) */ if(__webpack_require__.o(_hooks__WEBPACK_IMPORTED_MODULE_5__, "usePrefix")) __webpack_require__.d(__webpack_exports__, { usePrefix: function() { return _hooks__WEBPACK_IMPORTED_MODULE_5__.usePrefix; } });
29
- /*
30
- * Tencent is pleased to support the open source community by making
31
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
32
- *
33
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
34
- *
35
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
36
- *
37
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
38
- *
39
- * ---------------------------------------------------
40
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
41
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
42
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
43
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44
- *
45
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
46
- * the Software.
47
- *
48
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
49
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
50
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
51
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
52
- * IN THE SOFTWARE.
53
- */
54
- // import '@bkui-vue/styles';
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
- /***/ }),
64
-
65
- /***/ 9131:
66
- /***/ ((module) => {
67
-
68
- var canUseDOM = !!(
69
- typeof window !== 'undefined' &&
70
- window.document &&
71
- window.document.createElement
72
- );
73
-
74
- module.exports = canUseDOM;
75
-
76
- /***/ }),
77
-
78
- /***/ 4151:
79
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
80
-
81
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
82
- var y = x => () => x
83
- module.exports = x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__components_96ad247a__.usePrefix });
84
-
85
- /***/ }),
86
-
87
- /***/ 635:
88
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
89
-
90
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
91
- var y = x => () => x
92
- module.exports = x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__.usePrefix });
93
-
94
- /***/ }),
95
-
96
- /***/ 6120:
97
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
98
-
99
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
100
- var y = x => () => x
101
- module.exports = x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__directives_37095733__.usePrefix });
102
-
103
- /***/ }),
104
-
105
- /***/ 6253:
106
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
107
-
108
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
109
- var y = x => () => x
110
- module.exports = x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__hooks_627f7bfe__.usePrefix });
111
-
112
- /***/ }),
113
-
114
- /***/ 4794:
115
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
116
-
117
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
118
- var y = x => () => x
119
- module.exports = x({ });
120
-
121
- /***/ }),
122
-
123
- /***/ 804:
124
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
125
-
126
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
127
- var y = x => () => x
128
- module.exports = x({ });
129
-
130
- /***/ })
131
-
132
- /******/ });
133
- /************************************************************************/
134
- /******/ // The module cache
135
- /******/ var __webpack_module_cache__ = {};
136
- /******/
137
- /******/ // The require function
138
- /******/ function __webpack_require__(moduleId) {
139
- /******/ // Check if module is in cache
140
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
141
- /******/ if (cachedModule !== undefined) {
142
- /******/ return cachedModule.exports;
143
- /******/ }
144
- /******/ // Create a new module (and put it into the cache)
145
- /******/ var module = __webpack_module_cache__[moduleId] = {
146
- /******/ // no module.id needed
147
- /******/ // no module.loaded needed
148
- /******/ exports: {}
149
- /******/ };
150
- /******/
151
- /******/ // Execute the module function
152
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
153
- /******/
154
- /******/ // Return the exports of the module
155
- /******/ return module.exports;
156
- /******/ }
8
+ /******/ // The require scope
9
+ /******/ var __webpack_require__ = {};
157
10
  /******/
158
11
  /************************************************************************/
159
- /******/ /* webpack/runtime/compat get default export */
160
- /******/ (() => {
161
- /******/ // getDefaultExport function for compatibility with non-harmony modules
162
- /******/ __webpack_require__.n = (module) => {
163
- /******/ var getter = module && module.__esModule ?
164
- /******/ () => (module['default']) :
165
- /******/ () => (module);
166
- /******/ __webpack_require__.d(getter, { a: getter });
167
- /******/ return getter;
168
- /******/ };
169
- /******/ })();
170
- /******/
171
12
  /******/ /* webpack/runtime/define property getters */
172
13
  /******/ (() => {
173
14
  /******/ // define getter functions for harmony exports
@@ -198,8 +39,6 @@ module.exports = x({ });
198
39
  /******/
199
40
  /************************************************************************/
200
41
  var __webpack_exports__ = {};
201
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
202
- (() => {
203
42
 
204
43
  // EXPORTS
205
44
  __webpack_require__.d(__webpack_exports__, {
@@ -503,8 +342,6 @@ var virtualRenderProps = _objectSpread({
503
342
  fixToTop: fixToTop
504
343
  };
505
344
  });
506
- // EXTERNAL MODULE: ../../packages/bkui-vue/index.ts
507
- var bkui_vue = __webpack_require__(6064);
508
345
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
509
346
  function _classCallCheck(instance, Constructor) {
510
347
  if (!(instance instanceof Constructor)) {
@@ -625,9 +462,6 @@ function _nonIterableRest() {
625
462
  function _slicedToArray(arr, i) {
626
463
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
627
464
  }
628
- // EXTERNAL MODULE: ../../node_modules/can-use-dom/index.js
629
- var can_use_dom = __webpack_require__(9131);
630
- var can_use_dom_default = /*#__PURE__*/__webpack_require__.n(can_use_dom);
631
465
  ;// CONCATENATED MODULE: ../../node_modules/lodash-es/isObject.js
632
466
  /**
633
467
  * Checks if `value` is the
@@ -1247,6 +1081,35 @@ function throttle(func, wait, options) {
1247
1081
 
1248
1082
  /* harmony default export */ const lodash_es_throttle = (throttle);
1249
1083
 
1084
+ ;// CONCATENATED MODULE: ../../packages/virtual-render/src/scrollbar-core/can-use-dom.ts
1085
+ /*
1086
+ * Tencent is pleased to support the open source community by making
1087
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1088
+ *
1089
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1090
+ *
1091
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1092
+ *
1093
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1094
+ *
1095
+ * ---------------------------------------------------
1096
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1097
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1098
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1099
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1100
+ *
1101
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1102
+ * the Software.
1103
+ *
1104
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1105
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1106
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1107
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1108
+ * IN THE SOFTWARE.
1109
+ */
1110
+ /* harmony default export */ const can_use_dom = (function () {
1111
+ return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
1112
+ });
1250
1113
  ;// CONCATENATED MODULE: ../../packages/virtual-render/src/scrollbar-core/helpers.ts
1251
1114
 
1252
1115
  /*
@@ -1369,35 +1232,6 @@ function classNamesToQuery(classNames) {
1369
1232
  removeWheelEvent: removeWheelEvent
1370
1233
  };
1371
1234
  });
1372
- ;// CONCATENATED MODULE: ../../packages/virtual-render/src/scrollbar-core/can-use-dom.ts
1373
- /*
1374
- * Tencent is pleased to support the open source community by making
1375
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1376
- *
1377
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1378
- *
1379
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1380
- *
1381
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1382
- *
1383
- * ---------------------------------------------------
1384
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1385
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1386
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1387
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1388
- *
1389
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1390
- * the Software.
1391
- *
1392
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1393
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1394
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1395
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1396
- * IN THE SOFTWARE.
1397
- */
1398
- /* harmony default export */ const scrollbar_core_can_use_dom = (function () {
1399
- return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
1400
- });
1401
1235
  ;// CONCATENATED MODULE: ../../packages/virtual-render/src/scrollbar-core/scrollbar-width.ts
1402
1236
  /*
1403
1237
  * Tencent is pleased to support the open source community by making
@@ -1427,7 +1261,7 @@ function classNamesToQuery(classNames) {
1427
1261
 
1428
1262
  var cachedScrollbarWidth = null;
1429
1263
  var cachedDevicePixelRatio = null;
1430
- if (scrollbar_core_can_use_dom()) {
1264
+ if (can_use_dom()) {
1431
1265
  window.addEventListener('resize', function () {
1432
1266
  if (cachedDevicePixelRatio !== window.devicePixelRatio) {
1433
1267
  cachedDevicePixelRatio = window.devicePixelRatio;
@@ -1460,32 +1294,6 @@ function scrollbarWidth() {
1460
1294
 
1461
1295
  function scrollbar_core_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1462
1296
  function scrollbar_core_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? scrollbar_core_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : scrollbar_core_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1463
- /* eslint-disable @typescript-eslint/consistent-type-assertions */
1464
- /*
1465
- * Tencent is pleased to support the open source community by making
1466
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1467
- *
1468
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1469
- *
1470
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1471
- *
1472
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1473
- *
1474
- * ---------------------------------------------------
1475
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1476
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1477
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1478
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1479
- *
1480
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1481
- * the Software.
1482
- *
1483
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1484
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1485
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1486
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1487
- * IN THE SOFTWARE.
1488
- */
1489
1297
 
1490
1298
 
1491
1299
 
@@ -1892,7 +1700,7 @@ var SimpleBarCore = /*#__PURE__*/function () {
1892
1700
  key: "init",
1893
1701
  value: function init() {
1894
1702
  // We stop here on server-side
1895
- if ((can_use_dom_default())) {
1703
+ if (can_use_dom) {
1896
1704
  this.initDOM();
1897
1705
  this.rtlHelpers = SimpleBarCore.getRtlHelpers();
1898
1706
  this.scrollbarWidth = this.getScrollbarWidth();
@@ -2488,7 +2296,7 @@ _defineProperty(BkSimpleBar, "instances", new WeakMap());
2488
2296
 
2489
2297
  /* harmony default export */ const use_scrollbar = (function (target, props) {
2490
2298
  var instance = null;
2491
- var _usePrefix = (0,bkui_vue.usePrefix)(),
2299
+ var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
2492
2300
  resolveClassName = _usePrefix.resolveClassName;
2493
2301
  var classNames = {
2494
2302
  contentEl: resolveClassName('scrollbar-content-el'),
@@ -3204,7 +3012,5 @@ function virtual_render_objectSpread(e) { for (var r = 1; r < arguments.length;
3204
3012
 
3205
3013
  var BkVirtualRender = (0,shared_namespaceObject.withInstall)(virtual_render);
3206
3014
  /* harmony default export */ const src = (BkVirtualRender);
3207
- })();
3208
-
3209
3015
  var __webpack_exports__default = __webpack_exports__["default"];
3210
3016
  export { __webpack_exports__default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "1.0.3-beta.60.scrollbar.2",
3
+ "version": "1.0.3-beta.60.scrollbar.3",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",
@@ -153,7 +153,6 @@
153
153
  "dependencies": {
154
154
  "@floating-ui/dom": "~1.5.0",
155
155
  "@popperjs/core": "~2.11.8",
156
- "can-use-dom": "~0.1.0",
157
156
  "date-fns": "~2.30.0",
158
157
  "install": "~0.13.0",
159
158
  "js-calendar": "~1.2.3",