Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@maggioli-design-system/mds-accordion-timer

Package Overview
Dependencies
Maintainers
0
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maggioli-design-system/mds-accordion-timer - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

dist/collection/common/device.js

28

dist/cjs/mds-accordion-timer.cjs.entry.js

@@ -16,3 +16,5 @@ 'use strict';

this.clearIntervals = () => {
window.clearInterval(this.timeChecker);
if (typeof window !== 'undefined') {
window.clearInterval(this.timeChecker);
}
this.timeChecker = 0;

@@ -28,12 +30,14 @@ };

this.addTimeListener = () => {
this.timeChecker = window.setInterval(() => {
const progress = this.progress();
if (this.selectedItem !== undefined) {
this.selectedItem.progress = progress;
}
if (progress === 1) {
this.selectedItem.progress = 0;
this.startNext();
}
}, 100);
if (typeof window !== 'undefined') {
this.timeChecker = window.setInterval(() => {
const progress = this.progress();
if (this.selectedItem !== undefined) {
this.selectedItem.progress = progress;
}
if (progress === 1) {
this.selectedItem.progress = 0;
this.startNext();
}
}, 100);
}
};

@@ -143,3 +147,3 @@ this.beginningTime = () => {

render() {
return (index.h(index.Host, { key: '4b2e910a4c4099ecaaf7355c05c4d69a4e2e9d65' }, index.h("slot", { key: '737db21aa1b2b8cbbcf760b715feea1eef8ad5ed' })));
return (index.h(index.Host, { key: '9816683b4c8bacb97302685b1f1b45ff8ab1a209' }, index.h("slot", { key: 'b411a4cdbb6f133f871979df4eccd70433567b56' })));
}

@@ -146,0 +150,0 @@ get element() { return index.getElement(this); }

@@ -21,2 +21,18 @@ const hash = (s) => {

};
const removeAttributesIf = (element, attribute, valueCheck = 'true', cleanAttributes) => {
if (ifAttribute(element, attribute, valueCheck)) {
const attributesList = Array.isArray(cleanAttributes) ? cleanAttributes : [cleanAttributes];
attributesList.forEach(attributeToRemove => {
element.removeAttribute(attributeToRemove);
});
return true;
}
return false;
};
const ifAttribute = (element, attribute, valueCheck = 'true') => {
if (element.hasAttribute(attribute) && element.getAttribute(attribute) === valueCheck) {
return true;
}
return false;
};
const hashValue = (value) => `${value}-${hash(value)}`;

@@ -30,2 +46,2 @@ const hashRandomValue = (value) => {

};
export { unslugName, setAttributeIfEmpty, hashRandomValue, hashValue, };
export { hashRandomValue, hashValue, removeAttributesIf, setAttributeIfEmpty, ifAttribute, unslugName, };

@@ -34,3 +34,3 @@ export class KeyboardManager {

this.escapeCallback = callback;
if (window !== undefined) {
if (typeof window !== 'undefined') {
window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));

@@ -41,3 +41,3 @@ }

this.escapeCallback = () => { return; };
if (window !== undefined) {
if (typeof window !== 'undefined') {
window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));

@@ -44,0 +44,0 @@ }

@@ -9,3 +9,5 @@ import { Host, h } from "@stencil/core";

this.clearIntervals = () => {
window.clearInterval(this.timeChecker);
if (typeof window !== 'undefined') {
window.clearInterval(this.timeChecker);
}
this.timeChecker = 0;

@@ -21,12 +23,14 @@ };

this.addTimeListener = () => {
this.timeChecker = window.setInterval(() => {
const progress = this.progress();
if (this.selectedItem !== undefined) {
this.selectedItem.progress = progress;
}
if (progress === 1) {
this.selectedItem.progress = 0;
this.startNext();
}
}, 100);
if (typeof window !== 'undefined') {
this.timeChecker = window.setInterval(() => {
const progress = this.progress();
if (this.selectedItem !== undefined) {
this.selectedItem.progress = progress;
}
if (progress === 1) {
this.selectedItem.progress = 0;
this.startNext();
}
}, 100);
}
};

