niris-public-community-components 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +59 -8
- package/dev/form-niris.html +29 -0
- package/dev/text-area-niris.html +8 -5
- package/dist/form-niris.d.ts +70 -0
- package/dist/form-niris.d.ts.map +1 -0
- package/dist/form-niris.js +1127 -0
- package/dist/form-niris.js.map +1 -0
- package/dist/form-to-niris.js +847 -0
- package/dist/generated/locale-codes.d.ts +14 -0
- package/dist/generated/locale-codes.d.ts.map +1 -0
- package/dist/generated/locale-codes.js +23 -0
- package/dist/generated/locale-codes.js.map +1 -0
- package/dist/generated/locales/ca.d.ts +61 -0
- package/dist/generated/locales/ca.d.ts.map +1 -0
- package/dist/generated/locales/ca.js +65 -0
- package/dist/generated/locales/ca.js.map +1 -0
- package/dist/generated/locales/en.d.ts +61 -0
- package/dist/generated/locales/en.d.ts.map +1 -0
- package/dist/generated/locales/en.js +65 -0
- package/dist/generated/locales/en.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/locale-codes-c2f86156.js +72 -0
- package/dist/map-niris.d.ts +25 -0
- package/dist/map-niris.d.ts.map +1 -0
- package/dist/map-niris.js +200 -0
- package/dist/map-niris.js.map +1 -0
- package/dist/styles/globalStyles.d.ts +2 -0
- package/dist/styles/globalStyles.d.ts.map +1 -0
- package/dist/styles/globalStyles.js +170 -0
- package/dist/styles/globalStyles.js.map +1 -0
- package/dist/types.d.ts +85 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +9 -0
- package/dist/types.js.map +1 -0
- package/index.html +5 -3
- package/package.json +26 -5
- package/rollup.config.js +6 -2
- package/src/form-niris.ts +1203 -0
- package/src/generated/locale-codes.ts +25 -0
- package/src/generated/locales/ca.ts +71 -0
- package/src/generated/locales/en.ts +71 -0
- package/src/lit-localize.json +15 -0
- package/src/map-niris.ts +215 -0
- package/src/styles/globalStyles.ts +170 -0
- package/src/textarea-to-niris.ts +29 -15
- package/src/types.ts +90 -0
- package/src/xliff/ca.xlf +239 -0
- package/src/xliff/en.xlf +239 -0
- package/dist/textarea-to-niris.js +0 -222
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* The locale code that templates in this source code are written in.
|
3
|
+
*/
|
4
|
+
export declare const sourceLocale = "es";
|
5
|
+
/**
|
6
|
+
* The other locale codes that this application is localized into. Sorted
|
7
|
+
* lexicographically.
|
8
|
+
*/
|
9
|
+
export declare const targetLocales: readonly ["ca", "en"];
|
10
|
+
/**
|
11
|
+
* All valid project locale codes. Sorted lexicographically.
|
12
|
+
*/
|
13
|
+
export declare const allLocales: readonly ["ca", "en", "es"];
|
14
|
+
//# sourceMappingURL=locale-codes.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"locale-codes.d.ts","sourceRoot":"","sources":["../../src/generated/locale-codes.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC;;;GAGG;AACH,eAAO,MAAM,aAAa,uBAGhB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,UAAU,6BAIb,CAAC"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
// Do not modify this file by hand!
|
2
|
+
// Re-generate this file by running lit-localize.
|
3
|
+
/**
|
4
|
+
* The locale code that templates in this source code are written in.
|
5
|
+
*/
|
6
|
+
export const sourceLocale = `es`;
|
7
|
+
/**
|
8
|
+
* The other locale codes that this application is localized into. Sorted
|
9
|
+
* lexicographically.
|
10
|
+
*/
|
11
|
+
export const targetLocales = [
|
12
|
+
`ca`,
|
13
|
+
`en`,
|
14
|
+
];
|
15
|
+
/**
|
16
|
+
* All valid project locale codes. Sorted lexicographically.
|
17
|
+
*/
|
18
|
+
export const allLocales = [
|
19
|
+
`ca`,
|
20
|
+
`en`,
|
21
|
+
`es`,
|
22
|
+
];
|
23
|
+
//# sourceMappingURL=locale-codes.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"locale-codes.js","sourceRoot":"","sources":["../../src/generated/locale-codes.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,iDAAiD;AAEjD;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC;AAEjC;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI;IACJ,IAAI;CACI,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI;IACJ,IAAI;IACJ,IAAI;CACI,CAAC","sourcesContent":["// Do not modify this file by hand!\n// Re-generate this file by running lit-localize.\n\n/**\n * The locale code that templates in this source code are written in.\n */\nexport const sourceLocale = `es`;\n\n/**\n * The other locale codes that this application is localized into. Sorted\n * lexicographically.\n */\nexport const targetLocales = [\n `ca`,\n `en`,\n] as const;\n\n/**\n * All valid project locale codes. Sorted lexicographically.\n */\nexport const allLocales = [\n `ca`,\n `en`,\n `es`,\n] as const;\n"]}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
export declare const templates: {
|
2
|
+
s07f7935b16a64e43: string;
|
3
|
+
s080ffb79b58c5d88: string;
|
4
|
+
s0b9a2919aa57a8c5: string;
|
5
|
+
s10132a1f9423876e: string;
|
6
|
+
s108402007fab3ec5: string;
|
7
|
+
s1abaad4e0bafba35: string;
|
8
|
+
s1d7849c1bb306edd: string;
|
9
|
+
s1f26cb0a65a0c36c: string;
|
10
|
+
s22d3debb0fe19771: string;
|
11
|
+
s238c3ed6d3ecc66a: string;
|
12
|
+
s26432c53ecd144e8: string;
|
13
|
+
s2b9fde9a5739d2a0: string;
|
14
|
+
s36e2c319c2d9da17: string;
|
15
|
+
s4177fe7f5d70fd33: string;
|
16
|
+
s4ab9666eac463302: string;
|
17
|
+
s4d7be50524a42681: string;
|
18
|
+
s54cd3139a4d69fbc: string;
|
19
|
+
s572f5ed1f68bfcbc: string;
|
20
|
+
s5b2d32ceb3df3643: string;
|
21
|
+
s5ea9f272dd7f1da8: string;
|
22
|
+
s694b51e10128655f: string;
|
23
|
+
s6b344d8147866cc1: string;
|
24
|
+
s7bc25696aeb11d7f: string;
|
25
|
+
s7c953cf010581df3: string;
|
26
|
+
s7cf6cfa5cdc725e3: string;
|
27
|
+
s7fbca09fab401ca5: string;
|
28
|
+
s889d2b38e8eb16b1: string;
|
29
|
+
s88a1a97d95757131: string;
|
30
|
+
s9802dd10b2c2f760: string;
|
31
|
+
sa6e4de4116073f37: string;
|
32
|
+
saac6d40cd7052608: string;
|
33
|
+
sac8b678ef5500421: string;
|
34
|
+
saddc930eb2efdca6: string;
|
35
|
+
sae3f1a64e8f9c33d: string;
|
36
|
+
sb044a1b221567c04: string;
|
37
|
+
sb096f7a10f6e5904: string;
|
38
|
+
sb1942b92592ac8cf: string;
|
39
|
+
sb6cacaf045a2fe90: string;
|
40
|
+
sc93268d68f7d69a4: string;
|
41
|
+
sca318e1f09f7800c: string;
|
42
|
+
scbe4c6673872bda5: string;
|
43
|
+
sd08f47835375b0d2: string;
|
44
|
+
sd09a1a8863c8ae5b: string;
|
45
|
+
sd1f44f1a8bc20e67: string;
|
46
|
+
sd2bd4af48abb3752: string;
|
47
|
+
sd901c7baed664633: string;
|
48
|
+
sd9e5b15f059a59ee: string;
|
49
|
+
sdd366d6d0fe37812: string;
|
50
|
+
sdf913cb738108398: string;
|
51
|
+
se1674091f5776527: string;
|
52
|
+
se962e919c6552a74: string;
|
53
|
+
see4f9c33f20ae7e2: string;
|
54
|
+
sf2d9bee1ddd749d4: string;
|
55
|
+
sf4533552651212ea: string;
|
56
|
+
sf6686b6b90cc7680: string;
|
57
|
+
sf8824fc70d91da9e: string;
|
58
|
+
sf9e6fbadcce256d0: string;
|
59
|
+
sfbe83072001704e5: string;
|
60
|
+
};
|
61
|
+
//# sourceMappingURL=ca.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ca.d.ts","sourceRoot":"","sources":["../../../src/generated/locales/ca.ts"],"names":[],"mappings":"AAUI,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DrB,CAAC"}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
// Do not modify this file by hand!
|
2
|
+
// Re-generate this file by running lit-localize
|
3
|
+
/* eslint-disable no-irregular-whitespace */
|
4
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
5
|
+
export const templates = {
|
6
|
+
's07f7935b16a64e43': `Agraïm que ens hagi fet arribar el seu reconeixement, el qual es farà arribar al departament responsable. Amb aquesta informació, donem per contestada la seva comunicació`,
|
7
|
+
's080ffb79b58c5d88': `Primer cognom`,
|
8
|
+
's0b9a2919aa57a8c5': `CIF`,
|
9
|
+
's10132a1f9423876e': `No implementat`,
|
10
|
+
's108402007fab3ec5': `Anglès`,
|
11
|
+
's1abaad4e0bafba35': `Error carregant el formulari`,
|
12
|
+
's1d7849c1bb306edd': `Català`,
|
13
|
+
's1f26cb0a65a0c36c': `Dades personals`,
|
14
|
+
's22d3debb0fe19771': `Atenció en línia Niris`,
|
15
|
+
's238c3ed6d3ecc66a': `Tancar`,
|
16
|
+
's26432c53ecd144e8': `Escriviu la vostra consulta`,
|
17
|
+
's2b9fde9a5739d2a0': `Nom`,
|
18
|
+
's36e2c319c2d9da17': `NIE`,
|
19
|
+
's4177fe7f5d70fd33': `Tornar`,
|
20
|
+
's4ab9666eac463302': `Porta`,
|
21
|
+
's4d7be50524a42681': `Afegir fitxer`,
|
22
|
+
's54cd3139a4d69fbc': `Ubicació`,
|
23
|
+
's572f5ed1f68bfcbc': `NIF/DNI`,
|
24
|
+
's5b2d32ceb3df3643': `Escala`,
|
25
|
+
's5ea9f272dd7f1da8': `Correu electrònic`,
|
26
|
+
's694b51e10128655f': `Escriviu el vostre telèfon`,
|
27
|
+
's6b344d8147866cc1': `Informació, Consultes, Queixes i Suggeriments:`,
|
28
|
+
's7bc25696aeb11d7f': `Persona de contacte`,
|
29
|
+
's7c953cf010581df3': `Passaport`,
|
30
|
+
's7cf6cfa5cdc725e3': `Acceptats:`,
|
31
|
+
's7fbca09fab401ca5': `Confirma el teu correu`,
|
32
|
+
's889d2b38e8eb16b1': `Escriviu el vostre correu`,
|
33
|
+
's88a1a97d95757131': `Districte`,
|
34
|
+
's9802dd10b2c2f760': `Enviar`,
|
35
|
+
'sa6e4de4116073f37': `Confirma el correu`,
|
36
|
+
'saac6d40cd7052608': `Núm. Document`,
|
37
|
+
'sac8b678ef5500421': `Districte*:`,
|
38
|
+
'saddc930eb2efdca6': `Fitxa creada!`,
|
39
|
+
'sae3f1a64e8f9c33d': `Cercar`,
|
40
|
+
'sb044a1b221567c04': `Tipus de Document`,
|
41
|
+
'sb096f7a10f6e5904': `Carrer`,
|
42
|
+
'sb1942b92592ac8cf': `Ho sentim. Torni-ho a provar més tard`,
|
43
|
+
'sb6cacaf045a2fe90': `Atenció en línia`,
|
44
|
+
'sc93268d68f7d69a4': `Número`,
|
45
|
+
'sca318e1f09f7800c': `Any de naixement`,
|
46
|
+
'scbe4c6673872bda5': `Telèfon`,
|
47
|
+
'sd08f47835375b0d2': `Idioma de la resposta`,
|
48
|
+
'sd09a1a8863c8ae5b': `Característiques de la petició`,
|
49
|
+
'sd1f44f1a8bc20e67': `Correu electrònic`,
|
50
|
+
'sd2bd4af48abb3752': `Raó social`,
|
51
|
+
'sd901c7baed664633': `Ciutadà`,
|
52
|
+
'sd9e5b15f059a59ee': `Segon cognom`,
|
53
|
+
'sdd366d6d0fe37812': `Empresa/Entitat`,
|
54
|
+
'sdf913cb738108398': `Els correus no coincideixen`,
|
55
|
+
'se1674091f5776527': `Confirma el correu electrònic`,
|
56
|
+
'se962e919c6552a74': `Planta`,
|
57
|
+
'see4f9c33f20ae7e2': `Missatge`,
|
58
|
+
'sf2d9bee1ddd749d4': `Escriviu breument el vostre missatge`,
|
59
|
+
'sf4533552651212ea': `Els camps marcats amb un (*) són obligatoris.`,
|
60
|
+
'sf6686b6b90cc7680': `Carregant formulari`,
|
61
|
+
'sf8824fc70d91da9e': `Espanyol`,
|
62
|
+
'sf9e6fbadcce256d0': `Ha ocorregut un error`,
|
63
|
+
'sfbe83072001704e5': `El codi de seguiment és`,
|
64
|
+
};
|
65
|
+
//# sourceMappingURL=ca.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ca.js","sourceRoot":"","sources":["../../../src/generated/locales/ca.ts"],"names":[],"mappings":"AACI,mCAAmC;AACnC,gDAAgD;AAKhD,4CAA4C;AAC5C,uDAAuD;AAEvD,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,mBAAmB,EAAE,4KAA4K;IACvM,mBAAmB,EAAE,eAAe;IACpC,mBAAmB,EAAE,KAAK;IAC1B,mBAAmB,EAAE,gBAAgB;IACrC,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,8BAA8B;IACnD,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,iBAAiB;IACtC,mBAAmB,EAAE,wBAAwB;IAC7C,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,6BAA6B;IAClD,mBAAmB,EAAE,KAAK;IAC1B,mBAAmB,EAAE,KAAK;IAC1B,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,OAAO;IAC5B,mBAAmB,EAAE,eAAe;IACpC,mBAAmB,EAAE,UAAU;IAC/B,mBAAmB,EAAE,SAAS;IAC9B,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,mBAAmB;IACxC,mBAAmB,EAAE,4BAA4B;IACjD,mBAAmB,EAAE,gDAAgD;IACrE,mBAAmB,EAAE,qBAAqB;IAC1C,mBAAmB,EAAE,WAAW;IAChC,mBAAmB,EAAE,YAAY;IACjC,mBAAmB,EAAE,wBAAwB;IAC7C,mBAAmB,EAAE,2BAA2B;IAChD,mBAAmB,EAAE,WAAW;IAChC,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,oBAAoB;IACzC,mBAAmB,EAAE,eAAe;IACpC,mBAAmB,EAAE,aAAa;IAClC,mBAAmB,EAAE,eAAe;IACpC,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,mBAAmB;IACxC,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,uCAAuC;IAC5D,mBAAmB,EAAE,kBAAkB;IACvC,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,kBAAkB;IACvC,mBAAmB,EAAE,SAAS;IAC9B,mBAAmB,EAAE,uBAAuB;IAC5C,mBAAmB,EAAE,gCAAgC;IACrD,mBAAmB,EAAE,mBAAmB;IACxC,mBAAmB,EAAE,YAAY;IACjC,mBAAmB,EAAE,SAAS;IAC9B,mBAAmB,EAAE,cAAc;IACnC,mBAAmB,EAAE,iBAAiB;IACtC,mBAAmB,EAAE,6BAA6B;IAClD,mBAAmB,EAAE,+BAA+B;IACpD,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,UAAU;IAC/B,mBAAmB,EAAE,sCAAsC;IAC3D,mBAAmB,EAAE,+CAA+C;IACpE,mBAAmB,EAAE,qBAAqB;IAC1C,mBAAmB,EAAE,UAAU;IAC/B,mBAAmB,EAAE,uBAAuB;IAC5C,mBAAmB,EAAE,yBAAyB;CACzC,CAAC","sourcesContent":["\n // Do not modify this file by hand!\n // Re-generate this file by running lit-localize\n\n \n \n\n /* eslint-disable no-irregular-whitespace */\n /* eslint-disable @typescript-eslint/no-explicit-any */\n\n export const templates = {\n 's07f7935b16a64e43': `Agraïm que ens hagi fet arribar el seu reconeixement, el qual es farà arribar al departament responsable. Amb aquesta informació, donem per contestada la seva comunicació`,\n's080ffb79b58c5d88': `Primer cognom`,\n's0b9a2919aa57a8c5': `CIF`,\n's10132a1f9423876e': `No implementat`,\n's108402007fab3ec5': `Anglès`,\n's1abaad4e0bafba35': `Error carregant el formulari`,\n's1d7849c1bb306edd': `Català`,\n's1f26cb0a65a0c36c': `Dades personals`,\n's22d3debb0fe19771': `Atenció en línia Niris`,\n's238c3ed6d3ecc66a': `Tancar`,\n's26432c53ecd144e8': `Escriviu la vostra consulta`,\n's2b9fde9a5739d2a0': `Nom`,\n's36e2c319c2d9da17': `NIE`,\n's4177fe7f5d70fd33': `Tornar`,\n's4ab9666eac463302': `Porta`,\n's4d7be50524a42681': `Afegir fitxer`,\n's54cd3139a4d69fbc': `Ubicació`,\n's572f5ed1f68bfcbc': `NIF/DNI`,\n's5b2d32ceb3df3643': `Escala`,\n's5ea9f272dd7f1da8': `Correu electrònic`,\n's694b51e10128655f': `Escriviu el vostre telèfon`,\n's6b344d8147866cc1': `Informació, Consultes, Queixes i Suggeriments:`,\n's7bc25696aeb11d7f': `Persona de contacte`,\n's7c953cf010581df3': `Passaport`,\n's7cf6cfa5cdc725e3': `Acceptats:`,\n's7fbca09fab401ca5': `Confirma el teu correu`,\n's889d2b38e8eb16b1': `Escriviu el vostre correu`,\n's88a1a97d95757131': `Districte`,\n's9802dd10b2c2f760': `Enviar`,\n'sa6e4de4116073f37': `Confirma el correu`,\n'saac6d40cd7052608': `Núm. Document`,\n'sac8b678ef5500421': `Districte*:`,\n'saddc930eb2efdca6': `Fitxa creada!`,\n'sae3f1a64e8f9c33d': `Cercar`,\n'sb044a1b221567c04': `Tipus de Document`,\n'sb096f7a10f6e5904': `Carrer`,\n'sb1942b92592ac8cf': `Ho sentim. Torni-ho a provar més tard`,\n'sb6cacaf045a2fe90': `Atenció en línia`,\n'sc93268d68f7d69a4': `Número`,\n'sca318e1f09f7800c': `Any de naixement`,\n'scbe4c6673872bda5': `Telèfon`,\n'sd08f47835375b0d2': `Idioma de la resposta`,\n'sd09a1a8863c8ae5b': `Característiques de la petició`,\n'sd1f44f1a8bc20e67': `Correu electrònic`,\n'sd2bd4af48abb3752': `Raó social`,\n'sd901c7baed664633': `Ciutadà`,\n'sd9e5b15f059a59ee': `Segon cognom`,\n'sdd366d6d0fe37812': `Empresa/Entitat`,\n'sdf913cb738108398': `Els correus no coincideixen`,\n'se1674091f5776527': `Confirma el correu electrònic`,\n'se962e919c6552a74': `Planta`,\n'see4f9c33f20ae7e2': `Missatge`,\n'sf2d9bee1ddd749d4': `Escriviu breument el vostre missatge`,\n'sf4533552651212ea': `Els camps marcats amb un (*) són obligatoris.`,\n'sf6686b6b90cc7680': `Carregant formulari`,\n'sf8824fc70d91da9e': `Espanyol`,\n'sf9e6fbadcce256d0': `Ha ocorregut un error`,\n'sfbe83072001704e5': `El codi de seguiment és`,\n };\n "]}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
export declare const templates: {
|
2
|
+
s07f7935b16a64e43: string;
|
3
|
+
s080ffb79b58c5d88: string;
|
4
|
+
s0b9a2919aa57a8c5: string;
|
5
|
+
s10132a1f9423876e: string;
|
6
|
+
s108402007fab3ec5: string;
|
7
|
+
s1abaad4e0bafba35: string;
|
8
|
+
s1d7849c1bb306edd: string;
|
9
|
+
s1f26cb0a65a0c36c: string;
|
10
|
+
s22d3debb0fe19771: string;
|
11
|
+
s238c3ed6d3ecc66a: string;
|
12
|
+
s26432c53ecd144e8: string;
|
13
|
+
s2b9fde9a5739d2a0: string;
|
14
|
+
s36e2c319c2d9da17: string;
|
15
|
+
s4177fe7f5d70fd33: string;
|
16
|
+
s4ab9666eac463302: string;
|
17
|
+
s4d7be50524a42681: string;
|
18
|
+
s54cd3139a4d69fbc: string;
|
19
|
+
s572f5ed1f68bfcbc: string;
|
20
|
+
s5b2d32ceb3df3643: string;
|
21
|
+
s5ea9f272dd7f1da8: string;
|
22
|
+
s694b51e10128655f: string;
|
23
|
+
s6b344d8147866cc1: string;
|
24
|
+
s7bc25696aeb11d7f: string;
|
25
|
+
s7c953cf010581df3: string;
|
26
|
+
s7cf6cfa5cdc725e3: string;
|
27
|
+
s7fbca09fab401ca5: string;
|
28
|
+
s889d2b38e8eb16b1: string;
|
29
|
+
s88a1a97d95757131: string;
|
30
|
+
s9802dd10b2c2f760: string;
|
31
|
+
sa6e4de4116073f37: string;
|
32
|
+
saac6d40cd7052608: string;
|
33
|
+
sac8b678ef5500421: string;
|
34
|
+
saddc930eb2efdca6: string;
|
35
|
+
sae3f1a64e8f9c33d: string;
|
36
|
+
sb044a1b221567c04: string;
|
37
|
+
sb096f7a10f6e5904: string;
|
38
|
+
sb1942b92592ac8cf: string;
|
39
|
+
sb6cacaf045a2fe90: string;
|
40
|
+
sc93268d68f7d69a4: string;
|
41
|
+
sca318e1f09f7800c: string;
|
42
|
+
scbe4c6673872bda5: string;
|
43
|
+
sd08f47835375b0d2: string;
|
44
|
+
sd09a1a8863c8ae5b: string;
|
45
|
+
sd1f44f1a8bc20e67: string;
|
46
|
+
sd2bd4af48abb3752: string;
|
47
|
+
sd901c7baed664633: string;
|
48
|
+
sd9e5b15f059a59ee: string;
|
49
|
+
sdd366d6d0fe37812: string;
|
50
|
+
sdf913cb738108398: string;
|
51
|
+
se1674091f5776527: string;
|
52
|
+
se962e919c6552a74: string;
|
53
|
+
see4f9c33f20ae7e2: string;
|
54
|
+
sf2d9bee1ddd749d4: string;
|
55
|
+
sf4533552651212ea: string;
|
56
|
+
sf6686b6b90cc7680: string;
|
57
|
+
sf8824fc70d91da9e: string;
|
58
|
+
sf9e6fbadcce256d0: string;
|
59
|
+
sfbe83072001704e5: string;
|
60
|
+
};
|
61
|
+
//# sourceMappingURL=en.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/generated/locales/en.ts"],"names":[],"mappings":"AAUI,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DrB,CAAC"}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
// Do not modify this file by hand!
|
2
|
+
// Re-generate this file by running lit-localize
|
3
|
+
/* eslint-disable no-irregular-whitespace */
|
4
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
5
|
+
export const templates = {
|
6
|
+
's07f7935b16a64e43': `We appreciate you sending us your recognition, which will be forwarded to the responsible department. With this information, we consider your communication answered`,
|
7
|
+
's080ffb79b58c5d88': `First surname`,
|
8
|
+
's0b9a2919aa57a8c5': `Tax ID`,
|
9
|
+
's10132a1f9423876e': `Not implemented`,
|
10
|
+
's108402007fab3ec5': `English`,
|
11
|
+
's1abaad4e0bafba35': `Error loading the form`,
|
12
|
+
's1d7849c1bb306edd': `Catalan`,
|
13
|
+
's1f26cb0a65a0c36c': `Personal information`,
|
14
|
+
's22d3debb0fe19771': `Niris online support`,
|
15
|
+
's238c3ed6d3ecc66a': `Close`,
|
16
|
+
's26432c53ecd144e8': `Write your query here`,
|
17
|
+
's2b9fde9a5739d2a0': `Name`,
|
18
|
+
's36e2c319c2d9da17': `NIE`,
|
19
|
+
's4177fe7f5d70fd33': `Go back`,
|
20
|
+
's4ab9666eac463302': `Door`,
|
21
|
+
's4d7be50524a42681': `Add file`,
|
22
|
+
's54cd3139a4d69fbc': `Location`,
|
23
|
+
's572f5ed1f68bfcbc': `NIF/DNI`,
|
24
|
+
's5b2d32ceb3df3643': `Staircase`,
|
25
|
+
's5ea9f272dd7f1da8': `Email`,
|
26
|
+
's694b51e10128655f': `Write your phone number`,
|
27
|
+
's6b344d8147866cc1': `Information, Queries, Complaints and Suggestions:`,
|
28
|
+
's7bc25696aeb11d7f': `Contact person`,
|
29
|
+
's7c953cf010581df3': `Passport`,
|
30
|
+
's7cf6cfa5cdc725e3': `Accepted:`,
|
31
|
+
's7fbca09fab401ca5': `Confirm your email`,
|
32
|
+
's889d2b38e8eb16b1': `Write your email`,
|
33
|
+
's88a1a97d95757131': `District`,
|
34
|
+
's9802dd10b2c2f760': `Send`,
|
35
|
+
'sa6e4de4116073f37': `Confirm email`,
|
36
|
+
'saac6d40cd7052608': `Document Number`,
|
37
|
+
'sac8b678ef5500421': `District*:`,
|
38
|
+
'saddc930eb2efdca6': `Form created!`,
|
39
|
+
'sae3f1a64e8f9c33d': `Search`,
|
40
|
+
'sb044a1b221567c04': `Document Type`,
|
41
|
+
'sb096f7a10f6e5904': `Street`,
|
42
|
+
'sb1942b92592ac8cf': `We apologize for the inconvenience. Please try again later`,
|
43
|
+
'sb6cacaf045a2fe90': `Online support`,
|
44
|
+
'sc93268d68f7d69a4': `Number`,
|
45
|
+
'sca318e1f09f7800c': `Year of birth`,
|
46
|
+
'scbe4c6673872bda5': `Phone`,
|
47
|
+
'sd08f47835375b0d2': `Response language`,
|
48
|
+
'sd09a1a8863c8ae5b': `Request characteristics`,
|
49
|
+
'sd1f44f1a8bc20e67': `Email`,
|
50
|
+
'sd2bd4af48abb3752': `Company name`,
|
51
|
+
'sd901c7baed664633': `Citizen`,
|
52
|
+
'sd9e5b15f059a59ee': `Second surname`,
|
53
|
+
'sdd366d6d0fe37812': `Company/Entity`,
|
54
|
+
'sdf913cb738108398': `Emails do not match`,
|
55
|
+
'se1674091f5776527': `Confirm email`,
|
56
|
+
'se962e919c6552a74': `Floor`,
|
57
|
+
'see4f9c33f20ae7e2': `Message`,
|
58
|
+
'sf2d9bee1ddd749d4': `Write your message briefly`,
|
59
|
+
'sf4533552651212ea': `Fields marked with (*) are mandatory.`,
|
60
|
+
'sf6686b6b90cc7680': `Loading form`,
|
61
|
+
'sf8824fc70d91da9e': `Spanish`,
|
62
|
+
'sf9e6fbadcce256d0': `An error has occurred`,
|
63
|
+
'sfbe83072001704e5': `The tracking code is`,
|
64
|
+
};
|
65
|
+
//# sourceMappingURL=en.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../../src/generated/locales/en.ts"],"names":[],"mappings":"AACI,mCAAmC;AACnC,gDAAgD;AAKhD,4CAA4C;AAC5C,uDAAuD;AAEvD,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,mBAAmB,EAAE,sKAAsK;IACjM,mBAAmB,EAAE,eAAe;IACpC,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,iBAAiB;IACtC,mBAAmB,EAAE,SAAS;IAC9B,mBAAmB,EAAE,wBAAwB;IAC7C,mBAAmB,EAAE,SAAS;IAC9B,mBAAmB,EAAE,sBAAsB;IAC3C,mBAAmB,EAAE,sBAAsB;IAC3C,mBAAmB,EAAE,OAAO;IAC5B,mBAAmB,EAAE,uBAAuB;IAC5C,mBAAmB,EAAE,MAAM;IAC3B,mBAAmB,EAAE,KAAK;IAC1B,mBAAmB,EAAE,SAAS;IAC9B,mBAAmB,EAAE,MAAM;IAC3B,mBAAmB,EAAE,UAAU;IAC/B,mBAAmB,EAAE,UAAU;IAC/B,mBAAmB,EAAE,SAAS;IAC9B,mBAAmB,EAAE,WAAW;IAChC,mBAAmB,EAAE,OAAO;IAC5B,mBAAmB,EAAE,yBAAyB;IAC9C,mBAAmB,EAAE,mDAAmD;IACxE,mBAAmB,EAAE,gBAAgB;IACrC,mBAAmB,EAAE,UAAU;IAC/B,mBAAmB,EAAE,WAAW;IAChC,mBAAmB,EAAE,oBAAoB;IACzC,mBAAmB,EAAE,kBAAkB;IACvC,mBAAmB,EAAE,UAAU;IAC/B,mBAAmB,EAAE,MAAM;IAC3B,mBAAmB,EAAE,eAAe;IACpC,mBAAmB,EAAE,iBAAiB;IACtC,mBAAmB,EAAE,YAAY;IACjC,mBAAmB,EAAE,eAAe;IACpC,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,eAAe;IACpC,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,4DAA4D;IACjF,mBAAmB,EAAE,gBAAgB;IACrC,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,eAAe;IACpC,mBAAmB,EAAE,OAAO;IAC5B,mBAAmB,EAAE,mBAAmB;IACxC,mBAAmB,EAAE,yBAAyB;IAC9C,mBAAmB,EAAE,OAAO;IAC5B,mBAAmB,EAAE,cAAc;IACnC,mBAAmB,EAAE,SAAS;IAC9B,mBAAmB,EAAE,gBAAgB;IACrC,mBAAmB,EAAE,gBAAgB;IACrC,mBAAmB,EAAE,qBAAqB;IAC1C,mBAAmB,EAAE,eAAe;IACpC,mBAAmB,EAAE,OAAO;IAC5B,mBAAmB,EAAE,SAAS;IAC9B,mBAAmB,EAAE,4BAA4B;IACjD,mBAAmB,EAAE,uCAAuC;IAC5D,mBAAmB,EAAE,cAAc;IACnC,mBAAmB,EAAE,SAAS;IAC9B,mBAAmB,EAAE,uBAAuB;IAC5C,mBAAmB,EAAE,sBAAsB;CACtC,CAAC","sourcesContent":["\n // Do not modify this file by hand!\n // Re-generate this file by running lit-localize\n\n \n \n\n /* eslint-disable no-irregular-whitespace */\n /* eslint-disable @typescript-eslint/no-explicit-any */\n\n export const templates = {\n 's07f7935b16a64e43': `We appreciate you sending us your recognition, which will be forwarded to the responsible department. With this information, we consider your communication answered`,\n's080ffb79b58c5d88': `First surname`,\n's0b9a2919aa57a8c5': `Tax ID`,\n's10132a1f9423876e': `Not implemented`,\n's108402007fab3ec5': `English`,\n's1abaad4e0bafba35': `Error loading the form`,\n's1d7849c1bb306edd': `Catalan`,\n's1f26cb0a65a0c36c': `Personal information`,\n's22d3debb0fe19771': `Niris online support`,\n's238c3ed6d3ecc66a': `Close`,\n's26432c53ecd144e8': `Write your query here`,\n's2b9fde9a5739d2a0': `Name`,\n's36e2c319c2d9da17': `NIE`,\n's4177fe7f5d70fd33': `Go back`,\n's4ab9666eac463302': `Door`,\n's4d7be50524a42681': `Add file`,\n's54cd3139a4d69fbc': `Location`,\n's572f5ed1f68bfcbc': `NIF/DNI`,\n's5b2d32ceb3df3643': `Staircase`,\n's5ea9f272dd7f1da8': `Email`,\n's694b51e10128655f': `Write your phone number`,\n's6b344d8147866cc1': `Information, Queries, Complaints and Suggestions:`,\n's7bc25696aeb11d7f': `Contact person`,\n's7c953cf010581df3': `Passport`,\n's7cf6cfa5cdc725e3': `Accepted:`,\n's7fbca09fab401ca5': `Confirm your email`,\n's889d2b38e8eb16b1': `Write your email`,\n's88a1a97d95757131': `District`,\n's9802dd10b2c2f760': `Send`,\n'sa6e4de4116073f37': `Confirm email`,\n'saac6d40cd7052608': `Document Number`,\n'sac8b678ef5500421': `District*:`,\n'saddc930eb2efdca6': `Form created!`,\n'sae3f1a64e8f9c33d': `Search`,\n'sb044a1b221567c04': `Document Type`,\n'sb096f7a10f6e5904': `Street`,\n'sb1942b92592ac8cf': `We apologize for the inconvenience. Please try again later`,\n'sb6cacaf045a2fe90': `Online support`,\n'sc93268d68f7d69a4': `Number`,\n'sca318e1f09f7800c': `Year of birth`,\n'scbe4c6673872bda5': `Phone`,\n'sd08f47835375b0d2': `Response language`,\n'sd09a1a8863c8ae5b': `Request characteristics`,\n'sd1f44f1a8bc20e67': `Email`,\n'sd2bd4af48abb3752': `Company name`,\n'sd901c7baed664633': `Citizen`,\n'sd9e5b15f059a59ee': `Second surname`,\n'sdd366d6d0fe37812': `Company/Entity`,\n'sdf913cb738108398': `Emails do not match`,\n'se1674091f5776527': `Confirm email`,\n'se962e919c6552a74': `Floor`,\n'see4f9c33f20ae7e2': `Message`,\n'sf2d9bee1ddd749d4': `Write your message briefly`,\n'sf4533552651212ea': `Fields marked with (*) are mandatory.`,\n'sf6686b6b90cc7680': `Loading form`,\n'sf8824fc70d91da9e': `Spanish`,\n'sf9e6fbadcce256d0': `An error has occurred`,\n'sfbe83072001704e5': `The tracking code is`,\n };\n "]}
|
package/dist/index.js
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2019 Google LLC
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
+
*/
|
6
|
+
const t=globalThis,s=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),e=new WeakMap;class o{constructor(t,s,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o;const i=this.t;if(s&&void 0===t){const s=void 0!==i&&1===i.length;s&&(t=e.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&e.set(i,t))}return t}toString(){return this.cssText}}const n=(t,...s)=>{const e=1===t.length?t[0]:s.reduce(((s,i,e)=>s+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[e+1]),t[0]);return new o(e,t,i)},r=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let s="";for(const i of t.cssRules)s+=i.cssText;return(t=>new o("string"==typeof t?t:t+"",void 0,i))(s)})(t):t
|
7
|
+
/**
|
8
|
+
* @license
|
9
|
+
* Copyright 2017 Google LLC
|
10
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
11
|
+
*/,{is:h,defineProperty:c,getOwnPropertyDescriptor:a,getOwnPropertyNames:l,getOwnPropertySymbols:u,getPrototypeOf:d}=Object,f=globalThis,p=f.trustedTypes,v=p?p.emptyScript:"",g=f.reactiveElementPolyfillSupport,y=(t,s)=>t,w={toAttribute(t,s){switch(s){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},b=(t,s)=>!h(t,s),m={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:b};Symbol.metadata??=Symbol("metadata"),f.litPropertyMetadata??=new WeakMap;class S extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=m){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),e=this.getPropertyDescriptor(t,i,s);void 0!==e&&c(this.prototype,t,e)}}static getPropertyDescriptor(t,s,i){const{get:e,set:o}=a(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get(){return e?.call(this)},set(s){const n=e?.call(this);o.call(this,s),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??m}static _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;const t=d(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,s=[...l(t),...u(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)s.unshift(r(t))}else void 0!==t&&s.push(r(t));return s}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const i=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((i,e)=>{if(s)i.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const s of e){const e=document.createElement("style"),o=t.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=s.cssText,i.appendChild(e)}})(i,this.constructor.elementStyles),i}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:w).toAttribute(s,i.type);this._$Em=t,null==o?this.removeAttribute(e):this.setAttribute(e,o),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:w;this._$Em=e,this[e]=o.fromAttribute(s,t.type),this._$Em=null}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??b)(this[t],s))return;this.P(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[y("elementProperties")]=new Map,S[y("finalized")]=new Map,g?.({ReactiveElement:S}),(f.reactiveElementVersions??=[]).push("2.0.4");
|
12
|
+
/**
|
13
|
+
* @license
|
14
|
+
* Copyright 2017 Google LLC
|
15
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
16
|
+
*/
|
17
|
+
const $=globalThis,C=$.trustedTypes,A=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,E="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,M="?"+_,T=`<${M}>`,P=document,U=()=>P.createComment(""),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,x=Array.isArray,O="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,z=/>/g,L=RegExp(`>|${O}(?:([^\\s"'>=/]+)(${O}*=${O}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),R=/'/g,I=/"/g,D=/^(?:script|style|textarea|title)$/i,W=(t=>(s,...i)=>({_$litType$:t,strings:s,values:i}))(1),B=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),J=new WeakMap,Z=P.createTreeWalker(P,129);function q(t,s){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(s):s}const K=(t,s)=>{const i=t.length-1,e=[];let o,n=2===s?"<svg>":"",r=j;for(let s=0;s<i;s++){const i=t[s];let h,c,a=-1,l=0;for(;l<i.length&&(r.lastIndex=l,c=r.exec(i),null!==c);)l=r.lastIndex,r===j?"!--"===c[1]?r=N:void 0!==c[1]?r=z:void 0!==c[2]?(D.test(c[2])&&(o=RegExp("</"+c[2],"g")),r=L):void 0!==c[3]&&(r=L):r===L?">"===c[0]?(r=o??j,a=-1):void 0===c[1]?a=-2:(a=r.lastIndex-c[2].length,h=c[1],r=void 0===c[3]?L:'"'===c[3]?I:R):r===I||r===R?r=L:r===N||r===z?r=j:(r=L,o=void 0);const u=r===L&&t[s+1].startsWith("/>")?" ":"";n+=r===j?i+T:a>=0?(e.push(h),i.slice(0,a)+E+i.slice(a)+_+u):i+_+(-2===a?s:u)}return[q(t,n+(t[i]||"<?>")+(2===s?"</svg>":"")),e]};class V{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let o=0,n=0;const r=t.length-1,h=this.parts,[c,a]=K(t,s);if(this.el=V.createElement(c,i),Z.currentNode=this.el.content,2===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(e=Z.nextNode())&&h.length<r;){if(1===e.nodeType){if(e.hasAttributes())for(const t of e.getAttributeNames())if(t.endsWith(E)){const s=a[n++],i=e.getAttribute(t).split(_),r=/([.?@])?(.*)/.exec(s);h.push({type:1,index:o,name:r[2],strings:i,ctor:"."===r[1]?Y:"?"===r[1]?tt:"@"===r[1]?st:X}),e.removeAttribute(t)}else t.startsWith(_)&&(h.push({type:6,index:o}),e.removeAttribute(t));if(D.test(e.tagName)){const t=e.textContent.split(_),s=t.length-1;if(s>0){e.textContent=C?C.emptyScript:"";for(let i=0;i<s;i++)e.append(t[i],U()),Z.nextNode(),h.push({type:2,index:++o});e.append(t[s],U())}}}else if(8===e.nodeType)if(e.data===M)h.push({type:2,index:o});else{let t=-1;for(;-1!==(t=e.data.indexOf(_,t+1));)h.push({type:7,index:o}),t+=_.length-1}o++}}static createElement(t,s){const i=P.createElement("template");return i.innerHTML=t,i}}function F(t,s,i=t,e){if(s===B)return s;let o=void 0!==e?i._$Co?.[e]:i._$Cl;const n=k(s)?void 0:s._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),void 0===n?o=void 0:(o=new n(t),o._$AT(t,i,e)),void 0!==e?(i._$Co??=[])[e]=o:i._$Cl=o),void 0!==o&&(s=F(t,o._$AS(t,s.values),o,e)),s}class G{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,e=(t?.creationScope??P).importNode(s,!0);Z.currentNode=e;let o=Z.nextNode(),n=0,r=0,h=i[0];for(;void 0!==h;){if(n===h.index){let s;2===h.type?s=new Q(o,o.nextSibling,this,t):1===h.type?s=new h.ctor(o,h.name,h.strings,this,t):6===h.type&&(s=new it(o,this,t)),this._$AV.push(s),h=i[++r]}n!==h?.index&&(o=Z.nextNode(),n++)}return Z.currentNode=P,e}p(t){let s=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}}class Q{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,s,i,e){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return void 0!==s&&11===t?.nodeType&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=F(this,t,s),k(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==B&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>x(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==H&&k(this._$AH)?this._$AA.nextSibling.data=t:this.T(P.createTextNode(t)),this._$AH=t}$(t){const{values:s,_$litType$:i}=t,e="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=V.createElement(q(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===e)this._$AH.p(s);else{const t=new G(e,this),i=t.u(this.options);t.p(s),this.T(i),this._$AH=t}}_$AC(t){let s=J.get(t.strings);return void 0===s&&J.set(t.strings,s=new V(t)),s}k(t){x(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,e=0;for(const o of t)e===s.length?s.push(i=new Q(this.S(U()),this.S(U()),this,this.options)):i=s[e],i._$AI(o),e++;e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class X{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,o){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=H}_$AI(t,s=this,i,e){const o=this.strings;let n=!1;if(void 0===o)t=F(this,t,s,0),n=!k(t)||t!==this._$AH&&t!==B,n&&(this._$AH=t);else{const e=t;let r,h;for(t=o[0],r=0;r<o.length-1;r++)h=F(this,e[i+r],s,r),h===B&&(h=this._$AH[r]),n||=!k(h)||h!==this._$AH[r],h===H?t=H:t!==H&&(t+=(h??"")+o[r+1]),this._$AH[r]=h}n&&!e&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Y extends X{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}}class tt extends X{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}}class st extends X{constructor(t,s,i,e,o){super(t,s,i,e,o),this.type=5}_$AI(t,s=this){if((t=F(this,t,s,0)??H)===B)return;const i=this._$AH,e=t===H&&i!==H||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==H&&(i===H||e);e&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class it{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){F(this,t)}}const et=$.litHtmlPolyfillSupport;et?.(V,Q),($.litHtmlVersions??=[]).push("3.1.4");
|
18
|
+
/**
|
19
|
+
* @license
|
20
|
+
* Copyright 2017 Google LLC
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
22
|
+
*/
|
23
|
+
class ot extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,s,i)=>{const e=i?.renderBefore??s;let o=e._$litPart$;if(void 0===o){const t=i?.renderBefore??null;e._$litPart$=o=new Q(s.insertBefore(U(),t),t,void 0,i??{})}return o._$AI(t),o})(s,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return B}}ot._$litElement$=!0,ot.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ot});const nt=globalThis.litElementPolyfillSupport;nt?.({LitElement:ot}),(globalThis.litElementVersions??=[]).push("4.0.6");
|
24
|
+
/**
|
25
|
+
* @license
|
26
|
+
* Copyright 2017 Google LLC
|
27
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
28
|
+
*/
|
29
|
+
const rt={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:b},ht=(t=rt,s,i)=>{const{kind:e,metadata:o}=i;let n=globalThis.litPropertyMetadata.get(o);if(void 0===n&&globalThis.litPropertyMetadata.set(o,n=new Map),n.set(i.name,t),"accessor"===e){const{name:e}=i;return{set(i){const o=s.get.call(this);s.set.call(this,i),this.requestUpdate(e,o,t)},init(s){return void 0!==s&&this.P(e,void 0,t),s}}}if("setter"===e){const{name:e}=i;return function(i){const o=this[e];s.call(this,i),this.requestUpdate(e,o,t)}}throw Error("Unsupported decorator location: "+e)};function ct(t){return(s,i)=>"object"==typeof i?ht(t,s,i):((t,s,i)=>{const e=s.hasOwnProperty(i);return s.constructor.createProperty(i,e?{...t,wrapped:!0}:t),e?Object.getOwnPropertyDescriptor(s,i):void 0})(t,s,i)
|
30
|
+
/**
|
31
|
+
* @license
|
32
|
+
* Copyright 2021 Google LLC
|
33
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
34
|
+
*/}const at=(t,s,i)=>{let e=t[0];for(let o=1;o<t.length;o++)e+=s[i?i[o-1]:o-1],e+=t[o];return e},lt=t=>{return"string"!=typeof(s=t)&&"strTag"in s?at(t.strings,t.values):t;var s},ut="lit-localize-status";
|
35
|
+
/**
|
36
|
+
* @license
|
37
|
+
* Copyright 2021 Google LLC
|
38
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
39
|
+
*/
|
40
|
+
class dt{constructor(t){this.i=t=>{"ready"===t.detail.status&&this.host.requestUpdate()},this.host=t}hostConnected(){window.addEventListener(ut,this.i)}hostDisconnected(){window.removeEventListener(ut,this.i)}}const ft=t=>t.addController(new dt(t)),pt=()=>(t,s)=>(t.addInitializer(ft),t)
|
41
|
+
/**
|
42
|
+
* @license
|
43
|
+
* Copyright 2020 Google LLC
|
44
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
45
|
+
*/;class vt{constructor(){this.settled=!1,this.promise=new Promise(((t,s)=>{this._resolve=t,this._reject=s}))}resolve(t){this.settled=!0,this._resolve(t)}reject(t){this.settled=!0,this._reject(t)}}
|
46
|
+
/**
|
47
|
+
* @license
|
48
|
+
* Copyright 2014 Travis Webb
|
49
|
+
* SPDX-License-Identifier: MIT
|
50
|
+
*/const gt=[];for(let t=0;t<256;t++)gt[t]=(t>>4&15).toString(16)+(15&t).toString(16);
|
51
|
+
/**
|
52
|
+
* @license
|
53
|
+
* Copyright 2020 Google LLC
|
54
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
55
|
+
*/
|
56
|
+
const yt="",wt="h",bt="s";function mt(t,s){return(s?wt:bt)+function(t){let s=0,i=8997,e=0,o=33826,n=0,r=40164,h=0,c=52210;for(let a=0;a<t.length;a++)i^=t.charCodeAt(a),s=435*i,e=435*o,n=435*r,h=435*c,n+=i<<8,h+=o<<8,e+=s>>>16,i=65535&s,n+=e>>>16,o=65535&e,c=h+(n>>>16)&65535,r=65535&n;return gt[c>>8]+gt[255&c]+gt[r>>8]+gt[255&r]+gt[o>>8]+gt[255&o]+gt[i>>8]+gt[255&i]}("string"==typeof t?t:t.join(yt))}
|
57
|
+
/**
|
58
|
+
* @license
|
59
|
+
* Copyright 2021 Google LLC
|
60
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
61
|
+
*/const St=new WeakMap,$t=new Map;function Ct(t,s,i){if(t){const e=i?.id??function(t){const s="string"==typeof t?t:t.strings;let i=$t.get(s);void 0===i&&(i=mt(s,"string"!=typeof t&&!("strTag"in t)),$t.set(s,i));return i}
|
62
|
+
/**
|
63
|
+
* @license
|
64
|
+
* Copyright 2021 Google LLC
|
65
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
66
|
+
*/(s),o=t[e];if(o){if("string"==typeof o)return o;if("strTag"in o)return at(o.strings,s.values,o.values);{let t=St.get(o);return void 0===t&&(t=o.values,St.set(o,t)),{...o,values:t.map((t=>s.values[t]))}}}}return lt(s)}function At(t){window.dispatchEvent(new CustomEvent(ut,{detail:t}))}let Et,_t,Mt,Tt,Pt,Ut="",kt=new vt;kt.resolve();let xt=0;const Ot=t=>(function(t){if(Lt)throw new Error("lit-localize can only be configured once");zt=t,Lt=!0}(((t,s)=>Ct(Pt,t,s))),Ut=_t=t.sourceLocale,Mt=new Set(t.targetLocales),Mt.add(t.sourceLocale),Tt=t.loadLocale,{getLocale:jt,setLocale:Nt}),jt=()=>Ut,Nt=t=>{if(t===(Et??Ut))return kt.promise;if(!Mt||!Tt)throw new Error("Internal error");if(!Mt.has(t))throw new Error("Invalid locale code");xt++;const s=xt;Et=t,kt.settled&&(kt=new vt),At({status:"loading",loadingLocale:t});return(t===_t?Promise.resolve({templates:void 0}):Tt(t)).then((i=>{xt===s&&(Ut=t,Et=void 0,Pt=i.templates,At({status:"ready",readyLocale:t}),kt.resolve())}),(i=>{xt===s&&(At({status:"error",errorLocale:t,errorMessage:i.toString()}),kt.reject(i))})),kt.promise};
|
67
|
+
/**
|
68
|
+
* @license
|
69
|
+
* Copyright 2020 Google LLC
|
70
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
71
|
+
*/
|
72
|
+
let zt=lt,Lt=!1;const Rt="es",It=["ca","en"];export{H as T,ot as a,Ot as c,b as f,n as i,pt as l,zt as m,ct as n,Rt as s,It as t,B as w,W as x};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
import { LeafletMouseEvent } from 'leaflet';
|
3
|
+
declare class MapNiris extends LitElement {
|
4
|
+
private _marker;
|
5
|
+
private _map;
|
6
|
+
private _markerIcon;
|
7
|
+
domain: string;
|
8
|
+
private street;
|
9
|
+
private streetNumber;
|
10
|
+
private latitude;
|
11
|
+
private longitude;
|
12
|
+
constructor();
|
13
|
+
render(): import("lit-html").TemplateResult<1>;
|
14
|
+
onMapClick(e: LeafletMouseEvent): Promise<void>;
|
15
|
+
searchAddress(): Promise<void>;
|
16
|
+
firstUpdated(): void;
|
17
|
+
static styles: import("lit").CSSResult[];
|
18
|
+
}
|
19
|
+
declare global {
|
20
|
+
interface HTMLElementTagNameMap {
|
21
|
+
'map-niris': MapNiris;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
export {};
|
25
|
+
//# sourceMappingURL=map-niris.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"map-niris.d.ts","sourceRoot":"","sources":["../src/map-niris.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAC,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAO,iBAAiB,EAAc,MAAM,SAAS,CAAC;AAS7D,cAAM,QAAS,SAAQ,UAAU;IAC/B,OAAO,CAAC,OAAO,CAAiB;IAChC,OAAO,CAAC,IAAI,CAAO;IACnB,OAAO,CAAC,WAAW,CAAQ;IAED,MAAM,EAAE,MAAM,CAC4C;IAIpF,OAAO,CAAC,MAAM,CAAc;IAG5B,OAAO,CAAC,YAAY,CAAc;IAGlC,OAAO,CAAC,QAAQ,CAAc;IAG9B,OAAO,CAAC,SAAS,CAAc;;IAiBtB,MAAM;IAmET,UAAU,CAAC,CAAC,EAAE,iBAAiB;IA0B/B,aAAa;IAgBV,YAAY;IAerB,OAAgB,MAAM,4BAiCpB;CACH;AAID,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|