@maggioli-design-system/mds-accordion-timer 3.4.1 → 3.5.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.
Files changed (68) hide show
  1. package/dist/cjs/{index-569353a6.js → index-ab2aee76.js} +73 -8
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
  4. package/dist/cjs/mds-accordion-timer.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/common/keyboard-manager.js +2 -2
  7. package/dist/collection/dictionary/input.js +21 -0
  8. package/dist/collection/dictionary/typography.js +5 -1
  9. package/dist/documentation.json +3 -3
  10. package/dist/esm/{index-8c22e0f7.js → index-1e1d02d3.js} +73 -8
  11. package/dist/esm/loader.js +2 -2
  12. package/dist/esm/mds-accordion-timer.entry.js +1 -1
  13. package/dist/esm/mds-accordion-timer.js +3 -3
  14. package/dist/esm-es5/index-1e1d02d3.js +1 -0
  15. package/dist/esm-es5/loader.js +1 -1
  16. package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
  17. package/dist/esm-es5/mds-accordion-timer.js +1 -1
  18. package/dist/mds-accordion-timer/mds-accordion-timer.esm.js +1 -1
  19. package/dist/mds-accordion-timer/mds-accordion-timer.js +1 -1
  20. package/dist/mds-accordion-timer/{p-8c113821.entry.js → p-57415df8.entry.js} +1 -1
  21. package/dist/mds-accordion-timer/p-6584787f.system.js +2 -0
  22. package/dist/mds-accordion-timer/p-70e86e8e.js +2 -0
  23. package/dist/mds-accordion-timer/p-b86c017a.system.entry.js +1 -0
  24. package/dist/mds-accordion-timer/p-ee10fd98.system.js +1 -0
  25. package/dist/stats.json +32 -32
  26. package/dist/types/components.d.ts +11 -0
  27. package/dist/types/dictionary/input.d.ts +4 -0
  28. package/dist/types/dictionary/typography.d.ts +2 -1
  29. package/dist/types/interface/input-value.d.ts +1 -1
  30. package/dist/types/stencil-public-runtime.d.ts +21 -0
  31. package/dist/types/type/input.d.ts +4 -0
  32. package/dist/types/type/typography.d.ts +1 -0
  33. package/documentation.json +27 -12
  34. package/package.json +4 -4
  35. package/src/common/keyboard-manager.ts +2 -2
  36. package/src/components.d.ts +11 -0
  37. package/src/dictionary/input.ts +30 -0
  38. package/src/dictionary/typography.ts +7 -1
  39. package/src/fixtures/icons.json +18 -0
  40. package/src/fixtures/iconsauce.json +16 -0
  41. package/src/interface/input-value.ts +1 -1
  42. package/src/type/input.ts +25 -0
  43. package/src/type/typography.ts +4 -0
  44. package/www/build/mds-accordion-timer.esm.js +1 -1
  45. package/www/build/mds-accordion-timer.js +1 -1
  46. package/www/build/{p-8c113821.entry.js → p-57415df8.entry.js} +1 -1
  47. package/www/build/p-6584787f.system.js +2 -0
  48. package/www/build/p-70e86e8e.js +2 -0
  49. package/www/build/p-b86c017a.system.entry.js +1 -0
  50. package/www/build/p-ee10fd98.system.js +1 -0
  51. package/dist/collection/dictionary/input-text-type.js +0 -13
  52. package/dist/collection/type/input-value-type.js +0 -1
  53. package/dist/esm-es5/index-8c22e0f7.js +0 -2
  54. package/dist/mds-accordion-timer/p-0bdccf30.js +0 -2
  55. package/dist/mds-accordion-timer/p-9036e977.system.js +0 -1
  56. package/dist/mds-accordion-timer/p-bb796904.system.entry.js +0 -1
  57. package/dist/mds-accordion-timer/p-df0a41f6.system.js +0 -2
  58. package/dist/types/dictionary/input-text-type.d.ts +0 -2
  59. package/dist/types/type/input-text-type.d.ts +0 -1
  60. package/dist/types/type/input-value-type.d.ts +0 -1
  61. package/src/dictionary/input-text-type.ts +0 -17
  62. package/src/type/input-text-type.ts +0 -11
  63. package/src/type/input-value-type.ts +0 -5
  64. package/www/build/p-0bdccf30.js +0 -2
  65. package/www/build/p-9036e977.system.js +0 -1
  66. package/www/build/p-bb796904.system.entry.js +0 -1
  67. package/www/build/p-df0a41f6.system.js +0 -2
  68. /package/dist/collection/type/{input-text-type.js → input.js} +0 -0