@@ -136,3 +140,3 @@ this.beginningTime = () => {

render() {
return (h(Host, { key: '4b2e910a4c4099ecaaf7355c05c4d69a4e2e9d65' }, h("slot", { key: '737db21aa1b2b8cbbcf760b715feea1eef8ad5ed' })));
return (h(Host, { key: '9816683b4c8bacb97302685b1f1b45ff8ab1a209' }, h("slot", { key: 'b411a4cdbb6f133f871979df4eccd70433567b56' })));
}

@@ -139,0 +143,0 @@ static get is() { return "mds-accordion-timer"; }

const fileExtensionsDictionary = {
'7z': { format: 'archive', description: 'Archivio compresso' },
ace: { format: 'archive', description: 'Archivio compresso' },
ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
dart: { format: 'code', description: 'Dart' },
db: { format: 'data', description: 'File di database' },
default: { format: 'attachment', description: 'Formato sconosciuto' },
dmg: { format: 'executable', description: 'Apple Disk Image' },
doc: { format: 'text', description: 'Documento Microsoft Word' },
docm: { format: 'text', description: 'Documento Microsoft Word' },
docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
eml: { format: 'email', description: 'E-mail di posta elettronica' },
eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
exe: { format: 'executable', description: 'File eseguibile Windows' },
flac: { format: 'audio', description: 'Audio non compresso' },
gif: { format: 'image', description: 'Immagine compressa', preview: true },
htm: { format: 'markup', description: 'Pagina web' },
heic: { format: 'image', description: 'High Efficiency Image File Format' },
html: { format: 'markup', description: 'Pagina web' },
jpe: { format: 'image', description: 'Immagine compressa', preview: true },
jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
jpg: { format: 'image', description: 'Immagine compressa', preview: true },
js: { format: 'code', description: 'JavaScript' },
json: { format: 'data', description: 'JavaScript Object Notation' },
jsx: { format: 'code', description: 'JavaScript' },
m2v: { format: 'video', description: 'Filmato SD' },
mp2: { format: 'audio', description: 'Audio compresso' },
mp3: { format: 'audio', description: 'Audio compresso' },
mp4: { format: 'video', description: 'Filmato HD' },
mp4v: { format: 'video', description: 'Filmato HD' },
mpeg: { format: 'video', description: 'Filmato SD' },
mpg4: { format: 'video', description: 'Filmato SD' },
mpg: { format: 'video', description: 'Filmato SD' },
mpga: { format: 'audio', description: 'Audio compresso' },
odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
odt: { format: 'text', description: 'File di testo LibreOffice' },
pdf: { format: 'document', description: 'Documento Adobe' },
php: { format: 'code', description: 'Hypertext Preprocessor' },
png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
rar: { format: 'archive', description: 'Archivio compresso' },
rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
shtml: { format: 'markup', description: 'Pagina web' },
svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
tar: { format: 'archive', description: 'Archivio non compresso' },
tiff: { format: 'image', description: 'Tag Image File Format' },
ts: { format: 'code', description: 'TypeScript' },
tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
txt: { format: 'text', description: 'Documento di testo non formattato' },
wav: { format: 'audio', description: 'Audio non compresso' },
webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
xar: { format: 'archive', description: 'Archivio compresso' },
xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
zip: { format: 'archive', description: 'Archivio compresso' },
'7z': { format: 'archive', description: 'compressedArchive' },
ace: { format: 'archive', description: 'compressedArchive' },
ai: { format: 'vector', description: 'fileAI' },
dart: { format: 'code', description: 'dart' },
db: { format: 'data', description: 'fileDB' },
default: { format: 'attachment', description: 'unknown' },
dmg: { format: 'executable', description: 'appleDiskImage' },
doc: { format: 'text', description: 'documentMS' },
docm: { format: 'text', description: 'documentMS' },
docx: { format: 'text', description: 'compressedDocumentMS' },
eml: { format: 'email', description: 'email' },
eps: { format: 'vector', description: 'fileEPS' },
exe: { format: 'executable', description: 'fileEXE' },
flac: { format: 'audio', description: 'uncompressedAudio' },
gif: { format: 'image', description: 'compressedImage', preview: true },
htm: { format: 'markup', description: 'documentWeb' },
heic: { format: 'image', description: 'imageHEFF' },
html: { format: 'markup', description: 'documentWeb' },
jpe: { format: 'image', description: 'compressedImage', preview: true },
jpeg: { format: 'image', description: 'compressedImage', preview: true },
jpg: { format: 'image', description: 'compressedImage', preview: true },
js: { format: 'code', description: 'fileJS' },
json: { format: 'data', description: 'fileJSON' },
jsx: { format: 'code', description: 'fileJS' },
m2v: { format: 'video', description: 'videoSD' },
mp2: { format: 'audio', description: 'compressedAudio' },
mp3: { format: 'audio', description: 'compressedAudio' },
mp4: { format: 'video', description: 'videoHD' },
mp4v: { format: 'video', description: 'videoHD' },
mpeg: { format: 'video', description: 'videoSD' },
mpg4: { format: 'video', description: 'videoSD' },
mpg: { format: 'video', description: 'videoSD' },
mpga: { format: 'audio', description: 'compressedAudio' },
odp: { format: 'slide', description: 'slideLO' },
ods: { format: 'spreadsheet', description: 'spreadsheetLO' },
odt: { format: 'text', description: 'documentLO' },
pdf: { format: 'document', description: 'documentAdobe' },
php: { format: 'code', description: 'filePHP' },
png: { format: 'image', description: 'imagePNG', preview: true },
ppt: { format: 'slide', description: 'slidePowerPoint' },
rar: { format: 'archive', description: 'compressedArchive' },
rtf: { format: 'text', description: 'documentRTF' },
sass: { format: 'code', description: 'fileSASS' },
shtml: { format: 'markup', description: 'documentWeb' },
svg: { format: 'vector', description: 'imageSVG', preview: true },
tar: { format: 'archive', description: 'uncompressedArchive' },
tiff: { format: 'image', description: 'imageTIFF' },
ts: { format: 'code', description: 'fileTS' },
tsx: { format: 'code', description: 'fileTSX' },
txt: { format: 'text', description: 'documentTXT' },
wav: { format: 'audio', description: 'uncompressedAudio' },
webp: { format: 'image', description: 'imageWEBP', preview: true },
xar: { format: 'archive', description: 'compressedArchive' },
xls: { format: 'spreadsheet', description: 'spreadsheetMS' },
xlsx: { format: 'spreadsheet', description: 'spreadsheetMS' },
zip: { format: 'archive', description: 'compressedArchive' },
};
// const fileExtensionsDictionary: FileExtenstion = {
// '7z': { format: 'archive', description: 'Archivio compresso' },
// ace: { format: 'archive', description: 'Archivio compresso' },
// ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
// dart: { format: 'code', description: 'Dart' },
// db: { format: 'data', description: 'File di database' },
// default: { format: 'attachment', description: 'Formato sconosciuto' },
// dmg: { format: 'executable', description: 'Apple Disk Image' },
// doc: { format: 'text', description: 'Documento Microsoft Word' },
// docm: { format: 'text', description: 'Documento Microsoft Word' },
// docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
// eml: { format: 'email', description: 'E-mail di posta elettronica' },
// eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
// exe: { format: 'executable', description: 'File eseguibile Windows' },
// flac: { format: 'audio', description: 'Audio non compresso' },
// gif: { format: 'image', description: 'Immagine compressa', preview: true },
// htm: { format: 'markup', description: 'Pagina web' },
// heic: { format: 'image', description: 'High Efficiency Image File Format' },
// html: { format: 'markup', description: 'Pagina web' },
// jpe: { format: 'image', description: 'Immagine compressa', preview: true },
// jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
// jpg: { format: 'image', description: 'Immagine compressa', preview: true },
// js: { format: 'code', description: 'JavaScript' },
// json: { format: 'data', description: 'JavaScript Object Notation' },
// jsx: { format: 'code', description: 'JavaScript' },
// m2v: { format: 'video', description: 'Filmato SD' },
// mp2: { format: 'audio', description: 'Audio compresso' },
// mp3: { format: 'audio', description: 'Audio compresso' },
// mp4: { format: 'video', description: 'Filmato HD' },
// mp4v: { format: 'video', description: 'Filmato HD' },
// mpeg: { format: 'video', description: 'Filmato SD' },
// mpg4: { format: 'video', description: 'Filmato SD' },
// mpg: { format: 'video', description: 'Filmato SD' },
// mpga: { format: 'audio', description: 'Audio compresso' },
// odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
// ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
// odt: { format: 'text', description: 'File di testo LibreOffice' },
// pdf: { format: 'document', description: 'Documento Adobe' },
// php: { format: 'code', description: 'Hypertext Preprocessor' },
// png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
// ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
// rar: { format: 'archive', description: 'Archivio compresso' },
// rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
// sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
// shtml: { format: 'markup', description: 'Pagina web' },
// svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
// tar: { format: 'archive', description: 'Archivio non compresso' },
// tiff: { format: 'image', description: 'Tag Image File Format' },
// ts: { format: 'code', description: 'TypeScript' },
// tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
// txt: { format: 'text', description: 'Documento di testo non formattato' },
// wav: { format: 'audio', description: 'Audio non compresso' },
// webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
// xar: { format: 'archive', description: 'Archivio compresso' },
// xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
// xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
// zip: { format: 'archive', description: 'Archivio compresso' },
// }
const genericMimeToExt = new Map([

@@ -60,0 +118,0 @@ ['image', ['.png', '.jpg', '.jpeg', '.tiff', '.webp', '.jpe', '.gif', '.heic']],

@@ -0,1 +1,60 @@

const typographyTagDictionary = [
'abbr',
'address',
'article',
'b',
'bdo',
'blockquote',
'cite',
'code',
'dd',
'del',
'details',
'dfn',
'div',
'dl',
'dt',
'em',
'figcaption',
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
'i',
'ins',
'kbd',
'label',
'legend',
'li',
'mark',
'ol',
'p',
'pre',
'q',
'rb',
'rt',
'ruby',
's',
'samp',
'small',
'span',
'strong',
'sub',
'summary',
'sup',
'time',
'u',
'ul',
'var',
];
const typographyHeadingTagDictionary = [
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
];
const truncateDictionary = [

@@ -6,2 +65,2 @@ 'all',

];
export { truncateDictionary, };
export { truncateDictionary, typographyHeadingTagDictionary, typographyTagDictionary, };

@@ -14,3 +14,5 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';

this.clearIntervals = () => {
window.clearInterval(this.timeChecker);
if (typeof window !== 'undefined') {
window.clearInterval(this.timeChecker);
}
this.timeChecker = 0;

@@ -26,12 +28,14 @@ };

this.addTimeListener = () => {
this.timeChecker = window.setInterval(() => {
const progress = this.progress();
if (this.selectedItem !== undefined) {
this.selectedItem.progress = progress;
}
if (progress === 1) {
this.selectedItem.progress = 0;
this.startNext();
}
}, 100);
if (typeof window !== 'undefined') {
this.timeChecker = window.setInterval(() => {
const progress = this.progress();
if (this.selectedItem !== undefined) {
this.selectedItem.progress = progress;
}
if (progress === 1) {
this.selectedItem.progress = 0;
this.startNext();
}
}, 100);
}
};

@@ -141,3 +145,3 @@ this.beginningTime = () => {

render() {
return (h(Host, { key: '4b2e910a4c4099ecaaf7355c05c4d69a4e2e9d65' }, h("slot", { key: '737db21aa1b2b8cbbcf760b715feea1eef8ad5ed' })));
return (h(Host, { key: '9816683b4c8bacb97302685b1f1b45ff8ab1a209' }, h("slot", { key: 'b411a4cdbb6f133f871979df4eccd70433567b56' })));
}

@@ -144,0 +148,0 @@ get element() { return this; }

{
"timestamp": "2024-11-25T17:16:08",
"timestamp": "2024-12-04T18:05:07",
"compiler": {

@@ -4,0 +4,0 @@ "name": "@stencil/core",

@@ -1,1 +0,1 @@

import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-af411208.js";var mdsAccordionTimerCss="@tailwind utilities;\n\n/**\n * @prop --mds-accordion-timer-progress-bar-color: Sets the color of the progress bar when the mds-accordion-timer-item is selected\n * @prop --mds-accordion-timer-progress-bar-background: Sets the background-color of the progress bar when the mds-accordion-timer-item is selected\n * @prop --mds-accordion-timer-color: Sets the text color of the component mds-accordion-timer-item\n * @prop --mds-accordion-timer-progress-bar-thickness: Sets thickness of the progress bar of the mds-accordion-timer-item\n * @prop --mds-accordion-timer-duration: Sets the transition duration of open/close animation of the mds-accordion-timer-item\n */\n\n:host {\n\n --mds-accordion-timer-progress-bar-color: rgb(var(--tone-neutral-03));\n --mds-accordion-timer-progress-bar-background: rgb(var(--tone-neutral-08));\n --mds-accordion-timer-progress-bar-thickness: 0.25rem;\n --mds-accordion-timer-duration: 500ms;\n\n /* comment */\n display: block;\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\n\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 0s);\n\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host {\n\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 0s);\n\n }\n }\n}\n";var MdsAccordionTimerStyle0=mdsAccordionTimerCss;var MdsAccordionTimer=function(){function t(t){var i=this;registerInstance(this,t);this.changeEvent=createEvent(this,"mdsAccordionTimerChange",7);this.currentDuration=0;this.clearIntervals=function(){window.clearInterval(i.timeChecker);i.timeChecker=0};this.remainingTime=function(){var t=i.selectedItemRemainingTime-((new Date).getTime()-i.timeStarted);return t>=0?t:0};this.progress=function(){return Math.abs(i.remainingTime()/i.currentDuration-1)};this.addTimeListener=function(){i.timeChecker=window.setInterval((function(){var t=i.progress();if(i.selectedItem!==undefined){i.selectedItem.progress=t}if(t===1){i.selectedItem.progress=0;i.startNext()}}),100)};this.beginningTime=function(){i.timeStarted=(new Date).getTime();return i.timeStarted};this.setSelectedItem=function(t){i.children.forEach((function(n,e){if(e===t){n.selected=true;n.duration?i.currentDuration=n.duration:i.currentDuration=i.duration;i.selectedItem=n;i.changeEvent.emit({index:e})}else{n.selected=false}}))};this.startNext=function(){var t=i.selectedItem.uuid+1>i.children.length-1?0:i.selectedItem.uuid+1;i.setSelectedItem(t);i.startTimer()};this.startTimer=function(){i.clearIntervals();i.time=i.beginningTime();i.selectedItemRemainingTime=i.currentDuration;i.addTimeListener()};this.playTimer=function(){i.beginningTime();i.addTimeListener()};this.pauseTimer=function(){i.clearIntervals();i.selectedItemRemainingTime=i.remainingTime()};this.stopTimer=function(){i.clearIntervals()};this.time=0;this.duration=1e4;this.paused=undefined}t.prototype.componentDidLoad=function(){var t=this;this.children=this.element.querySelectorAll("mds-accordion-timer-item");this.children.forEach((function(i,n){i.uuid=n;if(i.selected){i.duration?t.currentDuration=i.duration:t.currentDuration=t.duration;t.selectedItem=i}}));if(this.selectedItem!==undefined){this.startTimer()}if(this.paused){this.pauseTimer()}};t.prototype.disconnectedCallback=function(){this.stopTimer();this.clearIntervals()};t.prototype.onClickSelect=function(t){this.clearIntervals();if(this.selectedItem){this.selectedItem.progress=0}this.setSelectedItem(t.detail.uuid);this.startTimer();this.pauseTimer()};t.prototype.onSelect=function(t){this.clearIntervals();this.paused=false;if(this.selectedItem){this.selectedItem.progress=0}this.setSelectedItem(t.detail.uuid);this.startTimer()};t.prototype.onMouseEnterSelect=function(){if(this.paused){return}this.pauseTimer()};t.prototype.onMouseLeaveSelect=function(){if(this.paused){return}if(this.timeChecker===0){this.playTimer()}};t.prototype.handlePaused=function(t){if(t){this.pauseTimer();return}this.playTimer()};t.prototype.render=function(){return h(Host,{key:"4b2e910a4c4099ecaaf7355c05c4d69a4e2e9d65"},h("slot",{key:"737db21aa1b2b8cbbcf760b715feea1eef8ad5ed"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{paused:["handlePaused"]}},enumerable:false,configurable:true});return t}();MdsAccordionTimer.style=MdsAccordionTimerStyle0;export{MdsAccordionTimer as mds_accordion_timer};
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-af411208.js";var mdsAccordionTimerCss="@tailwind utilities;\n\n/**\n * @prop --mds-accordion-timer-progress-bar-color: Sets the color of the progress bar when the mds-accordion-timer-item is selected\n * @prop --mds-accordion-timer-progress-bar-background: Sets the background-color of the progress bar when the mds-accordion-timer-item is selected\n * @prop --mds-accordion-timer-color: Sets the text color of the component mds-accordion-timer-item\n * @prop --mds-accordion-timer-progress-bar-thickness: Sets thickness of the progress bar of the mds-accordion-timer-item\n * @prop --mds-accordion-timer-duration: Sets the transition duration of open/close animation of the mds-accordion-timer-item\n */\n\n:host {\n\n --mds-accordion-timer-progress-bar-color: rgb(var(--tone-neutral-03));\n --mds-accordion-timer-progress-bar-background: rgb(var(--tone-neutral-08));\n --mds-accordion-timer-progress-bar-thickness: 0.25rem;\n --mds-accordion-timer-duration: 500ms;\n\n /* comment */\n display: block;\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\n\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 0s);\n\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host {\n\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 0s);\n\n }\n }\n}\n";var MdsAccordionTimerStyle0=mdsAccordionTimerCss;var MdsAccordionTimer=function(){function t(t){var i=this;registerInstance(this,t);this.changeEvent=createEvent(this,"mdsAccordionTimerChange",7);this.currentDuration=0;this.clearIntervals=function(){if(typeof window!=="undefined"){window.clearInterval(i.timeChecker)}i.timeChecker=0};this.remainingTime=function(){var t=i.selectedItemRemainingTime-((new Date).getTime()-i.timeStarted);return t>=0?t:0};this.progress=function(){return Math.abs(i.remainingTime()/i.currentDuration-1)};this.addTimeListener=function(){if(typeof window!=="undefined"){i.timeChecker=window.setInterval((function(){var t=i.progress();if(i.selectedItem!==undefined){i.selectedItem.progress=t}if(t===1){i.selectedItem.progress=0;i.startNext()}}),100)}};this.beginningTime=function(){i.timeStarted=(new Date).getTime();return i.timeStarted};this.setSelectedItem=function(t){i.children.forEach((function(n,e){if(e===t){n.selected=true;n.duration?i.currentDuration=n.duration:i.currentDuration=i.duration;i.selectedItem=n;i.changeEvent.emit({index:e})}else{n.selected=false}}))};this.startNext=function(){var t=i.selectedItem.uuid+1>i.children.length-1?0:i.selectedItem.uuid+1;i.setSelectedItem(t);i.startTimer()};this.startTimer=function(){i.clearIntervals();i.time=i.beginningTime();i.selectedItemRemainingTime=i.currentDuration;i.addTimeListener()};this.playTimer=function(){i.beginningTime();i.addTimeListener()};this.pauseTimer=function(){i.clearIntervals();i.selectedItemRemainingTime=i.remainingTime()};this.stopTimer=function(){i.clearIntervals()};this.time=0;this.duration=1e4;this.paused=undefined}t.prototype.componentDidLoad=function(){var t=this;this.children=this.element.querySelectorAll("mds-accordion-timer-item");this.children.forEach((function(i,n){i.uuid=n;if(i.selected){i.duration?t.currentDuration=i.duration:t.currentDuration=t.duration;t.selectedItem=i}}));if(this.selectedItem!==undefined){this.startTimer()}if(this.paused){this.pauseTimer()}};t.prototype.disconnectedCallback=function(){this.stopTimer();this.clearIntervals()};t.prototype.onClickSelect=function(t){this.clearIntervals();if(this.selectedItem){this.selectedItem.progress=0}this.setSelectedItem(t.detail.uuid);this.startTimer();this.pauseTimer()};t.prototype.onSelect=function(t){this.clearIntervals();this.paused=false;if(this.selectedItem){this.selectedItem.progress=0}this.setSelectedItem(t.detail.uuid);this.startTimer()};t.prototype.onMouseEnterSelect=function(){if(this.paused){return}this.pauseTimer()};t.prototype.onMouseLeaveSelect=function(){if(this.paused){return}if(this.timeChecker===0){this.playTimer()}};t.prototype.handlePaused=function(t){if(t){this.pauseTimer();return}this.playTimer()};t.prototype.render=function(){return h(Host,{key:"9816683b4c8bacb97302685b1f1b45ff8ab1a209"},h("slot",{key:"b411a4cdbb6f133f871979df4eccd70433567b56"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{paused:["handlePaused"]}},enumerable:false,configurable:true});return t}();MdsAccordionTimer.style=MdsAccordionTimerStyle0;export{MdsAccordionTimer as mds_accordion_timer};

