@maggioli-design-system/mds-modal 5.2.1 → 5.4.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.
- package/dist/cjs/{index-7b5471f5.js → index-6f236cfa.js} +164 -69
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mds-modal.cjs.entry.js +47 -7
- package/dist/cjs/mds-modal.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/common/floating-controller.js +180 -0
- package/dist/collection/common/slot.js +19 -4
- package/dist/collection/common/string.js +30 -0
- package/dist/collection/components/mds-modal/mds-modal.css +124 -0
- package/dist/collection/components/mds-modal/mds-modal.js +77 -5
- package/dist/collection/components/mds-modal/meta/dictionary.js +5 -1
- package/dist/collection/components/mds-modal/test/mds-modal.stories.js +20 -2
- package/dist/collection/dictionary/keyboard.js +84 -0
- package/dist/collection/dictionary/tree.js +13 -0
- package/dist/collection/type/keyboard.js +1 -0
- package/dist/collection/type/tree.js +1 -0
- package/dist/components/mds-modal.js +48 -7
- package/dist/documentation.d.ts +8 -0
- package/dist/documentation.json +56 -5
- package/dist/esm/{index-1c34ac95.js → index-f8d2dee4.js} +164 -69
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mds-modal.entry.js +47 -7
- package/dist/esm/mds-modal.js +4 -4
- package/dist/esm-es5/index-f8d2dee4.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-modal.entry.js +1 -1
- package/dist/esm-es5/mds-modal.js +1 -1
- package/dist/mds-modal/mds-modal.esm.js +1 -1
- package/dist/mds-modal/mds-modal.js +1 -1
- package/dist/mds-modal/p-2c91cf1f.entry.js +1 -0
- package/dist/mds-modal/p-69576bb4.system.entry.js +1 -0
- package/dist/mds-modal/p-bc1fa4e4.system.js +2 -0
- package/dist/mds-modal/{p-67c6f337.system.js → p-c6899cb0.system.js} +1 -1
- package/dist/mds-modal/p-ee90f86a.js +2 -0
- package/dist/stats.json +128 -38
- package/dist/types/common/floating-controller.d.ts +46 -0
- package/dist/types/common/slot.d.ts +3 -1
- package/dist/types/common/string.d.ts +4 -0
- package/dist/types/components/mds-modal/mds-modal.d.ts +8 -1
- package/dist/types/components/mds-modal/meta/dictionary.d.ts +2 -1
- package/dist/types/components/mds-modal/meta/types.d.ts +1 -0
- package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +11 -0
- package/dist/types/components.d.ts +10 -2
- package/dist/types/dictionary/keyboard.d.ts +2 -0
- package/dist/types/dictionary/tree.d.ts +4 -0
- package/dist/types/type/keyboard.d.ts +12 -0
- package/dist/types/type/tree.d.ts +3 -0
- package/documentation.json +96 -10
- package/package.json +4 -4
- package/readme.md +18 -16
- package/src/common/floating-controller.ts +263 -0
- package/src/common/slot.ts +23 -3
- package/src/common/string.ts +42 -0
- package/src/components/mds-modal/mds-modal.css +7 -1
- package/src/components/mds-modal/mds-modal.tsx +36 -1
- package/src/components/mds-modal/meta/dictionary.ts +6 -0
- package/src/components/mds-modal/meta/types.ts +4 -0
- package/src/components/mds-modal/readme.md +18 -16
- package/src/components/mds-modal/test/mds-modal.stories.tsx +57 -3
- package/src/components.d.ts +10 -2
- package/src/dictionary/keyboard.ts +87 -0
- package/src/dictionary/tree.ts +21 -0
- package/src/fixtures/icons.json +38 -1
- package/src/fixtures/iconsauce.json +6 -0
- package/src/meta/keyboard/keys.json +83 -0
- package/src/tailwind/components.css +11 -0
- package/src/tailwind/fouc.css +118 -0
- package/src/type/keyboard.ts +93 -0
- package/src/type/tree.ts +12 -0
- package/www/build/mds-modal.esm.js +1 -1
- package/www/build/mds-modal.js +1 -1
- package/www/build/p-2c91cf1f.entry.js +1 -0
- package/www/build/p-69576bb4.system.entry.js +1 -0
- package/www/build/p-bc1fa4e4.system.js +2 -0
- package/www/build/{p-67c6f337.system.js → p-c6899cb0.system.js} +1 -1
- package/www/build/p-ee90f86a.js +2 -0
- package/dist/esm-es5/index-1c34ac95.js +0 -1
- package/dist/mds-modal/p-08a99956.entry.js +0 -1
- package/dist/mds-modal/p-0d78ea55.system.entry.js +0 -1
- package/dist/mds-modal/p-0ed6e0c8.js +0 -2
- package/dist/mds-modal/p-423dac35.system.js +0 -2
- package/www/build/p-08a99956.entry.js +0 -1
- package/www/build/p-0d78ea55.system.entry.js +0 -1
- package/www/build/p-0ed6e0c8.js +0 -2
- package/www/build/p-423dac35.system.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import clsx from 'clsx'
|
|
2
2
|
import { Component, Element, Event, EventEmitter, Host, h, Listen, Prop, Watch } from '@stencil/core'
|
|
3
|
-
import { ModalPositionType, ModalAnimationStateType } from './meta/types'
|
|
3
|
+
import { ModalPositionType, ModalAnimationStateType, ModalOverflowType } from './meta/types'
|
|
4
4
|
import { cssDurationToMilliseconds } from '@common/unit'
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -20,6 +20,7 @@ export class MdsModal {
|
|
|
20
20
|
private animationDelayTimeout: NodeJS.Timeout
|
|
21
21
|
private window = false
|
|
22
22
|
private top = false
|
|
23
|
+
private bodyOverflow: string
|
|
23
24
|
private bottom = false
|
|
24
25
|
private cssTransitionDuration: string
|
|
25
26
|
|
|
@@ -40,6 +41,11 @@ export class MdsModal {
|
|
|
40
41
|
*/
|
|
41
42
|
@Prop({ reflect: true, mutable: true }) animating?: ModalAnimationStateType = 'none'
|
|
42
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Specifies if the component prevents the body from scrolling when modal window is opened
|
|
46
|
+
*/
|
|
47
|
+
@Prop({ reflect: true }) readonly overflow: ModalOverflowType = 'auto'
|
|
48
|
+
|
|
43
49
|
/**
|
|
44
50
|
* Emits when a modal is closed
|
|
45
51
|
*/
|
|
@@ -69,6 +75,25 @@ export class MdsModal {
|
|
|
69
75
|
clearTimeout(this.animationDelayTimeout)
|
|
70
76
|
}
|
|
71
77
|
|
|
78
|
+
private disableOverflow = (): void => {
|
|
79
|
+
if (document) {
|
|
80
|
+
if (document.body.style.overflow) {
|
|
81
|
+
this.bodyOverflow = document.body.style.overflow
|
|
82
|
+
}
|
|
83
|
+
document.body.style.overflow = 'hidden'
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
private enableOverflow = (): void => {
|
|
88
|
+
if (document) {
|
|
89
|
+
if (this.bodyOverflow) {
|
|
90
|
+
document.body.style.overflow = this.bodyOverflow
|
|
91
|
+
} else {
|
|
92
|
+
document.body.style.removeProperty('overflow')
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
72
97
|
private animateOpenWindow = (): void => {
|
|
73
98
|
this.animating = 'intro'
|
|
74
99
|
clearTimeout(this.animationDelayTimeout)
|
|
@@ -86,6 +111,10 @@ export class MdsModal {
|
|
|
86
111
|
this.top = this.host.querySelector('[slot="top"]') !== null
|
|
87
112
|
this.window = this.host.querySelector('[slot="window"]') !== null
|
|
88
113
|
|
|
114
|
+
if (this.overflow === 'auto' && this.opened) {
|
|
115
|
+
this.disableOverflow()
|
|
116
|
+
}
|
|
117
|
+
|
|
89
118
|
if (this.window) {
|
|
90
119
|
this.host.querySelector('[slot="window"]')?.setAttribute('role', 'dialog')
|
|
91
120
|
}
|
|
@@ -112,9 +141,15 @@ export class MdsModal {
|
|
|
112
141
|
@Watch('opened')
|
|
113
142
|
handleOpenProp (newValue: boolean): void {
|
|
114
143
|
if (newValue) {
|
|
144
|
+
if (this.overflow === 'auto') {
|
|
145
|
+
this.disableOverflow()
|
|
146
|
+
}
|
|
115
147
|
this.animateOpenWindow()
|
|
116
148
|
return
|
|
117
149
|
}
|
|
150
|
+
if (this.overflow === 'auto') {
|
|
151
|
+
this.enableOverflow()
|
|
152
|
+
}
|
|
118
153
|
this.animateCloseWindow()
|
|
119
154
|
}
|
|
120
155
|
|
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
## Properties
|
|
9
9
|
|
|
10
|
-
| Property | Attribute | Description
|
|
11
|
-
| ----------- | ----------- |
|
|
12
|
-
| `animating` | `animating` | Specifies if the component is animating itself or not
|
|
13
|
-
| `opened` | `opened` | Specifies if the modal is opened or not
|
|
14
|
-
| `
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| ----------- | ----------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ---------- |
|
|
12
|
+
| `animating` | `animating` | Specifies if the component is animating itself or not | `"intro" \| "none" \| "outro" \| undefined` | `'none'` |
|
|
13
|
+
| `opened` | `opened` | Specifies if the modal is opened or not | `boolean` | `false` |
|
|
14
|
+
| `overflow` | `overflow` | Specifies if the component prevents the body from scrolling when modal window is opened | `"auto" \| "manual"` | `'auto'` |
|
|
15
|
+
| `position` | `position` | Specifies the animation position of the modal window | `"bottom" \| "bottom-left" \| "bottom-right" \| "center" \| "left" \| "right" \| "top" \| "top-left" \| "top-right" \| undefined` | `'center'` |
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
## Events
|
|
@@ -41,17 +42,18 @@
|
|
|
41
42
|
|
|
42
43
|
## CSS Custom Properties
|
|
43
44
|
|
|
44
|
-
| Name
|
|
45
|
-
|
|
|
46
|
-
| `--mds-modal-close-icon-color`
|
|
47
|
-
| `--mds-modal-
|
|
48
|
-
| `--mds-modal-overlay-
|
|
49
|
-
| `--mds-modal-
|
|
50
|
-
| `--mds-modal-window-
|
|
51
|
-
| `--mds-modal-window-
|
|
52
|
-
| `--mds-modal-window-
|
|
53
|
-
| `--mds-modal-window-
|
|
54
|
-
| `--mds-modal-
|
|
45
|
+
| Name | Description |
|
|
46
|
+
| ------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
47
|
+
| `--mds-modal-close-icon-color` | Set the color of the close icon button to the top left. |
|
|
48
|
+
| `--mds-modal-custom-window-distance` | Set the distance between the slotted modal window and the screen bounds |
|
|
49
|
+
| `--mds-modal-overlay-color` | Set the overlay color of the background when the component is opened, this property can be inherited from `globals.css` in `styles^8.0.0`. |
|
|
50
|
+
| `--mds-modal-overlay-opacity` | Set the overlay color opacity of the background when the component is opened, this property can be inherited from `globals.css` in `styles^8.0.0`. |
|
|
51
|
+
| `--mds-modal-window-background` | Set the background color of the window |
|
|
52
|
+
| `--mds-modal-window-distance` | Set the distance between the modal window and the screen bounds |
|
|
53
|
+
| `--mds-modal-window-overflow` | Set the overflow of the window |
|
|
54
|
+
| `--mds-modal-window-radius` | Set the border radius of the window |
|
|
55
|
+
| `--mds-modal-window-shadow` | Set the box shadow of the window |
|
|
56
|
+
| `--mds-modal-z-index` | Set the z-index of the window when the component is opened |
|
|
55
57
|
|
|
56
58
|
|
|
57
59
|
----------------------------------------------
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { h } from '@stencil/core'
|
|
3
3
|
import { useState } from 'react'
|
|
4
|
-
import { modalPositionDictionary } from '../meta/dictionary'
|
|
4
|
+
import { modalPositionDictionary, modalOverflowDictionary } from '../meta/dictionary'
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
title: 'UI / Modal',
|
|
@@ -10,6 +10,12 @@ export default {
|
|
|
10
10
|
description: 'Specifies if the modal is opened or not',
|
|
11
11
|
type: { name: 'boolean' },
|
|
12
12
|
},
|
|
13
|
+
overflow: {
|
|
14
|
+
description: 'Specifies if the component prevents the body from scrolling when modal window is opened',
|
|
15
|
+
control: { type: 'select' },
|
|
16
|
+
options: modalOverflowDictionary,
|
|
17
|
+
type: { name: 'string' },
|
|
18
|
+
},
|
|
13
19
|
position: {
|
|
14
20
|
control: { type: 'select' },
|
|
15
21
|
description: 'Specifies the animation position of the modal window',
|
|
@@ -27,7 +33,7 @@ const email = `${firstName.toLowerCase()}.${lastName.toLowerCase()}@nintendo.com
|
|
|
27
33
|
const Template = args =>
|
|
28
34
|
<mds-modal {...args}>
|
|
29
35
|
<header slot="top" class="p-800 flex gap-400 items-center border-b border-solid border-0 border-tone-neutral-09 max-w-[400px]">
|
|
30
|
-
<mds-img class="w-1600" src="
|
|
36
|
+
<mds-img class="w-1600" src="./logo-gruppo-maggioli-512w.webp"/>
|
|
31
37
|
<div class="text-tone-neutral-02">
|
|
32
38
|
<mds-text typography="h5" class="truncate min-w-0">Maggioli Editore</mds-text>
|
|
33
39
|
<mds-text typography="detail" class="truncate min-w-0">Menu di servizio</mds-text>
|
|
@@ -40,7 +46,7 @@ const Template = args =>
|
|
|
40
46
|
</div>
|
|
41
47
|
<footer slot="bottom" class="p-800 flex gap-400 text-tone-neutral-02 border-t border-solid border-0 border-tone-neutral-09 max-w-[400px]">
|
|
42
48
|
<mds-author class="flex-grow">
|
|
43
|
-
<mds-avatar slot="avatar" class="w-1600 mobile:w-1200" src="
|
|
49
|
+
<mds-avatar slot="avatar" class="w-1600 mobile:w-1200" src="./avatar-01-200x200.jpeg"/>
|
|
44
50
|
<mds-text typography="h6">{ fullName }</mds-text>
|
|
45
51
|
<mds-text typography="caption" class="text-tone-neutral-04">{ email }</mds-text>
|
|
46
52
|
</mds-author>
|
|
@@ -48,6 +54,41 @@ const Template = args =>
|
|
|
48
54
|
</footer>
|
|
49
55
|
</mds-modal>
|
|
50
56
|
|
|
57
|
+
const TemplateOverflow = args =>
|
|
58
|
+
<div>
|
|
59
|
+
<div class="grid">
|
|
60
|
+
{Array(40).fill(null).map((_value, index) => (
|
|
61
|
+
<div key={index} class="h-[100px] flex items-start justify-center text-center border-0 border-t border-solid border-t-tone-neutral-07">
|
|
62
|
+
<mds-text class="px-200 py-100 rounded-b-lg bg-tone-neutral-10 border-t-0 border border-solid border-tone-neutral-07" typography="snippet" tag="div">
|
|
63
|
+
{ index === 0 ? '0px' : index + '00px' }
|
|
64
|
+
</mds-text>
|
|
65
|
+
</div>
|
|
66
|
+
))}
|
|
67
|
+
</div>
|
|
68
|
+
<mds-modal {...args}>
|
|
69
|
+
<header slot="top" class="p-800 flex gap-400 items-center border-b border-solid border-0 border-tone-neutral-09 max-w-[400px]">
|
|
70
|
+
<mds-img class="w-1600" src="./logo-gruppo-maggioli-512w.webp"/>
|
|
71
|
+
<div class="text-tone-neutral-02">
|
|
72
|
+
<mds-text typography="h5" class="truncate min-w-0">Maggioli Editore</mds-text>
|
|
73
|
+
<mds-text typography="detail" class="truncate min-w-0">Menu di servizio</mds-text>
|
|
74
|
+
</div>
|
|
75
|
+
</header>
|
|
76
|
+
<div class="p-800 max-w-[400px]">
|
|
77
|
+
<mds-text>
|
|
78
|
+
As a multi-brand design system, our components need to be flexible enough for any one of our brands to use them for multiple use cases. To achieve this, we ensure that all of the brands are involved in the specification stage, giving us more confidence that we’re future-proofing our components as more brands adopt NewsKit.
|
|
79
|
+
</mds-text>
|
|
80
|
+
</div>
|
|
81
|
+
<footer slot="bottom" class="p-800 flex gap-400 text-tone-neutral-02 border-t border-solid border-0 border-tone-neutral-09 max-w-[400px]">
|
|
82
|
+
<mds-author class="flex-grow">
|
|
83
|
+
<mds-avatar slot="avatar" class="w-1600 mobile:w-1200" src="./avatar-01-200x200.jpeg"/>
|
|
84
|
+
<mds-text typography="h6">{ fullName }</mds-text>
|
|
85
|
+
<mds-text typography="caption" class="text-tone-neutral-04">{ email }</mds-text>
|
|
86
|
+
</mds-author>
|
|
87
|
+
<mds-button icon="mdi/dots-vertical" variant="light"></mds-button>
|
|
88
|
+
</footer>
|
|
89
|
+
</mds-modal>
|
|
90
|
+
</div>
|
|
91
|
+
|
|
51
92
|
const CustomTemplate = args =>
|
|
52
93
|
<mds-modal {...args}>
|
|
53
94
|
<mds-banner slot="window" class="max-w-xl mx-6" deletable headline="Action required">
|
|
@@ -80,15 +121,28 @@ const InteractiveTemplate = () => {
|
|
|
80
121
|
export const Default = Template.bind({})
|
|
81
122
|
Default.args = {
|
|
82
123
|
position: 'right',
|
|
124
|
+
opened: true,
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export const BodyOverflowDisabled = TemplateOverflow.bind({})
|
|
128
|
+
BodyOverflowDisabled.args = {
|
|
129
|
+
overflow: 'auto',
|
|
130
|
+
opened: true,
|
|
131
|
+
position: 'right',
|
|
83
132
|
}
|
|
84
133
|
|
|
85
134
|
export const DefaultWindowCustomized = Template.bind({})
|
|
86
135
|
DefaultWindowCustomized.args = {
|
|
87
136
|
position: 'right',
|
|
137
|
+
opened: true,
|
|
88
138
|
style: { '--mds-modal-window-distance': '1rem', '--mds-modal-window-radius': '1rem' },
|
|
89
139
|
}
|
|
90
140
|
export const CustomWindowElement = CustomTemplate.bind({})
|
|
141
|
+
CustomWindowElement.args = {
|
|
142
|
+
opened: true,
|
|
143
|
+
}
|
|
91
144
|
export const Interactive = InteractiveTemplate.bind({})
|
|
145
|
+
|
|
92
146
|
export const ARIATest = CustomTemplate.bind({})
|
|
93
147
|
ARIATest.args = {
|
|
94
148
|
opened: true,
|
package/src/components.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
|
|
8
|
-
import { ModalAnimationStateType, ModalPositionType } from "./components/mds-modal/meta/types";
|
|
9
|
-
export { ModalAnimationStateType, ModalPositionType } from "./components/mds-modal/meta/types";
|
|
8
|
+
import { ModalAnimationStateType, ModalOverflowType, ModalPositionType } from "./components/mds-modal/meta/types";
|
|
9
|
+
export { ModalAnimationStateType, ModalOverflowType, ModalPositionType } from "./components/mds-modal/meta/types";
|
|
10
10
|
export namespace Components {
|
|
11
11
|
interface MdsModal {
|
|
12
12
|
/**
|
|
@@ -17,6 +17,10 @@ export namespace Components {
|
|
|
17
17
|
* Specifies if the modal is opened or not
|
|
18
18
|
*/
|
|
19
19
|
"opened": boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Specifies if the component prevents the body from scrolling when modal window is opened
|
|
22
|
+
*/
|
|
23
|
+
"overflow": ModalOverflowType;
|
|
20
24
|
/**
|
|
21
25
|
* Specifies the animation position of the modal window
|
|
22
26
|
*/
|
|
@@ -68,6 +72,10 @@ declare namespace LocalJSX {
|
|
|
68
72
|
* Specifies if the modal is opened or not
|
|
69
73
|
*/
|
|
70
74
|
"opened"?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Specifies if the component prevents the body from scrolling when modal window is opened
|
|
77
|
+
*/
|
|
78
|
+
"overflow"?: ModalOverflowType;
|
|
71
79
|
/**
|
|
72
80
|
* Specifies the animation position of the modal window
|
|
73
81
|
*/
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
const keyboardKeyNameDictionary = [
|
|
2
|
+
'0',
|
|
3
|
+
'1',
|
|
4
|
+
'2',
|
|
5
|
+
'3',
|
|
6
|
+
'4',
|
|
7
|
+
'5',
|
|
8
|
+
'6',
|
|
9
|
+
'7',
|
|
10
|
+
'8',
|
|
11
|
+
'9',
|
|
12
|
+
'a',
|
|
13
|
+
'alt',
|
|
14
|
+
'altleft',
|
|
15
|
+
'altright',
|
|
16
|
+
'arrowdown',
|
|
17
|
+
'arrowleft',
|
|
18
|
+
'arrowright',
|
|
19
|
+
'arrowup',
|
|
20
|
+
'b',
|
|
21
|
+
'backspace',
|
|
22
|
+
'c',
|
|
23
|
+
'capslock',
|
|
24
|
+
'command',
|
|
25
|
+
'commandleft',
|
|
26
|
+
'commandright',
|
|
27
|
+
'control',
|
|
28
|
+
'controlleft',
|
|
29
|
+
'controlright',
|
|
30
|
+
'd',
|
|
31
|
+
'delete',
|
|
32
|
+
'e',
|
|
33
|
+
'end',
|
|
34
|
+
'enter',
|
|
35
|
+
'escape',
|
|
36
|
+
'f',
|
|
37
|
+
'f1',
|
|
38
|
+
'f10',
|
|
39
|
+
'f11',
|
|
40
|
+
'f12',
|
|
41
|
+
'f2',
|
|
42
|
+
'f3',
|
|
43
|
+
'f4',
|
|
44
|
+
'f5',
|
|
45
|
+
'f6',
|
|
46
|
+
'f7',
|
|
47
|
+
'f8',
|
|
48
|
+
'f9',
|
|
49
|
+
'g',
|
|
50
|
+
'h',
|
|
51
|
+
'home',
|
|
52
|
+
'i',
|
|
53
|
+
'j',
|
|
54
|
+
'k',
|
|
55
|
+
'l',
|
|
56
|
+
'm',
|
|
57
|
+
'n',
|
|
58
|
+
'o',
|
|
59
|
+
'option',
|
|
60
|
+
'optionleft',
|
|
61
|
+
'optionright',
|
|
62
|
+
'p',
|
|
63
|
+
'pagedown',
|
|
64
|
+
'pageup',
|
|
65
|
+
'q',
|
|
66
|
+
'r',
|
|
67
|
+
's',
|
|
68
|
+
'shift',
|
|
69
|
+
'shiftleft',
|
|
70
|
+
'shiftright',
|
|
71
|
+
'space',
|
|
72
|
+
't',
|
|
73
|
+
'tab',
|
|
74
|
+
'u',
|
|
75
|
+
'v',
|
|
76
|
+
'w',
|
|
77
|
+
'windows',
|
|
78
|
+
'windowsleft',
|
|
79
|
+
'windowsright',
|
|
80
|
+
'x',
|
|
81
|
+
'y',
|
|
82
|
+
'z',
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
export {
|
|
86
|
+
keyboardKeyNameDictionary,
|
|
87
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const treeActionsDictionary = [
|
|
2
|
+
'auto',
|
|
3
|
+
'visible',
|
|
4
|
+
]
|
|
5
|
+
|
|
6
|
+
const treeAppearanceDictionary = [
|
|
7
|
+
'depth',
|
|
8
|
+
'none',
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
const treeIconDictionary = [
|
|
12
|
+
'folder',
|
|
13
|
+
'chevron',
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
treeActionsDictionary,
|
|
18
|
+
treeAppearanceDictionary,
|
|
19
|
+
treeIconDictionary,
|
|
20
|
+
}
|
|
21
|
+
|
package/src/fixtures/icons.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
[
|
|
2
2
|
"mdi/alien",
|
|
3
|
+
"mdi/apple-keyboard-shift",
|
|
3
4
|
"mdi/barley",
|
|
4
5
|
"mdi/baseball",
|
|
5
6
|
"mdi/crown",
|
|
@@ -7,9 +8,15 @@
|
|
|
7
8
|
"mdi/dots-vertical",
|
|
8
9
|
"mdi/email",
|
|
9
10
|
"mdi/file-document-remove-outline",
|
|
11
|
+
"mdi/file-download-outline",
|
|
12
|
+
"mdi/file-upload-outline",
|
|
13
|
+
"mdi/folder-open",
|
|
14
|
+
"mdi/handshake",
|
|
10
15
|
"mdi/harddisk",
|
|
16
|
+
"mdi/keyboard-space",
|
|
11
17
|
"mdi/license",
|
|
12
18
|
"mdi/map-marker",
|
|
19
|
+
"mdi/npm",
|
|
13
20
|
"mdi/replay",
|
|
14
21
|
"mdi/vector-curve",
|
|
15
22
|
"mgg/abitazione-principale",
|
|
@@ -44,6 +51,7 @@
|
|
|
44
51
|
"mgg/ai-status-processing",
|
|
45
52
|
"mgg/ai-status-suspended",
|
|
46
53
|
"mgg/alerts-pagopa",
|
|
54
|
+
"mgg/anagrafe-nazionale",
|
|
47
55
|
"mgg/anpr",
|
|
48
56
|
"mgg/ansc",
|
|
49
57
|
"mgg/area-edificabile",
|
|
@@ -68,6 +76,7 @@
|
|
|
68
76
|
"mgg/cancelled-sheet",
|
|
69
77
|
"mgg/car-license",
|
|
70
78
|
"mgg/card-stamping",
|
|
79
|
+
"mgg/cash-register-settings",
|
|
71
80
|
"mgg/check-small",
|
|
72
81
|
"mgg/checklist",
|
|
73
82
|
"mgg/checklist-settings",
|
|
@@ -164,7 +173,9 @@
|
|
|
164
173
|
"mgg/home-hammer",
|
|
165
174
|
"mgg/home-link",
|
|
166
175
|
"mgg/home-number",
|
|
176
|
+
"mgg/inad",
|
|
167
177
|
"mgg/inagibile",
|
|
178
|
+
"mgg/inps",
|
|
168
179
|
"mgg/input-calendar-costs",
|
|
169
180
|
"mgg/input-calendar-period",
|
|
170
181
|
"mgg/input-calendar-time",
|
|
@@ -237,7 +248,9 @@
|
|
|
237
248
|
"mgg/places-park",
|
|
238
249
|
"mgg/places-park-alt",
|
|
239
250
|
"mgg/places-store-access-denied",
|
|
251
|
+
"mgg/pos",
|
|
240
252
|
"mgg/property-owner",
|
|
253
|
+
"mgg/registro-imprese",
|
|
241
254
|
"mgg/relevance",
|
|
242
255
|
"mgg/reporting-abuse",
|
|
243
256
|
"mgg/residency-permit",
|
|
@@ -332,34 +345,52 @@
|
|
|
332
345
|
"mi/baseline/check-box",
|
|
333
346
|
"mi/baseline/check-box-outline-blank",
|
|
334
347
|
"mi/baseline/check-circle",
|
|
348
|
+
"mi/baseline/chevron-right",
|
|
335
349
|
"mi/baseline/close",
|
|
336
350
|
"mi/baseline/contrast",
|
|
337
351
|
"mi/baseline/css",
|
|
338
352
|
"mi/baseline/dark-mode",
|
|
339
353
|
"mi/baseline/delete",
|
|
340
354
|
"mi/baseline/description",
|
|
355
|
+
"mi/baseline/desk",
|
|
341
356
|
"mi/baseline/directions-run",
|
|
342
357
|
"mi/baseline/directions-walk",
|
|
343
358
|
"mi/baseline/done",
|
|
344
359
|
"mi/baseline/downhill-skiing",
|
|
360
|
+
"mi/baseline/draw",
|
|
345
361
|
"mi/baseline/eco",
|
|
346
362
|
"mi/baseline/email",
|
|
347
363
|
"mi/baseline/error",
|
|
348
364
|
"mi/baseline/explore",
|
|
365
|
+
"mi/baseline/favorite",
|
|
366
|
+
"mi/baseline/favorite-border",
|
|
349
367
|
"mi/baseline/file-download-done",
|
|
368
|
+
"mi/baseline/folder",
|
|
350
369
|
"mi/baseline/folder-zip",
|
|
351
370
|
"mi/baseline/horizontal-rule",
|
|
352
371
|
"mi/baseline/indeterminate-check-box",
|
|
353
372
|
"mi/baseline/info",
|
|
354
373
|
"mi/baseline/insert-drive-file",
|
|
374
|
+
"mi/baseline/keyboard",
|
|
355
375
|
"mi/baseline/keyboard-arrow-down",
|
|
376
|
+
"mi/baseline/keyboard-arrow-left",
|
|
377
|
+
"mi/baseline/keyboard-arrow-right",
|
|
356
378
|
"mi/baseline/keyboard-arrow-up",
|
|
379
|
+
"mi/baseline/keyboard-capslock",
|
|
380
|
+
"mi/baseline/keyboard-command-key",
|
|
381
|
+
"mi/baseline/keyboard-option-key",
|
|
382
|
+
"mi/baseline/keyboard-return",
|
|
383
|
+
"mi/baseline/keyboard-tab",
|
|
357
384
|
"mi/baseline/light-mode",
|
|
358
385
|
"mi/baseline/local-activity",
|
|
386
|
+
"mi/baseline/location-city",
|
|
359
387
|
"mi/baseline/lock-open",
|
|
360
388
|
"mi/baseline/login",
|
|
361
389
|
"mi/baseline/logout",
|
|
390
|
+
"mi/baseline/meeting-room",
|
|
391
|
+
"mi/baseline/more-vert",
|
|
362
392
|
"mi/baseline/navigate-next",
|
|
393
|
+
"mi/baseline/north",
|
|
363
394
|
"mi/baseline/panorama",
|
|
364
395
|
"mi/baseline/person",
|
|
365
396
|
"mi/baseline/pets",
|
|
@@ -370,13 +401,17 @@
|
|
|
370
401
|
"mi/baseline/route",
|
|
371
402
|
"mi/baseline/send",
|
|
372
403
|
"mi/baseline/settings",
|
|
404
|
+
"mi/baseline/south",
|
|
373
405
|
"mi/baseline/sports",
|
|
374
406
|
"mi/baseline/sports-soccer",
|
|
375
407
|
"mi/baseline/stadium",
|
|
376
408
|
"mi/baseline/terminal",
|
|
377
409
|
"mi/baseline/timer",
|
|
378
410
|
"mi/baseline/tv",
|
|
411
|
+
"mi/baseline/unfold-less",
|
|
379
412
|
"mi/baseline/unfold-more",
|
|
413
|
+
"mi/baseline/vertical-align-bottom",
|
|
414
|
+
"mi/baseline/vertical-align-top",
|
|
380
415
|
"mi/baseline/videocam",
|
|
381
416
|
"mi/baseline/visibility",
|
|
382
417
|
"mi/baseline/visibility-off",
|
|
@@ -385,6 +420,7 @@
|
|
|
385
420
|
"mi/baseline/web",
|
|
386
421
|
"mi/baseline/wysiwyg",
|
|
387
422
|
"mi/outline/auto-awesome",
|
|
423
|
+
"mi/outline/backspace",
|
|
388
424
|
"mi/outline/circle",
|
|
389
425
|
"mi/outline/dark-mode",
|
|
390
426
|
"mi/outline/help-outline",
|
|
@@ -393,5 +429,6 @@
|
|
|
393
429
|
"mi/round/email",
|
|
394
430
|
"mi/round/menu",
|
|
395
431
|
"mi/round/more-vert",
|
|
396
|
-
"mi/round/person"
|
|
432
|
+
"mi/round/person",
|
|
433
|
+
"mi/sharp/window"
|
|
397
434
|
]
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"mgg/ai-status-processing",
|
|
32
32
|
"mgg/ai-status-suspended",
|
|
33
33
|
"mgg/alerts-pagopa",
|
|
34
|
+
"mgg/anagrafe-nazionale",
|
|
34
35
|
"mgg/anpr",
|
|
35
36
|
"mgg/ansc",
|
|
36
37
|
"mgg/area-edificabile",
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
"mgg/cancelled-sheet",
|
|
56
57
|
"mgg/car-license",
|
|
57
58
|
"mgg/card-stamping",
|
|
59
|
+
"mgg/cash-register-settings",
|
|
58
60
|
"mgg/check-small",
|
|
59
61
|
"mgg/checklist-settings",
|
|
60
62
|
"mgg/checklist",
|
|
@@ -151,7 +153,9 @@
|
|
|
151
153
|
"mgg/home-hammer",
|
|
152
154
|
"mgg/home-link",
|
|
153
155
|
"mgg/home-number",
|
|
156
|
+
"mgg/inad",
|
|
154
157
|
"mgg/inagibile",
|
|
158
|
+
"mgg/inps",
|
|
155
159
|
"mgg/input-calendar-costs",
|
|
156
160
|
"mgg/input-calendar-period",
|
|
157
161
|
"mgg/input-calendar-time",
|
|
@@ -224,7 +228,9 @@
|
|
|
224
228
|
"mgg/places-park-alt",
|
|
225
229
|
"mgg/places-park",
|
|
226
230
|
"mgg/places-store-access-denied",
|
|
231
|
+
"mgg/pos",
|
|
227
232
|
"mgg/property-owner",
|
|
233
|
+
"mgg/registro-imprese",
|
|
228
234
|
"mgg/relevance",
|
|
229
235
|
"mgg/reporting-abuse",
|
|
230
236
|
"mgg/residency-permit",
|