@sme.up/ketchup 5.2.0-SNAPSHOT → 5.2.1-SNAPSHOT

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 (131) hide show
  1. package/dist/cjs/{cell-utils-5b16c180.js → cell-utils-d96b2993.js} +2 -2
  2. package/dist/cjs/{f-button-3b9f32af.js → f-button-2b9b99b1.js} +2 -2
  3. package/dist/cjs/{f-cell-c6ad973a.js → f-cell-8351cb84.js} +8 -96
  4. package/dist/cjs/{f-chip-bed86c4a.js → f-chip-df59e1b0.js} +3 -3
  5. package/dist/cjs/{f-image-08a3d340.js → f-image-12bab3b5.js} +2 -2
  6. package/dist/cjs/f-text-field-e7c35b5b.js +94 -0
  7. package/dist/cjs/f-text-field-mdc-a67f5dfe.js +2852 -0
  8. package/dist/cjs/{index-8d7bb3be.js → index-eb556444.js} +2 -0
  9. package/dist/cjs/ketchup.cjs.js +3 -3
  10. package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
  11. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +365 -3041
  12. package/dist/cjs/kup-calendar.cjs.entry.js +7 -7
  13. package/dist/cjs/kup-cell.cjs.entry.js +8 -7
  14. package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
  15. package/dist/cjs/kup-dash_2.cjs.entry.js +3 -3
  16. package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
  17. package/dist/cjs/kup-echart.cjs.entry.js +4 -4
  18. package/dist/cjs/kup-field.cjs.entry.js +2 -2
  19. package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
  20. package/dist/cjs/kup-lazy.cjs.entry.js +3 -3
  21. package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
  22. package/dist/cjs/{kup-manager-4227f0a2.js → kup-manager-5c03da64.js} +373 -160
  23. package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
  24. package/dist/cjs/kup-numeric-picker.cjs.entry.js +423 -0
  25. package/dist/cjs/kup-photo-frame.cjs.entry.js +3 -3
  26. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  27. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  28. package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
  29. package/dist/cjs/loader.cjs.js +3 -3
  30. package/dist/cjs/{utils-b9df398c.js → utils-e99921c1.js} +1 -1
  31. package/dist/collection/assets/index.js +8 -0
  32. package/dist/collection/assets/kuptooltip.js +608 -0
  33. package/dist/collection/collection-manifest.json +2 -1
  34. package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +10 -0
  35. package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +153 -0
  36. package/dist/collection/components/kup-card/kup-card.css +35 -0
  37. package/dist/collection/components/kup-card/kup-card.js +1 -0
  38. package/dist/collection/components/kup-data-table/kup-data-table.js +34 -5
  39. package/dist/collection/components/kup-date-picker/kup-date-picker.js +1 -1
  40. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker-declarations.js +16 -0
  41. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.css +50 -0
  42. package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +895 -0
  43. package/dist/collection/managers/kup-debug/kup-debug.js +1 -0
  44. package/dist/collection/managers/kup-manager/kup-manager.js +12 -1
  45. package/dist/collection/managers/kup-math/kup-math.js +11 -1
  46. package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -0
  47. package/dist/collection/managers/kup-tooltip/kup-tooltip-declarations.js +1 -0
  48. package/dist/collection/managers/kup-tooltip/kup-tooltip.js +191 -0
  49. package/dist/collection/types/GenericTypes.js +1 -0
  50. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +1 -1
  51. package/dist/esm/{cell-utils-69f75e2e.js → cell-utils-f4bdbbc8.js} +2 -2
  52. package/dist/esm/{f-button-7e7607d8.js → f-button-54a49fd8.js} +2 -2
  53. package/dist/esm/{f-cell-e4d83c27.js → f-cell-d5dac50b.js} +8 -95
  54. package/dist/esm/{f-chip-51dfefaf.js → f-chip-a3035b4b.js} +3 -3
  55. package/dist/esm/{f-image-de331954.js → f-image-d32465e3.js} +2 -2
  56. package/dist/esm/f-text-field-c25cc63f.js +92 -0
  57. package/dist/esm/f-text-field-mdc-9fbbefc3.js +2850 -0
  58. package/dist/esm/{index-aeec9835.js → index-baeab1ac.js} +2 -1
  59. package/dist/esm/ketchup.js +3 -3
  60. package/dist/esm/kup-accordion.entry.js +4 -4
  61. package/dist/esm/kup-autocomplete_27.entry.js +349 -3025
  62. package/dist/esm/kup-calendar.entry.js +7 -7
  63. package/dist/esm/kup-cell.entry.js +8 -7
  64. package/dist/esm/kup-dash-list.entry.js +4 -4
  65. package/dist/esm/kup-dash_2.entry.js +3 -3
  66. package/dist/esm/kup-drawer.entry.js +3 -3
  67. package/dist/esm/kup-echart.entry.js +4 -4
  68. package/dist/esm/kup-field.entry.js +2 -2
  69. package/dist/esm/kup-iframe.entry.js +3 -3
  70. package/dist/esm/kup-lazy.entry.js +3 -3
  71. package/dist/esm/kup-magic-box.entry.js +4 -4
  72. package/dist/esm/{kup-manager-0ab94726.js → kup-manager-9316a184.js} +373 -160
  73. package/dist/esm/kup-nav-bar.entry.js +3 -3
  74. package/dist/esm/kup-numeric-picker.entry.js +419 -0
  75. package/dist/esm/kup-photo-frame.entry.js +3 -3
  76. package/dist/esm/kup-probe.entry.js +2 -2
  77. package/dist/esm/kup-qlik.entry.js +2 -2
  78. package/dist/esm/kup-snackbar.entry.js +5 -5
  79. package/dist/esm/loader.js +3 -3
  80. package/dist/esm/{utils-35c7a90d.js → utils-f24319a0.js} +1 -1
  81. package/dist/ketchup/ketchup.esm.js +1 -1
  82. package/dist/ketchup/{p-3813281b.entry.js → p-09d708c4.entry.js} +1 -1
  83. package/dist/ketchup/{p-4081f5f7.entry.js → p-11e72a8c.entry.js} +1 -1
  84. package/dist/ketchup/p-12773ca8.js +9 -0
  85. package/dist/ketchup/{p-0751aaf6.entry.js → p-203d6295.entry.js} +1 -1
  86. package/dist/ketchup/{p-33073f4a.js → p-34748c91.js} +1 -1
  87. package/dist/ketchup/{p-8be1337b.js → p-34b74425.js} +1 -1
  88. package/dist/ketchup/{p-10c8d755.js → p-40f97429.js} +1 -1
  89. package/dist/ketchup/{p-3aab1f0d.entry.js → p-4173422f.entry.js} +1 -1
  90. package/dist/ketchup/{p-8f735633.entry.js → p-41741c28.entry.js} +1 -1
  91. package/dist/ketchup/{p-b5e1dbfa.entry.js → p-44192f30.entry.js} +1 -1
  92. package/dist/ketchup/{p-c314b1e6.js → p-44f8da2a.js} +1 -1
  93. package/dist/ketchup/p-4f56932b.js +1 -0
  94. package/dist/ketchup/p-669bde31.js +1 -0
  95. package/dist/ketchup/p-67842f1e.entry.js +1 -0
  96. package/dist/ketchup/{p-5d190cf5.js → p-7a74ad17.js} +1 -1
  97. package/dist/ketchup/{p-96101f09.entry.js → p-7ba8fa4a.entry.js} +1 -1
  98. package/dist/ketchup/p-7de0d7e1.js +1 -0
  99. package/dist/ketchup/{p-f9c41e20.entry.js → p-8418e8fa.entry.js} +1 -1
  100. package/dist/ketchup/p-96bf19aa.entry.js +1 -0
  101. package/dist/ketchup/{p-9bcda66f.entry.js → p-9a61d8dc.entry.js} +1 -1
  102. package/dist/ketchup/p-b0ddcce9.entry.js +9 -0
  103. package/dist/ketchup/{p-24df4f29.entry.js → p-b6c21223.entry.js} +1 -1
  104. package/dist/ketchup/{p-68fc1428.entry.js → p-bb8844bf.entry.js} +1 -1
  105. package/dist/ketchup/{p-67c64257.entry.js → p-c58a2a81.entry.js} +1 -1
  106. package/dist/ketchup/{p-3445be1e.entry.js → p-ca3d585b.entry.js} +1 -1
  107. package/dist/ketchup/{p-fea316ab.entry.js → p-e6709c26.entry.js} +1 -1
  108. package/dist/ketchup/{p-d7af8156.entry.js → p-e8e3c9da.entry.js} +1 -1
  109. package/dist/ketchup/p-ecb7069b.js +135 -0
  110. package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +7 -0
  111. package/dist/types/components/kup-card/built-in/kup-card-numeric.d.ts +2 -0
  112. package/dist/types/components/kup-card/kup-card-declarations.d.ts +26 -1
  113. package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +2 -0
  114. package/dist/types/components/kup-data-table/kup-data-table.d.ts +4 -0
  115. package/dist/types/components/kup-numeric-picker/kup-numeric-picker-declarations.d.ts +19 -0
  116. package/dist/types/components/kup-numeric-picker/kup-numeric-picker.d.ts +121 -0
  117. package/dist/types/components.d.ts +144 -1
  118. package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +10 -0
  119. package/dist/types/managers/kup-manager/kup-manager.d.ts +2 -0
  120. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +6 -0
  121. package/dist/types/managers/kup-math/kup-math.d.ts +2 -1
  122. package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +8 -0
  123. package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +40 -0
  124. package/dist/types/types/GenericTypes.d.ts +1 -0
  125. package/package.json +3 -3
  126. package/CHANGELOG.md +0 -5
  127. package/dist/ketchup/p-2d4f19f4.js +0 -1
  128. package/dist/ketchup/p-47b57d97.js +0 -1
  129. package/dist/ketchup/p-5186885c.entry.js +0 -1
  130. package/dist/ketchup/p-78223dc0.entry.js +0 -143
  131. package/dist/ketchup/p-ee33cbe9.js +0 -9