package/dist/stats.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2023-09-27T11:16:59",
2
+ "timestamp": "2023-11-08T15:30:19",
3
3
  "compiler": {
4
4
  "name": "node",
5
5
  "version": "18.16.1"
@@ -9,11 +9,11 @@
9
9
  "fsNamespace": "mds-accordion-timer",
10
10
  "components": 1,
11
11
  "entries": 1,
12
- "bundles": 67,
12
+ "bundles": 66,
13
13
  "outputs": [
14
14
  {
15
15
  "name": "dist-collection",
16
- "files": 26,
16
+ "files": 25,
17
17
  "generatedFiles": [
18
18
  "./dist/collection/common/aria.js",
19
19
  "./dist/collection/common/keyboard-manager.js",
@@ -26,7 +26,7 @@
26
26
  "./dist/collection/dictionary/color.js",
27
27
  "./dist/collection/dictionary/floating-ui.js",
28
28
  "./dist/collection/dictionary/icon.js",
29
- "./dist/collection/dictionary/input-text-type.js",
29
+ "./dist/collection/dictionary/input.js",
30
30
  "./dist/collection/dictionary/loading.js",
31
31
  "./dist/collection/dictionary/typography.js",
32
32
  "./dist/collection/dictionary/variant.js",
@@ -36,8 +36,7 @@
36
36
  "./dist/collection/type/button.js",
37
37
  "./dist/collection/type/floating-ui.js",
38
38
  "./dist/collection/type/form-rel.js",
39
- "./dist/collection/type/input-text-type.js",
40
- "./dist/collection/type/input-value-type.js",
39
+ "./dist/collection/type/input.js",
41
40
  "./dist/collection/type/loading.js",
42
41
  "./dist/collection/type/typography.js",
43
42
  "./dist/collection/type/variant.js"
@@ -57,17 +56,17 @@
57
56
  "name": "dist-lazy",
58
57
  "files": 35,
59
58
  "generatedFiles": [
60
- "./dist/cjs/index-569353a6.js",
59
+ "./dist/cjs/index-ab2aee76.js",
61
60
  "./dist/cjs/index.cjs.js",
62
61
  "./dist/cjs/loader.cjs.js",
63
62
  "./dist/cjs/mds-accordion-timer.cjs.entry.js",
64
63
  "./dist/cjs/mds-accordion-timer.cjs.js",
65
- "./dist/esm-es5/index-8c22e0f7.js",
64
+ "./dist/esm-es5/index-1e1d02d3.js",
66
65
  "./dist/esm-es5/index.js",
67
66
  "./dist/esm-es5/loader.js",
68
67
  "./dist/esm-es5/mds-accordion-timer.entry.js",
69
68
  "./dist/esm-es5/mds-accordion-timer.js",
70
- "./dist/esm/index-8c22e0f7.js",
69
+ "./dist/esm/index-1e1d02d3.js",
71
70
  "./dist/esm/index.js",
72
71
  "./dist/esm/loader.js",
73
72
  "./dist/esm/mds-accordion-timer.entry.js",
@@ -77,21 +76,21 @@
77
76
  "./dist/mds-accordion-timer/index.esm.js",
78
77
  "./dist/mds-accordion-timer/mds-accordion-timer.esm.js",
79
78
  "./dist/mds-accordion-timer/mds-accordion-timer.js",
80
- "./dist/mds-accordion-timer/p-0bdccf30.js",
81
79
  "./dist/mds-accordion-timer/p-50ea2036.system.js",
82
- "./dist/mds-accordion-timer/p-8c113821.entry.js",
83
- "./dist/mds-accordion-timer/p-9036e977.system.js",
84
- "./dist/mds-accordion-timer/p-bb796904.system.entry.js",
85
- "./dist/mds-accordion-timer/p-df0a41f6.system.js",
80
+ "./dist/mds-accordion-timer/p-57415df8.entry.js",
81
+ "./dist/mds-accordion-timer/p-6584787f.system.js",
82
+ "./dist/mds-accordion-timer/p-70e86e8e.js",
83
+ "./dist/mds-accordion-timer/p-b86c017a.system.entry.js",
84
+ "./dist/mds-accordion-timer/p-ee10fd98.system.js",
86
85
  "./www/build/index.esm.js",
87
86
  "./www/build/mds-accordion-timer.esm.js",
88
87
  "./www/build/mds-accordion-timer.js",
89
- "./www/build/p-0bdccf30.js",
90
88
  "./www/build/p-50ea2036.system.js",
91
- "./www/build/p-8c113821.entry.js",
92
- "./www/build/p-9036e977.system.js",
93
- "./www/build/p-bb796904.system.entry.js",
94
- "./www/build/p-df0a41f6.system.js"
89
+ "./www/build/p-57415df8.entry.js",
90
+ "./www/build/p-6584787f.system.js",
91
+ "./www/build/p-70e86e8e.js",
92
+ "./www/build/p-b86c017a.system.entry.js",
93
+ "./www/build/p-ee10fd98.system.js"
95
94
  ]
96
95
  },
97
96
  {
@@ -124,10 +123,10 @@
124
123
  "components": [
125
124
  "mds-accordion-timer"
126
125
  ],
127
- "bundleId": "p-8c113821",
128
- "fileName": "p-8c113821.entry.js",
126
+ "bundleId": "p-57415df8",
127
+ "fileName": "p-57415df8.entry.js",
129
128
  "imports": [
130
- "p-0bdccf30.js"
129
+ "p-70e86e8e.js"
131
130
  ],
132
131
  "originalByteSize": 3489
133
132
  }
@@ -141,7 +140,7 @@
141
140
  "bundleId": "mds-accordion-timer",
142
141
  "fileName": "mds-accordion-timer.entry.js",
143
142
  "imports": [
144
- "index-8c22e0f7.js"
143
+ "index-1e1d02d3.js"
145
144
  ],
146
145
  "originalByteSize": 3493
147
146
  }
@@ -155,7 +154,7 @@
155
154
  "bundleId": "mds-accordion-timer",
156
155
  "fileName": "mds-accordion-timer.entry.js",
157
156
  "imports": [
158
- "index-8c22e0f7.js"
157
+ "index-1e1d02d3.js"
159
158
  ],
160
159
  "originalByteSize": 3493
161
160
  }
@@ -166,10 +165,10 @@
166
165
  "components": [
167
166
  "mds-accordion-timer"
168
167
  ],
169
- "bundleId": "p-bb796904.system",
170
- "fileName": "p-bb796904.system.entry.js",
168
+ "bundleId": "p-b86c017a.system",
169
+ "fileName": "p-b86c017a.system.entry.js",
171
170
  "imports": [
172
- "p-df0a41f6.system.js"
171
+ "p-6584787f.system.js"
173
172
  ],
174
173
  "originalByteSize": 4381
175
174
  }
