@itfin/components 1.2.1 → 1.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itfin/components",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -41,6 +41,7 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@babel/plugin-proposal-numeric-separator": "^7.18.6",
44
+ "@babel/plugin-syntax-numeric-separator": "^7.10.4",
44
45
  "@storybook/addon-docs": "=6.3.8",
45
46
  "@storybook/addon-viewport": "=6.3.8",
46
47
  "@storybook/vue": "=6.3.8",
@@ -1,10 +1,18 @@
1
1
  class ITFSettings {
2
2
  options = {
3
3
  firstDayOfWeek: 'Monday',
4
+ defaultLocale: 'en_US',
4
5
  defaultDisplayDateFormat: 'MM/dd/yyyy',
5
6
  // defaultDisplayDateFormat: 'dd.MM.yyyy',
6
7
  };
7
8
 
9
+ get supportLanguages() {
10
+ return [
11
+ { locale: 'en_US', name: 'English', dateFormat: 'MM/dd/yyyy' },
12
+ { locale: 'uk_UA', name: 'Українська (Ukrainian)', dateFormat: 'dd.MM.yyyy' },
13
+ ];
14
+ }
15
+
8
16
  get firstDayOfWeek() {
9
17
  return this.options.firstDayOfWeek;
10
18
  }
@@ -2,7 +2,6 @@
2
2
  @import './fonts.scss';
3
3
  @import './dark-theme.scss';
4
4
  @import './scrollbar';
5
- @import '~bootstrap/scss/spinners.scss';
6
5
 
7
6
  .color-project-tnm {
8
7
  color: $project-tnm;
@@ -32,9 +32,9 @@ const Message = function (options) {
32
32
  options.onClose = function () {
33
33
  Message.close(id, userOnClose);
34
34
  };
35
-
35
+ const parent = document.getElementById('itf-app');
36
36
  const instance = new MessageConstructor({
37
- parent: document.getElementById('itf-app').__vue__,
37
+ parent: parent ? parent.__vue__ : null,
38
38
  el: document.createElement('div'),
39
39
  data: options
40
40
  });
@@ -1,6 +1,5 @@
1
1
  <style lang="scss">
2
2
  @import '../../assets/scss/main';
3
- //@import '~bootstrap/scss/buttons';
4
3
 
5
4
  :root {
6
5
  --itf-button-basic-bg-color: rgba(9, 30, 66, 0.08);
@@ -27,7 +27,6 @@
27
27
  </template>
28
28
  <style lang="scss">
29
29
  @import '../../assets/scss/variables';
30
- @import '~bootstrap/scss/pagination';
31
30
 
32
31
  .itf-pagination.pagination {
33
32
  padding-left: 0;
@@ -11,8 +11,6 @@
11
11
  </template>
12
12
  <style lang="scss">
13
13
  @import '../../assets/scss/variables';
14
- @import '~bootstrap/scss/popover';
15
- @import '~bootstrap/scss/transitions';
16
14
 
17
15
  .itf-popover {
18
16
  display: none;
@@ -1,6 +1,4 @@
1
1
  @import '../../assets/scss/variables';
2
- @import '~bootstrap/scss/grid';
3
- @import '~bootstrap/scss/containers';
4
2
 
5
3
  :root {
6
4
  --itf-tabs-active-bg: #fff;
@@ -20,7 +20,6 @@
20
20
  </template>
21
21
  <style lang="scss">
22
22
  @import '../../assets/scss/variables';
23
- @import '~bootstrap/scss/list-group';
24
23
 
25
24
  .itf-tree-view {
26
25
  .itf-button {
@@ -1,6 +1,4 @@
1
1
  @import '../../assets/scss/variables';
2
- @import '~bootstrap/scss/grid';
3
- @import '~bootstrap/scss/containers';
4
2
 
5
3
  .itf-wizard {
6
4