@mozaic-ds/web-components 0.8.0 → 0.9.0-beta-1

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.
Files changed (94) hide show
  1. package/package.json +1 -1
  2. package/public/{DataTableDefaultAction.nested-483f8bb0.js → DataTableDefaultAction.nested-c37a5d51.js} +2 -2
  3. package/public/{DataTableDefaultAction.nested-483f8bb0.js.map → DataTableDefaultAction.nested-c37a5d51.js.map} +1 -1
  4. package/public/DataTableUtilities-313a448d.js +2 -0
  5. package/public/DataTableUtilities-313a448d.js.map +1 -0
  6. package/public/adeo/{DataTableDefaultAction.nested-90536fe3.js → DataTableDefaultAction.nested-ac2e3dbe.js} +2 -2
  7. package/public/adeo/{DataTableDefaultAction.nested-90536fe3.js.map → DataTableDefaultAction.nested-ac2e3dbe.js.map} +1 -1
  8. package/public/adeo/DataTableUtilities-313a448d.js +2 -0
  9. package/public/adeo/DataTableUtilities-313a448d.js.map +1 -0
  10. package/public/adeo/bundle.js +5 -0
  11. package/public/adeo/components/barchart/BarChart.svelte +3 -4
  12. package/public/adeo/components/chart/BarChart.js +1 -1
  13. package/public/adeo/components/chart/BarChart.js.map +1 -1
  14. package/public/adeo/components/datatable/DataTable.js +1 -1
  15. package/public/adeo/components/datatable/DataTable.js.map +1 -1
  16. package/public/adeo/components/datatable/DataTable.svelte +12 -0
  17. package/public/adeo/components/datatable/DataTableDefaultAction.nested.js +1 -1
  18. package/public/adeo/components/datatable/DataTableDefaultEdtion.nested.js +1 -1
  19. package/public/adeo/components/datatable/DataTableDefaultFilterTags.nested.js +1 -1
  20. package/public/adeo/components/datatable/DataTableFooter.nested.js +1 -1
  21. package/public/adeo/components/datatable/data.d.ts.map +1 -1
  22. package/public/adeo/components/datatable/datatable.types.d.ts +9 -2
  23. package/public/adeo/components/datatable/datatable.types.d.ts.map +1 -1
  24. package/public/adeo/components/kpi/Kpi.js +2 -0
  25. package/public/adeo/components/kpi/Kpi.js.map +1 -0
  26. package/public/adeo/components/kpi/Kpi.svelte +232 -0
  27. package/public/adeo/icons-storybook.js +16 -0
  28. package/public/adeo/main.d.ts +1 -0
  29. package/public/adeo/main.d.ts.map +1 -1
  30. package/public/adeo/utilities/DataTableUtilities.d.ts.map +1 -1
  31. package/public/adeo/utilities/DataTableUtilities.ts +22 -2
  32. package/public/bricoman/{DataTableDefaultAction.nested-928e5e2d.js → DataTableDefaultAction.nested-bcc599d1.js} +2 -2
  33. package/public/bricoman/{DataTableDefaultAction.nested-928e5e2d.js.map → DataTableDefaultAction.nested-bcc599d1.js.map} +1 -1
  34. package/public/bricoman/DataTableUtilities-313a448d.js +2 -0
  35. package/public/bricoman/DataTableUtilities-313a448d.js.map +1 -0
  36. package/public/bricoman/bundle.js +5 -0
  37. package/public/bricoman/components/barchart/BarChart.svelte +3 -4
  38. package/public/bricoman/components/chart/BarChart.js +1 -1
  39. package/public/bricoman/components/chart/BarChart.js.map +1 -1
  40. package/public/bricoman/components/datatable/DataTable.js +1 -1
  41. package/public/bricoman/components/datatable/DataTable.js.map +1 -1
  42. package/public/bricoman/components/datatable/DataTable.svelte +12 -0
  43. package/public/bricoman/components/datatable/DataTableDefaultAction.nested.js +1 -1
  44. package/public/bricoman/components/datatable/DataTableDefaultEdtion.nested.js +1 -1
  45. package/public/bricoman/components/datatable/DataTableDefaultFilterTags.nested.js +1 -1
  46. package/public/bricoman/components/datatable/DataTableFooter.nested.js +1 -1
  47. package/public/bricoman/components/datatable/data.d.ts.map +1 -1
  48. package/public/bricoman/components/datatable/datatable.types.d.ts +9 -2
  49. package/public/bricoman/components/datatable/datatable.types.d.ts.map +1 -1
  50. package/public/bricoman/components/kpi/Kpi.js +2 -0
  51. package/public/bricoman/components/kpi/Kpi.js.map +1 -0
  52. package/public/bricoman/components/kpi/Kpi.svelte +232 -0
  53. package/public/bricoman/icons-storybook.js +16 -0
  54. package/public/bricoman/main.d.ts +1 -0
  55. package/public/bricoman/main.d.ts.map +1 -1
  56. package/public/bricoman/utilities/DataTableUtilities.d.ts.map +1 -1
  57. package/public/bricoman/utilities/DataTableUtilities.ts +22 -2
  58. package/public/bundle.js +5 -0
  59. package/public/components/barchart/BarChart.svelte +3 -4
  60. package/public/components/chart/BarChart.js +1 -1
  61. package/public/components/chart/BarChart.js.map +1 -1
  62. package/public/components/datatable/DataTable.js +1 -1
  63. package/public/components/datatable/DataTable.js.map +1 -1
  64. package/public/components/datatable/DataTable.svelte +12 -0
  65. package/public/components/datatable/DataTableDefaultAction.nested.js +1 -1
  66. package/public/components/datatable/DataTableDefaultEdtion.nested.js +1 -1
  67. package/public/components/datatable/DataTableDefaultFilterTags.nested.js +1 -1
  68. package/public/components/datatable/DataTableFooter.nested.js +1 -1
  69. package/public/components/datatable/data.d.ts.map +1 -1
  70. package/public/components/datatable/datatable.types.d.ts +9 -2
  71. package/public/components/datatable/datatable.types.d.ts.map +1 -1
  72. package/public/components/kpi/Kpi.js +2 -0
  73. package/public/components/kpi/Kpi.js.map +1 -0
  74. package/public/components/kpi/Kpi.svelte +232 -0
  75. package/public/icons-storybook.js +16 -0
  76. package/public/main.d.ts +1 -0
  77. package/public/main.d.ts.map +1 -1
  78. package/public/utilities/DataTableUtilities.d.ts.map +1 -1
  79. package/public/utilities/DataTableUtilities.ts +22 -2
  80. package/public/utilities/components/datatable/data.d.ts.map +1 -1
  81. package/public/utilities/components/datatable/datatable.types.d.ts +9 -2
  82. package/public/utilities/components/datatable/datatable.types.d.ts.map +1 -1
  83. package/public/utilities/main.d.ts +1 -0
  84. package/public/utilities/main.d.ts.map +1 -1
  85. package/public/utilities/stories/datatable/DataTable.stories.d.ts.map +1 -1
  86. package/public/utilities/stories/kpi/kpi.stories.d.ts +7 -0
  87. package/public/utilities/stories/kpi/kpi.stories.d.ts.map +1 -0
  88. package/public/utilities/utilities/DataTableUtilities.d.ts.map +1 -1
  89. package/public/DataTableUtilities-60220c78.js +0 -2
  90. package/public/DataTableUtilities-60220c78.js.map +0 -1
  91. package/public/adeo/DataTableUtilities-60220c78.js +0 -2
  92. package/public/adeo/DataTableUtilities-60220c78.js.map +0 -1
  93. package/public/bricoman/DataTableUtilities-60220c78.js +0 -2
  94. package/public/bricoman/DataTableUtilities-60220c78.js.map +0 -1