@@ -12,3 +12,5 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-af411208.js';

this.clearIntervals = () => {
window.clearInterval(this.timeChecker);
if (typeof window !== 'undefined') {
window.clearInterval(this.timeChecker);
}
this.timeChecker = 0;

@@ -24,12 +26,14 @@ };

this.addTimeListener = () => {
this.timeChecker = window.setInterval(() => {
const progress = this.progress();
if (this.selectedItem !== undefined) {
this.selectedItem.progress = progress;
}
if (progress === 1) {
this.selectedItem.progress = 0;
this.startNext();
}
}, 100);
if (typeof window !== 'undefined') {
this.timeChecker = window.setInterval(() => {
const progress = this.progress();
if (this.selectedItem !== undefined) {
this.selectedItem.progress = progress;
}
if (progress === 1) {
this.selectedItem.progress = 0;
this.startNext();
}
}, 100);
}
};

@@ -139,3 +143,3 @@ this.beginningTime = () => {

render() {
return (h(Host, { key: '4b2e910a4c4099ecaaf7355c05c4d69a4e2e9d65' }, h("slot", { key: '737db21aa1b2b8cbbcf760b715feea1eef8ad5ed' })));
return (h(Host, { key: '9816683b4c8bacb97302685b1f1b45ff8ab1a209' }, h("slot", { key: 'b411a4cdbb6f133f871979df4eccd70433567b56' })));
}

@@ -142,0 +146,0 @@ get element() { return getElement(this); }

@@ -1,1 +0,1 @@

import{p as e,b as o}from"./p-8dd37a13.js";export{s as setNonce}from"./p-8dd37a13.js";import{g as t}from"./p-e1255160.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((async e=>(await t(),o([["p-4dac14fb",[[1,"mds-accordion-timer",{duration:[514],paused:[516],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickSelect"],[0,"mdsAccordionTimerItemSelect","onSelect"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]],{paused:["handlePaused"]}]]]],e))));
import{p as e,b as o}from"./p-8dd37a13.js";export{s as setNonce}from"./p-8dd37a13.js";import{g as t}from"./p-e1255160.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((async e=>(await t(),o([["p-86e0d6b4",[[1,"mds-accordion-timer",{duration:[514],paused:[516],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickSelect"],[0,"mdsAccordionTimerItemSelect","onSelect"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]],{paused:["handlePaused"]}]]]],e))));