@@ -0,0 +1,153 @@
1
+ import { h } from '@stencil/core';
2
+ import { FButton } from '../../../f-components/f-button/f-button';
3
+ const dom = document.documentElement;
4
+ const maximumFractionDigits = 14;
5
+ export function prepareNumeric(component) {
6
+ const el = component.rootElement;
7
+ if (!el.kupData)
8
+ el.kupData = {
9
+ value: null,
10
+ localeValue: '',
11
+ };
12
+ let decimals = false;
13
+ let negative = false;
14
+ const options = getOptions(component);
15
+ if (options.resetStatus) {
16
+ el.kupData = {
17
+ value: null,
18
+ localeValue: '',
19
+ };
20
+ const obj = options.initialValue;
21
+ if (options.initialValue) {
22
+ if (obj && obj.k)
23
+ el.kupData.value = obj.k;
24
+ else
25
+ el.kupData.value = options.initialValue.toString();
26
+ el.kupData.localeValue = dom.ketchup.math.numbers.toLocaleString(el.kupData.value);
27
+ }
28
+ options.resetStatus = false;
29
+ }
30
+ if (options.negative)
31
+ negative = true;
32
+ if (options.decimals)
33
+ decimals = true;
34
+ const clearButtonProp = {
35
+ icon: 'cancel',
36
+ onClick: () => clearValue(component),
37
+ };
38
+ const saveButtonProp = {
39
+ icon: 'save',
40
+ onClick: () => saveValue(component),
41
+ };
42
+ const decChar = getDecimalChar();
43
+ return (h("table", null,
44
+ h("tr", null,
45
+ h("td", { colSpan: 3 },
46
+ h("div", { class: "value" }, el.kupData.localeValue))),
47
+ h("tr", null,
48
+ h("td", null,
49
+ h("div", { class: "number", onClick: () => setValue(component, '1') }, "1")),
50
+ h("td", null,
51
+ h("div", { class: "number", onClick: () => setValue(component, '2') }, "2")),
52
+ h("td", null,
53
+ h("div", { class: "number", onClick: () => setValue(component, '3') }, "3"))),
54
+ h("tr", null,
55
+ h("td", null,
56
+ h("div", { class: "number", onClick: () => setValue(component, '4') }, "4")),
57
+ h("td", null,
58
+ h("div", { class: "number", onClick: () => setValue(component, '5') }, "5")),
59
+ h("td", null,
60
+ h("div", { class: "number", onClick: () => setValue(component, '6') }, "6"))),
61
+ h("tr", null,
62
+ h("td", null,
63
+ h("div", { class: "number", onClick: () => setValue(component, '7') }, "7")),
64
+ h("td", null,
65
+ h("div", { class: "number", onClick: () => setValue(component, '8') }, "8")),
66
+ h("td", null,
67
+ h("div", { class: "number", onClick: () => setValue(component, '9') }, "9"))),
68
+ h("tr", null,
69
+ h("td", null, negative
70
+ ? [
71
+ h("div", { class: "number", onClick: () => setSign(component) }, "-"),
72
+ ]
73
+ : []),
74
+ h("td", null,
75
+ h("div", { class: "number", onClick: () => setValue(component, '0') }, "0")),
76
+ h("td", null, decimals
77
+ ? [
78
+ h("div", { class: "number", onClick: () => setValue(component, '.') }, decChar),
79
+ ]
80
+ : [])),
81
+ h("tr", null,
82
+ h("td", null),
83
+ h("td", null,
84
+ h(FButton, Object.assign({}, clearButtonProp))),
85
+ h("td", null,
86
+ h(FButton, Object.assign({}, saveButtonProp))))));
87
+ }
88
+ function getOptions(component) {
89
+ if (component.data.options)
90
+ return component.data.options;
91
+ else
92
+ return { resetStatus: false };
93
+ }
94
+ function setSign(component) {
95
+ const el = component.rootElement;
96
+ let strVal = el.kupData.value ? el.kupData.value : '0';
97
+ if (strVal.startsWith('-'))
98
+ return;
99
+ strVal = '-' + strVal;
100
+ el.kupData.value = strVal;
101
+ el.kupData.localeValue = dom.ketchup.math.numbers.toLocaleString(strVal);
102
+ component.refresh();
103
+ }
104
+ function setValue(component, value) {
105
+ const options = getOptions(component);
106
+ const el = component.rootElement;
107
+ const decChar = '.';
108
+ let strVal = el.kupData.value ? el.kupData.value.toString() : '0';
109
+ // if the first value is 0 and the character you want to insert is not a comma, I clear the field.
110
+ if (strVal == '0' && value != decChar) {
111
+ strVal = '';
112
+ }
113
+ // if I have already entered a decimal sign I stop.
114
+ if (value == decChar && strVal.includes(decChar))
115
+ return;
116
+ // if the text field contains the maximum number entered, excluding the comma, I stop.
117
+ if (options.maxLength &&
118
+ strVal.replace(decChar, '').length == options.maxLength)
119
+ return;
120
+ // if a maximum number of integers is required, and I don't have the comma, I check to be right with the values.
121
+ if (options.maxIntegers &&
122
+ value != decChar &&
123
+ !strVal.includes(decChar) &&
124
+ strVal.length == options.maxIntegers)
125
+ return;
126
+ // if a maximum number of decimals has been requested, check where we are.
127
+ if (options.maxDecimals &&
128
+ strVal.includes(decChar) &&
129
+ strVal.substring(strVal.indexOf(decChar) + 1).length ==
130
+ options.maxDecimals)
131
+ return;
132
+ // if the maximum number of decimals in JS has been reached, I stop.
133
+ if (strVal.includes(decChar) &&
134
+ strVal.substring(strVal.indexOf(decChar) + 1).length == 14)
135
+ return;
136
+ strVal += value;
137
+ el.kupData.value = strVal;
138
+ el.kupData.localeValue = dom.ketchup.math.numbers.toLocaleString(strVal);
139
+ component.refresh();
140
+ }
141
+ function clearValue(component) {
142
+ const el = component.rootElement;
143
+ el.kupData.value = null;
144
+ el.kupData.localeValue = '';
145
+ component.refresh();
146
+ }
147
+ function getDecimalChar() {
148
+ return (0.1).toLocaleString(dom.ketchup.math.locale).substring(1, 2);
149
+ }
150
+ function saveValue(component) {
151
+ const el = component.rootElement;
152
+ component.onKupClick(component.rootElement.id, el.kupData.value ? Number(el.kupData.value).toString() : '');
153
+ }
@@ -766,6 +766,41 @@
766
766
  outline: none;
