@maggioli-design-system/mds-accordion-timer 2.2.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-6821dfbc.js → index-d958b818.js} +56 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/common/keyboard-manager.js +40 -0
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +3 -3
- package/dist/collection/dictionary/icon.js +3 -1
- package/dist/collection/dictionary/typography.js +5 -1
- package/dist/components/mds-accordion-timer.js +1 -1
- package/dist/esm/{index-5ca2b649.js → index-22b73a3a.js} +56 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/mds-accordion-timer.entry.js +1 -1
- package/dist/esm/mds-accordion-timer.js +4 -4
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.js +1 -1
- package/dist/mds-accordion-timer/mds-accordion-timer.esm.js +1 -1
- package/dist/mds-accordion-timer/mds-accordion-timer.js +1 -1
- package/dist/mds-accordion-timer/{p-e66497f2.system.entry.js → p-118bf4e5.system.entry.js} +1 -1
- package/dist/mds-accordion-timer/p-c6d75694.system.js +1 -0
- package/dist/mds-accordion-timer/{p-f0c71bfc.entry.js → p-f44da2be.entry.js} +1 -1
- package/dist/stats.json +36 -33
- package/dist/types/common/keyboard-manager.d.ts +11 -0
- package/dist/types/dictionary/icon.d.ts +2 -1
- package/dist/types/dictionary/typography.d.ts +2 -1
- package/dist/types/stencil-public-runtime.d.ts +11 -0
- package/dist/types/types/typography.d.ts +1 -0
- package/package.json +4 -4
- package/src/common/keyboard-manager.ts +46 -0
- package/src/components/mds-accordion-timer/mds-accordion-timer.tsx +3 -3
- package/src/dictionary/icon.ts +4 -0
- package/src/dictionary/typography.ts +9 -3
- package/src/fixtures/icons.json +174 -0
- package/src/fixtures/iconsauce.json +175 -0
- package/src/tailwind/components.css +1 -0
- package/src/types/typography.ts +4 -0
- package/www/build/mds-accordion-timer.esm.js +1 -1
- package/www/build/mds-accordion-timer.js +1 -1
- package/www/build/{p-e66497f2.system.entry.js → p-118bf4e5.system.entry.js} +1 -1
- package/www/build/p-c6d75694.system.js +1 -0
- package/www/build/{p-f0c71bfc.entry.js → p-f44da2be.entry.js} +1 -1
- package/dist/mds-accordion-timer/p-c4b2aa5c.system.js +0 -1
- package/www/build/p-c4b2aa5c.system.js +0 -1
- /package/dist/esm-es5/{index-5ca2b649.js → index-22b73a3a.js} +0 -0
- /package/dist/mds-accordion-timer/{p-59116e2a.system.js → p-3face4e0.system.js} +0 -0
- /package/dist/mds-accordion-timer/{p-5d8e384d.js → p-9084d19f.js} +0 -0
- /package/www/build/{p-59116e2a.system.js → p-3face4e0.system.js} +0 -0
- /package/www/build/{p-5d8e384d.js → p-9084d19f.js} +0 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
[
|
|
2
|
+
"mgg/abitazione-principale",
|
|
3
|
+
"mgg/action-hide-down-side",
|
|
4
|
+
"mgg/action-hide-left-side",
|
|
5
|
+
"mgg/action-hide-right-side",
|
|
6
|
+
"mgg/action-hide-sidebar-left",
|
|
7
|
+
"mgg/action-hide-sidebar-right",
|
|
8
|
+
"mgg/action-show-down-side",
|
|
9
|
+
"mgg/action-show-left-side",
|
|
10
|
+
"mgg/action-show-right-side",
|
|
11
|
+
"mgg/action-show-sidebar-left",
|
|
12
|
+
"mgg/action-show-sidebar-right",
|
|
13
|
+
"mgg/add-document-settings",
|
|
14
|
+
"mgg/additional-contents",
|
|
15
|
+
"mgg/address-book-off",
|
|
16
|
+
"mgg/address-book-on",
|
|
17
|
+
"mgg/adv-denied",
|
|
18
|
+
"mgg/area-edificabile",
|
|
19
|
+
"mgg/area-weather",
|
|
20
|
+
"mgg/box-multiple",
|
|
21
|
+
"mgg/breadcrumb",
|
|
22
|
+
"mgg/calendar-euro",
|
|
23
|
+
"mgg/calendar-multiple",
|
|
24
|
+
"mgg/calendar-schedule",
|
|
25
|
+
"mgg/car-license",
|
|
26
|
+
"mgg/card-stamping",
|
|
27
|
+
"mgg/checklist-settings",
|
|
28
|
+
"mgg/checklist",
|
|
29
|
+
"mgg/citizenship",
|
|
30
|
+
"mgg/city-bin",
|
|
31
|
+
"mgg/copy-paste",
|
|
32
|
+
"mgg/data-analytics-alt",
|
|
33
|
+
"mgg/data-analytics-search",
|
|
34
|
+
"mgg/data-analytics-time",
|
|
35
|
+
"mgg/data-category-alt",
|
|
36
|
+
"mgg/data-civil-union",
|
|
37
|
+
"mgg/data-death-civil-union",
|
|
38
|
+
"mgg/data-death-marriage",
|
|
39
|
+
"mgg/data-end-civil-union",
|
|
40
|
+
"mgg/data-end-marriage",
|
|
41
|
+
"mgg/dataset",
|
|
42
|
+
"mgg/document-magic",
|
|
43
|
+
"mgg/document-rename",
|
|
44
|
+
"mgg/electronic-document",
|
|
45
|
+
"mgg/email-open-check",
|
|
46
|
+
"mgg/email-open-off",
|
|
47
|
+
"mgg/face-to-face-meeting",
|
|
48
|
+
"mgg/farmer",
|
|
49
|
+
"mgg/field",
|
|
50
|
+
"mgg/file-download",
|
|
51
|
+
"mgg/file-folder-tree-open",
|
|
52
|
+
"mgg/file-folder-tree",
|
|
53
|
+
"mgg/file-import",
|
|
54
|
+
"mgg/file-odt",
|
|
55
|
+
"mgg/file-rtf",
|
|
56
|
+
"mgg/file-settings-alt",
|
|
57
|
+
"mgg/file-stack-alt",
|
|
58
|
+
"mgg/file-stack",
|
|
59
|
+
"mgg/file-sub",
|
|
60
|
+
"mgg/file-type-document-attachment",
|
|
61
|
+
"mgg/file-type-document-multiple-attachment",
|
|
62
|
+
"mgg/file-type-document-rubber-stamp",
|
|
63
|
+
"mgg/file-type-home",
|
|
64
|
+
"mgg/file-type-pdf",
|
|
65
|
+
"mgg/file-type-success",
|
|
66
|
+
"mgg/file-type-warning",
|
|
67
|
+
"mgg/finance-euro-cashback",
|
|
68
|
+
"mgg/fit-horizontal",
|
|
69
|
+
"mgg/fit-vertical",
|
|
70
|
+
"mgg/fullscreen-on-alt",
|
|
71
|
+
"mgg/google-check-small",
|
|
72
|
+
"mgg/google-place-item",
|
|
73
|
+
"mgg/heart-outline",
|
|
74
|
+
"mgg/heart",
|
|
75
|
+
"mgg/historic-building-unusable",
|
|
76
|
+
"mgg/historic-building",
|
|
77
|
+
"mgg/home-hammer",
|
|
78
|
+
"mgg/home-number",
|
|
79
|
+
"mgg/inagibile",
|
|
80
|
+
"mgg/input-calendar-costs",
|
|
81
|
+
"mgg/input-calendar-period",
|
|
82
|
+
"mgg/input-calendar-time",
|
|
83
|
+
"mgg/isbn",
|
|
84
|
+
"mgg/judge-hammer",
|
|
85
|
+
"mgg/land-registry",
|
|
86
|
+
"mgg/layers",
|
|
87
|
+
"mgg/list-dot",
|
|
88
|
+
"mgg/logo-girasole-camuno",
|
|
89
|
+
"mgg/logo-gpl",
|
|
90
|
+
"mgg/logo-ilibro",
|
|
91
|
+
"mgg/map-marker-settings",
|
|
92
|
+
"mgg/military-draft",
|
|
93
|
+
"mgg/money-bag-settings",
|
|
94
|
+
"mgg/money-on-hand",
|
|
95
|
+
"mgg/move-down",
|
|
96
|
+
"mgg/move-left",
|
|
97
|
+
"mgg/move-right",
|
|
98
|
+
"mgg/move-row-down",
|
|
99
|
+
"mgg/move-row-up",
|
|
100
|
+
"mgg/move-up",
|
|
101
|
+
"mgg/multiple-payments",
|
|
102
|
+
"mgg/national-document-off",
|
|
103
|
+
"mgg/national-document",
|
|
104
|
+
"mgg/order-return-down-left-to-right",
|
|
105
|
+
"mgg/order-return-down-left-to-up",
|
|
106
|
+
"mgg/order-return-down-right-to-left",
|
|
107
|
+
"mgg/order-return-down-right-to-up",
|
|
108
|
+
"mgg/order-return-up-left-to-down",
|
|
109
|
+
"mgg/order-return-up-left-to-right",
|
|
110
|
+
"mgg/order-return-up-right-to-down",
|
|
111
|
+
"mgg/order-return-up-right-to-left",
|
|
112
|
+
"mgg/order-zigzag-down-left-to-right",
|
|
113
|
+
"mgg/order-zigzag-down-left-to-up",
|
|
114
|
+
"mgg/order-zigzag-down-right-to-left",
|
|
115
|
+
"mgg/order-zigzag-down-right-to-up",
|
|
116
|
+
"mgg/order-zigzag-up-left-to-down",
|
|
117
|
+
"mgg/order-zigzag-up-left-to-right",
|
|
118
|
+
"mgg/order-zigzag-up-right-to-down",
|
|
119
|
+
"mgg/order-zigzag-up-right-to-left",
|
|
120
|
+
"mgg/other-properties-off",
|
|
121
|
+
"mgg/other-properties",
|
|
122
|
+
"mgg/partial-wall",
|
|
123
|
+
"mgg/payment-settings",
|
|
124
|
+
"mgg/places-green-doc",
|
|
125
|
+
"mgg/places-green-history",
|
|
126
|
+
"mgg/places-green-info",
|
|
127
|
+
"mgg/places-green",
|
|
128
|
+
"mgg/places-holiday-beach",
|
|
129
|
+
"mgg/places-market",
|
|
130
|
+
"mgg/places-park-alt",
|
|
131
|
+
"mgg/places-park",
|
|
132
|
+
"mgg/places-store-access-denied",
|
|
133
|
+
"mgg/property-owner",
|
|
134
|
+
"mgg/relevance",
|
|
135
|
+
"mgg/reporting-abuse",
|
|
136
|
+
"mgg/residency-permit",
|
|
137
|
+
"mgg/rubber-stamp",
|
|
138
|
+
"mgg/rurale",
|
|
139
|
+
"mgg/search-maggioli",
|
|
140
|
+
"mgg/send-progress",
|
|
141
|
+
"mgg/settings-attachment",
|
|
142
|
+
"mgg/sign-shop",
|
|
143
|
+
"mgg/square-viewfinder",
|
|
144
|
+
"mgg/stamp",
|
|
145
|
+
"mgg/status-progress-a-quarter",
|
|
146
|
+
"mgg/status-progress-complete",
|
|
147
|
+
"mgg/status-progress-half",
|
|
148
|
+
"mgg/status-progress-three-quarter",
|
|
149
|
+
"mgg/stuck-codes",
|
|
150
|
+
"mgg/tea-light",
|
|
151
|
+
"mgg/terminal",
|
|
152
|
+
"mgg/todo-completed-re-executable",
|
|
153
|
+
"mgg/todo-completed",
|
|
154
|
+
"mgg/todo-in-charge-by-me",
|
|
155
|
+
"mgg/todo-in-charge-by-others",
|
|
156
|
+
"mgg/todo-in-evaluation-by-others",
|
|
157
|
+
"mgg/todo-in-evaluation",
|
|
158
|
+
"mgg/todo-incoming-in-charge",
|
|
159
|
+
"mgg/todo-incoming-rejected",
|
|
160
|
+
"mgg/todo-pause",
|
|
161
|
+
"mgg/todo-running-completed",
|
|
162
|
+
"mgg/todo-suspended",
|
|
163
|
+
"mgg/todo",
|
|
164
|
+
"mgg/traffic-cone",
|
|
165
|
+
"mgg/trending-down",
|
|
166
|
+
"mgg/tributes",
|
|
167
|
+
"mgg/urban-city",
|
|
168
|
+
"mgg/user-dead",
|
|
169
|
+
"mgg/user-family",
|
|
170
|
+
"mgg/user-location-off",
|
|
171
|
+
"mgg/user-location",
|
|
172
|
+
"mgg/view-chart-gantt",
|
|
173
|
+
"mgg/view-side-by-side",
|
|
174
|
+
"mgg/work-book"
|
|
175
|
+
]
|
package/src/types/typography.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-
|
|
1
|
+
import{p as e,b as o}from"./p-9084d19f.js";export{s as setNonce}from"./p-9084d19f.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o([["p-f44da2be",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"activeClicked","onClickActive"],[0,"activeMouseEnter","onMouseEnterActive"],[0,"activeMouseLeave","onMouseLeaveActive"]]]]]],e)));
|
|
@@ -115,7 +115,7 @@ DOMTokenList
|
|
|
115
115
|
var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
|
|
116
116
|
var start = function() {
|
|
117
117
|
// if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
|
|
118
|
-
var url = new URL('./p-
|
|
118
|
+
var url = new URL('./p-c6d75694.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
|
|
119
119
|
System.import(url.href);
|
|
120
120
|
};
|
|
121
121
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-3face4e0.system.js"],(function(t){"use strict";var e,i,n,r,c;return{setters:[function(t){e=t.r;i=t.c;n=t.h;r=t.H;c=t.g}],execute:function(){var a=":host{display:block}";var s=t("mds_accordion_timer",function(){function t(t){var n=this;e(this,t);this.itemActivated=i(this,"itemActivated",7);this.clearIntervals=function(){window.clearInterval(n.timer);window.clearInterval(n.timeChecker);n.timer=null;n.timeChecker=null};this.progress=function(){return Math.abs(n.remainingTime()/n.duration-1)};this.addTimeListener=function(){n.timeChecker=window.setInterval((function(){var t=n.progress();if(n.activeItem!==undefined){n.activeItem.progress=t}if(t===1){n.activeItem.progress=0;n.startNext()}}),100)};this.beginningTime=function(){n.timeStarted=(new Date).getTime();return n.timeStarted};this.remainingTime=function(){var t=n.activeItemDurationTime-((new Date).getTime()-n.timeStarted);return t>=0?t:0};this.setActiveItem=function(t){n.children.forEach((function(e,i){if(i===t){e.active=true;n.activeItem=e;n.itemActivated.emit(t)}else{e.active=false}}))};this.startNext=function(){var t=n.activeItem.uuid+1>n.children.length-1?0:n.activeItem.uuid+1;n.setActiveItem(t);n.startTimer()};this.startTimer=function(){n.clearIntervals();n.time=n.beginningTime();n.activeItemDurationTime=n.duration;n.addTimeListener()};this.playTimer=function(){n.beginningTime();n.addTimeListener()};this.pauseTimer=function(){n.clearIntervals();n.activeItemDurationTime=n.remainingTime()};this.stopTimer=function(){n.clearIntervals();n.time=null};this.time=0;this.duration=1e4}t.prototype.componentDidLoad=function(){var t=this;this.children=this.element.querySelectorAll("mds-accordion-timer-item");this.children.forEach((function(e,i){e.uuid=i;if(e.active){t.activeItem=e}}))};t.prototype.connectedCallback=function(){this.startTimer()};t.prototype.disconnectedCallback=function(){this.stopTimer();this.clearIntervals()};t.prototype.onClickActive=function(t){if(t.detail===this.activeItem.description){return}var e;this.children.forEach((function(i){i.progress=0;if(i.description===t.detail){e=i.uuid}}));this.setActiveItem(e);this.startTimer();this.pauseTimer()};t.prototype.onMouseEnterActive=function(){this.pauseTimer()};t.prototype.onMouseLeaveActive=function(){if(this.timeChecker===null){this.playTimer()}};t.prototype.render=function(){return n(r,null,n("slot",null))};Object.defineProperty(t.prototype,"element",{get:function(){return c(this)},enumerable:false,configurable:true});return t}());s.style=a}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-3face4e0.system.js"],(function(e,t){"use strict";var r,n;return{setters:[function(t){r=t.p;n=t.b;e("setNonce",t.s)}],execute:function(){var e=function(){var e=t.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return r(n)};e().then((function(e){return n([["p-118bf4e5.system",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"activeClicked","onClickActive"],[0,"activeMouseEnter","onMouseEnterActive"],[0,"activeMouseLeave","onMouseLeaveActive"]]]]]],e)}))}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as h,g as e}from"./p-
|
|
1
|
+
import{r as t,c as i,h as s,H as h,g as e}from"./p-9084d19f.js";const n=class{constructor(s){t(this,s),this.itemActivated=i(this,"itemActivated",7),this.clearIntervals=()=>{window.clearInterval(this.timer),window.clearInterval(this.timeChecker),this.timer=null,this.timeChecker=null},this.progress=()=>Math.abs(this.remainingTime()/this.duration-1),this.addTimeListener=()=>{this.timeChecker=window.setInterval((()=>{const t=this.progress();void 0!==this.activeItem&&(this.activeItem.progress=t),1===t&&(this.activeItem.progress=0,this.startNext())}),100)},this.beginningTime=()=>(this.timeStarted=(new Date).getTime(),this.timeStarted),this.remainingTime=()=>{const t=this.activeItemDurationTime-((new Date).getTime()-this.timeStarted);return t>=0?t:0},this.setActiveItem=t=>{this.children.forEach(((i,s)=>{s===t?(i.active=!0,this.activeItem=i,this.itemActivated.emit(t)):i.active=!1}))},this.startNext=()=>{this.setActiveItem(this.activeItem.uuid+1>this.children.length-1?0:this.activeItem.uuid+1),this.startTimer()},this.startTimer=()=>{this.clearIntervals(),this.time=this.beginningTime(),this.activeItemDurationTime=this.duration,this.addTimeListener()},this.playTimer=()=>{this.beginningTime(),this.addTimeListener()},this.pauseTimer=()=>{this.clearIntervals(),this.activeItemDurationTime=this.remainingTime()},this.stopTimer=()=>{this.clearIntervals(),this.time=null},this.time=0,this.duration=1e4}componentDidLoad(){this.children=this.element.querySelectorAll("mds-accordion-timer-item"),this.children.forEach(((t,i)=>{t.uuid=i,t.active&&(this.activeItem=t)}))}connectedCallback(){this.startTimer()}disconnectedCallback(){this.stopTimer(),this.clearIntervals()}onClickActive(t){if(t.detail===this.activeItem.description)return;let i;this.children.forEach((s=>{s.progress=0,s.description===t.detail&&(i=s.uuid)})),this.setActiveItem(i),this.startTimer(),this.pauseTimer()}onMouseEnterActive(){this.pauseTimer()}onMouseLeaveActive(){null===this.timeChecker&&this.playTimer()}render(){return s(h,null,s("slot",null))}get element(){return e(this)}};n.style=":host{display:block}";export{n as mds_accordion_timer}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-59116e2a.system.js"],(function(e,t){"use strict";var r,n;return{setters:[function(t){r=t.p;n=t.b;e("setNonce",t.s)}],execute:function(){var e=function(){var e=t.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return r(n)};e().then((function(e){return n([["p-e66497f2.system",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]]]],e)}))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-59116e2a.system.js"],(function(e,t){"use strict";var r,n;return{setters:[function(t){r=t.p;n=t.b;e("setNonce",t.s)}],execute:function(){var e=function(){var e=t.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return r(n)};e().then((function(e){return n([["p-e66497f2.system",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]]]],e)}))}}}));
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|