@eturnity/eturnity_reusable_components 8.26.11-EPDM-11600.15 → 8.26.11-EPDM-16030.0

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,25 +1,64 @@
1
- let supported;
2
- let perf;
3
- function isPerformanceSupported() {
4
- var _a;
5
- if (supported !== void 0) {
6
- return supported;
1
+ function makeMap(str, expectsLowerCase) {
2
+ const map = /* @__PURE__ */ Object.create(null);
3
+ const list = str.split(",");
4
+ for (let i = 0; i < list.length; i++) {
5
+ map[list[i]] = true;
7
6
  }
8
- if (typeof window !== "undefined" && window.performance) {
9
- supported = true;
10
- perf = window.performance;
11
- } else if (typeof globalThis !== "undefined" && ((_a = globalThis.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) {
12
- supported = true;
13
- perf = globalThis.perf_hooks.performance;
14
- } else {
15
- supported = false;
16
- }
17
- return supported;
18
- }
19
- function now() {
20
- return isPerformanceSupported() ? perf.now() : Date.now();
7
+ return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
21
8
  }
9
+ !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
10
+ !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
11
+ const NOOP = () => {
12
+ };
13
+ const extend = Object.assign;
14
+ const hasOwnProperty = Object.prototype.hasOwnProperty;
15
+ const hasOwn = (val, key) => hasOwnProperty.call(val, key);
16
+ const isArray = Array.isArray;
17
+ const isMap = (val) => toTypeString(val) === "[object Map]";
18
+ const isFunction = (val) => typeof val === "function";
19
+ const isString = (val) => typeof val === "string";
20
+ const isSymbol = (val) => typeof val === "symbol";
21
+ const isObject = (val) => val !== null && typeof val === "object";
22
+ const objectToString = Object.prototype.toString;
23
+ const toTypeString = (value) => objectToString.call(value);
24
+ const toRawType = (value) => {
25
+ return toTypeString(value).slice(8, -1);
26
+ };
27
+ const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
28
+ const cacheStringFunction = (fn) => {
29
+ const cache = /* @__PURE__ */ Object.create(null);
30
+ return (str) => {
31
+ const hit = cache[str];
32
+ return hit || (cache[str] = fn(str));
33
+ };
34
+ };
35
+ const capitalize = cacheStringFunction(
36
+ (str) => str.charAt(0).toUpperCase() + str.slice(1)
37
+ );
38
+ const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
39
+ const def = (obj, key, value) => {
40
+ Object.defineProperty(obj, key, {
41
+ configurable: true,
42
+ enumerable: false,
43
+ value
44
+ });
45
+ };
22
46
  export {
23
- isPerformanceSupported,
24
- now
47
+ NOOP,
48
+ capitalize,
49
+ def,
50
+ extend,
51
+ hasChanged,
52
+ hasOwn,
53
+ isArray,
54
+ isFunction,
55
+ isIntegerKey,
56
+ isMap,
57
+ isObject,
58
+ isString,
59
+ isSymbol,
60
+ makeMap,
61
+ objectToString,
62
+ toRawType,
63
+ toTypeString
25
64
  };
@@ -1,64 +1,25 @@
1
- function makeMap(str, expectsLowerCase) {
2
- const map = /* @__PURE__ */ Object.create(null);
3
- const list = str.split(",");
4
- for (let i = 0; i < list.length; i++) {
5
- map[list[i]] = true;
1
+ let supported;
2
+ let perf;
3
+ function isPerformanceSupported() {
4
+ var _a;
5
+ if (supported !== void 0) {
6
+ return supported;
6
7
  }
7
- return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
8
+ if (typeof window !== "undefined" && window.performance) {
9
+ supported = true;
10
+ perf = window.performance;
11
+ } else if (typeof globalThis !== "undefined" && ((_a = globalThis.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) {
12
+ supported = true;
13
+ perf = globalThis.perf_hooks.performance;
14
+ } else {
15
+ supported = false;
16
+ }
17
+ return supported;
18
+ }
19
+ function now() {
20
+ return isPerformanceSupported() ? perf.now() : Date.now();
8
21
  }
9
- !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
10
- !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
11
- const NOOP = () => {
12
- };
13
- const extend = Object.assign;
14
- const hasOwnProperty = Object.prototype.hasOwnProperty;
15
- const hasOwn = (val, key) => hasOwnProperty.call(val, key);
16
- const isArray = Array.isArray;
17
- const isMap = (val) => toTypeString(val) === "[object Map]";
18
- const isFunction = (val) => typeof val === "function";
19
- const isString = (val) => typeof val === "string";
20
- const isSymbol = (val) => typeof val === "symbol";
21
- const isObject = (val) => val !== null && typeof val === "object";
22
- const objectToString = Object.prototype.toString;
23
- const toTypeString = (value) => objectToString.call(value);
24
- const toRawType = (value) => {
25
- return toTypeString(value).slice(8, -1);
26
- };
27
- const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
28
- const cacheStringFunction = (fn) => {
29
- const cache = /* @__PURE__ */ Object.create(null);
30
- return (str) => {
31
- const hit = cache[str];
32
- return hit || (cache[str] = fn(str));
33
- };
34
- };
35
- const capitalize = cacheStringFunction(
36
- (str) => str.charAt(0).toUpperCase() + str.slice(1)
37
- );
38
- const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
39
- const def = (obj, key, value) => {
40
- Object.defineProperty(obj, key, {
41
- configurable: true,
42
- enumerable: false,
43
- value
44
- });
45
- };
46
22
  export {
47
- NOOP,
48
- capitalize,
49
- def,
50
- extend,
51
- hasChanged,
52
- hasOwn,
53
- isArray,
54
- isFunction,
55
- isIntegerKey,
56
- isMap,
57
- isObject,
58
- isString,
59
- isSymbol,
60
- makeMap,
61
- objectToString,
62
- toRawType,
63
- toTypeString
23
+ isPerformanceSupported,
24
+ now
64
25
  };
package/dist/main.es5.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { isRuntimeOnly, warn, createRenderer, callWithAsyncErrorHandling } from "./main.es6.js";
2
2
  import { Comment, Fragment, Static, Teleport, Text, callWithErrorHandling, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createStaticVNode, createTextVNode, createVNode, defineComponent, devtools, getCurrentInstance, guardReactiveProps, h, handleError, initCustomFormatter, inject, isVNode, mergeProps, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onServerPrefetch, onUnmounted, onUpdated, openBlock, provide, queuePostFlushCb, renderList, renderSlot, resolveComponent, resolveDynamicComponent, setBlockTracking, setDevtoolsHook, ssrContextKey, useSSRContext, version, watch, watchEffect, withCtx, withDirectives } from "./main.es6.js";
3
- import { isFunction, isHTMLTag, isSVGTag, isString, looseToNumber, isArray, invokeArrayFns, hyphenate, extend, isOn, isModelListener, capitalize, isSpecialBooleanAttr, includeBooleanAttr } from "./main.es23.js";
4
- import { camelize } from "./main.es22.js";
5
- import { capitalize as capitalize2, normalizeClass, normalizeStyle, toDisplayString, toHandlerKey } from "./main.es22.js";
3
+ import { isFunction, isHTMLTag, isSVGTag, isString, looseToNumber, isArray, invokeArrayFns, hyphenate, extend, isOn, isModelListener, capitalize, isSpecialBooleanAttr, includeBooleanAttr } from "./main.es16.js";
4
+ import { camelize } from "./main.es17.js";
5
+ import { capitalize as capitalize2, normalizeClass, normalizeStyle, toDisplayString, toHandlerKey } from "./main.es17.js";
6
6
  const svgNS = "http://www.w3.org/2000/svg";
7
7
  const doc = typeof document !== "undefined" ? document : null;
8
8
  const templateContainer = doc && /* @__PURE__ */ doc.createElement("template");
@@ -1,4 +1,4 @@
1
- const __vite_glob_0_174 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMiAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xOC40Mzg5IDMuMDYxMTNDMTQuMzU3NCAtMS4wMjAzOCA3LjY0MjYzIC0xLjAyMDM4IDMuNTYxMTMgMy4wNjExM0MtMC41MjAzNzYgNy4xNDI2MyAtMC41MjAzNzYgMTMuODU3NCAzLjU2MTEzIDE3LjkzODlDNy42NDI2MyAyMi4wMjA0IDE0LjM1NzQgMjIuMDIwNCAxOC40Mzg5IDE3LjkzODlDMjIuNTIwNCAxMy44NTc0IDIyLjUyMDQgNy4yNzQzIDE4LjQzODkgMy4wNjExM1pNMTYuNDY0IDE0LjI1MjRMMTQuNjIwNyAxNi4wOTU2TDEwLjkzNDIgMTIuNDA5MUw3LjI0NzY1IDE2LjA5NTZMNS40MDQzOSAxNC4yNTI0TDkuMDkwOTEgMTAuNTY1OEw1LjQwNDM5IDYuODc5MzFMNy4yNDc2NSA1LjAzNjA1TDEwLjkzNDIgOC43MjI1N0wxNC42MjA3IDUuMDM2MDVMMTYuNDY0IDYuODc5MzFMMTIuNzc3NCAxMC41NjU4TDE2LjQ2NCAxNC4yNTI0WiIgZmlsbD0iI0ZGNTY1NiIvPgo8L3N2Zz4K";
1
+ const __vite_glob_0_174 = "data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjE2IiB2aWV3Ym94PSIxMiAxMiAxNiAxNiIgd2lkdGg9IjE2IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSI3Ij48L2NpcmNsZT4KPHBhdGggZD0iTTI0Ljk1OTIgMTUuMDQwOEMyMi4yMzgyIDEyLjMxOTcgMTcuNzYxOCAxMi4zMTk3IDE1LjA0MDggMTUuMDQwOEMxMi4zMTk3IDE3Ljc2MTggMTIuMzE5NyAyMi4yMzgyIDE1LjA0MDggMjQuOTU5MkMxNy43NjE4IDI3LjY4MDMgMjIuMjM4MiAyNy42ODAzIDI0Ljk1OTIgMjQuOTU5MkMyNy42ODAzIDIyLjIzODIgMjcuNjgwMyAxNy44NDk1IDI0Ljk1OTIgMTUuMDQwOFpNMjMuNjQyNiAyMi41MDE2TDIyLjQxMzggMjMuNzMwNEwxOS45NTYxIDIxLjI3MjdMMTcuNDk4NCAyMy43MzA0TDE2LjI2OTYgMjIuNTAxNkwxOC43MjczIDIwLjA0MzlMMTYuMjY5NiAxNy41ODYyTDE3LjQ5ODQgMTYuMzU3NEwxOS45NTYxIDE4LjgxNUwyMi40MTM4IDE2LjM1NzRMMjMuNjQyNiAxNy41ODYyTDIxLjE4NSAyMC4wNDM5TDIzLjY0MjYgMjIuNTAxNloiIGZpbGw9IiNGRjU2NTYiPjwvcGF0aD4KPC9zdmc+Cg==";
2
2
  export {
3
3
  __vite_glob_0_174 as default
4
4
  };
package/dist/main.es6.js CHANGED
@@ -1,7 +1,7 @@
1
- import { isRef, toRaw, getCurrentScope, isShallow as isShallow$1, isReactive, ReactiveEffect, isProxy, computed as computed$1, pauseTracking, resetTracking, isReadonly, track, proxyRefs, markRaw, shallowReadonly, EffectScope, reactive, shallowReactive, trigger } from "./main.es17.js";
2
- import { readonly, ref, shallowRef, unref } from "./main.es17.js";
3
- import { isString, isFunction, getGlobalThis, isArray, NOOP, EMPTY_OBJ, normalizeClass, isObject, extend, normalizeStyle, isOn, isPromise, hasChanged, remove, isSet, isMap, isPlainObject, camelize, capitalize, toHandlerKey, hasOwn, EMPTY_ARR, NO, isBuiltInDirective, isReservedProp, invokeArrayFns, makeMap, looseToNumber, hyphenate, def, toRawType, isModelListener } from "./main.es22.js";
4
- import { toDisplayString } from "./main.es22.js";
1
+ import { isRef, toRaw, getCurrentScope, isShallow as isShallow$1, isReactive, ReactiveEffect, isProxy, computed as computed$1, pauseTracking, resetTracking, isReadonly, track, proxyRefs, markRaw, shallowReadonly, EffectScope, reactive, shallowReactive, trigger } from "./main.es19.js";
2
+ import { readonly, ref, shallowRef, unref } from "./main.es19.js";
3
+ import { isString, isFunction, getGlobalThis, isArray, NOOP, EMPTY_OBJ, normalizeClass, isObject, extend, normalizeStyle, isOn, isPromise, hasChanged, remove, isSet, isMap, isPlainObject, camelize, capitalize, toHandlerKey, hasOwn, EMPTY_ARR, NO, isBuiltInDirective, isReservedProp, invokeArrayFns, makeMap, looseToNumber, hyphenate, def, toRawType, isModelListener } from "./main.es17.js";
4
+ import { toDisplayString } from "./main.es17.js";
5
5
  const stack = [];
6
6
  function pushWarningContext(vnode) {
7
7
  stack.push(vnode);
package/dist/main.es8.js CHANGED
@@ -342,7 +342,7 @@ const theme = (() => {
342
342
  borderColor: semanticColors.grey[300]
343
343
  },
344
344
  active: {
345
- backgroundColor: semanticColors.purple[50],
345
+ backgroundColor: semanticColors.purple[100],
346
346
  textColor: semanticColors.purple[600],
347
347
  borderColor: semanticColors.grey[600]
348
348
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "8.26.11-EPDM-11600.15",
3
+ "version": "8.26.11-EPDM-16030.0",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -1,3 +1,4 @@
1
- <svg width="22" height="21" viewBox="0 0 22 21" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M18.4389 3.06113C14.3574 -1.02038 7.64263 -1.02038 3.56113 3.06113C-0.520376 7.14263 -0.520376 13.8574 3.56113 17.9389C7.64263 22.0204 14.3574 22.0204 18.4389 17.9389C22.5204 13.8574 22.5204 7.2743 18.4389 3.06113ZM16.464 14.2524L14.6207 16.0956L10.9342 12.4091L7.24765 16.0956L5.40439 14.2524L9.09091 10.5658L5.40439 6.87931L7.24765 5.03605L10.9342 8.72257L14.6207 5.03605L16.464 6.87931L12.7774 10.5658L16.464 14.2524Z" fill="#FF5656"/>
1
+ <svg fill="none" height="16" viewbox="12 12 16 16" width="16" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="20" cy="20" r="7"></circle>
3
+ <path d="M24.9592 15.0408C22.2382 12.3197 17.7618 12.3197 15.0408 15.0408C12.3197 17.7618 12.3197 22.2382 15.0408 24.9592C17.7618 27.6803 22.2382 27.6803 24.9592 24.9592C27.6803 22.2382 27.6803 17.8495 24.9592 15.0408ZM23.6426 22.5016L22.4138 23.7304L19.9561 21.2727L17.4984 23.7304L16.2696 22.5016L18.7273 20.0439L16.2696 17.5862L17.4984 16.3574L19.9561 18.815L22.4138 16.3574L23.6426 17.5862L21.185 20.0439L23.6426 22.5016Z" fill="#FF5656"></path>
3
4
  </svg>
@@ -333,7 +333,7 @@ const theme = (() => {
333
333
  borderColor: semanticColors.grey[300],
334
334
  },
335
335
  active: {
336
- backgroundColor: semanticColors.purple[50],
336
+ backgroundColor: semanticColors.purple[100],
337
337
  textColor: semanticColors.purple[600],
338
338
  borderColor: semanticColors.grey[600],
339
339
  },
@@ -68,10 +68,7 @@ export function useAxisCalculations(props, maxValue) {
68
68
  // Generate labels including 0 up to numSteps
69
69
  const numSteps = Math.floor(max / stepSize)
70
70
  for (let i = 0; i <= numSteps; i++) {
71
- const stepValue = i * stepSize
72
- const roundedStepValueString = stepValue.toFixed(2)
73
- const roundedStepValueNumber = parseFloat(roundedStepValueString)
74
- labels.push(roundedStepValueNumber)
71
+ labels.push(i * stepSize)
75
72
  }
76
73
 
77
74
  // Ensure we always have at least 2 labels (0 and max)
@@ -17,8 +17,8 @@
17
17
  />
18
18
  </ChartControlsWrapper>
19
19
  <GraphSection :height="height" :width="width">
20
- <YAxis :width="yAxisWidth">
21
- <YAxisTitleWrapper v-if="yAxisTitle">
20
+ <YAxis :height="height" :width="yAxisWidth">
21
+ <YAxisTitleWrapper v-if="yAxisTitle" :height="yAxisHeight">
22
22
  {{ yAxisTitle }}
23
23
  </YAxisTitleWrapper>
24
24
  <YAxisRow
@@ -51,11 +51,6 @@
51
51
  <LoadingOverlay v-if="isLoading">
52
52
  <Spinner size="medium" />
53
53
  </LoadingOverlay>
54
- <InfoCardContainer v-else-if="isDataIssueMessageDisplayed">
55
- <RCInfoCard align-items="center">
56
- {{ dataIssueMessage }}
57
- </RCInfoCard>
58
- </InfoCardContainer>
59
54
  <SelectionBox
60
55
  v-if="selectionSize && isSelectionEnabled"
61
56
  :bar-width="barWidth"
@@ -187,7 +182,6 @@
187
182
  import ChartControls from './ChartControls'
188
183
  import BottomFields from './BottomFields'
189
184
  import SelectionBox from './SelectionBox'
190
- import RCInfoCard from '../infoCard'
191
185
  import Spinner from '../spinner'
192
186
  import { numberToString } from '../../helpers/numberConverter'
193
187
 
@@ -223,7 +217,6 @@
223
217
  TooltipGradientBox,
224
218
  ChartControlsWrapper,
225
219
  LoadingOverlay,
226
- InfoCardContainer,
227
220
  } from './styles/chart'
228
221
 
229
222
  const props = defineProps({
@@ -306,14 +299,6 @@
306
299
  type: Boolean,
307
300
  default: false,
308
301
  },
309
- dataIssueMessage: {
310
- type: String,
311
- default: '',
312
- },
313
- isDataIssueMessageDisplayed: {
314
- type: Boolean,
315
- default: false,
316
- },
317
302
  showPercentageOnTooltip: {
318
303
  type: Boolean,
319
304
  default: false,
@@ -16,9 +16,12 @@ export const GraphSection = styled('div', { width: String, height: String })`
16
16
  display: flex;
17
17
  `
18
18
 
19
- export const YAxis = styled('div', { width: String })`
19
+ export const YAxis = styled('div', { width: String, height: String })`
20
20
  width: ${(props) => props.width};
21
+ display: flex;
22
+ flex-direction: column;
21
23
  position: relative;
24
+ height: ${(props) => props.height};
22
25
  `
23
26
 
24
27
  export const YAxisRow = styled('div', { percentage: Number })`
@@ -26,13 +29,10 @@ export const YAxisRow = styled('div', { percentage: Number })`
26
29
  align-items: center;
27
30
  width: 100%;
28
31
  position: absolute;
29
- height: 1px;
32
+ height: 0;
30
33
  bottom: ${(props) =>
31
34
  Number.isFinite(props.percentage) ? `${props.percentage}%` : '0'};
32
- ${(props) =>
33
- Number.isFinite(props.percentage) && props.percentage === 100
34
- ? 'transform: translateY(1px)'
35
- : ''};
35
+ transform: translateY(50%);
36
36
  `
37
37
 
38
38
  export const YAxisLabel = styled.div`
@@ -50,24 +50,25 @@ export const YAxisLine = styled('div', { yAxisWidth: String })`
50
50
  right: -10px;
51
51
  left: calc(${(props) => props.yAxisWidth} - 10px);
52
52
  height: 1px;
53
- background-color: ${(props) => props.theme.semanticColors.grey[400]};
53
+ background-color: rgba(0, 0, 0, 0.1);
54
54
  width: 12px;
55
55
  z-index: 0;
56
+ top: 50%;
57
+ transform: translateY(-50%);
56
58
  `
57
59
 
58
- export const YAxisTitleWrapper = styled('div')`
60
+ export const YAxisTitleWrapper = styled('div', { height: String })`
61
+ position: absolute;
62
+ left: -66px;
63
+ top: ${(props) => props.height};
64
+ transform: rotate(-90deg) translateX(50%);
65
+ transform-origin: right;
59
66
  font-size: 12px;
60
- font-weight: 500;
61
- color: ${(props) => props.theme.semanticColors.grey[700]};
62
- white-space: nowrap;
63
- height: 0;
64
- width: 0;
67
+ color: ${(props) => props.theme.semanticColors.teal[600]};
65
68
  display: flex;
66
- align-items: flex-start;
67
- justify-content: center;
68
- position: absolute;
69
- top: 50%;
70
- transform: rotate(-90deg);
69
+ align-items: center;
70
+ white-space: nowrap;
71
+ font-family: ${(props) => props.theme.fonts.mainFont};
71
72
  `
72
73
 
73
74
  export const ScrollContainer = styled('div', {
@@ -89,8 +90,6 @@ export const ChartContent = styled('div', {
89
90
  height: ${(props) => props.height};
90
91
  position: relative;
91
92
  background: ${(props) => props.theme.semanticColors.grey[100]};
92
- border-bottom: ${(props) =>
93
- `1px solid ${props.theme.semanticColors.grey[400]}`};
94
93
  ${(props) =>
95
94
  props.isScrollable
96
95
  ? ` min-width: ${props.totalBars * (props.barWidth + 8) + 24}px;`
@@ -180,7 +179,7 @@ export const XAxisLabelHighlight = styled.div`
180
179
  export const XAxisLine = styled.div`
181
180
  width: 1px;
182
181
  height: 6px;
183
- background-color: ${(props) => props.theme.semanticColors.grey[400]};
182
+ background-color: rgba(0, 0, 0, 0.1);
184
183
  position: absolute;
185
184
  bottom: -6px;
186
185
  left: 50%;
@@ -272,13 +271,3 @@ export const LoadingOverlay = styled('div')`
272
271
  align-items: center;
273
272
  z-index: 2;
274
273
  `
275
-
276
- export const InfoCardContainer = styled('div')`
277
- position: absolute;
278
- top: 50%;
279
- left: 50%;
280
- transform: translate(-50%, -50%);
281
- width: 500px;
282
- max-width: 500px;
283
- z-index: 2;
284
- `
@@ -21,7 +21,7 @@
21
21
  :name="icon"
22
22
  size="14px"
23
23
  />
24
- {{ text }}
24
+ {{ isFirstLetterCapitalized ? capitalizeFirstLetter(text) : text }}
25
25
  </LabelComponent>
26
26
  </ButtonContainer>
27
27
  </PageContainer>
@@ -231,6 +231,10 @@
231
231
  default: 'medium',
232
232
  required: false,
233
233
  },
234
+ isFirstLetterCapitalized: {
235
+ type: Boolean,
236
+ default: false,
237
+ },
234
238
  },
235
239
  computed: {
236
240
  theme() {
@@ -246,5 +250,10 @@
246
250
  .default.textColor
247
251
  },
248
252
  },
253
+ methods: {
254
+ capitalizeFirstLetter(word) {
255
+ return word.charAt(0).toUpperCase() + word.slice(1)
256
+ },
257
+ },
249
258
  }
250
259
  </script>
@@ -3,15 +3,15 @@ import InputNumber from './index.vue'
3
3
  export default {
4
4
  title: 'InputNumber',
5
5
  component: InputNumber,
6
+ // argTypes: {},
6
7
  }
7
8
 
8
- const Template = (args) => ({
9
+ const Template = (args, { argTypes }) => ({
9
10
  // Components used in your story `template` are defined in the `components` object
10
11
  components: { InputNumber },
11
- setup() {
12
- return { args: args }
13
- },
14
- template: `<InputNumber v-bind="args" />`,
12
+ // The story's `args` need to be mapped into the template through the `setup()` method
13
+ props: Object.keys(argTypes),
14
+ template: '<input-number v-bind="$props" />',
15
15
 
16
16
  // import InputNumber from "@eturnity/eturnity_reusable_components/src/components/inputs/inputNumber"
17
17
  // How to use:
@@ -50,6 +50,7 @@
50
50
  :color-mode="colorMode"
51
51
  :data-id="inputDataId"
52
52
  :data-qa-id="dataQaId"
53
+ :disabled="disabled && !isDisabledStyledOnly"
53
54
  :font-color="colorMode === 'transparent' ? 'white' : fontColor"
54
55
  :font-size="fontSize"
55
56
  :has-label-slot="hasLabelSlot"
@@ -57,7 +58,7 @@
57
58
  :has-unit="unitName && !!unitName.length"
58
59
  :input-height="inputHeight"
59
60
  :is-border-error-only="isBorderErrorOnly"
60
- :is-disabled="disabled && !isDisabledStyledOnly"
61
+ :is-disabled="disabled"
61
62
  :is-error="isError"
62
63
  :is-info-border="isInfoBorder"
63
64
  :is-interactive="isInteractive"
@@ -95,6 +96,7 @@
95
96
  :color-mode="colorMode"
96
97
  :data-id="inputDataId"
97
98
  :data-qa-id="dataQaId"
99
+ :disabled="disabled && !isDisabledStyledOnly"
98
100
  :font-color="colorMode === 'transparent' ? 'white' : fontColor"
99
101
  :font-size="fontSize"
100
102
  :has-label-slot="hasLabelSlot"
@@ -102,7 +104,7 @@
102
104
  :has-unit="unitName && !!unitName.length"
103
105
  :input-height="inputHeight"
104
106
  :is-border-error-only="isBorderErrorOnly"
105
- :is-disabled="disabled && !isDisabledStyledOnly"
107
+ :is-disabled="disabled"
106
108
  :is-error="isError"
107
109
  :is-info-border="isInfoBorder"
108
110
  :is-interactive="isInteractive"
@@ -746,7 +748,6 @@
746
748
  default: '',
747
749
  },
748
750
  dataQaId: {
749
- type: String,
750
751
  required: false,
751
752
  default: '',
752
753
  },
@@ -5,8 +5,7 @@
5
5
  :has-info-text="!!infoText"
6
6
  :margin-bottom="marginBottom"
7
7
  >
8
- <span v-if="containsHtml" data-test-id="page_subtitle_text" v-html="text"></span>
9
- <span v-else data-test-id="page_subtitle_text">
8
+ <span data-test-id="page_subtitle_text">
10
9
  {{ text }}
11
10
  </span>
12
11
  <InfoText
@@ -59,11 +58,6 @@
59
58
  required: true,
60
59
  type: String,
61
60
  },
62
- containsHtml: {
63
- required: false,
64
- type: Boolean,
65
- default: false,
66
- },
67
61
  color: {
68
62
  required: false,
69
63
  type: String,