@@ -183,7 +182,7 @@
183
182
  "bundleId": "mds-accordion-timer.cjs",
184
183
  "fileName": "mds-accordion-timer.cjs.entry.js",
185
184
  "imports": [
186
- "index-569353a6.js"
185
+ "index-ab2aee76.js"
187
186
  ],
188
187
  "originalByteSize": 3540
189
188
  }
@@ -288,6 +287,8 @@
288
287
  {
289
288
  "cmps": [
290
289
  {
290
+ "attachInternalsMemberName": null,
291
+ "formAssociated": false,
291
292
  "tagName": "mds-accordion-timer",
292
293
  "excludeFromCollection": false,
293
294
  "isCollectionDependency": false,
@@ -484,7 +485,7 @@
484
485
  ],
485
486
  "componentGraph": {
486
487
  "sc-mds-accordion-timer": [
487
- "p-0bdccf30.js"
488
+ "p-70e86e8e.js"
488
489
  ]
489
490
  },
490
491
  "sourceGraph": {
@@ -502,7 +503,7 @@
502
503
  "./src/fixtures/icons.json",
503
504
  "./src/fixtures/iconsauce.json"
504
505
  ],
505
- "./src/dictionary/input-text-type.ts": [],
506
+ "./src/dictionary/input.ts": [],
506
507
  "./src/dictionary/loading.ts": [],
507
508
  "./src/dictionary/typography.ts": [],
508
509
  "./src/dictionary/variant.ts": [],
@@ -512,8 +513,7 @@
512
513
  "./src/type/button.ts": [],
513
514
  "./src/type/floating-ui.ts": [],
514
515
  "./src/type/form-rel.ts": [],
515
- "./src/type/input-text-type.ts": [],
516
- "./src/type/input-value-type.ts": [],
516
+ "./src/type/input.ts": [],
517
517
  "./src/type/loading.ts": [],
518
518
  "./src/type/typography.ts": [],
519
519
  "./src/type/variant.ts": []
@@ -18,7 +18,18 @@ export interface MdsAccordionTimerCustomEvent<T> extends CustomEvent<T> {
18
18
  target: HTMLMdsAccordionTimerElement;
19
19
  }
20
20
  declare global {
21
+ interface HTMLMdsAccordionTimerElementEventMap {
22
+ "mdsAccordionTimerChange": void;
23
+ }
21
24
  interface HTMLMdsAccordionTimerElement extends Components.MdsAccordionTimer, HTMLStencilElement {
25
+ addEventListener<K extends keyof HTMLMdsAccordionTimerElementEventMap>(type: K, listener: (this: HTMLMdsAccordionTimerElement, ev: MdsAccordionTimerCustomEvent<HTMLMdsAccordionTimerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
26
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
27
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
28
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
29
+ removeEventListener<K extends keyof HTMLMdsAccordionTimerElementEventMap>(type: K, listener: (this: HTMLMdsAccordionTimerElement, ev: MdsAccordionTimerCustomEvent<HTMLMdsAccordionTimerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
30
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
31
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
32
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
22
33
  }
23
34
  var HTMLMdsAccordionTimerElement: {
24
35
  prototype: HTMLMdsAccordionTimerElement;
@@ -0,0 +1,4 @@
1
+ declare const inputTextTypeDictionary: string[];
2
+ declare const inputControlsLayoutDictionary: string[];
3
+ declare const inputControlsIconDictionary: string[];
4
+ export { inputControlsIconDictionary, inputControlsLayoutDictionary, inputTextTypeDictionary, };
@@ -7,4 +7,5 @@ declare const typographyInfoDictionary: string[];
7
7
  declare const typographyReadDictionary: string[];
8
8
  declare const typographySmallerDictionary: string[];
9
9
  declare const typographyTooltipDictionary: string[];
10
- export { typographyDictionary, typographyInfoDictionary, typographyReadingVariationsDictionary, typographyMonoDictionary, typographyReadDictionary, typographySmallerDictionary, typographyTitleDictionary, typographyTooltipDictionary, typographyVariationsDictionary, };
10
+ declare const typographyInputDictionary: string[];
11
+ export { typographyDictionary, typographyInfoDictionary, typographyInputDictionary, typographyMonoDictionary, typographyReadDictionary, typographyReadingVariationsDictionary, typographySmallerDictionary, typographyTitleDictionary, typographyTooltipDictionary, typographyVariationsDictionary, };
@@ -1,4 +1,4 @@
1
- import { InputValueType } from '@type/input-value-type';
1
+ import { InputValueType } from '@type/input';
2
2
  export interface InputValue {
3
3
  value: InputValueType;
4
4
  }
@@ -3,6 +3,16 @@ export interface ComponentDecorator {
3
3
  (opts?: ComponentOptions): ClassDecorator;
4
4
  }
5
5
  export interface ComponentOptions {
6
+ /**
7
+ * When set to `true` this component will be form-associated. See
8
+ * https://stenciljs.com/docs/next/form-associated documentation on how to
9
+ * build form-associated Stencil components that integrate into forms like
10
+ * native browser elements such as `<input>` and `<textarea>`.
11
+ *
12
+ * The {@link AttachInternals} decorator allows for access to the
13
+ * `ElementInternals` object to modify the associated form.
14
+ */
15
+ formAssociated?: boolean;
6
16
  /**
7
17
  * Tag name of the web component. Ideally, the tag name must be globally unique,
8
18
  * so it's recommended to choose an unique prefix for all your components within the same collection.
@@ -107,6 +117,9 @@ export interface EventOptions {
107
117
  */
108
118
  composed?: boolean;
109
119
  }
120
+ export interface AttachInternalsDecorator {
121
+ (): PropertyDecorator;
122
+ }
110
123
  export interface ListenDecorator {
111
124
  (eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
112
125
  }
@@ -175,6 +188,12 @@ export declare const Element: ElementDecorator;
175
188
  * https://stenciljs.com/docs/events
176
189
  */
177
190
  export declare const Event: EventDecorator;
191
+ /**
192
+ * If the `formAssociated` option is set in options passed to the
193
+ * `@Component()` decorator then this decorator may be used to get access to the
194
+ * `ElementInternals` instance associated with the component.
195
+ */
196
+ export declare const AttachInternals: AttachInternalsDecorator;
178
197
  /**
179
198
  * The `Listen()` decorator is for listening DOM events, including the ones
180
199
  * dispatched from `@Events()`.
@@ -1115,11 +1134,13 @@ export declare namespace JSXBase {
1115
1134
  autocomplete?: string;
1116
1135
  }
1117
1136
  interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
1137
+ height?: number;
1118
1138
  media?: string;
1119
1139
  sizes?: string;
1120
1140
  src?: string;
1121
1141
  srcSet?: string;
1122
1142
  type?: string;
1143
+ width?: number;
1123
1144
  }
1124
1145
  interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
1125
1146
  media?: string;
@@ -0,0 +1,4 @@
1
+ export type InputControlsLayoutType = 'horizontal' | 'vertical';
2
+ export type InputControlsIconType = 'arrow' | 'arithmetic';
3
+ export type InputValueType = null | number | string | undefined;
4
+ export type InputTextType = 'date' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'textarea' | 'time' | 'url';
@@ -7,3 +7,4 @@ export type TypographyReadType = 'caption' | 'detail' | 'paragraph';
7
7
  export type TypographySmallerType = 'tip' | 'option';
8
8
  export type TypographyMonoType = 'snippet' | 'hack';
9
9
  export type TypographyTooltipType = 'caption' | 'detail' | 'tip';
10
+ export type TypographyInputType = 'snippet' | 'detail';
@@ -1,9 +1,9 @@
1
1
  {
2
- "timestamp": "2023-09-27T10:36:27",
2
+ "timestamp": "2023-11-08T14:31:27",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
- "version": "4.3.0",
6
- "typescriptVersion": "5.1.6"
5
+ "version": "4.7.1",
6
+ "typescriptVersion": "5.2.2"
7
7
  },
8
8
  "components": [
9
9
  {
@@ -322,28 +322,38 @@
322
322
  "docstring": "",
323
323
  "path": "src/type/autocomplete.ts"
324
324
  },
325
+ "src/type/input.ts::InputControlsLayoutType": {
326
+ "declaration": "export type InputControlsLayoutType =\n | 'horizontal'\n | 'vertical'",
327
+ "docstring": "",
328
+ "path": "src/type/input.ts"
329
+ },
330
+ "src/type/input.ts::InputControlsIconType": {
331
+ "declaration": "export type InputControlsIconType =\n | 'arrow'\n | 'arithmetic'",
332
+ "docstring": "",
333
+ "path": "src/type/input.ts"
334
+ },
325
335
  "src/type/variant.ts::ThemeStatusVariantType": {
326
336
  "declaration": "export type ThemeStatusVariantType =\n | 'error'\n | 'info'\n | 'success'\n | 'warning'",
327
337
  "docstring": "",
328
338
  "path": "src/type/variant.ts"
329
339
  },
330
- "src/type/input-text-type.ts::InputTextType": {
340
+ "src/type/input.ts::InputTextType": {
331
341
  "declaration": "export type InputTextType =\n | 'date'\n | 'email'\n | 'number'\n | 'password'\n | 'search'\n | 'tel'\n | 'text'\n | 'textarea'\n | 'time'\n | 'url'",
332
342
  "docstring": "",
333
- "path": "src/type/input-text-type.ts"
343
+ "path": "src/type/input.ts"
334
344
  },
335
- "src/type/input-value-type.ts::InputValueType": {
336
- "declaration": "export type InputValueType =\n | null\n | number\n | string\n | undefined",
345
+ "src/type/typography.ts::TypographyInputType": {
346
+ "declaration": "export type TypographyInputType =\n | 'snippet'\n | 'detail'",
337
347
  "docstring": "",
338
- "path": "src/type/input-value-type.ts"
348
+ "path": "src/type/typography.ts"
339
349
  },
340
- "src/components/mds-input/meta/interfaces.ts::InputValue": {
341
- "declaration": "export interface InputValue {\n value: InputValueType\n}",
350
+ "src/components/mds-input/meta/event-detail.ts::MdsInputEventDetail": {
351
+ "declaration": "export interface MdsInputEventDetail {\n value?: string\n}",
342
352
  "docstring": "",
343
- "path": "src/components/mds-input/meta/interfaces.ts"
353
+ "path": "src/components/mds-input/meta/event-detail.ts"
344
354
  },
345
355
  "src/components/mds-input-field/meta/types.ts::ValidationModelType": {
346
- "declaration": "export type ValidationModelType =\n | 'cf'\n | 'email'\n | 'isbn'\n | 'piva'",
356
+ "declaration": "export type ValidationModelType =\n | 'cc'\n | 'cf'\n | 'email'\n | 'isbn'\n | 'piva'",
347
357
  "docstring": "",
348
358
  "path": "src/components/mds-input-field/meta/types.ts"
349
359
  },
@@ -362,6 +372,11 @@
362
372
  "docstring": "",
363
373
  "path": "src/components/mds-input-switch/meta/types.ts"
364
374
  },
375
+ "src/type/input.ts::InputValueType": {
376
+ "declaration": "export type InputValueType =\n | null\n | number\n | string\n | undefined",
377
+ "docstring": "",
378
+ "path": "src/type/input.ts"
379
+ },
365
380
  "src/type/typography.ts::TypographyType": {
366
381
  "declaration": "export type TypographyType =\n | 'action'\n | 'caption'\n | 'snippet'\n | 'detail'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'hack'\n | 'label'\n | 'option'\n | 'paragraph'\n | 'tip'",
367
382
  "docstring": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/mds-accordion-timer",
3
- "version": "3.4.1",
3
+ "version": "3.5.0",
4
4
  "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 JavaScirpt framework you are using.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -24,9 +24,9 @@
24
24
  "test": "stencil test --spec --e2e"
25
25
  },
26
26
  "dependencies": {
27
- "@maggioli-design-system/mds-accordion-timer-item": "^3.3.1",
28
- "@maggioli-design-system/styles": "^11.7.0",
29
- "@stencil/core": "^4.3.0"
27
+ "@maggioli-design-system/mds-accordion-timer-item": "3.4.0",
28
+ "@maggioli-design-system/styles": "13.0.0",
29
+ "@stencil/core": "4.7.1"
30
30
  },
31
31
  "license": "MIT",
32
32
  "author": {
@@ -32,14 +32,14 @@ export class KeyboardManager {
32
32
 
33
33
  attachEscapeBehavior = (callBack: () => void): void => {
34
34
  this.escapeCallback = callBack
35
- if (typeof window !== undefined) {
35
+ if (window !== undefined) {
36
36
  window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))
37
37
  }
38
38
  }
39
39
 
40
40
  detachEscapeBehavior = (): void => {
41
41
  this.escapeCallback = () => {return}
42
- if (typeof window !== undefined) {
42
+ if (window !== undefined) {
43
43
  window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))
44
44
  }
45
45
  }
@@ -18,7 +18,18 @@ export interface MdsAccordionTimerCustomEvent<T> extends CustomEvent<T> {
18
18
  target: HTMLMdsAccordionTimerElement;
19
19
  }
20
20
  declare global {
21
+ interface HTMLMdsAccordionTimerElementEventMap {
22
+ "mdsAccordionTimerChange": void;
23
+ }
21
24
  interface HTMLMdsAccordionTimerElement extends Components.MdsAccordionTimer, HTMLStencilElement {
25
+ addEventListener<K extends keyof HTMLMdsAccordionTimerElementEventMap>(type: K, listener: (this: HTMLMdsAccordionTimerElement, ev: MdsAccordionTimerCustomEvent<HTMLMdsAccordionTimerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
26
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
27
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
28
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
29
+ removeEventListener<K extends keyof HTMLMdsAccordionTimerElementEventMap>(type: K, listener: (this: HTMLMdsAccordionTimerElement, ev: MdsAccordionTimerCustomEvent<HTMLMdsAccordionTimerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
30
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
31
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
32
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
22
33
  }
23
34
  var HTMLMdsAccordionTimerElement: {
24
35
  prototype: HTMLMdsAccordionTimerElement;
@@ -0,0 +1,30 @@
1
+ const inputTextTypeDictionary = [
2
+ 'date',
3
+ 'email',
4
+ 'number',
5
+ 'password',
6
+ 'search',
7
+ 'tel',
8
+ 'text',
9
+ 'textarea',
10
+ 'time',
11
+ 'url',
12
+ ]
13
+
14
+
15
+ const inputControlsLayoutDictionary = [
16
+ 'horizontal',
17
+ 'vertical',
18
+ ]
19
+
20
+ const inputControlsIconDictionary = [
21
+ 'arrow',
22
+ 'arithmetic',
23
+ ]
24
+
25
+ export {
26
+ inputControlsIconDictionary,
27
+ inputControlsLayoutDictionary,
28
+ inputTextTypeDictionary,
29
+ }
30
+
@@ -69,12 +69,18 @@ const typographyTooltipDictionary = [
69
69
  'tip',
70
70
  ]
71
71
 
72
+ const typographyInputDictionary = [
73
+ 'snippet',
74
+ 'detail',
75
+ ]
76
+
72
77
  export {
73
78
  typographyDictionary,
74
79
  typographyInfoDictionary,
75
- typographyReadingVariationsDictionary,
80
+ typographyInputDictionary,
76
81
  typographyMonoDictionary,
77
82
  typographyReadDictionary,
83
+ typographyReadingVariationsDictionary,
78
84
  typographySmallerDictionary,
79
85
  typographyTitleDictionary,
80
86
  typographyTooltipDictionary,
@@ -74,6 +74,7 @@
74
74
  "mgg/email-open-check",
75
75
  "mgg/email-open-off",
76
76
  "mgg/face-to-face-meeting",
77
+ "mgg/factory",
77
78
  "mgg/farmer",
78
79
  "mgg/field",
79
80
  "mgg/file-download",
@@ -99,6 +100,8 @@
99
100
  "mgg/forwarded-with-a-single-sending",
100
101
  "mgg/fullscreen-on-alt",
101
102
  "mgg/google-check-small",
103
+ "mgg/google-keyboard-double-arrow-down",
104
+ "mgg/google-keyboard-double-arrow-up",
102
105
  "mgg/google-place-item",
103
106
  "mgg/group-assigned-automatically-system",
104
107
  "mgg/group-ceased",
@@ -197,6 +200,19 @@
197
200
  "mgg/tea-light",
198
201
  "mgg/terminal",
199
202
  "mgg/todo",
203
+ "mgg/todo-action-businessman-view",
204
+ "mgg/todo-action-certificate",
205
+ "mgg/todo-action-contract",
206
+ "mgg/todo-action-currency-euro",
207
+ "mgg/todo-action-graduate",
208
+ "mgg/todo-action-graduation-hat",
209
+ "mgg/todo-action-judge",
210
+ "mgg/todo-action-money",
211
+ "mgg/todo-action-protocol",
212
+ "mgg/todo-action-upload",
213
+ "mgg/todo-action-wkf-document-checked",
214
+ "mgg/todo-action-wkf-people-checked",
215
+ "mgg/todo-action-wkf-set-pub-date",
200
216
  "mgg/todo-completed",
201
217
  "mgg/todo-completed-re-executable",
202
218
  "mgg/todo-in-charge-by-me",
@@ -223,6 +239,7 @@
223
239
  "mgg/work-book",
224
240
  "mi/baseline/account-balance",
225
241
  "mi/baseline/account-balance-wallet",
242
+ "mi/baseline/add",
226
243
  "mi/baseline/adobe",
227
244
  "mi/baseline/agriculture",
228
245
  "mi/baseline/arrow-back",
@@ -263,6 +280,7 @@
263
280
  "mi/baseline/pets",
264
281
  "mi/baseline/radio-button-checked",
265
282
  "mi/baseline/radio-button-unchecked",
283
+ "mi/baseline/remove",
266
284
  "mi/baseline/route",
267
285
  "mi/baseline/settings",
268
286
  "mi/baseline/terminal",
@@ -63,6 +63,7 @@
63
63
  "mgg/email-open-check",
64
64
  "mgg/email-open-off",
65
65
  "mgg/face-to-face-meeting",
66
+ "mgg/factory",
66
67
  "mgg/farmer",
67
68
  "mgg/field",
68
69
  "mgg/file-download",
@@ -88,6 +89,8 @@
88
89
  "mgg/forwarded-with-a-single-sending",
89
90
  "mgg/fullscreen-on-alt",
90
91
  "mgg/google-check-small",
92
+ "mgg/google-keyboard-double-arrow-down",
93
+ "mgg/google-keyboard-double-arrow-up",
91
94
  "mgg/google-place-item",
92
95
  "mgg/group-assigned-automatically-system",
93
96
  "mgg/group-ceased",
@@ -185,6 +188,19 @@
185
188
  "mgg/subtractive-permission",
186
189
  "mgg/tea-light",
187
190
  "mgg/terminal",
191
+ "mgg/todo-action-businessman-view",
192
+ "mgg/todo-action-certificate",
193
+ "mgg/todo-action-contract",
194
+ "mgg/todo-action-currency-euro",
195
+ "mgg/todo-action-graduate",
196
+ "mgg/todo-action-graduation-hat",
197
+ "mgg/todo-action-judge",
198
+ "mgg/todo-action-money",
199
+ "mgg/todo-action-protocol",
200
+ "mgg/todo-action-upload",
201
+ "mgg/todo-action-wkf-document-checked",
202
+ "mgg/todo-action-wkf-people-checked",
203
+ "mgg/todo-action-wkf-set-pub-date",
188
204
  "mgg/todo-completed-re-executable",
189
205
  "mgg/todo-completed",
190
206
  "mgg/todo-in-charge-by-me",
@@ -1,4 +1,4 @@
1
- import { InputValueType } from '@type/input-value-type'
1
+ import { InputValueType } from '@type/input'
2
2
 
3
3
  export interface InputValue {
4
4
  value: InputValueType
@@ -0,0 +1,25 @@
1
+ export type InputControlsLayoutType =
2
+ | 'horizontal'
3
+ | 'vertical'
4
+
5
+ export type InputControlsIconType =
6
+ | 'arrow'
7
+ | 'arithmetic'
8
+
9
+ export type InputValueType =
10
+ | null
11
+ | number
12
+ | string
13
+ | undefined
14
+
15
+ export type InputTextType =
16
+ | 'date'
17
+ | 'email'
18
+ | 'number'
19
+ | 'password'
20
+ | 'search'
21
+ | 'tel'
22
+ | 'text'
23
+ | 'textarea'
24
+ | 'time'
25
+ | 'url'
@@ -59,3 +59,7 @@ export type TypographyTooltipType =
59
59
  | 'caption'
60
60
  | 'detail'
61
61
  | 'tip'
62
+
63
+ export type TypographyInputType =
64
+ | 'snippet'
65
+ | 'detail'
@@ -1 +1 @@
1
- import{p as e,b as c}from"./p-0bdccf30.js";export{s as setNonce}from"./p-0bdccf30.js";(()=>{const c=import.meta.url,o={};return""!==c&&(o.resourcesUrl=new URL(".",c).href),e(o)})().then((e=>c([["p-8c113821",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickActive"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]]]]]],e)));
1
+ import{p as e,b as o}from"./p-70e86e8e.js";export{s as setNonce}from"./p-70e86e8e.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o([["p-57415df8",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickActive"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]]]]]],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-9036e977.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
118
+ var url = new URL('./p-ee10fd98.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
- import{r as t,c as s,h as i,H as h,g as o}from"./p-0bdccf30.js";const r=class{constructor(i){t(this,i),this.changeEvent=s(this,"mdsAccordionTimerChange",7),this.clearIntervals=()=>{window.clearInterval(this.timer),window.clearInterval(this.timeChecker),this.timeChecker=0},this.progress=()=>Math.abs(this.remainingTime()/this.duration-1),this.addTimeListener=()=>{this.timeChecker=window.setInterval((()=>{const t=this.progress();void 0!==this.selectedItem&&(this.selectedItem.progress=t),1===t&&(this.selectedItem.progress=0,this.startNext())}),100)},this.beginningTime=()=>(this.timeStarted=(new Date).getTime(),this.timeStarted),this.remainingTime=()=>{const t=this.selectedItemDurationTime-((new Date).getTime()-this.timeStarted);return t>=0?t:0},this.setSelectedItem=t=>{this.children.forEach(((s,i)=>{i===t?(s.selected=!0,this.selectedItem=s,this.changeEvent.emit()):s.selected=!1}))},this.startNext=()=>{this.setSelectedItem(this.selectedItem.uuid+1>this.children.length-1?0:this.selectedItem.uuid+1),this.startTimer()},this.startTimer=()=>{this.clearIntervals(),this.time=this.beginningTime(),this.selectedItemDurationTime=this.duration,this.addTimeListener()},this.playTimer=()=>{this.beginningTime(),this.addTimeListener()},this.pauseTimer=()=>{this.clearIntervals(),this.selectedItemDurationTime=this.remainingTime()},this.stopTimer=()=>{this.clearIntervals()},this.time=0,this.duration=1e4}componentDidLoad(){this.children=this.element.querySelectorAll("mds-accordion-timer-item"),this.children.forEach(((t,s)=>{t.uuid=s,t.selected&&(this.selectedItem=t)})),void 0!==this.selectedItem&&this.startTimer()}disconnectedCallback(){this.stopTimer(),this.clearIntervals()}onClickActive(t){this.selectedItem&&(this.selectedItem.progress=0),this.setSelectedItem(t.detail.uuid),this.startTimer(),this.pauseTimer()}onMouseEnterSelect(){this.pauseTimer()}onMouseLeaveSelect(){0===this.timeChecker&&this.playTimer()}render(){return i(h,null,i("slot",null))}get element(){return o(this)}};r.style=":host{--mds-accordion-timer-progress-bar-color:rgb(var(--tone-neutral-03));--mds-accordion-timer-progress-bar-background:rgb(var(--tone-neutral-08));--mds-accordion-timer-progress-bar-thickness:0.25rem;--mds-accordion-timer-duration:500ms;display:block}";export{r as mds_accordion_timer}
1
+ import{r as t,c as s,h as i,H as h,g as e}from"./p-70e86e8e.js";const o=class{constructor(i){t(this,i),this.changeEvent=s(this,"mdsAccordionTimerChange",7),this.clearIntervals=()=>{window.clearInterval(this.timer),window.clearInterval(this.timeChecker),this.timeChecker=0},this.progress=()=>Math.abs(this.remainingTime()/this.duration-1),this.addTimeListener=()=>{this.timeChecker=window.setInterval((()=>{const t=this.progress();void 0!==this.selectedItem&&(this.selectedItem.progress=t),1===t&&(this.selectedItem.progress=0,this.startNext())}),100)},this.beginningTime=()=>(this.timeStarted=(new Date).getTime(),this.timeStarted),this.remainingTime=()=>{const t=this.selectedItemDurationTime-((new Date).getTime()-this.timeStarted);return t>=0?t:0},this.setSelectedItem=t=>{this.children.forEach(((s,i)=>{i===t?(s.selected=!0,this.selectedItem=s,this.changeEvent.emit()):s.selected=!1}))},this.startNext=()=>{this.setSelectedItem(this.selectedItem.uuid+1>this.children.length-1?0:this.selectedItem.uuid+1),this.startTimer()},this.startTimer=()=>{this.clearIntervals(),this.time=this.beginningTime(),this.selectedItemDurationTime=this.duration,this.addTimeListener()},this.playTimer=()=>{this.beginningTime(),this.addTimeListener()},this.pauseTimer=()=>{this.clearIntervals(),this.selectedItemDurationTime=this.remainingTime()},this.stopTimer=()=>{this.clearIntervals()},this.time=0,this.duration=1e4}componentDidLoad(){this.children=this.element.querySelectorAll("mds-accordion-timer-item"),this.children.forEach(((t,s)=>{t.uuid=s,t.selected&&(this.selectedItem=t)})),void 0!==this.selectedItem&&this.startTimer()}disconnectedCallback(){this.stopTimer(),this.clearIntervals()}onClickActive(t){this.selectedItem&&(this.selectedItem.progress=0),this.setSelectedItem(t.detail.uuid),this.startTimer(),this.pauseTimer()}onMouseEnterSelect(){this.pauseTimer()}onMouseLeaveSelect(){0===this.timeChecker&&this.playTimer()}render(){return i(h,null,i("slot",null))}get element(){return e(this)}};o.style=":host{--mds-accordion-timer-progress-bar-color:rgb(var(--tone-neutral-03));--mds-accordion-timer-progress-bar-background:rgb(var(--tone-neutral-08));--mds-accordion-timer-progress-bar-thickness:0.25rem;--mds-accordion-timer-duration:500ms;display:block}";export{o as mds_accordion_timer}