@@ -1,1 +0,1 @@

var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,c){function o(e){try{s(r.next(e))}catch(e){c(e)}}function u(e){try{s(r["throw"](e))}catch(e){c(e)}}function s(e){e.done?n(e.value):i(e.value).then(o,u)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,i,c,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return s([e,t])}}function s(u){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(r=1,i&&(c=u[0]&2?i["return"]:u[0]?i["throw"]||((c=i["return"])&&c.call(i),0):i.next)&&!(c=c.call(i,u[1])).done)return c;if(i=0,c)u=[u[0]&2,c.value];switch(u[0]){case 0:case 1:c=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(c=n.trys,c=c.length>0&&c[c.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!c||u[1]>c[0]&&u[1]<c[3])){n.label=u[1];break}if(u[0]===6&&n.label<c[1]){n.label=c[1];c=u;break}if(c&&n.label<c[2]){n.label=c[2];n.ops.push(u);break}if(c[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];i=0}finally{r=c=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-62c48ff3.system.js","./p-56ba5cbf.system.js"],(function(e,t){"use strict";var n,r,i;return{setters:[function(t){n=t.p;r=t.b;e("setNonce",t.s)},function(e){i=e.g}],execute:function(){var e=this;var c=function(){var e=t.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return n(r)};c().then((function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,i()];case 1:e.sent();return[2,r([["p-7ae27bb3.system",[[1,"mds-accordion-timer",{duration:[514],paused:[516],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickSelect"],[0,"mdsAccordionTimerItemSelect","onSelect"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]],{paused:["handlePaused"]}]]]],t)]}}))}))}))}}}));
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,c){function o(e){try{s(r.next(e))}catch(e){c(e)}}function u(e){try{s(r["throw"](e))}catch(e){c(e)}}function s(e){e.done?n(e.value):i(e.value).then(o,u)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,i,c,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return s([e,t])}}function s(u){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(r=1,i&&(c=u[0]&2?i["return"]:u[0]?i["throw"]||((c=i["return"])&&c.call(i),0):i.next)&&!(c=c.call(i,u[1])).done)return c;if(i=0,c)u=[u[0]&2,c.value];switch(u[0]){case 0:case 1:c=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(c=n.trys,c=c.length>0&&c[c.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!c||u[1]>c[0]&&u[1]<c[3])){n.label=u[1];break}if(u[0]===6&&n.label<c[1]){n.label=c[1];c=u;break}if(c&&n.label<c[2]){n.label=c[2];n.ops.push(u);break}if(c[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];i=0}finally{r=c=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-62c48ff3.system.js","./p-56ba5cbf.system.js"],(function(e,t){"use strict";var n,r,i;return{setters:[function(t){n=t.p;r=t.b;e("setNonce",t.s)},function(e){i=e.g}],execute:function(){var e=this;var c=function(){var e=t.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return n(r)};c().then((function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,i()];case 1:e.sent();return[2,r([["p-4eb3ec08.system",[[1,"mds-accordion-timer",{duration:[514],paused:[516],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickSelect"],[0,"mdsAccordionTimerItemSelect","onSelect"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]],{paused:["handlePaused"]}]]]],t)]}}))}))}))}}}));
{
"timestamp": "2024-11-25T17:16:08",
"timestamp": "2024-12-04T18:05:07",
"compiler": {

@@ -12,10 +12,11 @@ "name": "node",

"entries": 1,
"bundles": 92,
"bundles": 93,
"outputs": [
{
"name": "dist-collection",
"files": 44,
"files": 45,
"generatedFiles": [
"./dist/collection/common/aria.js",
"./dist/collection/common/date.js",
"./dist/collection/common/device.js",
"./dist/collection/common/file.js",

@@ -103,7 +104,7 @@ "./dist/collection/common/icon.js",

"./dist/mds-accordion-timer/p-25856ee2.system.js",
"./dist/mds-accordion-timer/p-4dac14fb.entry.js",
"./dist/mds-accordion-timer/p-4eb3ec08.system.entry.js",
"./dist/mds-accordion-timer/p-50ea2036.system.js",
"./dist/mds-accordion-timer/p-56ba5cbf.system.js",
"./dist/mds-accordion-timer/p-62c48ff3.system.js",
"./dist/mds-accordion-timer/p-7ae27bb3.system.entry.js",
"./dist/mds-accordion-timer/p-86e0d6b4.entry.js",
"./dist/mds-accordion-timer/p-8dd37a13.js",

@@ -115,7 +116,7 @@ "./dist/mds-accordion-timer/p-e1255160.js",

"./www/build/p-25856ee2.system.js",
"./www/build/p-4dac14fb.entry.js",
"./www/build/p-4eb3ec08.system.entry.js",
"./www/build/p-50ea2036.system.js",
"./www/build/p-56ba5cbf.system.js",
"./www/build/p-62c48ff3.system.js",
"./www/build/p-7ae27bb3.system.entry.js",
"./www/build/p-86e0d6b4.entry.js",
"./www/build/p-8dd37a13.js",

@@ -155,8 +156,8 @@ "./www/build/p-e1255160.js"

],
"bundleId": "p-4dac14fb",
"fileName": "p-4dac14fb.entry.js",
"bundleId": "p-86e0d6b4",
"fileName": "p-86e0d6b4.entry.js",
"imports": [
"p-8dd37a13.js"
],
"originalByteSize": 6224
"originalByteSize": 6394
}

@@ -175,3 +176,3 @@ ],

],
"originalByteSize": 6228
"originalByteSize": 6398
}

