@massimo-cassandro/minimo 1.8.0 → 1.8.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.
- package/package.json +1 -1
- package/src/components/modal-popup/modal-popup.js +1 -2
- package/src/components/slide-up-down-toggle/slide-up-down-toggle.js +1 -10
- package/src/components/snackbar/snackbar.js +1 -2
- package/src/components/spinner/spinner.js +1 -2
- package/src/web-components/s-datatable-component/s-datatable-component.js +15 -2
- package/src/web-components/s-datatable-component/src/parse-cols.js +1 -2
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { domBuilder } from '../../utilities/dom-builder/dom-builder.js';
|
|
2
2
|
import { classnames } from '../../utilities/classnames.js';
|
|
3
3
|
import { spinner } from '../spinner/spinner.js';
|
|
4
|
-
import * as
|
|
5
|
-
const styles = /** @type {Record<string, string>} */ (/** @type {any} */ (_modalCss).default ?? _modalCss);
|
|
4
|
+
import * as styles from './modal-popup.module.css';
|
|
6
5
|
|
|
7
6
|
|
|
8
7
|
// https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
|
|
3
|
-
import * as
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
* css-loader exposes class names differently depending on webpack config:
|
|
7
|
-
* modules.namedExport: true → named exports → import * as _css → _css.slide
|
|
8
|
-
* default (namedExport off) → default export → import styles → styles.slide
|
|
9
|
-
* (= _css.default.slide)
|
|
10
|
-
* The fallback chain below handles both without changing any other code.
|
|
11
|
-
*/
|
|
12
|
-
const styles = { slide: _css.slide ?? /** @type {any} */ (_css).default?.slide ?? 'slide' };
|
|
3
|
+
import * as styles from './slide-up-down-toggle.module.css';
|
|
13
4
|
|
|
14
5
|
/**
|
|
15
6
|
* @module slide-up-down-toggle
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { domBuilder } from '../../utilities/dom-builder/dom-builder.js';
|
|
2
2
|
import { classnames } from '../../utilities/classnames.js';
|
|
3
|
-
import * as
|
|
4
|
-
const styles = /** @type {Record<string, string>} */ (/** @type {any} */ (_snackbarCss).default ?? _snackbarCss);
|
|
3
|
+
import * as styles from './snackbar.module.css';
|
|
5
4
|
|
|
6
5
|
/*
|
|
7
6
|
References
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
const styles = /** @type {Record<string, string>} */ (/** @type {any} */ (_spinnerCss).default ?? _spinnerCss);
|
|
1
|
+
import * as styles from './spinner.module.css';
|
|
3
2
|
|
|
4
3
|
// The spinner class depends on the spinner type in use; the corresponding CSS file must be included.
|
|
5
4
|
// TODO: system for configuring the spinner type to allow multiple spinner types in the same project
|
|
@@ -3,8 +3,7 @@ import { DataTable } from 'simple-datatables';
|
|
|
3
3
|
|
|
4
4
|
import { parseCols } from './src/parse-cols.js';
|
|
5
5
|
|
|
6
|
-
import * as
|
|
7
|
-
const styles = /** @type {Record<string, string>} */ (/** @type {any} */ (_sdatatableCss).default ?? _sdatatableCss);
|
|
6
|
+
import * as styles from './s-datatable-component.module.css';
|
|
8
7
|
|
|
9
8
|
import caretLeftIcon from '../../icons/caret-left.svg?inline';
|
|
10
9
|
import caretRightIcon from '../../icons/caret-right.svg?inline';
|
|
@@ -14,6 +13,8 @@ import caretRightIcon from '../../icons/caret-right.svg?inline';
|
|
|
14
13
|
* Implementazione di simple-datatable (https://fiduswriter.github.io/simple-datatables/documentation/)
|
|
15
14
|
* per generare una tabella da dati json e da un oggetto `cols` di configurazione
|
|
16
15
|
*
|
|
16
|
+
* @deprecated Componente destinato alla dismissione
|
|
17
|
+
*
|
|
17
18
|
* ─────────────────────────────────────────────────────────────────────────────
|
|
18
19
|
* PARAMETRI
|
|
19
20
|
* ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -207,11 +208,23 @@ function resolveTemplate(tpl, row, { nullAs = '', warnColIdx } = {}) {
|
|
|
207
208
|
return tpl;
|
|
208
209
|
}
|
|
209
210
|
|
|
211
|
+
let _deprecationWarned = false;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @deprecated Componente destinato alla dismissione, verrà sostituito da `json-table`.
|
|
215
|
+
* Vedi la documentazione all'inizio del file per i dettagli.
|
|
216
|
+
*/
|
|
210
217
|
class SimpleDatatableAdapter extends HTMLElement {
|
|
211
218
|
constructor() {
|
|
212
219
|
super();
|
|
213
220
|
// this.attachShadow({ mode: 'open' }); // commentare per light dom
|
|
214
221
|
|
|
222
|
+
if (!_deprecationWarned) {
|
|
223
|
+
_deprecationWarned = true;
|
|
224
|
+
// eslint-disable-next-line no-console
|
|
225
|
+
console.warn('[s-datatable] componente deprecato');
|
|
226
|
+
}
|
|
227
|
+
|
|
215
228
|
this._config = null;
|
|
216
229
|
this._initCalledProgrammatically = false;
|
|
217
230
|
this._isConnected = false;
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import { classnames } from '../../../../index.js';
|
|
7
7
|
|
|
8
|
-
import * as
|
|
9
|
-
const styles = /** @type {Record<string, string>} */ (/** @type {any} */ (_sdatatableCss).default ?? _sdatatableCss);
|
|
8
|
+
import * as styles from '../s-datatable-component.module.css';
|
|
10
9
|
|
|
11
10
|
import checkIcon from '../../../icons/check-bold.svg?inline';
|
|
12
11
|
import xIcon from '../../../icons/x-bold.svg?inline';
|