767
767
  }
768
768
 
769
+ .built-in-layout-5 {
770
+ background: var(--kup-background-color);
771
+ box-shadow: var(--kup-box-shadow);
772
+ box-sizing: border-box;
773
+ overflow: auto;
774
+ padding: 0.5em;
775
+ }
776
+ .built-in-layout-5 > table {
777
+ width: 100%;
778
+ }
779
+ .built-in-layout-5 > table > tr > td > div.value {
780
+ text-align: right;
781
+ color: var(--kup-primary-color);
782
+ border-bottom: 1px solid var(--kup-border-color);
783
+ min-height: 1.5em;
784
+ }
785
+ .built-in-layout-5 > table > tr > td > .f-button {
786
+ display: flex;
787
+ justify-content: center;
788
+ }
789
+ .built-in-layout-5 > table > tr > td > div.number {
790
+ border-radius: 50%;
791
+ cursor: pointer;
792
+ display: flex;
793
+ justify-content: center;
794
+ line-height: 2.5em;
795
+ margin: auto;
796
+ width: 2.5em;
797
+ transition: background-color 0.25s;
798
+ text-transform: capitalize;
799
+ }
800
+ .built-in-layout-5 > table > tr > td > div.number:hover {
801
+ background-color: var(--kup-hover-background-color);
802
+ }
803
+
769
804
  .collapsible-layout-1 {
770
805
  color: var(--kup-text-color);
771
806
  box-shadow: 0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);