@@ -190,3 +191,3 @@ ],

],
"originalByteSize": 6228
"originalByteSize": 6398
}

@@ -200,8 +201,8 @@ ],

],
"bundleId": "p-7ae27bb3.system",
"fileName": "p-7ae27bb3.system.entry.js",
"bundleId": "p-4eb3ec08.system",
"fileName": "p-4eb3ec08.system.entry.js",
"imports": [
"p-62c48ff3.system.js"
],
"originalByteSize": 7314
"originalByteSize": 7508
}

@@ -220,3 +221,3 @@ ],

],
"originalByteSize": 6275
"originalByteSize": 6445
}

@@ -602,2 +603,3 @@ ]

"./src/common/date.ts": [],
"./src/common/device.ts": [],
"./src/common/file.ts": [],

@@ -604,0 +606,0 @@ "./src/common/icon.ts": [],

declare const unslugName: (name: string) => string;
declare const setAttributeIfEmpty: (element: HTMLElement, attribute: string, value: string) => string;
declare const removeAttributesIf: (element: HTMLElement, attribute: string, valueCheck: string | undefined, cleanAttributes: string | string[]) => boolean;
declare const ifAttribute: (element: HTMLElement, attribute: string, valueCheck?: string) => boolean;
declare const hashValue: (value: string) => string;
declare const hashRandomValue: (value?: string) => string;
export { unslugName, setAttributeIfEmpty, hashRandomValue, hashValue, };
export { hashRandomValue, hashValue, removeAttributesIf, setAttributeIfEmpty, ifAttribute, unslugName, };

@@ -0,2 +1,4 @@

declare const typographyTagDictionary: string[];
declare const typographyHeadingTagDictionary: string[];
declare const truncateDictionary: string[];
export { truncateDictionary, };
export { truncateDictionary, typographyHeadingTagDictionary, typographyTagDictionary, };

@@ -0,1 +1,3 @@

