@massimo-cassandro/minimo 1.4.10 → 1.4.11

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": "@massimo-cassandro/minimo",
3
- "version": "1.4.10",
3
+ "version": "1.4.11",
4
4
  "description": "Light css framework & utilities",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/massimo-cassandro/minimo#readme",
@@ -17,8 +17,8 @@
17
17
  },
18
18
  "scripts": {
19
19
  "UPD-version": "npx update-version # --config=./dev-utilities.config.mjs",
20
- "upd@m": "npx upd@m",
21
20
  "npm-publish": "npm publish",
21
+ "upd@m": "npx upd@m",
22
22
  "build-tokens": "node ./design-tokens-utilities/build-tokens.mjs --config ./tokens-config.mjs",
23
23
  "check unresolved props": "node ./design-tokens-utilities/check-unresolved-custom-props.mjs --config ./tokens-config.mjs"
24
24
  },
@@ -48,4 +48,4 @@
48
48
  "@massimo-cassandro/eslint-config": "^3.0.7",
49
49
  "@massimo-cassandro/stylelint-config": "^2.3.7"
50
50
  }
51
- }
51
+ }
@@ -74,7 +74,7 @@ export function unsplashPageJS(settings) {
74
74
  // https://docs.imgix.com/apis/rendering/format/q
75
75
 
76
76
  let url = photo.base_url + (/\?/.test(photo.base_url)? '&' : '?') +
77
- 'fit=crop&crop=focalpoint' + // top, bottom, left, right, faces, focalpoint, edges, and entropy
77
+ 'fit=crop&crop=faces,entropy,edges' + // top, bottom, left, right, faces, focalpoint, edges, and entropy
78
78
  '&q=60' +
79
79
  `&w=${brk.w}&h=${brk.h}` +
80
80
  `&fm=${fmt}`;
@@ -44,7 +44,7 @@
44
44
  /* cella unica per indicare l'assenza di record */
45
45
  .empty {
46
46
  /* stylelint-disable-next-line declaration-no-important */
47
- padding: var(--size-sm) !important;
47
+ padding-block: var(--size-sm) !important;
48
48
  font-style: italic;
49
49
  color: var(--text-muted);
50
50
  /* stylelint-disable-next-line declaration-no-important */
@@ -117,7 +117,6 @@ export function parseCols(col_obj){
117
117
  }
118
118
  };
119
119
 
120
- // TODO completare, aggiungere formattazione
121
120
  } else if(col_obj._renderMode === 'numeric') {
122
121
  return {
123
122
 
@@ -125,6 +124,28 @@ export function parseCols(col_obj){
125
124
  headerClass: 'text-end',
126
125
  };
127
126
 
127
+ } else if(col_obj._renderMode === 'euro_no_dec') {
128
+ return {
129
+ render: (value, cell) => {
130
+ console.log(value);
131
+ if(value == null || isNaN(value)) {
132
+ cell.attributes['data-order'] = '';
133
+ return '\u2014';
134
+
135
+ } else {
136
+ cell.attributes['data-order'] = value;
137
+ return Number(value).toLocaleString('it-IT', {
138
+ minimumFractionDigits: 0,
139
+ maximumFractionDigits: 0,
140
+ useGrouping: 'always',
141
+ });
142
+ }
143
+ },
144
+ cellClass: 'text-nowrap text-end text-numeric',
145
+ headerClass: 'text-end',
146
+ type: 'number'
147
+ };
148
+
128
149
  }
129
150
  } // end if not render
130
151