@@ -351,6 +351,7 @@ export class KupCard {
351
351
  root.addEventListener('kup-timepicker-textfieldsubmit', this.cardEvent);
352
352
  root.addEventListener('kup-tree-dynamicmassexpansion', this.cardEvent);
353
353
  root.addEventListener('kup-tree-buttonclick', this.cardEvent);
354
+ root.addEventListener('kup-tree-didunload', this.cardEvent);
354
355
  root.addEventListener('kup-tree-nodecollapse', this.cardEvent);
355
356
  root.addEventListener('kup-tree-nodedblclick', this.cardEvent);
356
357
  root.addEventListener('kup-tree-nodeexpand', this.cardEvent);
@@ -603,6 +603,12 @@ export class KupDataTable {
603
603
  async getProps(descriptions) {
604
604
  return getProps(this, KupDataTableProps, descriptions);
605
605
  }
606
+ /**
607
+ * This method will get the selected rows of the component.
608
+ */
609
+ async getSelectedRows() {
610
+ return this.selectedRows;
611
+ }
606
612
  /**
607
613
  * Hides the given column.
608
614
  * @param {KupDataColumn} column - Column to hide.
@@ -898,7 +904,6 @@ export class KupDataTable {
898
904
  this.groups = [];
899
905
  // update data
900
906
  this.data = Object.assign({}, totalsMatrixData);
901
- // console.log(this.data);
902
907
  // calc totals
903
908
  // distinct becomes count
904
909
  // count becomes sum
@@ -1632,7 +1637,7 @@ export class KupDataTable {
1632
1637
  this.detailCard.style.transform = 'translate(' + x + 'px,' + y + 'px)';
1633
1638
  this.rootElement.shadowRoot.append(this.detailCard);
1634
1639
  }
1635
- getEventDetails(path) {
1640
+ getEventDetails(path, e) {
1636
1641
  let isHeader, isBody, isFooter, td, textfield, th, tr, filterRemove;
1637
1642
  if (path) {
1638
1643
  for (let i = path.length - 1; i >= 0; i--) {
@@ -1716,6 +1721,7 @@ export class KupDataTable {
1716
1721
  column: column ? column : null,
1717
1722
  filterRemove: filterRemove ? filterRemove : null,
1718
1723
  isGroupRow: isGroupRow,
1724
+ originalEvent: e,
1719
1725
  row: row ? row : null,
1720
1726
  td: td ? td : null,
1721
1727
  textfield: textfield ? textfield : null,
@@ -1724,7 +1730,7 @@ export class KupDataTable {
1724
1730
  };
1725
1731
  }
1726
1732
  clickHandler(e) {
1727
- const details = this.getEventDetails(this.getEventPath(e));
1733
+ const details = this.getEventDetails(this.getEventPath(e), e);
1728
1734
  if (details.area === 'header') {
1729
1735
  if (details.th && details.column) {
1730
1736
  if (details.filterRemove) {
@@ -1763,7 +1769,7 @@ export class KupDataTable {
1763
1769
  return details;
1764
1770
  }
1765
1771
  contextMenuHandler(e) {
1766
- const details = this.getEventDetails(this.getEventPath(e));
1772
+ const details = this.getEventDetails(this.getEventPath(e), e);
1767
1773
  if (details.area === 'header') {
1768
1774
  if (details.th && details.column) {
1769
1775
  this.openColumnMenu(details.column.name);
@@ -1793,7 +1799,7 @@ export class KupDataTable {
1793
1799
  return details;
1794
1800
  }
1795
1801
  dblClickHandler(e) {
1796
- const details = this.getEventDetails(this.getEventPath(e));
1802
+ const details = this.getEventDetails(this.getEventPath(e), e);
1797
1803
  if (details.area === 'body') {
1798
1804
  if (this.selection == SelectionMode.MULTIPLE) {
1799
1805
  this.resetSelectedRows();
@@ -4950,6 +4956,29 @@ export class KupDataTable {
4950
4956
  }]
4951
4957
  }
4952
4958
  },
4959
+ "getSelectedRows": {
4960
+ "complexType": {
4961
+ "signature": "() => Promise<Array<KupDataTableRow>>",
4962
+ "parameters": [],
4963
+ "references": {
4964
+ "Promise": {
4965
+ "location": "global"
4966
+ },
4967
+ "KupDataTableRow": {
4968
+ "location": "import",
4969
+ "path": "./kup-data-table-declarations"
4970
+ },
4971
+ "Array": {
4972
+ "location": "global"
4973
+ }
4974
+ },
4975
+ "return": "Promise<KupDataTableRow[]>"
4976
+ },
4977
+ "docs": {
4978
+ "text": "This method will get the selected rows of the component.",
4979
+ "tags": []
4980
+ }
4981
+ },
4953
4982
  "hideColumn": {
4954
4983
  "complexType": {
4955
4984
  "signature": "(column: KupDataColumn) => Promise<void>",
@@ -344,7 +344,7 @@ export class KupDatePicker {
344
344
  resetStatus: true,
345
345
  },
346
346
  };
347
- return (h("kup-card", { ref: (el) => (this.pickerContainerEl = el), data: data, layoutFamily: KupCardFamily.BUILT_IN, sizeX: "300px", sizeY: "300px", isMenu: true, "onkup-card-click": (ev) => {
347
+ return (h("kup-card", { ref: (el) => (this.pickerContainerEl = el), data: data, layoutFamily: KupCardFamily.BUILT_IN, sizeX: "300px", sizeY: "auto", isMenu: true, "onkup-card-click": (ev) => {
348
348
  if (ev.detail.value != null && ev.detail.value != '')
349
349
  this.onKupDatePickerItemClick(ev.detail.value);
350
350
  } }));
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Props of the kup-numeric-picker component.
3
+ * Used to export every prop in an object.
4
+ */
5
+ export var KupNumericPickerProps;
6
+ (function (KupNumericPickerProps) {
7
+ KupNumericPickerProps["customStyle"] = "Custom style of the component.";
8
+ KupNumericPickerProps["data"] = "Props of the sub-components.";
9
+ KupNumericPickerProps["decimals"] = "Defaults at false. When set to true, the component has decimals.";
10
+ KupNumericPickerProps["disabled"] = "Defaults at false. When set to true, the component is disabled.";
11
+ KupNumericPickerProps["initialValue"] = "Sets the initial value of the component";
12
+ KupNumericPickerProps["maxDecimals"] = "when set, the component allows you to enter decimals with a maximum of characters.";
13
+ KupNumericPickerProps["maxIntegers"] = "When set, the component allows you to enter integer numbers with a maximum of characters.";
14
+ KupNumericPickerProps["maxLength"] = "When set, the component allows you to enter numbers with a maximum of characters, including decimals.";
15
+ KupNumericPickerProps["negative"] = "Defaults at false. When set to true, the component has negative number.";
16
+ })(KupNumericPickerProps || (KupNumericPickerProps = {}));
@@ -0,0 +1,50 @@
1
+ :host {
2
+ display: block;
3
+ font-size: var(--kup-font-size);
4
+ }
5
+
6
+ .f-text-field {
7
+ position: relative;
8
+ }
9
+
10
+ /*-------------------------------------------------*/
11
+ /* C o m p o n e n t C l a s s e s */
12
+ /*-------------------------------------------------*/
13
+ :host(.kup-full-height) {
14
+ height: 100%;
15
+ }
16
+ :host(.kup-full-height) #kup-component {
17
+ height: 100%;
18
+ }
19
+
20
+ :host(.kup-full-width) {
21
+ width: 100%;
22
+ }
23
+ :host(.kup-full-width) #kup-component {
24
+ width: 100%;
25
+ }
26
+
27
+ :host(.kup-danger) {
28
+ --kup-textfield-primary-color: var(--kup-danger-color);
29
+ --kup-textfield-primary-color-rgb: var(--kup-danger-color-rgb);
30
+ }
31
+
32
+ :host(.kup-info) {
33
+ --kup-textfield-primary-color: var(--kup-info-color);
34
+ --kup-textfield-primary-color-rgb: var(--kup-info-color-rgb);
35
+ }
36
+
37
+ :host(.kup-secondary) {
38
+ --kup-textfield-primary-color: var(--kup-secondary-color);
39
+ --kup-textfield-primary-color-rgb: var(--kup-secondary-color-rgb);
40
+ }
41
+
42
+ :host(.kup-success) {
43
+ --kup-textfield-primary-color: var(--kup-success-color);
44
+ --kup-textfield-primary-color-rgb: var(--kup-success-color-rgb);
45
+ }
46
+
47
+ :host(.kup-warning) {
48
+ --kup-textfield-primary-color: var(--kup-warning-color);
49
+ --kup-textfield-primary-color-rgb: var(--kup-warning-color-rgb);
50
+ }