export type TypographyTagType = 'abbr' | 'address' | 'article' | 'b' | 'bdo' | 'blockquote' | 'cite' | 'code' | 'dd' | 'del' | 'details' | 'dfn' | 'div' | 'dl' | 'dt' | 'em' | 'figcaption' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'i' | 'ins' | 'kbd' | 'label' | 'legend' | 'li' | 'mark' | 'ol' | 'p' | 'pre' | 'q' | 'rb' | 'rt' | 'ruby' | 's' | 'samp' | 'small' | 'span' | 'strong' | 'sub' | 'summary' | 'sup' | 'time' | 'u' | 'ul' | 'var';
export type TypographyHeadingTagType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
export type TypographyTruncateType = 'all' | 'none' | 'word';
{
"timestamp": "2024-11-25T16:00:58",
"timestamp": "2024-12-04T15:30:05",
"compiler": {

@@ -565,2 +565,7 @@ "name": "@stencil/core",

},
"src/type/text.ts::TypographyHeadingTagType": {
"declaration": "export type TypographyHeadingTagType =\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'",
"docstring": "",
"path": "src/type/text.ts"
},
"src/components/mds-stepper-bar/meta/event-detail.ts::MdsStepperBarEventDetail": {

@@ -597,3 +602,3 @@ "declaration": "export interface MdsStepperBarEventDetail {\n step: number\n value: string\n}",

"src/components/mds-table-header-cell/meta/types.ts::SortDirectionType": {
"declaration": "export type SortDirectionType =\n | 'asc'\n | 'desc'\n | 'none'",
"declaration": "export type SortDirectionType =\n | 'ascending'\n | 'descending'\n | 'none'",
"docstring": "",

@@ -607,6 +612,6 @@ "path": "src/components/mds-table-header-cell/meta/types.ts"

},
"src/components/mds-text/meta/types.ts::TypographyTagType": {
"src/type/text.ts::TypographyTagType": {
"declaration": "export type TypographyTagType =\n | 'abbr'\n | 'address'\n | 'article'\n | 'b'\n | 'bdo'\n | 'blockquote'\n | 'cite'\n | 'code'\n | 'dd'\n | 'del'\n | 'details'\n | 'dfn'\n | 'div'\n | 'dl'\n | 'dt'\n | 'em'\n | 'figcaption'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'i'\n | 'ins'\n | 'kbd'\n | 'label'\n | 'legend'\n | 'li'\n | 'mark'\n | 'ol'\n | 'p'\n | 'pre'\n | 'q'\n | 'rb'\n | 'rt'\n | 'ruby'\n | 's'\n | 'samp'\n | 'small'\n | 'span'\n | 'strong'\n | 'sub'\n | 'summary'\n | 'sup'\n | 'time'\n | 'u'\n | 'ul'\n | 'var'",
"docstring": "",
"path": "src/components/mds-text/meta/types.ts"
"path": "src/type/text.ts"
},

@@ -613,0 +618,0 @@ "src/type/variant.ts::ThemeLuminanceVariantType": {

{
"name": "@maggioli-design-system/mds-accordion-timer",
"version": "4.0.0",
"version": "4.0.1",
"description": "mds-accordion-timer is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScript framework you are using.",

@@ -27,3 +27,3 @@ "main": "dist/index.cjs.js",

"dependencies": {
"@maggioli-design-system/mds-accordion-timer-item": "4.0.0",
"@maggioli-design-system/mds-accordion-timer-item": "4.0.1",
"@maggioli-design-system/styles": "15.5.0",

@@ -30,0 +30,0 @@ "@stencil/core": "4.22.2"

@@ -23,2 +23,20 @@ const hash = (s: string): string => {

const removeAttributesIf = (element: HTMLElement, attribute: string, valueCheck: string = 'true', cleanAttributes: string | string[]): boolean => {
if (ifAttribute(element, attribute, valueCheck)) {
const attributesList = Array.isArray(cleanAttributes) ? cleanAttributes : [cleanAttributes]
attributesList.forEach(attributeToRemove => {
element.removeAttribute(attributeToRemove)
})
return true
}
return false
}
const ifAttribute = (element: HTMLElement, attribute: string, valueCheck: string = 'true'): boolean => {
if (element.hasAttribute(attribute) && element.getAttribute(attribute) === valueCheck) {
return true
}
return false
}
const hashValue = (value: string): string => `${value}-${hash(value)}`

@@ -36,6 +54,8 @@

export {
unslugName,
setAttributeIfEmpty,
hashRandomValue,
hashValue,
removeAttributesIf,
setAttributeIfEmpty,
ifAttribute,
unslugName,
}

@@ -39,3 +39,3 @@ export class KeyboardManager {

this.escapeCallback = callback
if (window !== undefined) {
if (typeof window !== 'undefined') {
window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))

@@ -47,3 +47,3 @@ }

this.escapeCallback = () => { return }
if (window !== undefined) {
if (typeof window !== 'undefined') {
window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))

@@ -50,0 +50,0 @@ }

@@ -14,60 +14,119 @@ import { FileFormat } from '@type/variant-file-format'

const fileExtensionsDictionary: FileExtenstion = {
'7z': { format: 'archive', description: 'Archivio compresso' },
ace: { format: 'archive', description: 'Archivio compresso' },
ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
dart: { format: 'code', description: 'Dart' },
db: { format: 'data', description: 'File di database' },
default: { format: 'attachment', description: 'Formato sconosciuto' },
dmg: { format: 'executable', description: 'Apple Disk Image' },
doc: { format: 'text', description: 'Documento Microsoft Word' },
docm: { format: 'text', description: 'Documento Microsoft Word' },
docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
eml: { format: 'email', description: 'E-mail di posta elettronica' },
eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
exe: { format: 'executable', description: 'File eseguibile Windows' },
flac: { format: 'audio', description: 'Audio non compresso' },
gif: { format: 'image', description: 'Immagine compressa', preview: true },
htm: { format: 'markup', description: 'Pagina web' },
heic: { format: 'image', description: 'High Efficiency Image File Format' },
html: { format: 'markup', description: 'Pagina web' },
jpe: { format: 'image', description: 'Immagine compressa', preview: true },
jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
jpg: { format: 'image', description: 'Immagine compressa', preview: true },
js: { format: 'code', description: 'JavaScript' },
json: { format: 'data', description: 'JavaScript Object Notation' },
jsx: { format: 'code', description: 'JavaScript' },
m2v: { format: 'video', description: 'Filmato SD' },
mp2: { format: 'audio', description: 'Audio compresso' },
mp3: { format: 'audio', description: 'Audio compresso' },
mp4: { format: 'video', description: 'Filmato HD' },
mp4v: { format: 'video', description: 'Filmato HD' },
mpeg: { format: 'video', description: 'Filmato SD' },
mpg4: { format: 'video', description: 'Filmato SD' },
mpg: { format: 'video', description: 'Filmato SD' },
mpga: { format: 'audio', description: 'Audio compresso' },
odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
odt: { format: 'text', description: 'File di testo LibreOffice' },
pdf: { format: 'document', description: 'Documento Adobe' },
php: { format: 'code', description: 'Hypertext Preprocessor' },
png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
rar: { format: 'archive', description: 'Archivio compresso' },
rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
shtml: { format: 'markup', description: 'Pagina web' },
svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
tar: { format: 'archive', description: 'Archivio non compresso' },
tiff: { format: 'image', description: 'Tag Image File Format' },
ts: { format: 'code', description: 'TypeScript' },
tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
txt: { format: 'text', description: 'Documento di testo non formattato' },
wav: { format: 'audio', description: 'Audio non compresso' },
webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
xar: { format: 'archive', description: 'Archivio compresso' },
xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
zip: { format: 'archive', description: 'Archivio compresso' },
'7z': { format: 'archive', description: 'compressedArchive' },
ace: { format: 'archive', description: 'compressedArchive' },
ai: { format: 'vector', description: 'fileAI' },
dart: { format: 'code', description: 'dart' },
db: { format: 'data', description: 'fileDB' },
default: { format: 'attachment', description: 'unknown' },
dmg: { format: 'executable', description: 'appleDiskImage' },
doc: { format: 'text', description: 'documentMS' },
docm: { format: 'text', description: 'documentMS' },
docx: { format: 'text', description: 'compressedDocumentMS' },
eml: { format: 'email', description: 'email' },
eps: { format: 'vector', description: 'fileEPS' },
exe: { format: 'executable', description: 'fileEXE' },
flac: { format: 'audio', description: 'uncompressedAudio' },
gif: { format: 'image', description: 'compressedImage', preview: true },
htm: { format: 'markup', description: 'documentWeb' },
heic: { format: 'image', description: 'imageHEFF' },
html: { format: 'markup', description: 'documentWeb' },
jpe: { format: 'image', description: 'compressedImage', preview: true },
jpeg: { format: 'image', description: 'compressedImage', preview: true },
jpg: { format: 'image', description: 'compressedImage', preview: true },
js: { format: 'code', description: 'fileJS' },
json: { format: 'data', description: 'fileJSON' },
jsx: { format: 'code', description: 'fileJS' },
m2v: { format: 'video', description: 'videoSD' },
mp2: { format: 'audio', description: 'compressedAudio' },
mp3: { format: 'audio', description: 'compressedAudio' },
mp4: { format: 'video', description: 'videoHD' },
mp4v: { format: 'video', description: 'videoHD' },
mpeg: { format: 'video', description: 'videoSD' },
mpg4: { format: 'video', description: 'videoSD' },
mpg: { format: 'video', description: 'videoSD' },
mpga: { format: 'audio', description: 'compressedAudio' },
odp: { format: 'slide', description: 'slideLO' },
ods: { format: 'spreadsheet', description: 'spreadsheetLO' },
odt: { format: 'text', description: 'documentLO' },
pdf: { format: 'document', description: 'documentAdobe' },
php: { format: 'code', description: 'filePHP' },
png: { format: 'image', description: 'imagePNG', preview: true },
ppt: { format: 'slide', description: 'slidePowerPoint' },
rar: { format: 'archive', description: 'compressedArchive' },
rtf: { format: 'text', description: 'documentRTF' },
sass: { format: 'code', description: 'fileSASS' },
shtml: { format: 'markup', description: 'documentWeb' },
svg: { format: 'vector', description: 'imageSVG', preview: true },
tar: { format: 'archive', description: 'uncompressedArchive' },
tiff: { format: 'image', description: 'imageTIFF' },
ts: { format: 'code', description: 'fileTS' },
tsx: { format: 'code', description: 'fileTSX' },
txt: { format: 'text', description: 'documentTXT' },
wav: { format: 'audio', description: 'uncompressedAudio' },
webp: { format: 'image', description: 'imageWEBP', preview: true },
xar: { format: 'archive', description: 'compressedArchive' },
xls: { format: 'spreadsheet', description: 'spreadsheetMS' },
xlsx: { format: 'spreadsheet', description: 'spreadsheetMS' },
zip: { format: 'archive', description: 'compressedArchive' },
}
// const fileExtensionsDictionary: FileExtenstion = {
// '7z': { format: 'archive', description: 'Archivio compresso' },
// ace: { format: 'archive', description: 'Archivio compresso' },
// ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
// dart: { format: 'code', description: 'Dart' },
// db: { format: 'data', description: 'File di database' },
// default: { format: 'attachment', description: 'Formato sconosciuto' },
// dmg: { format: 'executable', description: 'Apple Disk Image' },
// doc: { format: 'text', description: 'Documento Microsoft Word' },
// docm: { format: 'text', description: 'Documento Microsoft Word' },
// docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
// eml: { format: 'email', description: 'E-mail di posta elettronica' },
// eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
// exe: { format: 'executable', description: 'File eseguibile Windows' },
// flac: { format: 'audio', description: 'Audio non compresso' },
// gif: { format: 'image', description: 'Immagine compressa', preview: true },
// htm: { format: 'markup', description: 'Pagina web' },
// heic: { format: 'image', description: 'High Efficiency Image File Format' },
// html: { format: 'markup', description: 'Pagina web' },
// jpe: { format: 'image', description: 'Immagine compressa', preview: true },
// jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
// jpg: { format: 'image', description: 'Immagine compressa', preview: true },
// js: { format: 'code', description: 'JavaScript' },
// json: { format: 'data', description: 'JavaScript Object Notation' },
// jsx: { format: 'code', description: 'JavaScript' },
// m2v: { format: 'video', description: 'Filmato SD' },
// mp2: { format: 'audio', description: 'Audio compresso' },
// mp3: { format: 'audio', description: 'Audio compresso' },
// mp4: { format: 'video', description: 'Filmato HD' },
// mp4v: { format: 'video', description: 'Filmato HD' },
// mpeg: { format: 'video', description: 'Filmato SD' },
// mpg4: { format: 'video', description: 'Filmato SD' },
// mpg: { format: 'video', description: 'Filmato SD' },
// mpga: { format: 'audio', description: 'Audio compresso' },
// odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
// ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
// odt: { format: 'text', description: 'File di testo LibreOffice' },
// pdf: { format: 'document', description: 'Documento Adobe' },
// php: { format: 'code', description: 'Hypertext Preprocessor' },
// png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
// ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
// rar: { format: 'archive', description: 'Archivio compresso' },
// rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
// sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
// shtml: { format: 'markup', description: 'Pagina web' },
// svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
// tar: { format: 'archive', description: 'Archivio non compresso' },
// tiff: { format: 'image', description: 'Tag Image File Format' },
// ts: { format: 'code', description: 'TypeScript' },
// tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
// txt: { format: 'text', description: 'Documento di testo non formattato' },
// wav: { format: 'audio', description: 'Audio non compresso' },
// webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
// xar: { format: 'archive', description: 'Archivio compresso' },
// xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
// xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
// zip: { format: 'archive', description: 'Archivio compresso' },
// }
const genericMimeToExt: Map<string, string[]> = new Map([

@@ -74,0 +133,0 @@ ['image', ['.png', '.jpg', '.jpeg', '.tiff', '.webp', '.jpe', '.gif', '.heic']],

@@ -0,1 +1,63 @@

const typographyTagDictionary = [
'abbr',
'address',
'article',
'b',
'bdo',
'blockquote',
'cite',
'code',
'dd',
'del',
'details',
'dfn',
'div',
'dl',
'dt',
'em',
'figcaption',
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
'i',
'ins',
'kbd',
'label',
'legend',
'li',
'mark',
'ol',
'p',
'pre',
'q',
'rb',
'rt',
'ruby',
's',
'samp',
'small',
'span',
'strong',
'sub',
'summary',
'sup',
'time',
'u',
'ul',
'var',
]
const typographyHeadingTagDictionary = [
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
]
const truncateDictionary = [

@@ -9,2 +71,4 @@ 'all',

truncateDictionary,
typographyHeadingTagDictionary,
typographyTagDictionary,
}

@@ -38,2 +38,3 @@ [

"mgg/ai-brain-outline",
"mgg/ai-human",
"mgg/ai-message",

@@ -115,2 +116,4 @@ "mgg/ai-outline",

"mgg/field",
"mgg/file-certificate",
"mgg/file-clock",
"mgg/file-download",

@@ -137,2 +140,3 @@ "mgg/file-folder-tree",

"mgg/fit-vertical",
"mgg/fontawesome-torii-gate",
"mgg/forwarded-with-a-single-sending",

@@ -147,2 +151,3 @@ "mgg/fullscreen-on-alt",

"mgg/google-check-small",
"mgg/google-drag-pan",
"mgg/google-experiment",

@@ -327,2 +332,3 @@ "mgg/google-face-retouching-off",

"mi/baseline/broken-image",
"mi/baseline/call",
"mi/baseline/cancel",

@@ -337,2 +343,3 @@ "mi/baseline/category",

"mi/baseline/dark-mode",
"mi/baseline/delete",
"mi/baseline/description",

@@ -369,2 +376,3 @@ "mi/baseline/directions-run",

"mi/baseline/route",
"mi/baseline/send",
"mi/baseline/settings",

@@ -371,0 +379,0 @@ "mi/baseline/sports",

@@ -26,2 +26,3 @@ [

"mgg/ai-brain",
"mgg/ai-human",
"mgg/ai-message",

@@ -103,2 +104,4 @@ "mgg/ai-outline",

"mgg/field",
"mgg/file-certificate",
"mgg/file-clock",
"mgg/file-download",

@@ -125,2 +128,3 @@ "mgg/file-folder-tree-open",

"mgg/fit-vertical",
"mgg/fontawesome-torii-gate",
"mgg/forwarded-with-a-single-sending",

@@ -135,2 +139,3 @@ "mgg/fullscreen-on-alt",

"mgg/google-check-small",
"mgg/google-drag-pan",
"mgg/google-experiment",

@@ -137,0 +142,0 @@ "mgg/google-face-retouching-off",

@@ -0,1 +1,60 @@

export type TypographyTagType =
| 'abbr'
| 'address'
| 'article'
| 'b'
| 'bdo'
| 'blockquote'
| 'cite'
| 'code'
| 'dd'
| 'del'
| 'details'
| 'dfn'
| 'div'
| 'dl'
| 'dt'
| 'em'
| 'figcaption'
| 'h1'
| 'h2'
| 'h3'
| 'h4'
| 'h5'
| 'h6'
| 'i'
| 'ins'
| 'kbd'
| 'label'
| 'legend'
| 'li'
| 'mark'
| 'ol'
| 'p'
| 'pre'
| 'q'
| 'rb'
| 'rt'
| 'ruby'
| 's'
| 'samp'
| 'small'
| 'span'
| 'strong'
| 'sub'
| 'summary'
| 'sup'
| 'time'
| 'u'
| 'ul'
| 'var'
export type TypographyHeadingTagType =
| 'h1'
| 'h2'
| 'h3'
| 'h4'
| 'h5'
| 'h6'
export type TypographyTruncateType =

@@ -2,0 +61,0 @@ | 'all'

@@ -1,1 +0,1 @@

import{p as e,b as o}from"./p-8dd37a13.js";export{s as setNonce}from"./p-8dd37a13.js";import{g as t}from"./p-e1255160.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((async e=>(await t(),o([["p-4dac14fb",[[1,"mds-accordion-timer",{duration:[514],paused:[516],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickSelect"],[0,"mdsAccordionTimerItemSelect","onSelect"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]],{paused:["handlePaused"]}]]]],e))));
import{p as e,b as o}from"./p-8dd37a13.js";export{s as setNonce}from"./p-8dd37a13.js";import{g as t}from"./p-e1255160.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((async e=>(await t(),o([["p-86e0d6b4",[[1,"mds-accordion-timer",{duration:[514],paused:[516],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickSelect"],[0,"mdsAccordionTimerItemSelect","onSelect"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]],{paused:["handlePaused"]}]]]],e))));

