@maggioli-design-system/mds-table-row 1.0.1 → 1.2.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/dist/cjs/{index-e090c8aa.js → index-797b786c.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mds-table-row.cjs.entry.js +3 -3
- package/dist/cjs/{magma-components.cjs.js → mds-table-row.cjs.js} +3 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/mds-table-row/mds-table-row.css +59 -0
- package/dist/{mds-table-row.js → collection/components/mds-table-row/mds-table-row.js} +1 -1
- package/dist/collection/dictionary/autocomplete.js +59 -0
- package/dist/collection/dictionary/button.js +26 -0
- package/dist/collection/dictionary/color.js +19 -0
- package/dist/collection/dictionary/icon.js +3 -0
- package/dist/collection/dictionary/input-text-type.js +13 -0
- package/dist/collection/dictionary/loading.js +5 -0
- package/dist/collection/dictionary/typography.js +43 -0
- package/dist/collection/dictionary/variant.js +65 -0
- package/dist/collection/fixtures/cities.js +110 -0
- package/dist/collection/interface/input-value.js +1 -0
- package/dist/collection/types/autocomplete.js +1 -0
- package/dist/collection/types/button.js +1 -0
- package/dist/collection/types/form-rel.js +1 -0
- package/dist/collection/types/input-text-type.js +1 -0
- package/dist/collection/types/input-value-type.js +1 -0
- package/dist/collection/types/loading.js +1 -0
- package/dist/collection/types/typography.js +1 -0
- package/dist/collection/types/variant.js +1 -0
- package/dist/{custom-elements → components}/index.d.ts +1 -20
- package/dist/components/index.js +1 -0
- package/dist/components/mds-table-row.d.ts +11 -0
- package/dist/components/mds-table-row.js +79 -0
- package/dist/esm/{index-4e8ec826.js → index-7d849f54.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-table-row.entry.js +3 -3
- package/dist/esm/{magma-components.js → mds-table-row.js} +2 -2
- package/dist/esm-es5/index-7d849f54.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-table-row.entry.js +1 -1
- package/dist/esm-es5/mds-table-row.js +1 -0
- package/dist/{magma-components → mds-table-row}/index.esm.js +0 -0
- package/dist/mds-table-row/mds-table-row.esm.js +1 -0
- package/dist/{magma-components/magma-components.js → mds-table-row/mds-table-row.js} +3 -3
- package/dist/mds-table-row/p-031e68b1.system.entry.js +1 -0
- package/dist/mds-table-row/p-13e3a2cc.system.js +1 -0
- package/dist/{magma-components/p-fe9da335.system.js → mds-table-row/p-15f2406e.system.js} +1 -1
- package/dist/{magma-components/p-c0c8d8ca.js → mds-table-row/p-3619a466.js} +1 -1
- package/dist/{magma-components → mds-table-row}/p-50ea2036.system.js +0 -0
- package/dist/mds-table-row/p-dab964fd.entry.js +1 -0
- package/dist/stats.json +148 -57
- package/dist/types/{Users/vitto/repo/design-system/projects/stencil/src/components/mds-table-row/.stencil/src/components → components}/mds-table-row/mds-table-row.d.ts +0 -0
- package/dist/types/dictionary/autocomplete.d.ts +2 -0
- package/dist/types/dictionary/button.d.ts +5 -0
- package/dist/types/dictionary/color.d.ts +3 -0
- package/dist/types/dictionary/icon.d.ts +2 -0
- package/dist/types/dictionary/input-text-type.d.ts +2 -0
- package/dist/types/dictionary/loading.d.ts +2 -0
- package/dist/types/dictionary/typography.d.ts +6 -0
- package/dist/types/dictionary/variant.d.ts +9 -0
- package/dist/types/fixtures/cities.d.ts +2 -0
- package/dist/types/interface/input-value.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/types/autocomplete.d.ts +2 -0
- package/dist/types/types/button.d.ts +4 -0
- package/dist/types/types/form-rel.d.ts +1 -0
- package/dist/types/types/input-text-type.d.ts +1 -0
- package/dist/types/types/input-value-type.d.ts +1 -0
- package/dist/types/types/loading.d.ts +1 -0
- package/dist/types/types/typography.d.ts +5 -0
- package/dist/types/types/variant.d.ts +10 -0
- package/loader/package.json +1 -1
- package/package.json +22 -25
- package/readme.md +10 -1
- package/src/components/mds-table-row/mds-table-row.css +44 -0
- package/src/components/mds-table-row/mds-table-row.tsx +25 -0
- package/src/components/mds-table-row/readme.md +19 -0
- package/src/dictionary/autocomplete.ts +62 -0
- package/src/dictionary/button.ts +35 -0
- package/src/dictionary/color.ts +24 -0
- package/src/dictionary/icon.ts +5 -0
- package/src/dictionary/input-text-type.ts +17 -0
- package/src/dictionary/loading.ts +9 -0
- package/src/dictionary/typography.ts +54 -0
- package/src/dictionary/variant.ts +82 -0
- package/src/fixtures/cities.ts +116 -0
- package/src/interface/input-value.ts +5 -0
- package/src/types/autocomplete.ts +69 -0
- package/src/types/button.ts +24 -0
- package/src/types/form-rel.ts +11 -0
- package/src/types/input-text-type.ts +11 -0
- package/src/types/input-value-type.ts +5 -0
- package/src/types/loading.ts +3 -0
- package/src/types/typography.ts +41 -0
- package/src/types/variant.ts +73 -0
- package/www/build/index.esm.js +0 -0
- package/www/build/mds-table-row.esm.js +1 -0
- package/www/build/mds-table-row.js +130 -0
- package/www/build/p-031e68b1.system.entry.js +1 -0
- package/www/build/p-13e3a2cc.system.js +1 -0
- package/www/build/p-15f2406e.system.js +1 -0
- package/www/build/p-3619a466.js +1 -0
- package/www/build/p-50ea2036.system.js +1 -0
- package/www/build/p-dab964fd.entry.js +1 -0
- package/www/host.config.json +15 -0
- package/dist/custom-elements/index.js +0 -74
- package/dist/esm-es5/index-4e8ec826.js +0 -1
- package/dist/esm-es5/magma-components.js +0 -1
- package/dist/magma-components/magma-components.esm.js +0 -1
- package/dist/magma-components/p-07a1cccc.entry.js +0 -1
- package/dist/magma-components/p-42a8d741.system.js +0 -1
- package/dist/magma-components/p-5555d1ad.system.entry.js +0 -1
- package/dist/mds-table-row.css +0 -73
- package/dist/stencil.config.js +0 -4
- package/dist/types/Users/vitto/repo/design-system/projects/stencil/src/components/mds-table-row/.stencil/src/components/mds-table-row/stencil.config.d.ts +0 -2
- package/dist/types/Users/vitto/repo/design-system/projects/stencil/src/components/mds-table-row/.stencil/stencil.config.d.ts +0 -2
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-797b786c.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.13.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-797b786c.js');
|
|
6
6
|
|
|
7
7
|
function toVal(mix) {
|
|
8
8
|
var k, y, str='';
|
|
@@ -45,7 +45,7 @@ function clsx () {
|
|
|
45
45
|
return str;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
const mdsTableRowCss = ".
|
|
48
|
+
const mdsTableRowCss = ".border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}mds-table-row{display:table-row;border-bottom-width:1px;border-bottom-color:var(--border-color, rgb(var(--adjust-tone-09)));border-bottom-style:solid}mds-table-row:last-child{border-color:transparent}mds-table-row:first-child mds-table-cell:first-child{border-top-left-radius:var(--radius, 0.5rem)}mds-table-row:last-child mds-table-cell:first-child{border-bottom-left-radius:var(--radius, 0.5rem)}mds-table-row:first-child mds-table-cell:last-child{border-top-right-radius:var(--radius, 0.5rem)}mds-table-row:last-child mds-table-cell:last-child{border-bottom-right-radius:var(--radius, 0.5rem)}mds-table-row:focus{opacity:0.5}mds-table-row.interactive:hover mds-table-cell{background-color:var(--background-row-hover, rgb(var(--adjust-tone))) !important}";
|
|
49
49
|
|
|
50
50
|
let MdsTableRow = class {
|
|
51
51
|
constructor(hostRef) {
|
|
@@ -55,7 +55,7 @@ let MdsTableRow = class {
|
|
|
55
55
|
this.interactive = event.detail;
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return (index.h(index.Host, { class: clsx(
|
|
58
|
+
return (index.h(index.Host, { class: clsx(this.interactive && 'interactive'), role: "row" }, index.h("slot", null)));
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
MdsTableRow.style = mdsTableRowCss;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-797b786c.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v2.
|
|
6
|
+
Stencil Client Patch Browser v2.13.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
const patchBrowser = () => {
|
|
9
|
-
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('
|
|
9
|
+
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mds-table-row.cjs.js', document.baseURI).href));
|
|
10
10
|
const opts = {};
|
|
11
11
|
if (importMeta !== '') {
|
|
12
12
|
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.border {
|
|
2
|
+
|
|
3
|
+
border-width: 1px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.shadow {
|
|
7
|
+
|
|
8
|
+
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
9
|
+
|
|
10
|
+
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
11
|
+
|
|
12
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @prop --background-row-hover: The cell background-color when the mouse go over the table row element
|
|
17
|
+
* @prop --border-color: The border color between table rows
|
|
18
|
+
* @prop --radius: The radius of the table (header and footer excluded)
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
mds-table-row {
|
|
22
|
+
|
|
23
|
+
display: table-row;
|
|
24
|
+
|
|
25
|
+
border-bottom-width: 1px;
|
|
26
|
+
|
|
27
|
+
border-bottom-color: var(--border-color, rgb(var(--adjust-tone-09)));
|
|
28
|
+
border-bottom-style: solid;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
mds-table-row:last-child {
|
|
32
|
+
|
|
33
|
+
border-color: transparent;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
mds-table-row:first-child mds-table-cell:first-child {
|
|
37
|
+
border-top-left-radius: var(--radius, 0.5rem);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
mds-table-row:last-child mds-table-cell:first-child {
|
|
41
|
+
border-bottom-left-radius: var(--radius, 0.5rem);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
mds-table-row:first-child mds-table-cell:last-child {
|
|
45
|
+
border-top-right-radius: var(--radius, 0.5rem);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
mds-table-row:last-child mds-table-cell:last-child {
|
|
49
|
+
border-bottom-right-radius: var(--radius, 0.5rem);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
mds-table-row:focus {
|
|
53
|
+
|
|
54
|
+
opacity: 0.5;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
mds-table-row.interactive:hover mds-table-cell {
|
|
58
|
+
background-color: var(--background-row-hover, rgb(var(--adjust-tone))) !important;
|
|
59
|
+
}
|
|
@@ -5,7 +5,7 @@ export class MdsTableRow {
|
|
|
5
5
|
this.interactive = event.detail;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { class: clsx(
|
|
8
|
+
return (h(Host, { class: clsx(this.interactive && 'interactive'), role: "row" },
|
|
9
9
|
h("slot", null)));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "mds-table-row"; }
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
export { autoCompleteDictionary, };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const buttonVariantDictionary = [
|
|
2
|
+
'dark',
|
|
3
|
+
'error',
|
|
4
|
+
'info',
|
|
5
|
+
'light',
|
|
6
|
+
'primary',
|
|
7
|
+
'success',
|
|
8
|
+
'warning',
|
|
9
|
+
];
|
|
10
|
+
const buttonToneVariantDictionary = [
|
|
11
|
+
'strong',
|
|
12
|
+
'weak',
|
|
13
|
+
'ghost',
|
|
14
|
+
'quiet',
|
|
15
|
+
];
|
|
16
|
+
const buttonSizeDictionary = [
|
|
17
|
+
'sm',
|
|
18
|
+
'md',
|
|
19
|
+
'lg',
|
|
20
|
+
'xl',
|
|
21
|
+
];
|
|
22
|
+
const buttonIconPositionDictionary = [
|
|
23
|
+
'left',
|
|
24
|
+
'right',
|
|
25
|
+
];
|
|
26
|
+
export { buttonSizeDictionary, buttonToneVariantDictionary, buttonVariantDictionary, buttonIconPositionDictionary, };
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
const colorStatusDictionary = [
|
|
14
|
+
'error',
|
|
15
|
+
'info',
|
|
16
|
+
'success',
|
|
17
|
+
'warning',
|
|
18
|
+
];
|
|
19
|
+
export { colorLabelDictionary, colorStatusDictionary, };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const typographyDictionary = [
|
|
2
|
+
'action',
|
|
3
|
+
'caption',
|
|
4
|
+
'code',
|
|
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
|
+
const typographyMonoDictionary = [
|
|
19
|
+
'code',
|
|
20
|
+
'hack',
|
|
21
|
+
];
|
|
22
|
+
const typographyPrimaryDictionary = [
|
|
23
|
+
'action',
|
|
24
|
+
'h1',
|
|
25
|
+
'h2',
|
|
26
|
+
'h3',
|
|
27
|
+
'h4',
|
|
28
|
+
'h5',
|
|
29
|
+
'h6',
|
|
30
|
+
];
|
|
31
|
+
const typographySecondaryDictionary = [
|
|
32
|
+
'caption',
|
|
33
|
+
'detail',
|
|
34
|
+
'label',
|
|
35
|
+
'option',
|
|
36
|
+
'paragraph',
|
|
37
|
+
'tip',
|
|
38
|
+
];
|
|
39
|
+
const typographySmallerDictionary = [
|
|
40
|
+
'option',
|
|
41
|
+
'tip',
|
|
42
|
+
];
|
|
43
|
+
export { typographyDictionary, typographyMonoDictionary, typographyPrimaryDictionary, typographySecondaryDictionary, typographySmallerDictionary, };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
const themeVariantDictionary = [
|
|
2
|
+
'dark',
|
|
3
|
+
'error',
|
|
4
|
+
'info',
|
|
5
|
+
'light',
|
|
6
|
+
'primary',
|
|
7
|
+
'success',
|
|
8
|
+
'warning',
|
|
9
|
+
];
|
|
10
|
+
const themeLuminanceVariantDictionary = [
|
|
11
|
+
'dark',
|
|
12
|
+
'light',
|
|
13
|
+
];
|
|
14
|
+
const themeStatusVariantDictionary = [
|
|
15
|
+
'error',
|
|
16
|
+
'info',
|
|
17
|
+
'success',
|
|
18
|
+
'warning',
|
|
19
|
+
];
|
|
20
|
+
const themeFullVariantDictionary = [
|
|
21
|
+
'amaranth',
|
|
22
|
+
'aqua',
|
|
23
|
+
'blue',
|
|
24
|
+
'dark',
|
|
25
|
+
'error',
|
|
26
|
+
'green',
|
|
27
|
+
'info',
|
|
28
|
+
'light',
|
|
29
|
+
'lime',
|
|
30
|
+
'orange',
|
|
31
|
+
'orchid',
|
|
32
|
+
'sky',
|
|
33
|
+
'success',
|
|
34
|
+
'violet',
|
|
35
|
+
'warning',
|
|
36
|
+
'yellow',
|
|
37
|
+
];
|
|
38
|
+
const themeLabelVariantDictionary = [
|
|
39
|
+
'amaranth',
|
|
40
|
+
'aqua',
|
|
41
|
+
'blue',
|
|
42
|
+
'green',
|
|
43
|
+
'lime',
|
|
44
|
+
'orange',
|
|
45
|
+
'orchid',
|
|
46
|
+
'sky',
|
|
47
|
+
'violet',
|
|
48
|
+
'yellow',
|
|
49
|
+
];
|
|
50
|
+
const toneVariantDictionary = [
|
|
51
|
+
'strong',
|
|
52
|
+
'weak',
|
|
53
|
+
'ghost',
|
|
54
|
+
'quiet',
|
|
55
|
+
];
|
|
56
|
+
const toneSimpleVariantDictionary = [
|
|
57
|
+
'strong',
|
|
58
|
+
'weak',
|
|
59
|
+
'quiet',
|
|
60
|
+
];
|
|
61
|
+
const toneMinimalVariantDictionary = [
|
|
62
|
+
'strong',
|
|
63
|
+
'weak',
|
|
64
|
+
];
|
|
65
|
+
export { themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneVariantDictionary, };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
const citiesDictionary = [
|
|
2
|
+
'Agrigento',
|
|
3
|
+
'Alessandria',
|
|
4
|
+
'Ancona',
|
|
5
|
+
'Aosta',
|
|
6
|
+
'Arezzo',
|
|
7
|
+
'Ascoli Piceno',
|
|
8
|
+
'Asti',
|
|
9
|
+
'Avellino',
|
|
10
|
+
'Bari',
|
|
11
|
+
'Barletta-Andria-Trani',
|
|
12
|
+
'Belluno',
|
|
13
|
+
'Benevento',
|
|
14
|
+
'Bergamo',
|
|
15
|
+
'Biella',
|
|
16
|
+
'Bologna',
|
|
17
|
+
'Bolzano',
|
|
18
|
+
'Brescia',
|
|
19
|
+
'Brindisi',
|
|
20
|
+
'Cagliari',
|
|
21
|
+
'Caltanissetta',
|
|
22
|
+
'Campobasso',
|
|
23
|
+
'Caserta',
|
|
24
|
+
'Catania',
|
|
25
|
+
'Catanzaro',
|
|
26
|
+
'Chieti',
|
|
27
|
+
'Como',
|
|
28
|
+
'Cosenza',
|
|
29
|
+
'Cremona',
|
|
30
|
+
'Crotone',
|
|
31
|
+
'Cuneo',
|
|
32
|
+
'Enna',
|
|
33
|
+
'Fermo',
|
|
34
|
+
'Ferrara',
|
|
35
|
+
'Firenze',
|
|
36
|
+
'Foggia',
|
|
37
|
+
'Forlì-Cesena',
|
|
38
|
+
'Frosinone',
|
|
39
|
+
'Genova',
|
|
40
|
+
'Gorizia',
|
|
41
|
+
'Grosseto',
|
|
42
|
+
'Imperia',
|
|
43
|
+
'Isernia',
|
|
44
|
+
'La Spezia',
|
|
45
|
+
'L\'Aquila',
|
|
46
|
+
'Latina',
|
|
47
|
+
'Lecce',
|
|
48
|
+
'Lecco',
|
|
49
|
+
'Livorno',
|
|
50
|
+
'Lodi',
|
|
51
|
+
'Lucca',
|
|
52
|
+
'Macerata',
|
|
53
|
+
'Mantova',
|
|
54
|
+
'Massa-Carrara',
|
|
55
|
+
'Matera',
|
|
56
|
+
'Messina',
|
|
57
|
+
'Milano',
|
|
58
|
+
'Modena',
|
|
59
|
+
'Monza e della Brianza',
|
|
60
|
+
'Napoli',
|
|
61
|
+
'Novara',
|
|
62
|
+
'Nuoro',
|
|
63
|
+
'Oristano',
|
|
64
|
+
'Padova',
|
|
65
|
+
'Palermo',
|
|
66
|
+
'Parma',
|
|
67
|
+
'Pavia',
|
|
68
|
+
'Perugia',
|
|
69
|
+
'Pesaro e Urbino',
|
|
70
|
+
'Pescara',
|
|
71
|
+
'Piacenza',
|
|
72
|
+
'Pisa',
|
|
73
|
+
'Pistoia',
|
|
74
|
+
'Pordenone',
|
|
75
|
+
'Potenza',
|
|
76
|
+
'Prato',
|
|
77
|
+
'Ragusa',
|
|
78
|
+
'Ravenna',
|
|
79
|
+
'Reggio Calabria',
|
|
80
|
+
'Reggio Emilia',
|
|
81
|
+
'Rieti',
|
|
82
|
+
'Rimini',
|
|
83
|
+
'Roma',
|
|
84
|
+
'Rovigo',
|
|
85
|
+
'Salerno',
|
|
86
|
+
'Sassari',
|
|
87
|
+
'Savona',
|
|
88
|
+
'Siena',
|
|
89
|
+
'Siracusa',
|
|
90
|
+
'Sondrio',
|
|
91
|
+
'Sud Sardegna',
|
|
92
|
+
'Taranto',
|
|
93
|
+
'Teramo',
|
|
94
|
+
'Terni',
|
|
95
|
+
'Torino',
|
|
96
|
+
'Trapani',
|
|
97
|
+
'Trento',
|
|
98
|
+
'Treviso',
|
|
99
|
+
'Trieste',
|
|
100
|
+
'Udine',
|
|
101
|
+
'Varese',
|
|
102
|
+
'Venezia',
|
|
103
|
+
'Verbano-Cusio-Ossola',
|
|
104
|
+
'Vercelli',
|
|
105
|
+
'Verona',
|
|
106
|
+
'Vibo Valentia',
|
|
107
|
+
'Vicenza',
|
|
108
|
+
'Viterbo',
|
|
109
|
+
];
|
|
110
|
+
export { citiesDictionary, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,25 +1,7 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* MdsTableRow custom elements */
|
|
2
2
|
|
|
3
3
|
import type { Components, JSX } from "../types/components";
|
|
4
4
|
|
|
5
|
-
interface MdsTableRow extends Components.MdsTableRow, HTMLElement {}
|
|
6
|
-
export const MdsTableRow: {
|
|
7
|
-
prototype: MdsTableRow;
|
|
8
|
-
new (): MdsTableRow;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Utility to define all custom elements within this package using the tag name provided in the component's source.
|
|
13
|
-
* When defining each custom element, it will also check it's safe to define by:
|
|
14
|
-
*
|
|
15
|
-
* 1. Ensuring the "customElements" registry is available in the global context (window).
|
|
16
|
-
* 2. The component tag name is not already defined.
|
|
17
|
-
*
|
|
18
|
-
* Use the standard [customElements.define()](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define)
|
|
19
|
-
* method instead to define custom elements individually, or to provide a different tag name.
|
|
20
|
-
*/
|
|
21
|
-
export declare const defineCustomElements: (opts?: any) => void;
|
|
22
|
-
|
|
23
5
|
/**
|
|
24
6
|
* Used to manually set the base path where assets can be found.
|
|
25
7
|
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
@@ -36,7 +18,6 @@ export interface SetPlatformOptions {
|
|
|
36
18
|
raf?: (c: FrameRequestCallback) => number;
|
|
37
19
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
38
20
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
39
|
-
ce?: (eventName: string, opts?: any) => CustomEvent;
|
|
40
21
|
}
|
|
41
22
|
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
42
23
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface MdsTableRow extends Components.MdsTableRow, HTMLElement {}
|
|
4
|
+
export const MdsTableRow: {
|
|
5
|
+
prototype: MdsTableRow;
|
|
6
|
+
new (): MdsTableRow;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { HTMLElement, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
function toVal(mix) {
|
|
4
|
+
var k, y, str='';
|
|
5
|
+
|
|
6
|
+
if (typeof mix === 'string' || typeof mix === 'number') {
|
|
7
|
+
str += mix;
|
|
8
|
+
} else if (typeof mix === 'object') {
|
|
9
|
+
if (Array.isArray(mix)) {
|
|
10
|
+
for (k=0; k < mix.length; k++) {
|
|
11
|
+
if (mix[k]) {
|
|
12
|
+
if (y = toVal(mix[k])) {
|
|
13
|
+
str && (str += ' ');
|
|
14
|
+
str += y;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
} else {
|
|
19
|
+
for (k in mix) {
|
|
20
|
+
if (mix[k]) {
|
|
21
|
+
str && (str += ' ');
|
|
22
|
+
str += k;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return str;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function clsx () {
|
|
32
|
+
var i=0, tmp, x, str='';
|
|
33
|
+
while (i < arguments.length) {
|
|
34
|
+
if (tmp = arguments[i++]) {
|
|
35
|
+
if (x = toVal(tmp)) {
|
|
36
|
+
str && (str += ' ');
|
|
37
|
+
str += x;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return str;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const mdsTableRowCss = ".border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}mds-table-row{display:table-row;border-bottom-width:1px;border-bottom-color:var(--border-color, rgb(var(--adjust-tone-09)));border-bottom-style:solid}mds-table-row:last-child{border-color:transparent}mds-table-row:first-child mds-table-cell:first-child{border-top-left-radius:var(--radius, 0.5rem)}mds-table-row:last-child mds-table-cell:first-child{border-bottom-left-radius:var(--radius, 0.5rem)}mds-table-row:first-child mds-table-cell:last-child{border-top-right-radius:var(--radius, 0.5rem)}mds-table-row:last-child mds-table-cell:last-child{border-bottom-right-radius:var(--radius, 0.5rem)}mds-table-row:focus{opacity:0.5}mds-table-row.interactive:hover mds-table-cell{background-color:var(--background-row-hover, rgb(var(--adjust-tone))) !important}";
|
|
45
|
+
|
|
46
|
+
let MdsTableRow$1 = class extends HTMLElement {
|
|
47
|
+
constructor() {
|
|
48
|
+
super();
|
|
49
|
+
this.__registerHost();
|
|
50
|
+
}
|
|
51
|
+
tableInteractiveHandler(event) {
|
|
52
|
+
this.interactive = event.detail;
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
return (h(Host, { class: clsx(this.interactive && 'interactive'), role: "row" }, h("slot", null)));
|
|
56
|
+
}
|
|
57
|
+
static get style() { return mdsTableRowCss; }
|
|
58
|
+
};
|
|
59
|
+
MdsTableRow$1 = /*@__PURE__*/ proxyCustomElement(MdsTableRow$1, [4, "mds-table-row", {
|
|
60
|
+
"interactive": [32]
|
|
61
|
+
}, [[16, "tableInteractive", "tableInteractiveHandler"]]]);
|
|
62
|
+
function defineCustomElement$1() {
|
|
63
|
+
if (typeof customElements === "undefined") {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const components = ["mds-table-row"];
|
|
67
|
+
components.forEach(tagName => { switch (tagName) {
|
|
68
|
+
case "mds-table-row":
|
|
69
|
+
if (!customElements.get(tagName)) {
|
|
70
|
+
customElements.define(tagName, MdsTableRow$1);
|
|
71
|
+
}
|
|
72
|
+
break;
|
|
73
|
+
} });
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const MdsTableRow = MdsTableRow$1;
|
|
77
|
+
const defineCustomElement = defineCustomElement$1;
|
|
78
|
+
|
|
79
|
+
export { MdsTableRow, defineCustomElement };
|