@neovici/cosmoz-omnitable 12.7.1 → 12.8.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.
|
@@ -131,8 +131,27 @@ export default css`
|
|
|
131
131
|
padding-bottom: 0;
|
|
132
132
|
--paper-font-caption_-_line-height: 18px;
|
|
133
133
|
}
|
|
134
|
+
--paper-font-subhead_-_font-family: var(
|
|
135
|
+
--cosmoz-omnitable-header-font-family,
|
|
136
|
+
'Inter' sans-serif
|
|
137
|
+
);
|
|
138
|
+
text-transform: var(--cosmoz-omnitable-header-text-transform, uppercase);
|
|
139
|
+
--paper-font-subhead_-_font-weight: var(
|
|
140
|
+
--cosmoz-omnitable-header-font-weight,
|
|
141
|
+
bold
|
|
142
|
+
);
|
|
143
|
+
--paper-font-subhead_-_font-size: var(
|
|
144
|
+
--cosmoz-omnitable-header-font-size,
|
|
145
|
+
14pt
|
|
146
|
+
);
|
|
134
147
|
}
|
|
135
148
|
|
|
149
|
+
cosmoz-autocomplete-ui::part(input-label) {
|
|
150
|
+
text-transform: var(--cosmoz-omnitable-header-text-transform, uppercase);
|
|
151
|
+
font-weight: var(--cosmoz-omnitable-header-font-weight, bold);
|
|
152
|
+
font-family: var(--cosmoz-omnitable-header-font-family, 'Inter' sans-serif);
|
|
153
|
+
font-size: var(--cosmoz-omnitable-header-font-size, 14pt);
|
|
154
|
+
}
|
|
136
155
|
cosmoz-omnitable-header-row {
|
|
137
156
|
white-space: nowrap;
|
|
138
157
|
}
|
|
@@ -143,8 +143,9 @@ const placement = ['bottom-right', ...defaultPlacement],
|
|
|
143
143
|
html`<div class="headerDots" slot="button">...</div>` :
|
|
144
144
|
html`
|
|
145
145
|
<svg viewBox="0 0 24 24" width="24" slot="button" fill="currentColor">
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
<circle cx="10" cy="18" r="2"></circle>
|
|
147
|
+
<circle cx="10" cy="12" r="2"></circle>
|
|
148
|
+
<circle cx="10" cy="6" r="2"></circle></svg>`
|
|
148
149
|
}
|
|
149
150
|
|
|
150
151
|
${when(config?.badge, () => html`<div class="badge" slot="button"></div>`)}
|
package/lib/use-dom-columns.js
CHANGED
package/lib/utils-number.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-omnitable",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.8.0",
|
|
4
4
|
"description": "[](https://travis-ci.org/Neovici/cosmoz-omnitable)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components"
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@neovici/cosmoz-grouped-list": "^6.0.0",
|
|
68
68
|
"@neovici/cosmoz-i18next": "^3.1.1",
|
|
69
69
|
"@neovici/cosmoz-router": "^10.0.0",
|
|
70
|
-
"@neovici/cosmoz-utils": "^5.
|
|
70
|
+
"@neovici/cosmoz-utils": "^5.12.1",
|
|
71
71
|
"@neovici/nullxlsx": "^3.0.0",
|
|
72
72
|
"@polymer/iron-icon": "^3.0.0",
|
|
73
73
|
"@polymer/iron-icons": "^3.0.0",
|
package/lib/memoize.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export const
|
|
2
|
-
memoize = fn => {
|
|
3
|
-
let
|
|
4
|
-
lastArg,
|
|
5
|
-
lastResult;
|
|
6
|
-
return function (arg) {
|
|
7
|
-
if (lastArg === arg) {
|
|
8
|
-
return lastResult;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const result = fn(arg);
|
|
12
|
-
lastResult = result;
|
|
13
|
-
lastArg = arg;
|
|
14
|
-
return result;
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
memooize = fn => {
|
|
19
|
-
let
|
|
20
|
-
lastArg1,
|
|
21
|
-
lastArg2,
|
|
22
|
-
lastResult;
|
|
23
|
-
return function (arg1, arg2) {
|
|
24
|
-
if (lastArg1 === arg1 && lastArg2 === arg2) {
|
|
25
|
-
return lastResult;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const result = fn(arg1, arg2);
|
|
29
|
-
lastResult = result;
|
|
30
|
-
lastArg1 = arg1;
|
|
31
|
-
lastArg2 = arg2;
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
memoooize = fn => {
|
|
37
|
-
let
|
|
38
|
-
lastArg1,
|
|
39
|
-
lastArg2,
|
|
40
|
-
lastArg3,
|
|
41
|
-
lastResult;
|
|
42
|
-
return function (arg1, arg2, arg3) {
|
|
43
|
-
if (lastArg1 === arg1 && lastArg2 === arg2 && lastArg3 === arg3) {
|
|
44
|
-
return lastResult;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const result = fn(arg1, arg2, arg3);
|
|
48
|
-
lastResult = result;
|
|
49
|
-
lastArg1 = arg1;
|
|
50
|
-
lastArg2 = arg2;
|
|
51
|
-
lastArg3 = arg3;
|
|
52
|
-
return result;
|
|
53
|
-
};
|
|
54
|
-
};
|