@itfin/components 1.4.36 → 1.4.45
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.
- package/dist/ITFComponents.common.js +87 -0
- package/dist/ITFComponents.common.js.map +1 -0
- package/dist/ITFComponents.umd.js +98 -0
- package/dist/ITFComponents.umd.js.map +1 -0
- package/dist/ITFComponents.umd.min.js +2 -0
- package/dist/ITFComponents.umd.min.js.map +1 -0
- package/dist/demo.html +1 -0
- package/package.json +12 -2
- package/src/components/datepicker/MonthPicker.vue +21 -1
- package/src/components/filter/FilterBadge.vue +5 -0
- package/src/components/filter/FilterPanel.vue +18 -1
- package/src/components/icon/components/nomi-close-alt.vue +5 -0
- package/src/components/icon/icons.js +310 -309
- package/src/components/icon/components/nomi-.DS_Store +0 -0
- package/src/components/icon/components/nomi-arrow-right-alt.vue +0 -4
- package/src/components/icon/components/nomi-arrow_left.vue +0 -4
- package/src/components/icon/components/nomi-automation.vue +0 -5
- package/src/components/icon/components/nomi-balance.vue +0 -4
- package/src/components/icon/components/nomi-balance_turnover.vue +0 -5
- package/src/components/icon/components/nomi-bar-horizontal.vue +0 -7
- package/src/components/icon/components/nomi-cash.vue +0 -4
- package/src/components/icon/components/nomi-cashflow.vue +0 -4
- package/src/components/icon/components/nomi-category.vue +0 -5
- package/src/components/icon/components/nomi-category_alt.vue +0 -4
- package/src/components/icon/components/nomi-chart-bars.vue +0 -6
- package/src/components/icon/components/nomi-chart-donut.vue +0 -4
- package/src/components/icon/components/nomi-chart-funnel.vue +0 -6
- package/src/components/icon/components/nomi-chart-kpi.vue +0 -8
- package/src/components/icon/components/nomi-chart-line.vue +0 -5
- package/src/components/icon/components/nomi-chart-lines.vue +0 -6
- package/src/components/icon/components/nomi-check-alt.vue +0 -4
- package/src/components/icon/components/nomi-check.vue +0 -4
- package/src/components/icon/components/nomi-chevron-down.vue +0 -4
- package/src/components/icon/components/nomi-chevron-left.vue +0 -4
- package/src/components/icon/components/nomi-chevron-right.vue +0 -4
- package/src/components/icon/components/nomi-collapse.vue +0 -7
- package/src/components/icon/components/nomi-control-panel.vue +0 -8
- package/src/components/icon/components/nomi-credit.vue +0 -4
- package/src/components/icon/components/nomi-currencies.vue +0 -4
- package/src/components/icon/components/nomi-debt.vue +0 -4
- package/src/components/icon/components/nomi-demo.vue +0 -7
- package/src/components/icon/components/nomi-dev.vue +0 -4
- package/src/components/icon/components/nomi-dots.vue +0 -6
- package/src/components/icon/components/nomi-duplicate.vue +0 -5
- package/src/components/icon/components/nomi-file.vue +0 -4
- package/src/components/icon/components/nomi-folder.vue +0 -4
- package/src/components/icon/components/nomi-goods-turnover.vue +0 -4
- package/src/components/icon/components/nomi-goods.vue +0 -5
- package/src/components/icon/components/nomi-help-alt.vue +0 -4
- package/src/components/icon/components/nomi-integration.vue +0 -4
- package/src/components/icon/components/nomi-link.vue +0 -6
- package/src/components/icon/components/nomi-menu.vue +0 -6
- package/src/components/icon/components/nomi-minus.vue +0 -4
- package/src/components/icon/components/nomi-payment_calendar.vue +0 -4
- package/src/components/icon/components/nomi-pc.vue +0 -4
- package/src/components/icon/components/nomi-planFact.vue +0 -5
- package/src/components/icon/components/nomi-pnl.vue +0 -8
- package/src/components/icon/components/nomi-project_alt.vue +0 -4
- package/src/components/icon/components/nomi-project_alt2.vue +0 -4
- package/src/components/icon/components/nomi-promo.vue +0 -4
- package/src/components/icon/components/nomi-segment.vue +0 -4
- package/src/components/icon/components/nomi-strongbox.vue +0 -4
- package/src/components/icon/components/nomi-subscription.vue +0 -4
- package/src/components/icon/components/nomi-time.vue +0 -4
- package/src/components/icon/components/nomi-transactions_alt.vue +0 -7
- package/src/components/icon/components/nomi-transactions_delete.vue +0 -5
- package/src/components/icon/components/nomi-types.vue +0 -7
- package/src/components/icon/components/nomi-user_plus.vue +0 -11
- package/src/components/icon/components/nomi-warehouse.vue +0 -4
- package/src/components/icon/components/nomi-warning_triangle.vue +0 -6
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/******/ (function() { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/define property getters */
|
|
8
|
+
/******/ !function() {
|
|
9
|
+
/******/ // define getter functions for harmony exports
|
|
10
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
11
|
+
/******/ for(var key in definition) {
|
|
12
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
13
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
14
|
+
/******/ }
|
|
15
|
+
/******/ }
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ }();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
20
|
+
/******/ !function() {
|
|
21
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
22
|
+
/******/ }();
|
|
23
|
+
/******/
|
|
24
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
25
|
+
/******/ !function() {
|
|
26
|
+
/******/ // define __esModule on exports
|
|
27
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
28
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
29
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
30
|
+
/******/ }
|
|
31
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
32
|
+
/******/ };
|
|
33
|
+
/******/ }();
|
|
34
|
+
/******/
|
|
35
|
+
/******/ /* webpack/runtime/publicPath */
|
|
36
|
+
/******/ !function() {
|
|
37
|
+
/******/ __webpack_require__.p = "";
|
|
38
|
+
/******/ }();
|
|
39
|
+
/******/
|
|
40
|
+
/************************************************************************/
|
|
41
|
+
var __webpack_exports__ = {};
|
|
42
|
+
// ESM COMPAT FLAG
|
|
43
|
+
__webpack_require__.r(__webpack_exports__);
|
|
44
|
+
|
|
45
|
+
// EXPORTS
|
|
46
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
47
|
+
"default": function() { return /* binding */ entry_lib; }
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
51
|
+
/* eslint-disable no-var */
|
|
52
|
+
// This file is imported into lib/wc client bundles.
|
|
53
|
+
|
|
54
|
+
if (typeof window !== 'undefined') {
|
|
55
|
+
var currentScript = window.document.currentScript
|
|
56
|
+
if (false) // removed by dead control flow
|
|
57
|
+
{ var getCurrentScript; }
|
|
58
|
+
|
|
59
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
60
|
+
if (src) {
|
|
61
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Indicate to webpack that this file can be concatenated
|
|
66
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
67
|
+
|
|
68
|
+
;// ./src/main.js
|
|
69
|
+
function install(Vue) {}
|
|
70
|
+
install.version = '__VERSION__';
|
|
71
|
+
if (typeof window !== 'undefined') {
|
|
72
|
+
window.Vue && window.Vue.use(install);
|
|
73
|
+
window['ITFComponents'] = install;
|
|
74
|
+
if (install.installed) {
|
|
75
|
+
install.installed = false;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
/* harmony default export */ var entry_lib = (install);
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
module.exports = __webpack_exports__;
|
|
85
|
+
/******/ })()
|
|
86
|
+
;
|
|
87
|
+
//# sourceMappingURL=ITFComponents.common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITFComponents.common.js","mappings":";;UAAA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,8CAA8C,yD;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA,2B;;;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE;AAAA,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACA,kDAAe,IAAI;;;ACtBJ,SAASA,OAAOA,CAACC,GAAG,EAAE,CACrC;AACAD,OAAO,CAACE,OAAO,GAAG,aAAa;AAE/B,IAAI,OAAOC,MAAM,KAAK,WAAW,EAAE;EACjCA,MAAM,CAACF,GAAG,IAAIE,MAAM,CAACF,GAAG,CAACG,GAAG,CAACJ,OAAO,CAAC;EACrCG,MAAM,CAAC,eAAe,CAAC,GAAGH,OAAO;EAEjC,IAAIA,OAAO,CAACK,SAAS,EAAE;IACrBL,OAAO,CAACK,SAAS,GAAG,KAAK;EAC3B;AACF,C;;ACXwB;AACA;AACxB,8CAAe,OAAG;AACI","sources":["webpack://@itfin/components/webpack/bootstrap","webpack://@itfin/components/webpack/runtime/define property getters","webpack://@itfin/components/webpack/runtime/hasOwnProperty shorthand","webpack://@itfin/components/webpack/runtime/make namespace object","webpack://@itfin/components/webpack/runtime/publicPath","webpack://@itfin/components/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://@itfin/components/./src/main.js","webpack://@itfin/components/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","export default function install(Vue) {\n}\ninstall.version = '__VERSION__';\n\nif (typeof window !== 'undefined') {\n window.Vue && window.Vue.use(install);\n window['ITFComponents'] = install;\n\n if (install.installed) {\n install.installed = false;\n }\n}\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["install","Vue","version","window","use","installed"],"sourceRoot":""}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory();
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["ITFComponents"] = factory();
|
|
8
|
+
else
|
|
9
|
+
root["ITFComponents"] = factory();
|
|
10
|
+
})((typeof self !== 'undefined' ? self : this), function() {
|
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ // The require scope
|
|
14
|
+
/******/ var __webpack_require__ = {};
|
|
15
|
+
/******/
|
|
16
|
+
/************************************************************************/
|
|
17
|
+
/******/ /* webpack/runtime/define property getters */
|
|
18
|
+
/******/ !function() {
|
|
19
|
+
/******/ // define getter functions for harmony exports
|
|
20
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
21
|
+
/******/ for(var key in definition) {
|
|
22
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
23
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
24
|
+
/******/ }
|
|
25
|
+
/******/ }
|
|
26
|
+
/******/ };
|
|
27
|
+
/******/ }();
|
|
28
|
+
/******/
|
|
29
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
30
|
+
/******/ !function() {
|
|
31
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
32
|
+
/******/ }();
|
|
33
|
+
/******/
|
|
34
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
35
|
+
/******/ !function() {
|
|
36
|
+
/******/ // define __esModule on exports
|
|
37
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
38
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
39
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
40
|
+
/******/ }
|
|
41
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
42
|
+
/******/ };
|
|
43
|
+
/******/ }();
|
|
44
|
+
/******/
|
|
45
|
+
/******/ /* webpack/runtime/publicPath */
|
|
46
|
+
/******/ !function() {
|
|
47
|
+
/******/ __webpack_require__.p = "";
|
|
48
|
+
/******/ }();
|
|
49
|
+
/******/
|
|
50
|
+
/************************************************************************/
|
|
51
|
+
var __webpack_exports__ = {};
|
|
52
|
+
// ESM COMPAT FLAG
|
|
53
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54
|
+
|
|
55
|
+
// EXPORTS
|
|
56
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
57
|
+
"default": function() { return /* binding */ entry_lib; }
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
61
|
+
/* eslint-disable no-var */
|
|
62
|
+
// This file is imported into lib/wc client bundles.
|
|
63
|
+
|
|
64
|
+
if (typeof window !== 'undefined') {
|
|
65
|
+
var currentScript = window.document.currentScript
|
|
66
|
+
if (false) // removed by dead control flow
|
|
67
|
+
{ var getCurrentScript; }
|
|
68
|
+
|
|
69
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
70
|
+
if (src) {
|
|
71
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Indicate to webpack that this file can be concatenated
|
|
76
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
77
|
+
|
|
78
|
+
;// ./src/main.js
|
|
79
|
+
function install(Vue) {}
|
|
80
|
+
install.version = '__VERSION__';
|
|
81
|
+
if (typeof window !== 'undefined') {
|
|
82
|
+
window.Vue && window.Vue.use(install);
|
|
83
|
+
window['ITFComponents'] = install;
|
|
84
|
+
if (install.installed) {
|
|
85
|
+
install.installed = false;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/* harmony default export */ var entry_lib = (install);
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/******/ return __webpack_exports__;
|
|
95
|
+
/******/ })()
|
|
96
|
+
;
|
|
97
|
+
});
|
|
98
|
+
//# sourceMappingURL=ITFComponents.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITFComponents.umd.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;UCVA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,8CAA8C,yD;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA,2B;;;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE;AAAA,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACA,kDAAe,IAAI;;;ACtBJ,SAASA,OAAOA,CAACC,GAAG,EAAE,CACrC;AACAD,OAAO,CAACE,OAAO,GAAG,aAAa;AAE/B,IAAI,OAAOC,MAAM,KAAK,WAAW,EAAE;EACjCA,MAAM,CAACF,GAAG,IAAIE,MAAM,CAACF,GAAG,CAACG,GAAG,CAACJ,OAAO,CAAC;EACrCG,MAAM,CAAC,eAAe,CAAC,GAAGH,OAAO;EAEjC,IAAIA,OAAO,CAACK,SAAS,EAAE;IACrBL,OAAO,CAACK,SAAS,GAAG,KAAK;EAC3B;AACF,C;;ACXwB;AACA;AACxB,8CAAe,OAAG;AACI","sources":["webpack://ITFComponents/webpack/universalModuleDefinition","webpack://ITFComponents/webpack/bootstrap","webpack://ITFComponents/webpack/runtime/define property getters","webpack://ITFComponents/webpack/runtime/hasOwnProperty shorthand","webpack://ITFComponents/webpack/runtime/make namespace object","webpack://ITFComponents/webpack/runtime/publicPath","webpack://ITFComponents/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://ITFComponents/./src/main.js","webpack://ITFComponents/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ITFComponents\"] = factory();\n\telse\n\t\troot[\"ITFComponents\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","export default function install(Vue) {\n}\ninstall.version = '__VERSION__';\n\nif (typeof window !== 'undefined') {\n window.Vue && window.Vue.use(install);\n window['ITFComponents'] = install;\n\n if (install.installed) {\n install.installed = false;\n }\n}\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["install","Vue","version","window","use","installed"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(e,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["ITFComponents"]=n():e["ITFComponents"]=n()})("undefined"!==typeof self?self:this,function(){return function(){"use strict";var e={};!function(){e.d=function(n,o){for(var t in o)e.o(o,t)&&!e.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:o[t]})}}(),function(){e.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),function(){e.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){e.p=""}();var n={};if(e.r(n),e.d(n,{default:function(){return r}}),"undefined"!==typeof window){var o=window.document.currentScript,t=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(e.p=t[1])}function i(e){}i.version="__VERSION__","undefined"!==typeof window&&(window.Vue&&window.Vue.use(i),window["ITFComponents"]=i,i.installed&&(i.installed=!1));var r=i;return n}()});
|
|
2
|
+
//# sourceMappingURL=ITFComponents.umd.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITFComponents.umd.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,kBAAZC,SAA0C,kBAAXC,OACxCA,OAAOD,QAAUD,IACQ,oBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,kBAAZC,QACdA,QAAQ,iBAAmBD,IAE3BD,EAAK,iBAAmBC,GACzB,EATD,CASoB,qBAATK,KAAuBA,KAAOC,KAAO,WAChD,O,wBCTA,IAAIC,EAAsB,CAAC,G,WCA3BA,EAAoBC,EAAI,SAASP,EAASQ,GACzC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEV,EAASS,IAC5EE,OAAOC,eAAeZ,EAASS,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAG3E,C,eCPAH,EAAoBI,EAAI,SAASK,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,EAAO,C,eCCtGV,EAAoBc,EAAI,SAASpB,GACX,qBAAXqB,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAeZ,EAASqB,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAeZ,EAAS,aAAc,CAAEuB,OAAO,GACvD,C,eCNAjB,EAAoBkB,EAAI,E,aCGxB,G,6CAAsB,qBAAXC,OAAwB,CACjC,IAAIC,EAAgBD,OAAOE,SAASD,cAWhCE,EAAMF,GAAiBA,EAAcE,IAAIC,MAAM,2BAC/CD,IACF,IAA0BA,EAAI,GAElC,CCnBe,SAASE,EAAQC,GAChC,CACAD,EAAQE,QAAU,cAEI,qBAAXP,SACTA,OAAOM,KAAON,OAAOM,IAAIE,IAAIH,GAC7BL,OAAO,iBAAmBK,EAEtBA,EAAQI,YACVJ,EAAQI,WAAY,ICPxB,Q","sources":["webpack://ITFComponents/webpack/universalModuleDefinition","webpack://ITFComponents/webpack/bootstrap","webpack://ITFComponents/webpack/runtime/define property getters","webpack://ITFComponents/webpack/runtime/hasOwnProperty shorthand","webpack://ITFComponents/webpack/runtime/make namespace object","webpack://ITFComponents/webpack/runtime/publicPath","webpack://ITFComponents/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://ITFComponents/./src/main.js","webpack://ITFComponents/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ITFComponents\"] = factory();\n\telse\n\t\troot[\"ITFComponents\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","export default function install(Vue) {\n}\ninstall.version = '__VERSION__';\n\nif (typeof window !== 'undefined') {\n window.Vue && window.Vue.use(install);\n window['ITFComponents'] = install;\n\n if (install.installed) {\n install.installed = false;\n }\n}\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["root","factory","exports","module","define","amd","self","this","__webpack_require__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","p","window","currentScript","document","src","match","install","Vue","version","use","installed"],"sourceRoot":""}
|
package/dist/demo.html
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!doctype html><meta charset="utf-8"><title>ITFComponents demo</title><script src="./ITFComponents.umd.js"></script><link rel="stylesheet" href="./ITFComponents.css"><script>console.log(ITFComponents)</script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itfin/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.45",
|
|
4
4
|
"author": "Vitalii Savchuk <esvit666@gmail.com>",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
@@ -59,7 +59,11 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@babel/eslint-parser": "^7.19.1",
|
|
62
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
63
|
+
"@babel/plugin-proposal-decorators": "^7.29.0",
|
|
62
64
|
"@babel/plugin-proposal-numeric-separator": "^7.18.6",
|
|
65
|
+
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
66
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
63
67
|
"@babel/plugin-syntax-numeric-separator": "^7.10.4",
|
|
64
68
|
"@babel/plugin-transform-nullish-coalescing-operator": "^7.23.4",
|
|
65
69
|
"@storybook/addon-docs": "=6.3.8",
|
|
@@ -76,7 +80,6 @@
|
|
|
76
80
|
"eslint-plugin-import": "^2.22.1",
|
|
77
81
|
"eslint-plugin-prettier": "^4.2.1",
|
|
78
82
|
"eslint-plugin-vue": "^9.9.0",
|
|
79
|
-
"fibers": "^5.0.0",
|
|
80
83
|
"marked": "^4.2.5",
|
|
81
84
|
"postcss-cli": "^11.0.0",
|
|
82
85
|
"sass": "^1.29.0",
|
|
@@ -84,6 +87,7 @@
|
|
|
84
87
|
"vue": "^2.6.12",
|
|
85
88
|
"vue-class-component": "^7.2.6",
|
|
86
89
|
"vue-eslint-parser": "^9.1.0",
|
|
90
|
+
"vue-loader": "^15.11.1",
|
|
87
91
|
"vue-template-compiler": "=2.6.14"
|
|
88
92
|
},
|
|
89
93
|
"eslintConfig": {
|
|
@@ -133,5 +137,11 @@
|
|
|
133
137
|
"lcov"
|
|
134
138
|
]
|
|
135
139
|
},
|
|
140
|
+
"overrides": {
|
|
141
|
+
"@vue/vue-loader-v15": {
|
|
142
|
+
".": "npm:vue-loader@^15.11.1",
|
|
143
|
+
"webpack": "^5.88.0"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
136
146
|
"license": "ISC"
|
|
137
147
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="itf-monthpicker" :class="{'with-addon addon-start': prependIcon}">
|
|
2
|
+
<div class="itf-monthpicker" :class="{'with-addon addon-start': prependIcon, 'with-addon addon-end': clearable}">
|
|
3
3
|
<div class="addon" v-if="prependIcon">
|
|
4
4
|
<slot name="addon">
|
|
5
5
|
<itf-icon :name="prependIcon" />
|
|
@@ -16,6 +16,18 @@
|
|
|
16
16
|
:value="displayValue"
|
|
17
17
|
:placeholder="placeholder"
|
|
18
18
|
/>
|
|
19
|
+
<div class="addon-end" v-if="clearable && value && !isInvalid()">
|
|
20
|
+
<slot name="clear">
|
|
21
|
+
<itf-button
|
|
22
|
+
icon
|
|
23
|
+
small
|
|
24
|
+
@click="$emit('input', '')"
|
|
25
|
+
>
|
|
26
|
+
<itf-icon name="close" />
|
|
27
|
+
</itf-button>
|
|
28
|
+
</slot>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
19
31
|
<div style="display: none">
|
|
20
32
|
<div ref="dropdown" class="itf-monthpicker__dropdown border rounded">
|
|
21
33
|
<div>
|
|
@@ -36,16 +48,23 @@
|
|
|
36
48
|
</div>
|
|
37
49
|
</div>
|
|
38
50
|
</template>
|
|
51
|
+
<style>
|
|
52
|
+
.itf-monthpicker .addon-end {
|
|
53
|
+
top: 0
|
|
54
|
+
}
|
|
55
|
+
</style>
|
|
39
56
|
<script>
|
|
40
57
|
import { Vue, Component, Prop, Inject } from 'vue-property-decorator';
|
|
41
58
|
import { DateTime } from 'luxon';
|
|
42
59
|
import tippy from 'tippy.js';
|
|
43
60
|
import itfIcon from '../icon/Icon';
|
|
44
61
|
import itfDatePickerInline from './DatePickerInline.vue';
|
|
62
|
+
import itfButton from "@itfin/components/src/components/button/Button.vue";
|
|
45
63
|
|
|
46
64
|
export default @Component({
|
|
47
65
|
name: 'itfMonthPicker',
|
|
48
66
|
components: {
|
|
67
|
+
itfButton,
|
|
49
68
|
itfIcon,
|
|
50
69
|
itfDatePickerInline
|
|
51
70
|
},
|
|
@@ -63,6 +82,7 @@ class itfMonthPicker extends Vue {
|
|
|
63
82
|
@Prop({ type: String, default: '' }) placeholder;
|
|
64
83
|
@Prop({ type: String, default: '' }) prependIcon;
|
|
65
84
|
@Prop({ type: String, default: 'bottom-start' }) placement;
|
|
85
|
+
@Prop(Boolean) clearable;
|
|
66
86
|
|
|
67
87
|
focused = false;
|
|
68
88
|
|
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
<itf-date-picker-inline
|
|
41
41
|
style="margin: -.5rem"
|
|
42
42
|
:value="value.value"
|
|
43
|
+
:only-calendar="options.calendarOptions && options.calendarOptions.onlyCalendar"
|
|
44
|
+
:max-date="options.calendarOptions && options.calendarOptions.maxDate"
|
|
45
|
+
:min-date="options.calendarOptions && options.calendarOptions.minDate"
|
|
46
|
+
:start-view="options.calendarOptions && options.calendarOptions.startView"
|
|
47
|
+
:min-view="options.calendarOptions && options.calendarOptions.minView"
|
|
43
48
|
@input="onFilterChange({ value: $event })"
|
|
44
49
|
/>
|
|
45
50
|
</template>
|
|
@@ -376,7 +376,24 @@ class FilterPanel extends Vue {
|
|
|
376
376
|
}
|
|
377
377
|
} else if (facet.type === 'date') {
|
|
378
378
|
const date = DateTime.fromISO(value.value);
|
|
379
|
-
|
|
379
|
+
const effectiveDate = (date.isValid ? date : DateTime.fromISO(facet.options.defaultValue.value ?? DateTime.now().toISO()));
|
|
380
|
+
// Якщо календарь в режимі вибору місяця (startView/minView === 'month'),
|
|
381
|
+
// відображаємо весь місяць, наприклад: "01 - 31 Mar 2026"
|
|
382
|
+
if (
|
|
383
|
+
facet.options?.calendarOptions &&
|
|
384
|
+
facet.options.calendarOptions.startView === 'months' &&
|
|
385
|
+
facet.options.calendarOptions.minView === 'months'
|
|
386
|
+
) {
|
|
387
|
+
const startOfMonth = effectiveDate.startOf('month');
|
|
388
|
+
const endOfMonth = effectiveDate.endOf('month');
|
|
389
|
+
const startLabel = startOfMonth.toFormat('dd');
|
|
390
|
+
const endLabel = endOfMonth.toFormat('dd MMM yyyy');
|
|
391
|
+
value.label = `${startLabel} - ${endLabel}`;
|
|
392
|
+
} else {
|
|
393
|
+
// Стандартний сценарій: одиночна дата
|
|
394
|
+
value.label = effectiveDate.toFormat('dd MMM yyyy');
|
|
395
|
+
}
|
|
396
|
+
|
|
380
397
|
value.isDefault = facet.options.defaultValue ? value.value === facet.options.defaultValue.value : false;
|
|
381
398
|
} else if (facet.type === 'month') {
|
|
382
399
|
const date = DateTime.fromISO(value.value);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<template><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M4.11914 15.8824L15.8839 4.11773" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M4.11914 4.11765L15.8839 15.8823" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
|
5
|
+
</template>
|