@italia/globals 1.0.0-beta.0 → 1.0.0-beta.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/README.md +5 -67
- package/custom-elements.json +0 -0
- package/dist/src/base-component/base-component.d.ts +0 -0
- package/dist/src/base-component/base-component.d.ts.map +0 -0
- package/dist/src/base-component/base-component.js +0 -0
- package/dist/src/base-component/base-component.js.map +0 -0
- package/dist/src/controllers/aria-keyboard-list-controller.d.ts +0 -0
- package/dist/src/controllers/aria-keyboard-list-controller.d.ts.map +0 -0
- package/dist/src/controllers/aria-keyboard-list-controller.js +0 -0
- package/dist/src/controllers/aria-keyboard-list-controller.js.map +0 -0
- package/dist/src/directives/setAttributes.d.ts +0 -0
- package/dist/src/directives/setAttributes.d.ts.map +0 -0
- package/dist/src/directives/setAttributes.js +0 -0
- package/dist/src/directives/setAttributes.js.map +0 -0
- package/dist/src/form/form-control.d.ts +0 -0
- package/dist/src/form/form-control.d.ts.map +0 -0
- package/dist/src/form/form-control.js +0 -0
- package/dist/src/form/form-control.js.map +0 -0
- package/dist/src/form/form-controller.d.ts +0 -0
- package/dist/src/form/form-controller.d.ts.map +0 -0
- package/dist/src/form/form-controller.js +0 -0
- package/dist/src/form/form-controller.js.map +0 -0
- package/dist/src/index.d.ts +0 -0
- package/dist/src/index.d.ts.map +0 -0
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/stories/formControlReusableStories.d.ts +0 -0
- package/dist/src/stories/formControlReusableStories.d.ts.map +0 -0
- package/dist/src/stories/formControlReusableStories.js +0 -0
- package/dist/src/stories/formControlReusableStories.js.map +0 -0
- package/dist/src/stories/reusableUsageGuidelinesStories.d.ts +13 -0
- package/dist/src/stories/reusableUsageGuidelinesStories.d.ts.map +1 -0
- package/dist/src/stories/reusableUsageGuidelinesStories.js +39 -0
- package/dist/src/stories/reusableUsageGuidelinesStories.js.map +1 -0
- package/dist/src/utils/cookies.d.ts +0 -0
- package/dist/src/utils/cookies.d.ts.map +0 -0
- package/dist/src/utils/cookies.js +0 -0
- package/dist/src/utils/cookies.js.map +0 -0
- package/dist/src/utils/logger.d.ts +0 -0
- package/dist/src/utils/logger.d.ts.map +0 -0
- package/dist/src/utils/logger.js +0 -0
- package/dist/src/utils/logger.js.map +0 -0
- package/dist/src/utils/track-focus.d.ts +0 -0
- package/dist/src/utils/track-focus.d.ts.map +0 -0
- package/dist/src/utils/track-focus.js +0 -0
- package/dist/src/utils/track-focus.js.map +0 -0
- package/package.json +19 -19
package/README.md
CHANGED
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@italia/globals`
|
|
2
2
|
|
|
3
3
|
This package contains extendable BaseComponent and BaseLocalizedComponent, utils and mixins, reusable in all web-components packages.
|
|
4
4
|
|
|
5
|
+
It is the foundation of all the Web Components in [`@italia/dev-kit-italia`](https://italia.github.io/dev-kit-italia).
|
|
6
|
+
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
|
-
npm i globals
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```html
|
|
14
|
-
<script type="module">
|
|
15
|
-
import '@italia/globals';
|
|
16
|
-
</script>
|
|
10
|
+
npm i @italia/globals
|
|
17
11
|
```
|
|
18
12
|
|
|
19
13
|
### BaseComponent
|
|
20
14
|
|
|
21
|
-
|
|
15
|
+
Web Component with basic functionality, used for all the components that don't required translation functionalities.
|
|
22
16
|
|
|
23
17
|
Example:
|
|
24
18
|
|
|
@@ -71,59 +65,3 @@ export class MyElement extends BaseLocalizedComponent {
|
|
|
71
65
|
}
|
|
72
66
|
}
|
|
73
67
|
```
|
|
74
|
-
|
|
75
|
-
## Linting and formatting
|
|
76
|
-
|
|
77
|
-
To scan the project for linting and formatting errors, run
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
npm run lint
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
To automatically fix linting and formatting errors, run
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
npm run format
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
## Testing with Web Test Runner
|
|
90
|
-
|
|
91
|
-
To execute a single test run:
|
|
92
|
-
|
|
93
|
-
```bash
|
|
94
|
-
npm run test
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
To run the tests in interactive watch mode run:
|
|
98
|
-
|
|
99
|
-
```bash
|
|
100
|
-
npm run test:watch
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
## Demoing with Storybook
|
|
104
|
-
|
|
105
|
-
To run a local instance of Storybook for your component, run
|
|
106
|
-
|
|
107
|
-
```bash
|
|
108
|
-
npm run storybook
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
To build a production version of Storybook, run
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
npm run storybook:build
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
## Tooling configs
|
|
118
|
-
|
|
119
|
-
For most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project.
|
|
120
|
-
|
|
121
|
-
If you customize the configuration a lot, you can consider moving them to individual files.
|
|
122
|
-
|
|
123
|
-
## Local Demo with `web-dev-server`
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
npm start
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
To run a local development server that serves the basic demo located in `demo/index.html`
|
package/custom-elements.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/src/index.d.ts
CHANGED
|
File without changes
|
package/dist/src/index.d.ts.map
CHANGED
|
File without changes
|
package/dist/src/index.js
CHANGED
|
@@ -6,7 +6,7 @@ if (typeof window !== 'undefined') {
|
|
|
6
6
|
window._itAnalytics = window._itAnalytics || {};
|
|
7
7
|
window._itAnalytics = {
|
|
8
8
|
...window._itAnalytics,
|
|
9
|
-
version: '1.0.0-beta.
|
|
9
|
+
version: '1.0.0-beta.1',
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
export { TrackFocus, setAttributes, AriaKeyboardListController };
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAC1D,OAAO,0BAA0B,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAUzF,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;IAClC,MAAM,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,IAAI,EAAE,CAAC;IAChD,MAAM,CAAC,YAAY,GAAG;QACpB,GAAG,MAAM,CAAC,YAAY;QACtB,OAAO,EAAE,cAAc;KACxB,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,0BAA0B,EAAE,CAAC;AAEjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAEvF,OAAO,EACL,aAAa,EAGb,sBAAsB,GACvB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,+BAA+B,GAEhC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAwB,MAAM,wCAAwC,CAAC;AAEnG,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAgC,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACjH,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAElG,OAAO,EAAE,aAAa,EAAyC,MAAM,qBAAqB,CAAC;AAE3F,OAAO,EAAE,8BAA8B,EAAE,CAAC","sourcesContent":["import TrackFocus from './utils/track-focus.js';\n\nimport setAttributes from './directives/setAttributes.js';\nimport AriaKeyboardListController from './controllers/aria-keyboard-list-controller.js';\nimport { StoryFormControlMethodAndProps } from './stories/formControlReusableStories.js';\n\ndeclare global {\n interface Window {\n _itAnalytics: {\n version: string;\n };\n }\n}\n\nif (typeof window !== 'undefined') {\n window._itAnalytics = window._itAnalytics || {};\n window._itAnalytics = {\n ...window._itAnalytics,\n version: '1.0.0-beta.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAC1D,OAAO,0BAA0B,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAUzF,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;IAClC,MAAM,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,IAAI,EAAE,CAAC;IAChD,MAAM,CAAC,YAAY,GAAG;QACpB,GAAG,MAAM,CAAC,YAAY;QACtB,OAAO,EAAE,cAAc;KACxB,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,0BAA0B,EAAE,CAAC;AAEjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAEvF,OAAO,EACL,aAAa,EAGb,sBAAsB,GACvB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,+BAA+B,GAEhC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAwB,MAAM,wCAAwC,CAAC;AAEnG,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAgC,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACjH,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAElG,OAAO,EAAE,aAAa,EAAyC,MAAM,qBAAqB,CAAC;AAE3F,OAAO,EAAE,8BAA8B,EAAE,CAAC","sourcesContent":["import TrackFocus from './utils/track-focus.js';\n\nimport setAttributes from './directives/setAttributes.js';\nimport AriaKeyboardListController from './controllers/aria-keyboard-list-controller.js';\nimport { StoryFormControlMethodAndProps } from './stories/formControlReusableStories.js';\n\ndeclare global {\n interface Window {\n _itAnalytics: {\n version: string;\n };\n }\n}\n\nif (typeof window !== 'undefined') {\n window._itAnalytics = window._itAnalytics || {};\n window._itAnalytics = {\n ...window._itAnalytics,\n version: '1.0.0-beta.1',\n };\n}\n\nexport { TrackFocus, setAttributes, AriaKeyboardListController };\nexport type { AriaKeyboardConfig } from './controllers/aria-keyboard-list-controller.js';\nexport { RovingTabindexController } from './controllers/roving-tabindex-controller.js';\nexport type { RovingTabindexConfig } from './controllers/roving-tabindex-controller.js';\nexport {\n BaseComponent,\n BaseComponentInterface,\n BaseComponentType,\n BaseLocalizedComponent,\n} from './base-component/base-component.js';\nexport {\n AriaKeyboardAccordionController,\n type AriaKeyboardAccordionConfig,\n} from './controllers/aria-keyboard-accordion-controller.js';\nexport { CollapseAnimationController } from './controllers/collapse-controller.js';\nexport { FocusTrapController, type FocusTrapConfig } from './controllers/focus-trap-controller.js';\n\nexport { FormControl } from './form/form-control.js';\nexport { formCollections, FormControlControllerOptions, FormControlController } from './form/form-controller.js';\nexport { cookies } from './utils/cookies.js';\nexport { dispatchCancelable } from './utils/dispatch-cancelable.js';\nexport { focusableFallbackAncestor, nearestFocusableInDocument } from './utils/focus-fallback.js';\nexport type Constructor<T = {}> = new (...args: any[]) => T;\nexport { WindowManager, type ScrollCallback, type ScrollState } from './window-manager.js';\n\nexport { StoryFormControlMethodAndProps };\n"]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const CollapsibleOrHiddenContentGuidelines: () => {
|
|
2
|
+
name: string;
|
|
3
|
+
tags: string[];
|
|
4
|
+
render: () => import("lit").TemplateResult<1>;
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
description: {
|
|
8
|
+
story: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=reusableUsageGuidelinesStories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reusableUsageGuidelinesStories.d.ts","sourceRoot":"","sources":["../../../src/stories/reusableUsageGuidelinesStories.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oCAAoC;;;;;;;;;;;CAmChD,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* eslint-disable arrow-body-style */
|
|
2
|
+
import { html } from 'lit';
|
|
3
|
+
export const CollapsibleOrHiddenContentGuidelines = () => {
|
|
4
|
+
return {
|
|
5
|
+
name: 'Differenza tra Collapse, Accordion e Tabs',
|
|
6
|
+
tags: ['!dev', '!autodocs'],
|
|
7
|
+
render: () => html `<div class="hide-preview"></div>`,
|
|
8
|
+
parameters: {
|
|
9
|
+
// viewMode: 'docs', // assicura che si apra la tab Docs anziché Canvas
|
|
10
|
+
docs: {
|
|
11
|
+
description: {
|
|
12
|
+
story: `
|
|
13
|
+
#### Differenza tra Collapse, Accordion e Tabs
|
|
14
|
+
I componenti Accordion, Tabs e Collapse funzionano tutti nascondendo sezioni di contenuto che l'utente può scegliere di visualizzare. Evitare di usare questi componenti l'uno all'interno dell'altro.
|
|
15
|
+
|
|
16
|
+
Se decidi di usare uno di questi componenti, considera quanto segue:
|
|
17
|
+
|
|
18
|
+
- L'utente ha bisogno di visualizzare più di una sezione alla volta? L'accordion può mostrare più sezioni contemporaneamente, a differenza dei tabs.
|
|
19
|
+
|
|
20
|
+
- L'utente deve passare rapidamente tra le sezioni? I tabs permettono di cambiare contenuto senza spostare le altre sezioni nella pagina, a differenza dell'accordion.
|
|
21
|
+
|
|
22
|
+
- Ci sono molte sezioni di contenuto? L'accordion può contenere più sezioni perché sono disposte verticalmente, mentre i tabs sono disposti orizzontalmente.
|
|
23
|
+
|
|
24
|
+
- Ci sono solo uno o due contenuti brevi e meno importanti? Il componente Collapse è più adatto perché visivamente più piccolo e meno prominente rispetto a un accordion o ai tabs.
|
|
25
|
+
|
|
26
|
+
<br/>
|
|
27
|
+
|
|
28
|
+
| Componente | Contenuti multipli | Visibilità | Esclusività | Uso tipico | Esempi |
|
|
29
|
+
|----------|--------------------|-------------|--------------|-------------|---------|
|
|
30
|
+
| **Collapse** | No | Singolo contenuto mostrato o nascosto | N/A | Mostrare o nascondere dettagli secondari | "Mostra dettagli", "Visualizza termini" |
|
|
31
|
+
| **Accordion** | Sì | Più sezioni espandibili | Solo una aperta alla volta *(consigliato)* | Raggruppare contenuti correlati in blocchi espandibili | FAQ, elenchi informativi |
|
|
32
|
+
| **Tabs** | Sì | Una sezione visibile alla volta | Sempre esclusiva | Organizzare viste equivalenti o alternative | Schede di impostazioni, pannelli di dati |
|
|
33
|
+
`,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=reusableUsageGuidelinesStories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reusableUsageGuidelinesStories.js","sourceRoot":"","sources":["../../../src/stories/reusableUsageGuidelinesStories.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAE3B,MAAM,CAAC,MAAM,oCAAoC,GAAG,GAAG,EAAE;IACvD,OAAO;QACL,IAAI,EAAE,2CAA2C;QACjD,IAAI,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC;QAC3B,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA,kCAAkC;QACpD,UAAU,EAAE;YACV,uEAAuE;YACvE,IAAI,EAAE;gBACJ,WAAW,EAAE;oBACX,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;CAqBhB;iBACQ;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/* eslint-disable arrow-body-style */\nimport { html } from 'lit';\n\nexport const CollapsibleOrHiddenContentGuidelines = () => {\n return {\n name: 'Differenza tra Collapse, Accordion e Tabs',\n tags: ['!dev', '!autodocs'],\n render: () => html`<div class=\"hide-preview\"></div>`,\n parameters: {\n // viewMode: 'docs', // assicura che si apra la tab Docs anziché Canvas\n docs: {\n description: {\n story: `\n#### Differenza tra Collapse, Accordion e Tabs\nI componenti Accordion, Tabs e Collapse funzionano tutti nascondendo sezioni di contenuto che l'utente può scegliere di visualizzare. Evitare di usare questi componenti l'uno all'interno dell'altro.\n\nSe decidi di usare uno di questi componenti, considera quanto segue:\n\n- L'utente ha bisogno di visualizzare più di una sezione alla volta? L'accordion può mostrare più sezioni contemporaneamente, a differenza dei tabs.\n\n- L'utente deve passare rapidamente tra le sezioni? I tabs permettono di cambiare contenuto senza spostare le altre sezioni nella pagina, a differenza dell'accordion.\n\n- Ci sono molte sezioni di contenuto? L'accordion può contenere più sezioni perché sono disposte verticalmente, mentre i tabs sono disposti orizzontalmente.\n\n- Ci sono solo uno o due contenuti brevi e meno importanti? Il componente Collapse è più adatto perché visivamente più piccolo e meno prominente rispetto a un accordion o ai tabs.\n\n<br/>\n\n| Componente | Contenuti multipli | Visibilità | Esclusività | Uso tipico | Esempi |\n|----------|--------------------|-------------|--------------|-------------|---------|\n| **Collapse** | No | Singolo contenuto mostrato o nascosto | N/A | Mostrare o nascondere dettagli secondari | \"Mostra dettagli\", \"Visualizza termini\" |\n| **Accordion** | Sì | Più sezioni espandibili | Solo una aperta alla volta *(consigliato)* | Raggruppare contenuti correlati in blocchi espandibili | FAQ, elenchi informativi |\n| **Tabs** | Sì | Una sezione visibile alla volta | Sempre esclusiva | Organizzare viste equivalenti o alternative | Schede di impostazioni, pannelli di dati |\n`,\n },\n },\n },\n };\n};\n"]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/src/utils/logger.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@italia/globals",
|
|
3
3
|
"description": "Utilities per i Web components del Design System .italia",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -31,30 +31,30 @@
|
|
|
31
31
|
"LICENSE",
|
|
32
32
|
"custom-elements.json"
|
|
33
33
|
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"analyze": "cem analyze --litelement --exclude dist",
|
|
36
|
+
"build": "tsc --build tsconfig.build.json",
|
|
37
|
+
"clean": "rimraf node_modules .turbo dist",
|
|
38
|
+
"prepublish": "pnpm build",
|
|
39
|
+
"lint": "eslint --ext .ts \"src/**/*.ts\" && prettier \"src/**/*.ts\" --check",
|
|
40
|
+
"format": "eslint --ext .ts \"src/**/*.ts\" --fix && prettier \"src/**/*.ts\" --write"
|
|
41
|
+
},
|
|
34
42
|
"dependencies": {
|
|
43
|
+
"@italia/i18n": "workspace:^",
|
|
35
44
|
"@floating-ui/dom": "^1.7.1",
|
|
36
45
|
"clsx": "^2.1.1",
|
|
37
|
-
"lit": "
|
|
38
|
-
"@italia/i18n": "^1.0.0-beta.0"
|
|
46
|
+
"lit": "catalog:"
|
|
39
47
|
},
|
|
40
48
|
"devDependencies": {
|
|
41
49
|
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
50
|
+
"@italia/test-config": "workspace:^",
|
|
51
|
+
"@italia/typescript-config": "workspace:^",
|
|
52
|
+
"@open-wc/testing": "catalog:",
|
|
53
|
+
"@types/mocha": "catalog:",
|
|
54
|
+
"@web/test-runner": "catalog:",
|
|
45
55
|
"rimraf": "^6.0.1",
|
|
46
56
|
"tslib": "^2.6.3",
|
|
47
|
-
"typescript": "
|
|
48
|
-
"@italia/test-config": "^1.0.0-beta.0",
|
|
49
|
-
"@italia/typescript-config": "^1.0.0-beta.0"
|
|
57
|
+
"typescript": "catalog:"
|
|
50
58
|
},
|
|
51
|
-
"customElements": "custom-elements.json"
|
|
52
|
-
|
|
53
|
-
"analyze": "cem analyze --litelement --exclude dist",
|
|
54
|
-
"build": "tsc --build tsconfig.build.json",
|
|
55
|
-
"clean": "rimraf node_modules .turbo dist",
|
|
56
|
-
"prepublish": "pnpm build",
|
|
57
|
-
"lint": "eslint --ext .ts \"src/**/*.ts\" && prettier \"src/**/*.ts\" --check",
|
|
58
|
-
"format": "eslint --ext .ts \"src/**/*.ts\" --fix && prettier \"src/**/*.ts\" --write"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
59
|
+
"customElements": "custom-elements.json"
|
|
60
|
+
}
|