@maggioli-design-system/mds-input-tip-item 1.0.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-8ba1476a.js +1640 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/mds-input-tip-item.cjs.entry.js +75 -0
- package/dist/cjs/mds-input-tip-item.cjs.js +23 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/common/aria.js +29 -0
- package/dist/collection/common/file.js +48 -0
- package/dist/collection/common/icon.js +15 -0
- package/dist/collection/common/keyboard-manager.js +45 -0
- package/dist/collection/common/locale.js +20 -0
- package/dist/collection/common/unit.js +22 -0
- package/dist/collection/common/yugop/core.js +16 -0
- package/dist/collection/common/yugop/index.js +3 -0
- package/dist/collection/common/yugop/random-text.js +59 -0
- package/dist/collection/common/yugop/utils/math.js +11 -0
- package/dist/collection/common/yugop/utils/noop.js +1 -0
- package/dist/collection/common/yugop/utils/prng.js +21 -0
- package/dist/collection/common/yugop/utils/string.js +2 -0
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +306 -0
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +85 -0
- package/dist/collection/components/mds-input-tip-item/meta/types.js +1 -0
- package/dist/collection/components/mds-input-tip-item/test/mds-input-tip-item.e2e.js +9 -0
- package/dist/collection/dictionary/autocomplete.js +59 -0
- package/dist/collection/dictionary/button.js +30 -0
- package/dist/collection/dictionary/color.js +19 -0
- package/dist/collection/dictionary/file-extensions.js +64 -0
- package/dist/collection/dictionary/floating-ui.js +19 -0
- package/dist/collection/dictionary/icon.js +10 -0
- package/dist/collection/dictionary/input.js +37 -0
- package/dist/collection/dictionary/loading.js +5 -0
- package/dist/collection/dictionary/text.js +6 -0
- package/dist/collection/dictionary/typography.js +67 -0
- package/dist/collection/dictionary/variant.js +90 -0
- package/dist/collection/fixtures/cities.js +110 -0
- package/dist/collection/fixtures/filenames.js +57 -0
- package/dist/collection/interface/input-value.js +1 -0
- package/dist/collection/type/autocomplete.js +1 -0
- package/dist/collection/type/button.js +1 -0
- package/dist/collection/type/file-types.js +1 -0
- package/dist/collection/type/floating-ui.js +1 -0
- package/dist/collection/type/form-rel.js +1 -0
- package/dist/collection/type/input.js +1 -0
- package/dist/collection/type/loading.js +1 -0
- package/dist/collection/type/text.js +1 -0
- package/dist/collection/type/typography.js +1 -0
- package/dist/collection/type/variant-file-format.js +120 -0
- package/dist/collection/type/variant.js +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +1 -0
- package/dist/components/mds-input-tip-item.d.ts +11 -0
- package/dist/components/mds-input-tip-item.js +92 -0
- package/dist/documentation.d.ts +401 -0
- package/dist/documentation.json +109 -0
- package/dist/esm/index-9bfcacb5.js +1612 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +9 -0
- package/dist/esm/mds-input-tip-item.entry.js +71 -0
- package/dist/esm/mds-input-tip-item.js +18 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm-es5/index-9bfcacb5.js +1 -0
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/mds-input-tip-item.entry.js +1 -0
- package/dist/esm-es5/mds-input-tip-item.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/mds-input-tip-item/index.esm.js +0 -0
- package/dist/mds-input-tip-item/mds-input-tip-item.esm.js +1 -0
- package/dist/mds-input-tip-item/mds-input-tip-item.js +127 -0
- package/dist/mds-input-tip-item/p-50ea2036.system.js +1 -0
- package/dist/mds-input-tip-item/p-96fd552b.entry.js +1 -0
- package/dist/mds-input-tip-item/p-9d931dda.js +2 -0
- package/dist/mds-input-tip-item/p-bc4a4db2.system.js +2 -0
- package/dist/mds-input-tip-item/p-e8f8ccd0.system.entry.js +1 -0
- package/dist/mds-input-tip-item/p-eb883bae.system.js +1 -0
- package/dist/stats.json +515 -0
- package/dist/types/common/aria.d.ts +5 -0
- package/dist/types/common/file.d.ts +12 -0
- package/dist/types/common/icon.d.ts +5 -0
- package/dist/types/common/keyboard-manager.d.ts +12 -0
- package/dist/types/common/locale.d.ts +14 -0
- package/dist/types/common/unit.d.ts +3 -0
- package/dist/types/common/yugop/core.d.ts +10 -0
- package/dist/types/common/yugop/index.d.ts +1 -0
- package/dist/types/common/yugop/random-text.d.ts +31 -0
- package/dist/types/common/yugop/utils/math.d.ts +3 -0
- package/dist/types/common/yugop/utils/noop.d.ts +1 -0
- package/dist/types/common/yugop/utils/prng.d.ts +8 -0
- package/dist/types/common/yugop/utils/string.d.ts +1 -0
- package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +15 -0
- package/dist/types/components/mds-input-tip-item/meta/types.d.ts +1 -0
- package/dist/types/components.d.ts +55 -0
- package/dist/types/dictionary/autocomplete.d.ts +2 -0
- package/dist/types/dictionary/button.d.ts +6 -0
- package/dist/types/dictionary/color.d.ts +3 -0
- package/dist/types/dictionary/file-extensions.d.ts +11 -0
- package/dist/types/dictionary/floating-ui.d.ts +3 -0
- package/dist/types/dictionary/icon.d.ts +4 -0
- package/dist/types/dictionary/input.d.ts +5 -0
- package/dist/types/dictionary/loading.d.ts +2 -0
- package/dist/types/dictionary/text.d.ts +2 -0
- package/dist/types/dictionary/typography.d.ts +11 -0
- package/dist/types/dictionary/variant.d.ts +11 -0
- package/dist/types/fixtures/cities.d.ts +2 -0
- package/dist/types/fixtures/filenames.d.ts +2 -0
- package/dist/types/interface/input-value.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +1681 -0
- package/dist/types/type/autocomplete.d.ts +2 -0
- package/dist/types/type/button.d.ts +5 -0
- package/dist/types/type/file-types.d.ts +1 -0
- package/dist/types/type/floating-ui.d.ts +2 -0
- package/dist/types/type/form-rel.d.ts +1 -0
- package/dist/types/type/input.d.ts +4 -0
- package/dist/types/type/loading.d.ts +1 -0
- package/dist/types/type/text.d.ts +1 -0
- package/dist/types/type/typography.d.ts +10 -0
- package/dist/types/type/variant-file-format.d.ts +11 -0
- package/dist/types/type/variant.d.ts +12 -0
- package/documentation.json +585 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +21 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +59 -0
- package/readme.md +38 -0
- package/src/common/aria.ts +39 -0
- package/src/common/file.ts +63 -0
- package/src/common/icon.ts +25 -0
- package/src/common/keyboard-manager.ts +50 -0
- package/src/common/locale.ts +31 -0
- package/src/common/unit.ts +33 -0
- package/src/common/yugop/core.ts +47 -0
- package/src/common/yugop/index.ts +4 -0
- package/src/common/yugop/random-text.ts +95 -0
- package/src/common/yugop/utils/math.ts +21 -0
- package/src/common/yugop/utils/noop.ts +1 -0
- package/src/common/yugop/utils/prng.ts +35 -0
- package/src/common/yugop/utils/string.ts +4 -0
- package/src/components/mds-input-tip-item/.gitlab-ci.yml +25 -0
- package/src/components/mds-input-tip-item/mds-input-tip-item.css +96 -0
- package/src/components/mds-input-tip-item/mds-input-tip-item.tsx +66 -0
- package/src/components/mds-input-tip-item/meta/locale.en.json +5 -0
- package/src/components/mds-input-tip-item/meta/locale.it.json +5 -0
- package/src/components/mds-input-tip-item/meta/types.ts +6 -0
- package/src/components/mds-input-tip-item/readme.md +18 -0
- package/src/components/mds-input-tip-item/test/mds-input-tip-item.e2e.ts +11 -0
- package/src/components.d.ts +55 -0
- package/src/dictionary/autocomplete.ts +62 -0
- package/src/dictionary/button.ts +41 -0
- package/src/dictionary/color.ts +24 -0
- package/src/dictionary/file-extensions.ts +81 -0
- package/src/dictionary/floating-ui.ts +25 -0
- package/src/dictionary/icon.ts +15 -0
- package/src/dictionary/input.ts +48 -0
- package/src/dictionary/loading.ts +9 -0
- package/src/dictionary/text.ts +9 -0
- package/src/dictionary/typography.ts +88 -0
- package/src/dictionary/variant.ts +111 -0
- package/src/fixtures/cities.ts +116 -0
- package/src/fixtures/filenames.ts +60 -0
- package/src/fixtures/icons.json +344 -0
- package/src/fixtures/iconsauce.json +257 -0
- package/src/interface/input-value.ts +5 -0
- package/src/tailwind/components.css +15 -0
- package/src/type/autocomplete.ts +69 -0
- package/src/type/button.ts +28 -0
- package/src/type/file-types.ts +55 -0
- package/src/type/floating-ui.ts +17 -0
- package/src/type/form-rel.ts +11 -0
- package/src/type/input.ts +25 -0
- package/src/type/loading.ts +3 -0
- package/src/type/text.ts +4 -0
- package/src/type/typography.ts +65 -0
- package/src/type/variant-file-format.ts +137 -0
- package/src/type/variant.ts +99 -0
- package/www/build/index.esm.js +0 -0
- package/www/build/mds-input-tip-item.esm.js +1 -0
- package/www/build/mds-input-tip-item.js +127 -0
- package/www/build/p-50ea2036.system.js +1 -0
- package/www/build/p-96fd552b.entry.js +1 -0
- package/www/build/p-9d931dda.js +2 -0
- package/www/build/p-bc4a4db2.system.js +2 -0
- package/www/build/p-e8f8ccd0.system.entry.js +1 -0
- package/www/build/p-eb883bae.system.js +1 -0
- package/www/host.config.json +15 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Component, Element, Host, h, Prop } from '@stencil/core'
|
|
2
|
+
import { InputTipItemVariantType } from '@component/mds-input-tip-item/meta/types'
|
|
3
|
+
import miBaselineDone from '@icon/mi/baseline/done.svg'
|
|
4
|
+
import { Locale } from '@common/locale'
|
|
5
|
+
import localeEn from './meta/locale.en.json'
|
|
6
|
+
import localeIt from './meta/locale.it.json'
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
tag: 'mds-input-tip-item',
|
|
10
|
+
styleUrl: 'mds-input-tip-item.css',
|
|
11
|
+
shadow: true,
|
|
12
|
+
})
|
|
13
|
+
export class MdsInputTipItem {
|
|
14
|
+
@Element() private element: HTMLMdsPrefThemeElement
|
|
15
|
+
|
|
16
|
+
private t:Locale = new Locale({
|
|
17
|
+
en: localeEn,
|
|
18
|
+
it: localeIt,
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
componentWillRender (): void {
|
|
22
|
+
this.t.lang(this.element)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Specifies the variant of the element
|
|
27
|
+
*/
|
|
28
|
+
@Prop({ reflect: true }) readonly variant?: InputTipItemVariantType = 'required'
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Specifies if the element is expanded
|
|
32
|
+
*/
|
|
33
|
+
@Prop({ reflect: true }) readonly expanded?: boolean = true
|
|
34
|
+
|
|
35
|
+
render () {
|
|
36
|
+
return (
|
|
37
|
+
<Host>
|
|
38
|
+
<div class="content">
|
|
39
|
+
{ this.variant === 'text' &&
|
|
40
|
+
<mds-text typography="option" truncate="word">
|
|
41
|
+
<span class="text"><slot/></span>
|
|
42
|
+
</mds-text>
|
|
43
|
+
}
|
|
44
|
+
{ this.variant === 'readonly' &&
|
|
45
|
+
<mds-text typography="option" truncate="word">
|
|
46
|
+
<span class="text">{this.variant && this.t.get(this.variant.toString())}</span>
|
|
47
|
+
</mds-text>
|
|
48
|
+
}
|
|
49
|
+
{ this.variant === 'disabled' &&
|
|
50
|
+
<mds-text typography="option" truncate="word">
|
|
51
|
+
<span class="text">{ this.variant && this.t.get(this.variant.toString()) }</span>
|
|
52
|
+
</mds-text>
|
|
53
|
+
}
|
|
54
|
+
{ this.variant === 'required' &&
|
|
55
|
+
<mds-text typography="option" truncate="word">
|
|
56
|
+
<span class="text">{this.variant && this.t.get(this.variant.toString())}</span>
|
|
57
|
+
</mds-text>
|
|
58
|
+
}
|
|
59
|
+
{ this.variant === 'required-success' &&
|
|
60
|
+
<span class="icon svg" innerHTML={miBaselineDone}></span>
|
|
61
|
+
}
|
|
62
|
+
</div>
|
|
63
|
+
</Host>
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# mds-input-tip-item
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| ---------- | ---------- | ------------------------------------ | ------------------------------------------------------------------------------------- | ------------ |
|
|
12
|
+
| `expanded` | `expanded` | Specifies if the element is expanded | `boolean \| undefined` | `true` |
|
|
13
|
+
| `variant` | `variant` | Specifies the variant of the element | `"disabled" \| "readonly" \| "required" \| "required-success" \| "text" \| undefined` | `'required'` |
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
----------------------------------------------
|
|
17
|
+
|
|
18
|
+
Built with love @ [Gruppo Maggioli](https://www.maggioli.com) from [R&D Department](https://www.maggioli.com/it-it/chi-siamo/ricerca-sviluppo)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { newE2EPage } from '@stencil/core/testing'
|
|
2
|
+
|
|
3
|
+
describe('mds-input-tip-item', () => {
|
|
4
|
+
it('renders', async () => {
|
|
5
|
+
const page = await newE2EPage()
|
|
6
|
+
await page.setContent('<mds-input-tip-item></mds-input-tip-item>')
|
|
7
|
+
|
|
8
|
+
const element = await page.find('mds-input-tip-item')
|
|
9
|
+
expect(element).toHaveAttribute('hydrated')
|
|
10
|
+
})
|
|
11
|
+
})
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
|
|
8
|
+
import { InputTipItemVariantType } from "@component/mds-input-tip-item/meta/types";
|
|
9
|
+
export { InputTipItemVariantType } from "@component/mds-input-tip-item/meta/types";
|
|
10
|
+
export namespace Components {
|
|
11
|
+
interface MdsInputTipItem {
|
|
12
|
+
/**
|
|
13
|
+
* Specifies if the element is expanded
|
|
14
|
+
*/
|
|
15
|
+
"expanded"?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Specifies the variant of the element
|
|
18
|
+
*/
|
|
19
|
+
"variant"?: InputTipItemVariantType;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
declare global {
|
|
23
|
+
interface HTMLMdsInputTipItemElement extends Components.MdsInputTipItem, HTMLStencilElement {
|
|
24
|
+
}
|
|
25
|
+
var HTMLMdsInputTipItemElement: {
|
|
26
|
+
prototype: HTMLMdsInputTipItemElement;
|
|
27
|
+
new (): HTMLMdsInputTipItemElement;
|
|
28
|
+
};
|
|
29
|
+
interface HTMLElementTagNameMap {
|
|
30
|
+
"mds-input-tip-item": HTMLMdsInputTipItemElement;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
declare namespace LocalJSX {
|
|
34
|
+
interface MdsInputTipItem {
|
|
35
|
+
/**
|
|
36
|
+
* Specifies if the element is expanded
|
|
37
|
+
*/
|
|
38
|
+
"expanded"?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the variant of the element
|
|
41
|
+
*/
|
|
42
|
+
"variant"?: InputTipItemVariantType;
|
|
43
|
+
}
|
|
44
|
+
interface IntrinsicElements {
|
|
45
|
+
"mds-input-tip-item": MdsInputTipItem;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export { LocalJSX as JSX };
|
|
49
|
+
declare module "@stencil/core" {
|
|
50
|
+
export namespace JSX {
|
|
51
|
+
interface IntrinsicElements {
|
|
52
|
+
"mds-input-tip-item": LocalJSX.MdsInputTipItem & JSXBase.HTMLAttributes<HTMLMdsInputTipItemElement>;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const autoCompleteDictionary = [
|
|
2
|
+
'additional-name',
|
|
3
|
+
'address',
|
|
4
|
+
'address-level1',
|
|
5
|
+
'address-level2',
|
|
6
|
+
'address-level3',
|
|
7
|
+
'address-level4',
|
|
8
|
+
'address-line1',
|
|
9
|
+
'address-line2',
|
|
10
|
+
'address-line3',
|
|
11
|
+
'bday',
|
|
12
|
+
'bday-day',
|
|
13
|
+
'bday-month',
|
|
14
|
+
'bday-year',
|
|
15
|
+
'cc-additional-name',
|
|
16
|
+
'cc-csc',
|
|
17
|
+
'cc-exp',
|
|
18
|
+
'cc-exp-month',
|
|
19
|
+
'cc-exp-year',
|
|
20
|
+
'cc-family-name',
|
|
21
|
+
'cc-family-name',
|
|
22
|
+
'cc-given-name',
|
|
23
|
+
'cc-name',
|
|
24
|
+
'cc-number',
|
|
25
|
+
'cc-type',
|
|
26
|
+
'country',
|
|
27
|
+
'country-name',
|
|
28
|
+
'current-password',
|
|
29
|
+
'email',
|
|
30
|
+
'family-name',
|
|
31
|
+
'given-name',
|
|
32
|
+
'honorific-prefix',
|
|
33
|
+
'honorific-suffix',
|
|
34
|
+
'impp',
|
|
35
|
+
'language',
|
|
36
|
+
'name',
|
|
37
|
+
'new-password',
|
|
38
|
+
'nickname',
|
|
39
|
+
'off',
|
|
40
|
+
'on',
|
|
41
|
+
'one-time-code',
|
|
42
|
+
'organization',
|
|
43
|
+
'organization-title',
|
|
44
|
+
'photo',
|
|
45
|
+
'postal-code',
|
|
46
|
+
'sex',
|
|
47
|
+
'street-address',
|
|
48
|
+
'tel',
|
|
49
|
+
'tel-area-code',
|
|
50
|
+
'tel-country-code',
|
|
51
|
+
'tel-extension',
|
|
52
|
+
'tel-local',
|
|
53
|
+
'tel-national',
|
|
54
|
+
'transaction-amount',
|
|
55
|
+
'transaction-currency',
|
|
56
|
+
'url',
|
|
57
|
+
'username',
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
autoCompleteDictionary,
|
|
62
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const buttonVariantDictionary = [
|
|
2
|
+
'dark',
|
|
3
|
+
'error',
|
|
4
|
+
'info',
|
|
5
|
+
'light',
|
|
6
|
+
'primary',
|
|
7
|
+
'success',
|
|
8
|
+
'warning',
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
const buttonToneVariantDictionary = [
|
|
12
|
+
'strong',
|
|
13
|
+
'weak',
|
|
14
|
+
'ghost',
|
|
15
|
+
'quiet',
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
const buttonTargetDictionary = [
|
|
19
|
+
'blank',
|
|
20
|
+
'self',
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
const buttonSizeDictionary = [
|
|
24
|
+
'sm',
|
|
25
|
+
'md',
|
|
26
|
+
'lg',
|
|
27
|
+
'xl',
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
const buttonIconPositionDictionary = [
|
|
31
|
+
'left',
|
|
32
|
+
'right',
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
buttonIconPositionDictionary,
|
|
37
|
+
buttonSizeDictionary,
|
|
38
|
+
buttonTargetDictionary,
|
|
39
|
+
buttonToneVariantDictionary,
|
|
40
|
+
buttonVariantDictionary,
|
|
41
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const colorLabelDictionary = [
|
|
2
|
+
'amaranth',
|
|
3
|
+
'aqua',
|
|
4
|
+
'blue',
|
|
5
|
+
'green',
|
|
6
|
+
'lime',
|
|
7
|
+
'orange',
|
|
8
|
+
'orchid',
|
|
9
|
+
'sky',
|
|
10
|
+
'violet',
|
|
11
|
+
'yellow',
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
const colorStatusDictionary = [
|
|
15
|
+
'error',
|
|
16
|
+
'info',
|
|
17
|
+
'success',
|
|
18
|
+
'warning',
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
colorLabelDictionary,
|
|
23
|
+
colorStatusDictionary,
|
|
24
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
interface FileExtenstion {
|
|
2
|
+
[key: string]: ExtensionInfo
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface ExtensionInfo {
|
|
6
|
+
preview?: boolean
|
|
7
|
+
format: string
|
|
8
|
+
description: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const fileExtensionsDictionary: FileExtenstion = {
|
|
12
|
+
'7z': { format: 'archive', description: 'Archivio compresso' },
|
|
13
|
+
ace: { format: 'archive', description: 'Archivio compresso' },
|
|
14
|
+
ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
|
|
15
|
+
dart: { format: 'code', description: 'Dart' },
|
|
16
|
+
db: { format: 'data', description: 'File di database' },
|
|
17
|
+
default: { format: 'attachment', description: 'Formato sconosciuto' },
|
|
18
|
+
dmg: { format: 'executable', description: 'Apple Disk Image' },
|
|
19
|
+
doc: { format: 'text', description: 'Documento Microsoft Word' },
|
|
20
|
+
docm: { format: 'text', description: 'Documento Microsoft Word' },
|
|
21
|
+
docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
|
|
22
|
+
eml: { format: 'email', description: 'E-mail di posta elettronica' },
|
|
23
|
+
eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
|
|
24
|
+
exe: { format: 'executable', description: 'File eseguibile Windows' },
|
|
25
|
+
flac: { format: 'audio', description: 'Audio non compresso' },
|
|
26
|
+
gif: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
27
|
+
htm: { format: 'markup', description: 'Pagina web' },
|
|
28
|
+
heic: { format: 'image', description: 'High Efficiency Image File Format' },
|
|
29
|
+
html: { format: 'markup', description: 'Pagina web' },
|
|
30
|
+
jpe: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
31
|
+
jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
32
|
+
jpg: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
33
|
+
js: { format: 'code', description: 'JavaScript' },
|
|
34
|
+
json: { format: 'data', description: 'JavaScript Object Notation' },
|
|
35
|
+
jsx: { format: 'code', description: 'JavaScript' },
|
|
36
|
+
m2v: { format: 'video', description: 'Filmato SD' },
|
|
37
|
+
mp2: { format: 'audio', description: 'Audio compresso' },
|
|
38
|
+
mp3: { format: 'audio', description: 'Audio compresso' },
|
|
39
|
+
mp4: { format: 'video', description: 'Filmato HD' },
|
|
40
|
+
mp4v: { format: 'video', description: 'Filmato HD' },
|
|
41
|
+
mpeg: { format: 'video', description: 'Filmato SD' },
|
|
42
|
+
mpg4: { format: 'video', description: 'Filmato SD' },
|
|
43
|
+
mpg: { format: 'video', description: 'Filmato SD' },
|
|
44
|
+
mpga: { format: 'audio', description: 'Audio compresso' },
|
|
45
|
+
odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
|
|
46
|
+
ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
|
|
47
|
+
odt: { format: 'text', description: 'File di testo LibreOffice' },
|
|
48
|
+
pdf: { format: 'document', description: 'Documento Adobe' },
|
|
49
|
+
php: { format: 'code', description: 'Hypertext Preprocessor' },
|
|
50
|
+
png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
|
|
51
|
+
ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
|
|
52
|
+
rar: { format: 'archive', description: 'Archivio compresso' },
|
|
53
|
+
rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
|
|
54
|
+
sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
|
|
55
|
+
shtml: { format: 'markup', description: 'Pagina web' },
|
|
56
|
+
svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
|
|
57
|
+
tar: { format: 'archive', description: 'Archivio non compresso' },
|
|
58
|
+
tiff: { format: 'image', description: 'Tag Image File Format' },
|
|
59
|
+
ts: { format: 'code', description: 'TypeScript' },
|
|
60
|
+
tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
|
|
61
|
+
txt: { format: 'text', description: 'Documento di testo non formattato' },
|
|
62
|
+
wav: { format: 'audio', description: 'Audio non compresso' },
|
|
63
|
+
webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
|
|
64
|
+
xar: { format: 'archive', description: 'Archivio compresso' },
|
|
65
|
+
xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
|
|
66
|
+
xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
|
|
67
|
+
zip: { format: 'archive', description: 'Archivio compresso' },
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const genericMimeToExt: Map<string, string[]> = new Map([
|
|
71
|
+
['image', ['.png', '.jpg', '.jpeg', '.tiff', '.webp', '.jpe', '.gif', '.heic']],
|
|
72
|
+
['audio', ['.mp2', '.mp3', '.mpga', '.wav', '.flac']],
|
|
73
|
+
['video', ['.mv2', '.mp4', '.mp4v', '.mpeg', '.mpg4', '.mpg']],
|
|
74
|
+
])
|
|
75
|
+
|
|
76
|
+
export {
|
|
77
|
+
FileExtenstion,
|
|
78
|
+
ExtensionInfo,
|
|
79
|
+
fileExtensionsDictionary,
|
|
80
|
+
genericMimeToExt,
|
|
81
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
const floatingUIPlacementDictionary = [
|
|
3
|
+
'bottom',
|
|
4
|
+
'bottom-end',
|
|
5
|
+
'bottom-start',
|
|
6
|
+
'left',
|
|
7
|
+
'left-end',
|
|
8
|
+
'left-start',
|
|
9
|
+
'right',
|
|
10
|
+
'right-end',
|
|
11
|
+
'right-start',
|
|
12
|
+
'top',
|
|
13
|
+
'top-end',
|
|
14
|
+
'top-start',
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
const floatingUIStrategyDictionary = [
|
|
18
|
+
'absolute',
|
|
19
|
+
'fixed',
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
floatingUIPlacementDictionary,
|
|
24
|
+
floatingUIStrategyDictionary,
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import jsonIconsDictionary from '../fixtures/icons.json'
|
|
2
|
+
import jsonMggIconsDictionary from '../fixtures/iconsauce.json'
|
|
3
|
+
const iconsDictionary = jsonIconsDictionary
|
|
4
|
+
const mggIconsDictionary = jsonMggIconsDictionary
|
|
5
|
+
const svgIconsDictionary = [
|
|
6
|
+
`${location.origin}/svg/mi/baseline/email.svg`,
|
|
7
|
+
'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Im0yMzMtODAgNjUtMjgxTDgwLTU1MGwyODgtMjUgMTEyLTI2NSAxMTIgMjY1IDI4OCAyNS0yMTggMTg5IDY1IDI4MS0yNDctMTQ5TDIzMy04MFoiLz48L3N2Zz4=',
|
|
8
|
+
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6s-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8s-3.58-8-8-8z"/></svg>',
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
iconsDictionary,
|
|
13
|
+
mggIconsDictionary,
|
|
14
|
+
svgIconsDictionary,
|
|
15
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const inputTextTypeDictionary = [
|
|
2
|
+
'date',
|
|
3
|
+
'email',
|
|
4
|
+
'number',
|
|
5
|
+
'password',
|
|
6
|
+
'search',
|
|
7
|
+
'tel',
|
|
8
|
+
'text',
|
|
9
|
+
'textarea',
|
|
10
|
+
'time',
|
|
11
|
+
'url',
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
const inputFieldTypeDictionary = [
|
|
15
|
+
'date',
|
|
16
|
+
'email',
|
|
17
|
+
'number',
|
|
18
|
+
'password',
|
|
19
|
+
'search',
|
|
20
|
+
'tel',
|
|
21
|
+
'text',
|
|
22
|
+
'textarea',
|
|
23
|
+
'time',
|
|
24
|
+
'url',
|
|
25
|
+
'cc',
|
|
26
|
+
'cf',
|
|
27
|
+
'isbn',
|
|
28
|
+
'piva',
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
const inputControlsLayoutDictionary = [
|
|
33
|
+
'horizontal',
|
|
34
|
+
'vertical',
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
const inputControlsIconDictionary = [
|
|
38
|
+
'arrow',
|
|
39
|
+
'arithmetic',
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
export {
|
|
43
|
+
inputControlsIconDictionary,
|
|
44
|
+
inputControlsLayoutDictionary,
|
|
45
|
+
inputTextTypeDictionary,
|
|
46
|
+
inputFieldTypeDictionary,
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
const typographyDictionary = [
|
|
2
|
+
'action',
|
|
3
|
+
'caption',
|
|
4
|
+
'snippet',
|
|
5
|
+
'detail',
|
|
6
|
+
'h1',
|
|
7
|
+
'h2',
|
|
8
|
+
'h3',
|
|
9
|
+
'h4',
|
|
10
|
+
'h5',
|
|
11
|
+
'h6',
|
|
12
|
+
'hack',
|
|
13
|
+
'label',
|
|
14
|
+
'option',
|
|
15
|
+
'paragraph',
|
|
16
|
+
'tip',
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
const typographyVariationsDictionary = [
|
|
20
|
+
'title',
|
|
21
|
+
'info',
|
|
22
|
+
'read',
|
|
23
|
+
'code',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
const typographyReadingVariationsDictionary = [
|
|
27
|
+
'info',
|
|
28
|
+
'read',
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
const typographyMonoDictionary = [
|
|
32
|
+
'snippet',
|
|
33
|
+
'hack',
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
const typographyTitleDictionary = [
|
|
37
|
+
'action',
|
|
38
|
+
'h1',
|
|
39
|
+
'h2',
|
|
40
|
+
'h3',
|
|
41
|
+
'h4',
|
|
42
|
+
'h5',
|
|
43
|
+
'h6',
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
const typographyInfoDictionary = [
|
|
47
|
+
'caption',
|
|
48
|
+
'detail',
|
|
49
|
+
'label',
|
|
50
|
+
'option',
|
|
51
|
+
'paragraph',
|
|
52
|
+
'tip',
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
const typographyReadDictionary = [
|
|
56
|
+
'caption',
|
|
57
|
+
'detail',
|
|
58
|
+
'paragraph',
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
const typographySmallerDictionary = [
|
|
62
|
+
'option',
|
|
63
|
+
'tip',
|
|
64
|
+
]
|
|
65
|
+
|
|
66
|
+
const typographyTooltipDictionary = [
|
|
67
|
+
'caption',
|
|
68
|
+
'detail',
|
|
69
|
+
'tip',
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
const typographyInputDictionary = [
|
|
73
|
+
'snippet',
|
|
74
|
+
'detail',
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
export {
|
|
78
|
+
typographyDictionary,
|
|
79
|
+
typographyInfoDictionary,
|
|
80
|
+
typographyInputDictionary,
|
|
81
|
+
typographyMonoDictionary,
|
|
82
|
+
typographyReadDictionary,
|
|
83
|
+
typographyReadingVariationsDictionary,
|
|
84
|
+
typographySmallerDictionary,
|
|
85
|
+
typographyTitleDictionary,
|
|
86
|
+
typographyTooltipDictionary,
|
|
87
|
+
typographyVariationsDictionary,
|
|
88
|
+
}
|