@@ -0,0 +1,232 @@
1
+ <svelte:options tag={null} />
2
+
3
+ <script lang="ts">
4
+ export let value: string = '';
5
+ export let iconname: string = '';
6
+ export let iconcolor: string = '';
7
+ export let label: string = '';
8
+ export let type: string = '';
9
+ export let detail: string = '';
10
+ $: labelOutsideContent = label && label.length > 0 && size() !== 'large';
11
+ $: size = function getSize() {
12
+ let size = 'small';
13
+ if (label && label.length > 0 && !detail) {
14
+ size = 'medium';
15
+ } else if (detail && detail.length > 0) {
16
+ size = 'large';
17
+ }
18
+
19
+ return size;
20
+ };
21
+
22
+ function generateIconName(iconname: string, iconcolor?: string): string {
23
+ return iconcolor ? `${iconname} fill="${iconcolor}"` : `${iconname}`;
24
+ }
25
+ </script>
26
+
27
+ <div class="mc-kpi mc-kpi--{size()} mc-kpi--{type}">
28
+ {#if labelOutsideContent}
29
+ <span class="mc-kpi__label">{label}</span>
30
+ {/if}
31
+ <div class="mc-kpi__content">
32
+ <div class="mc-kpi__main">
33
+ {#if !labelOutsideContent}
34
+ <span class="mc-kpi__label">{label}</span>
35
+ {/if}
36
+ <span class="mc-kpi__value">{value}</span>
37
+ </div>
38
+ {#if iconname || detail}
39
+ <div class="mc-kpi__aside">
40
+ {#if detail}
41
+ <span class="mc-kpi__detail">{detail}</span>
42
+ {/if}
43
+ {#if iconname}
44
+ <span class="mc-kpi__icon"
45
+ >{@html `<${generateIconName(iconname, iconcolor)} />`}</span
46
+ >
47
+ {/if}
48
+ </div>
49
+ {/if}
50
+ </div>
51
+ </div>
52
+
53
+ <style lang="scss">
54
+ @import '@mozaic-ds/styles/settings-tools/_all-settings';
55
+ .mc-kpi {
56
+ color: var(--color-kpi-text, #005c91);
57
+ display: inline-block;
58
+
59
+ &__label {
60
+ font-size: 1.2rem;
61
+ display: block;
62
+ }
63
+
64
+ &__content {
65
+ display: flex;
66
+ }
67
+
68
+ &__main {
69
+ align-items: center;
70
+ display: flex;
71
+ justify-content: center;
72
+ }
73
+
74
+ &__value {
75
+ font-size: 1.2rem;
76
+ font-weight: 600;
77
+ }
78
+
79
+ &__aside {
80
+ align-items: center;
81
+ background-color: var(--color-grey-000, #ffffff);
82
+ color: var(--color-font-dark, #000000);
83
+ display: flex;
84
+ justify-content: center;
85
+ }
86
+
87
+ &__detail {
88
+ font-size: 1.2rem;
89
+ }
90
+
91
+ &__icon {
92
+ display: block;
93
+ height: 16px;
94
+ width: 16px;
95
+ }
96
+
97
+ &--small {
98
+ .mc-kpi {
99
+ &__label {
100
+ font-size: 1rem;
101
+ margin-bottom: 6px;
102
+ color: var(--color-grey-999, #999999);
103
+ }
104
+
105
+ &__content {
106
+ gap: 0.5rem;
107
+ }
108
+
109
+ &__value {
110
+ font-size: 0.875rem;
111
+ line-height: 1.2;
112
+ }
113
+
114
+ &__main {
115
+ background-color: var(--color-kpi-background, #daeff7);
116
+ border: 1px solid var(--color-kpi-border, #007bb4);
117
+ border-radius: 4px;
118
+ overflow: hidden;
119
+ padding: 3px 7px;
120
+ }
121
+
122
+ &__aside {
123
+ background-color: transparent;
124
+ }
125
+ }
126
+ }
127
+
128
+ &--medium {
129
+ .mc-kpi {
130
+ &__label {
131
+ color: var(--color-grey-999, #999999);
132
+ margin-bottom: 6px;
133
+ }
134
+
135
+ &__content {
136
+ background-color: var(--color-kpi-background, #daeff7);
137
+ border: 1px solid var(--color-kpi-border, #007bb4);
138
+ border-radius: 4px;
139
+ overflow: hidden;
140
+ height: 40px;
141
+ min-width: 160px;
142
+ }
143
+
144
+ &__main {
145
+ flex-grow: 1;
146
+ padding: 2px 2px 2px 7px;
147
+ }
148
+
149
+ &__value {
150
+ font-size: 1.5rem;
151
+ }
152
+
153
+ &__aside {
154
+ padding-left: 12px;
155
+ padding-right: 15px;
156
+ }
157
+ }
158
+ }
159
+
160
+ &--large {
161
+ background-color: var(--color-kpi-background, #daeff7);
162
+ border: 1px solid var(--color-kpi-border, #007bb4);
163
+ border-radius: 4px;
164
+ overflow: hidden;
165
+
166
+ .mc-kpi {
167
+ &__content {
168
+ flex-direction: column;
169
+ min-width: 160px;
170
+ min-height: 100px;
171
+ }
172
+
173
+ &__main {
174
+ flex-direction: column;
175
+ padding: 10px 15px;
176
+ min-height: 5rem;
177
+ }
178
+
179
+ &__label {
180
+ line-height: 1.5;
181
+ font-size: 1rem;
182
+ }
183
+
184
+ &__value {
185
+ font-size: 2rem;
186
+ }
187
+
188
+ &__detail {
189
+ font-size: 1rem;
190
+ line-height: 1;
191
+ }
192
+
193
+ &__aside {
194
+ min-height: 3rem;
195
+ padding-right: 15px;
196
+ padding-left: 15px;
197
+ gap: 12px;
198
+ }
199
+ }
200
+ }
201
+
202
+ &--information {
203
+ --color-kpi-background: #daeff7;
204
+ --color-kpi-border: #007bb4;
205
+ --color-kpi-text: #005c91;
206
+ }
207
+
208
+ &--warning {
209
+ --color-kpi-background: #fdf1e8;
210
+ --color-kpi-border: #c65200;
211
+ --color-kpi-text: #8c3500;
212
+ }
213
+
214
+ &--danger {
215
+ --color-kpi-background: #fdeaea;
216
+ --color-kpi-border: #c61112;
217
+ --color-kpi-text: #8c0003;
218
+ }
219
+
220
+ &--success {
221
+ --color-kpi-background: #ebf5de;
222
+ --color-kpi-border: #188803;
223
+ --color-kpi-text: #006902;
224
+ }
225
+
226
+ &--neutral {
227
+ --color-kpi-background: #e6e6e6;
228
+ --color-kpi-border: #666666;
229
+ --color-kpi-text: #4d4d4d;
230
+ }
231
+ }
232
+ </style>
@@ -13,6 +13,22 @@ import ArrowArrowRight24 from './icons/ArrowArrowRight24.js';
13
13
  import DisplayHome24 from './icons/DisplayHome24.js';
14
14
  import DisplayBlink24 from './icons/DisplayBlink24.js';
15
15
  import AspectQuantity24 from './icons/AspectQuantity24.js';
16
+ import ArrowArrowTopRight16 from './icons/ArrowArrowTopRight16.js';
17
+ import ArrowArrowBottomRight16 from './icons/ArrowArrowBottomRight16.js';
18
+
19
+ if (!customElements.get('navigation-arrow-arrowtopright-16px')) {
20
+ customElements.define(
21
+ 'navigation-arrow-arrowtopright-16px',
22
+ ArrowArrowTopRight16,
23
+ );
24
+ }
25
+
26
+ if (!customElements.get('navigation-arrow-arrowbottomright-16px')) {
27
+ customElements.define(
28
+ 'navigation-arrow-arrowbottomright-16px',
29
+ ArrowArrowBottomRight16,
30
+ );
31
+ }
16
32
 
17
33
  if (!customElements.get('navigation-arrow-arrow--left-32px')) {
18
34
  customElements.define('navigation-arrow-arrow--left-32px', ArrowArrowLeft32);
@@ -49,6 +49,7 @@ declare const _default: {
49
49
  Radar: typeof Accordion;
50
50
  Header: typeof Accordion;
51
51
  TagList: typeof Accordion;
52
+ Kpi: typeof Accordion;
52
53
  };
53
54
  export default _default;
54
55
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,yCAAyC,CAAC;AA+ChE,YAAY,EACV,OAAO,IAAI,WAAW,EACtB,OAAO,EACP,YAAY,EACZ,OAAO,EACP,IAAI,GACL,MAAM,oCAAoC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAG5C,wBAiDE"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,yCAAyC,CAAC;AAgDhE,YAAY,EACV,OAAO,IAAI,WAAW,EACtB,OAAO,EACP,YAAY,EACZ,OAAO,EACP,IAAI,GACL,MAAM,oCAAoC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAG5C,wBAkDE"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableUtilities.d.ts","sourceRoot":"","sources":["../../../src/util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AAa;IACvB,KAAK,UAAU;CAChB"}
@@ -11,6 +11,7 @@ import type {
11
11
  SelectionParams,
12
12
  ProgressBar,
13
13
  Button,
14
+ FileFormat,
14
15
  } from '../components/datatable/datatable.types';
15
16
 
16
17
  const customTextFormatter = (customText: CustomText): string => {
@@ -23,6 +24,13 @@ const customTextFormatter = (customText: CustomText): string => {
23
24
  );
24
25
  return customTextHtml;
25
26
  };
27
+ const customNumberFormatter = (number: Number): string => {
28
+ return number !== null && number !== undefined
29
+ ? `<span style="display: flex; justify-content: end;"> ${Number(
30
+ number,
31
+ )} </span>`
32
+ : '';
33
+ };
26
34
  const imageFormatter = (image: Image): string =>
27
35
  `<img style="${
28
36
  image.style || 'width: 35px; height: 35px; margin-right: 8px;'
@@ -33,6 +41,14 @@ const badgeFormatter = (badge: Badge): string =>
33
41
  }</div>`;
34
42
  const linkFormatter = (link: Link): string =>
35
43
  `<a class="mc-link" href=${link.href} >${link.text}</a>`;
44
+
45
+ const fileFormatter = (file: FileFormat, id: string): string =>
46
+ `<div class="mc-tooltip mc-tooltip--top">
47
+ <span id="tooltipTop" class="mc-tooltip__content" role="tooltip">
48
+ ${file.documentNameTooltip}
49
+ </span>
50
+ <span class="mc-link" id=cell-file-${id} style="${file.style}"> ${file.documentName}</span>
51
+ </div>`;
36
52
  const linkWithoutRedirectFormatter = (link: Link, id: string): string =>
37
53
  `<a class="mc-link" id=cell-link-${id} href=${link.href} onclick="return false;">${link.text}</a>`;
38
54
  const progressBarFormatter = (progressBar: ProgressBar): string => {
@@ -77,12 +93,16 @@ const getFormattedCell = (
77
93
  return cellValue as string;
78
94
  case 'CustomText':
79
95
  return customTextFormatter(cellValue as CustomText);
96
+ case 'Number':
97
+ return customNumberFormatter(cellValue as Number);
80
98
  case 'Image':
81
99
  return imageFormatter(cellValue as Image);
82
100
  case 'Badge':
83
101
  return badgeFormatter(cellValue as Badge);
84
102
  case 'Link':
85
103
  return linkFormatter(cellValue as Link);
104
+ case 'FileFormat':
105
+ return fileFormatter(cellValue as FileFormat, id);
86
106
  case 'LinkWithoutRedirect':
87
107
  return linkWithoutRedirectFormatter(cellValue as Link, id);
88
108
  case 'ProgressBar':
@@ -102,7 +122,7 @@ export const getCellContent = (
102
122
  ): string => {
103
123
  const cellValue = bodyData?.cells[headData.id];
104
124
 
105
- return cellValue
125
+ return cellValue || Number(cellValue) === 0
106
126
  ? getFormattedCell(headData.cellsFormat, cellValue, bodyData.id)
107
127
  : '';
108
128
  };
@@ -165,7 +185,7 @@ export const onePageSort = (
165
185
 
166
186
  switch (cellsFormat) {
167
187
  default:
168
- case 'Text':
188
+ case 'Text' || 'Number':
169
189
  if (sortDirection === 'asc') {
170
190
  compareFunction = (a: BodyData, b: BodyData) =>
171
191
  a.cells[columnId] > b.cells[columnId] ? 1 : -1;