@@ -1,1 +0,1 @@

var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,c){function o(e){try{s(r.next(e))}catch(e){c(e)}}function u(e){try{s(r["throw"](e))}catch(e){c(e)}}function s(e){e.done?n(e.value):i(e.value).then(o,u)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,i,c,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return s([e,t])}}function s(u){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(r=1,i&&(c=u[0]&2?i["return"]:u[0]?i["throw"]||((c=i["return"])&&c.call(i),0):i.next)&&!(c=c.call(i,u[1])).done)return c;if(i=0,c)u=[u[0]&2,c.value];switch(u[0]){case 0:case 1:c=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(c=n.trys,c=c.length>0&&c[c.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!c||u[1]>c[0]&&u[1]<c[3])){n.label=u[1];break}if(u[0]===6&&n.label<c[1]){n.label=c[1];c=u;break}if(c&&n.label<c[2]){n.label=c[2];n.ops.push(u);break}if(c[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];i=0}finally{r=c=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-62c48ff3.system.js","./p-56ba5cbf.system.js"],(function(e,t){"use strict";var n,r,i;return{setters:[function(t){n=t.p;r=t.b;e("setNonce",t.s)},function(e){i=e.g}],execute:function(){var e=this;var c=function(){var e=t.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return n(r)};c().then((function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,i()];case 1:e.sent();return[2,r([["p-7ae27bb3.system",[[1,"mds-accordion-timer",{duration:[514],paused:[516],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickSelect"],[0,"mdsAccordionTimerItemSelect","onSelect"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]],{paused:["handlePaused"]}]]]],t)]}}))}))}))}}}));
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,c){function o(e){try{s(r.next(e))}catch(e){c(e)}}function u(e){try{s(r["throw"](e))}catch(e){c(e)}}function s(e){e.done?n(e.value):i(e.value).then(o,u)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,i,c,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return s([e,t])}}function s(u){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(r=1,i&&(c=u[0]&2?i["return"]:u[0]?i["throw"]||((c=i["return"])&&c.call(i),0):i.next)&&!(c=c.call(i,u[1])).done)return c;if(i=0,c)u=[u[0]&2,c.value];switch(u[0]){case 0:case 1:c=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(c=n.trys,c=c.length>0&&c[c.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!c||u[1]>c[0]&&u[1]<c[3])){n.label=u[1];break}if(u[0]===6&&n.label<c[1]){n.label=c[1];c=u;break}if(c&&n.label<c[2]){n.label=c[2];n.ops.push(u);break}if(c[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];i=0}finally{r=c=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-62c48ff3.system.js","./p-56ba5cbf.system.js"],(function(e,t){"use strict";var n,r,i;return{setters:[function(t){n=t.p;r=t.b;e("setNonce",t.s)},function(e){i=e.g}],execute:function(){var e=this;var c=function(){var e=t.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return n(r)};c().then((function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,i()];case 1:e.sent();return[2,r([["p-4eb3ec08.system",[[1,"mds-accordion-timer",{duration:[514],paused:[516],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickSelect"],[0,"mdsAccordionTimerItemSelect","onSelect"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]],{paused:["handlePaused"]}]]]],t)]}}))}))}))}}}));

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc