@maggioli-design-system/mds-input-tip 1.2.1 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{index-442db91d.js → index-66d8bb25.js} +143 -58
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-input-tip.cjs.entry.js +7 -1
- package/dist/cjs/mds-input-tip.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/common/aria.js +17 -1
- package/dist/collection/common/device.js +6 -0
- package/dist/collection/common/floating-controller.js +180 -0
- package/dist/collection/common/keyboard-manager.js +2 -2
- package/dist/collection/common/slot.js +19 -0
- package/dist/collection/components/mds-input-tip/mds-input-tip.js +10 -0
- package/dist/collection/dictionary/animation.js +5 -0
- package/dist/collection/dictionary/file-extensions.js +61 -56
- package/dist/collection/dictionary/text.js +60 -1
- package/dist/collection/dictionary/tree.js +13 -0
- package/dist/collection/fixtures/filenames.js +62 -1
- package/dist/collection/type/animation.js +1 -0
- package/dist/collection/type/tree.js +1 -0
- package/dist/collection/type/variant-file-format.js +5 -0
- package/dist/components/mds-input-tip.js +6 -0
- package/dist/documentation.d.ts +8 -0
- package/dist/documentation.json +8 -4
- package/dist/esm/{index-8fed469d.js → index-4e431d49.js} +143 -58
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-input-tip.entry.js +7 -1
- package/dist/esm/mds-input-tip.js +3 -3
- package/dist/esm-es5/index-4e431d49.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-input-tip.entry.js +1 -1
- package/dist/esm-es5/mds-input-tip.js +1 -1
- package/dist/mds-input-tip/mds-input-tip.esm.js +1 -1
- package/dist/mds-input-tip/mds-input-tip.js +1 -1
- package/dist/mds-input-tip/{p-4486a5e4.entry.js → p-3bf85392.entry.js} +1 -1
- package/dist/mds-input-tip/{p-fadf816e.system.entry.js → p-5c7f52a4.system.entry.js} +1 -1
- package/dist/mds-input-tip/p-7eeec96b.system.js +2 -0
- package/dist/mds-input-tip/p-b8376582.js +2 -0
- package/dist/mds-input-tip/{p-c915dfb3.system.js → p-c7ede63a.system.js} +1 -1
- package/dist/stats.json +62 -36
- package/dist/types/common/aria.d.ts +3 -1
- package/dist/types/common/device.d.ts +2 -0
- package/dist/types/common/floating-controller.d.ts +46 -0
- package/dist/types/common/slot.d.ts +3 -0
- package/dist/types/dictionary/animation.d.ts +2 -0
- package/dist/types/dictionary/text.d.ts +3 -1
- package/dist/types/dictionary/tree.d.ts +4 -0
- package/dist/types/fixtures/filenames.d.ts +62 -1
- package/dist/types/type/animation.d.ts +1 -0
- package/dist/types/type/file-types.d.ts +1 -1
- package/dist/types/type/text.d.ts +2 -0
- package/dist/types/type/tree.d.ts +3 -0
- package/dist/types/type/variant-file-format.d.ts +1 -1
- package/documentation.json +57 -18
- package/package.json +4 -4
- package/src/common/aria.ts +22 -2
- package/src/common/device.ts +9 -0
- package/src/common/floating-controller.ts +263 -0
- package/src/common/keyboard-manager.ts +2 -2
- package/src/common/slot.ts +24 -0
- package/src/dictionary/animation.ts +8 -0
- package/src/dictionary/file-extensions.ts +61 -56
- package/src/dictionary/text.ts +64 -0
- package/src/dictionary/tree.ts +21 -0
- package/src/fixtures/filenames.ts +63 -0
- package/src/fixtures/icons.json +29 -0
- package/src/fixtures/iconsauce.json +11 -0
- package/src/meta/file-format/locale.el.json +44 -0
- package/src/meta/file-format/locale.en.json +44 -0
- package/src/meta/file-format/locale.es.json +44 -0
- package/src/meta/file-format/locale.it.json +44 -0
- package/src/type/animation.ts +3 -0
- package/src/type/file-types.ts +6 -0
- package/src/type/text.ts +59 -0
- package/src/type/tree.ts +12 -0
- package/src/type/variant-file-format.ts +6 -0
- package/www/build/mds-input-tip.esm.js +1 -1
- package/www/build/mds-input-tip.js +1 -1
- package/www/build/{p-4486a5e4.entry.js → p-3bf85392.entry.js} +1 -1
- package/www/build/{p-fadf816e.system.entry.js → p-5c7f52a4.system.entry.js} +1 -1
- package/www/build/p-7eeec96b.system.js +2 -0
- package/www/build/p-b8376582.js +2 -0
- package/www/build/{p-c915dfb3.system.js → p-c7ede63a.system.js} +1 -1
- package/dist/esm-es5/index-8fed469d.js +0 -1
- package/dist/mds-input-tip/p-37c61f56.system.js +0 -2
- package/dist/mds-input-tip/p-3e967425.js +0 -2
- package/www/build/p-37c61f56.system.js +0 -2
- package/www/build/p-3e967425.js +0 -2
@@ -0,0 +1,180 @@
|
|
1
|
+
import { arrow, autoPlacement, autoUpdate, computePosition, flip, offset, shift, } from "@floating-ui/dom";
|
2
|
+
import { cssDurationToMilliseconds } from "./unit";
|
3
|
+
import { setAttributeIfEmpty } from "./aria";
|
4
|
+
export class FloatingController {
|
5
|
+
constructor(host, arrowEl) {
|
6
|
+
this.arrowInset = (middleware, arrowPosition) => {
|
7
|
+
const { arrow } = middleware;
|
8
|
+
const inset = { bottom: '', left: '', right: '', top: '' };
|
9
|
+
if (arrow === undefined) {
|
10
|
+
return {};
|
11
|
+
}
|
12
|
+
switch (arrowPosition) {
|
13
|
+
case 'bottom':
|
14
|
+
inset.left = arrow.x !== null ? `${arrow.x}px` : '';
|
15
|
+
inset.top = '100%';
|
16
|
+
break;
|
17
|
+
case 'left':
|
18
|
+
inset.right = '100%';
|
19
|
+
inset.top = arrow.y !== null ? `${arrow.y}px` : '';
|
20
|
+
break;
|
21
|
+
case 'right':
|
22
|
+
inset.left = '100%';
|
23
|
+
inset.top = arrow.y !== null ? `${arrow.y}px` : '';
|
24
|
+
break;
|
25
|
+
case 'top':
|
26
|
+
inset.left = arrow.x !== null ? `${arrow.x}px` : '';
|
27
|
+
inset.top = '';
|
28
|
+
break;
|
29
|
+
default:
|
30
|
+
break;
|
31
|
+
}
|
32
|
+
return inset;
|
33
|
+
};
|
34
|
+
this.arrowTransform = (arrowPosition) => {
|
35
|
+
let transformProps = this._host.arrow && this._host.visible ? 'scale(1)' : 'scale(0)';
|
36
|
+
switch (arrowPosition) {
|
37
|
+
case 'bottom':
|
38
|
+
transformProps = `rotate(180deg) ${transformProps} translate(0, -100%)`;
|
39
|
+
break;
|
40
|
+
case 'left':
|
41
|
+
transformProps = `rotate(-90deg) ${transformProps} translate(50%, -50%)`;
|
42
|
+
break;
|
43
|
+
case 'right':
|
44
|
+
transformProps = `rotate(90deg) ${transformProps} translate(-50%, -50%)`;
|
45
|
+
break;
|
46
|
+
case 'top':
|
47
|
+
transformProps = `rotate(0deg) ${transformProps} translate(0, 0)`;
|
48
|
+
break;
|
49
|
+
default:
|
50
|
+
break;
|
51
|
+
}
|
52
|
+
return { transform: transformProps };
|
53
|
+
};
|
54
|
+
this.arrowTransformOrigin = (arrowPosition) => {
|
55
|
+
switch (arrowPosition) {
|
56
|
+
case 'bottom':
|
57
|
+
return { transformOrigin: 'center top' };
|
58
|
+
case 'left':
|
59
|
+
return { transformOrigin: 'right center' };
|
60
|
+
case 'right':
|
61
|
+
return { transformOrigin: 'left center' };
|
62
|
+
case 'top':
|
63
|
+
return { transformOrigin: 'center bottom' };
|
64
|
+
default:
|
65
|
+
return { transformOrigin: 'center top' };
|
66
|
+
}
|
67
|
+
};
|
68
|
+
this.calculatePosition = () => {
|
69
|
+
if (!this._caller)
|
70
|
+
return;
|
71
|
+
const middleware = new Array();
|
72
|
+
const config = {};
|
73
|
+
if (this._host.shiftPadding) {
|
74
|
+
config.padding = this._host.shiftPadding;
|
75
|
+
}
|
76
|
+
if (this._host.autoPlacement) {
|
77
|
+
middleware.push(autoPlacement());
|
78
|
+
}
|
79
|
+
if (this._host.offset) {
|
80
|
+
middleware.push(offset(this._host.offset));
|
81
|
+
}
|
82
|
+
if (!this._host.autoPlacement && this._host.flip) {
|
83
|
+
middleware.push(flip(config));
|
84
|
+
}
|
85
|
+
if (this._host.shift) {
|
86
|
+
middleware.push(shift(config));
|
87
|
+
}
|
88
|
+
if (this.arrowEl && this._host.arrow) {
|
89
|
+
middleware.push(arrow({
|
90
|
+
element: this.arrowEl,
|
91
|
+
padding: this._host.arrowPadding,
|
92
|
+
}));
|
93
|
+
}
|
94
|
+
computePosition(this._caller, this._host, {
|
95
|
+
middleware,
|
96
|
+
placement: this._host.placement,
|
97
|
+
strategy: this._host.strategy,
|
98
|
+
}).then(({ x, y, placement, middlewareData }) => {
|
99
|
+
Object.assign(this._host.style, {
|
100
|
+
left: `${x}px`,
|
101
|
+
top: `${y}px`,
|
102
|
+
});
|
103
|
+
const arrowStyle = {};
|
104
|
+
const arrowPosition = {
|
105
|
+
top: 'bottom',
|
106
|
+
right: 'left',
|
107
|
+
bottom: 'top',
|
108
|
+
left: 'right',
|
109
|
+
}[placement.split('-')[0]];
|
110
|
+
if (arrowPosition && this.arrowEl) {
|
111
|
+
Object.assign(arrowStyle, this.arrowTransform(arrowPosition));
|
112
|
+
Object.assign(arrowStyle, this.arrowInset(middlewareData, arrowPosition));
|
113
|
+
Object.assign(arrowStyle, this.arrowTransformOrigin(arrowPosition));
|
114
|
+
Object.assign(this.arrowEl.style, arrowStyle);
|
115
|
+
}
|
116
|
+
});
|
117
|
+
};
|
118
|
+
this._host = host;
|
119
|
+
this.arrowEl = arrowEl;
|
120
|
+
}
|
121
|
+
updateCaller(target) {
|
122
|
+
var _a, _b, _c;
|
123
|
+
// search caller in document or rootNode of host (if target is in shadowDOM)
|
124
|
+
const caller = (_c = (_b = (_a = this._host.parentElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector(target)) !== null && _c !== void 0 ? _c : this._host.getRootNode().querySelector(target);
|
125
|
+
if (!caller) {
|
126
|
+
throw Error(`Target not found: ${target}`);
|
127
|
+
}
|
128
|
+
this._caller = caller;
|
129
|
+
setAttributeIfEmpty(this._caller, 'aria-haspopup', 'true');
|
130
|
+
setAttributeIfEmpty(this._caller, 'aria-controls', target);
|
131
|
+
setAttributeIfEmpty(this._host, 'role', 'menu');
|
132
|
+
setAttributeIfEmpty(this._host, 'aria-labelledby', target);
|
133
|
+
return caller;
|
134
|
+
}
|
135
|
+
updatePosition() {
|
136
|
+
if (this.cleanupAutoUpdate)
|
137
|
+
this.cleanupAutoUpdate();
|
138
|
+
this.cleanupAutoUpdate = autoUpdate(this._caller, this._host, this.calculatePosition);
|
139
|
+
}
|
140
|
+
dismiss() {
|
141
|
+
this.cleanupAutoUpdate();
|
142
|
+
}
|
143
|
+
}
|
144
|
+
export class Backdrop {
|
145
|
+
constructor(backdropId) {
|
146
|
+
this.defaultBackdropId = 'mds-backdrop';
|
147
|
+
this.backdropBackgroundVisible = 'rgba(var(--magma-backdrop-color, 0 0 0) / var(--magma-backdrop-opacity, 0.1))';
|
148
|
+
this.backdropBackgroundHidden = 'rgba(var(--magma-backdrop-color, 0 0 0) / 0)';
|
149
|
+
this.backdropId = backdropId !== null && backdropId !== void 0 ? backdropId : this.defaultBackdropId;
|
150
|
+
this.cssBackdropZIndex = `var(--${this.backdropId}-z-index)`;
|
151
|
+
this.cssBackdropDuration = `var(--${this.backdropId}-duration)`;
|
152
|
+
}
|
153
|
+
attachBackdrop() {
|
154
|
+
if (!this.backdropEl) {
|
155
|
+
this.backdropEl = document.createElement('div');
|
156
|
+
this.backdropEl.className = this.backdropId;
|
157
|
+
this.backdropEl.style.inset = '0';
|
158
|
+
this.backdropEl.style.pointerEvents = 'none';
|
159
|
+
this.backdropEl.style.position = 'fixed';
|
160
|
+
this.backdropEl.style.transition = `background-color ${this.cssBackdropDuration} ease-out`;
|
161
|
+
this.backdropEl.style.zIndex = this.cssBackdropZIndex;
|
162
|
+
}
|
163
|
+
this.backdropEl.style.backgroundColor = this.backdropBackgroundHidden;
|
164
|
+
document.body.appendChild(this.backdropEl);
|
165
|
+
clearTimeout(this.backdropTimer);
|
166
|
+
this.backdropTimer = setTimeout(() => {
|
167
|
+
this.backdropEl.style.backgroundColor = this.backdropBackgroundVisible;
|
168
|
+
}, 1);
|
169
|
+
}
|
170
|
+
detachBackdrop() {
|
171
|
+
if (!this.backdropEl) {
|
172
|
+
return;
|
173
|
+
}
|
174
|
+
this.backdropEl.style.backgroundColor = 'transparent';
|
175
|
+
clearTimeout(this.backdropTimer);
|
176
|
+
this.backdropTimer = setTimeout(() => {
|
177
|
+
this.backdropEl.remove();
|
178
|
+
}, cssDurationToMilliseconds(this.cssBackdropDuration));
|
179
|
+
}
|
180
|
+
}
|
@@ -31,13 +31,13 @@ export class KeyboardManager {
|
|
31
31
|
};
|
32
32
|
this.attachEscapeBehavior = (callback) => {
|
33
33
|
this.escapeCallback = callback;
|
34
|
-
if (window !== undefined) {
|
34
|
+
if (typeof window !== 'undefined') {
|
35
35
|
window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
|
36
36
|
}
|
37
37
|
};
|
38
38
|
this.detachEscapeBehavior = () => {
|
39
39
|
this.escapeCallback = () => { return; };
|
40
|
-
if (window !== undefined) {
|
40
|
+
if (typeof window !== 'undefined') {
|
41
41
|
window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
|
42
42
|
}
|
43
43
|
};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
const hasSlottedElements = (el, name) => {
|
2
|
+
var _a;
|
3
|
+
const query = name ? `slot[name="${name}"]` : 'slot:not([name])';
|
4
|
+
const slot = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(query);
|
5
|
+
if (slot) {
|
6
|
+
return slot.assignedElements({ flatten: true }).length > 0;
|
7
|
+
}
|
8
|
+
return false;
|
9
|
+
};
|
10
|
+
const hasSlottedNodes = (el, name) => {
|
11
|
+
var _a;
|
12
|
+
const query = name ? `slot[name="${name}"]` : 'slot:not([name])';
|
13
|
+
const slot = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(query);
|
14
|
+
if (slot) {
|
15
|
+
return slot.assignedNodes().length > 0;
|
16
|
+
}
|
17
|
+
return false;
|
18
|
+
};
|
19
|
+
export { hasSlottedElements, hasSlottedNodes, };
|
@@ -1,7 +1,13 @@
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
2
2
|
export class MdsInputTip {
|
3
3
|
constructor() {
|
4
|
+
/**
|
5
|
+
* Specifies if the component is active and shows expanded children or not
|
6
|
+
*/
|
4
7
|
this.active = false;
|
8
|
+
/**
|
9
|
+
* Specifies the position of the element relative to its container
|
10
|
+
*/
|
5
11
|
this.position = 'top';
|
6
12
|
}
|
7
13
|
render() {
|
@@ -35,6 +41,8 @@ export class MdsInputTip {
|
|
35
41
|
"tags": [],
|
36
42
|
"text": "Specifies if the component is active and shows expanded children or not"
|
37
43
|
},
|
44
|
+
"getter": false,
|
45
|
+
"setter": false,
|
38
46
|
"attribute": "active",
|
39
47
|
"reflect": true,
|
40
48
|
"defaultValue": "false"
|
@@ -59,6 +67,8 @@ export class MdsInputTip {
|
|
59
67
|
"tags": [],
|
60
68
|
"text": "Specifies the position of the element relative to its container"
|
61
69
|
},
|
70
|
+
"getter": false,
|
71
|
+
"setter": false,
|
62
72
|
"attribute": "position",
|
63
73
|
"reflect": true,
|
64
74
|
"defaultValue": "'top'"
|
@@ -1,60 +1,65 @@
|
|
1
1
|
const fileExtensionsDictionary = {
|
2
|
-
'7z': { format: 'archive', description: '
|
3
|
-
ace: { format: 'archive', description: '
|
4
|
-
ai: { format: 'vector', description: '
|
5
|
-
dart: { format: 'code', description: '
|
6
|
-
db: { format: 'data', description: '
|
7
|
-
default: { format: 'attachment', description: '
|
8
|
-
dmg: { format: 'executable', description: '
|
9
|
-
doc: { format: 'text', description: '
|
10
|
-
docm: { format: 'text', description: '
|
11
|
-
docx: { format: 'text', description: '
|
12
|
-
eml: { format: 'email', description: '
|
13
|
-
eps: { format: 'vector', description: '
|
14
|
-
exe: { format: 'executable', description: '
|
15
|
-
flac: { format: 'audio', description: '
|
16
|
-
gif: { format: 'image', description: '
|
17
|
-
|
18
|
-
|
19
|
-
html: { format: 'markup', description: '
|
20
|
-
jpe: { format: 'image', description: '
|
21
|
-
jpeg: { format: 'image', description: '
|
22
|
-
jpg: { format: 'image', description: '
|
23
|
-
js: { format: 'code', description: '
|
24
|
-
json: { format: 'data', description: '
|
25
|
-
jsx: { format: 'code', description: '
|
26
|
-
m2v: { format: 'video', description: '
|
27
|
-
mp2: { format: 'audio', description: '
|
28
|
-
mp3: { format: 'audio', description: '
|
29
|
-
mp4: { format: 'video', description: '
|
30
|
-
mp4v: { format: 'video', description: '
|
31
|
-
mpeg: { format: 'video', description: '
|
32
|
-
mpg4: { format: 'video', description: '
|
33
|
-
mpg: { format: 'video', description: '
|
34
|
-
mpga: { format: 'audio', description: '
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
2
|
+
'7z': { format: 'archive', description: 'compressedArchive' },
|
3
|
+
ace: { format: 'archive', description: 'compressedArchive' },
|
4
|
+
ai: { format: 'vector', description: 'fileAI' },
|
5
|
+
dart: { format: 'code', description: 'dart' },
|
6
|
+
db: { format: 'data', description: 'fileDB' },
|
7
|
+
default: { format: 'attachment', description: 'unknown' },
|
8
|
+
dmg: { format: 'executable', description: 'appleDiskImage' },
|
9
|
+
doc: { format: 'text', description: 'documentMS' },
|
10
|
+
docm: { format: 'text', description: 'documentMS' },
|
11
|
+
docx: { format: 'text', description: 'compressedDocumentMS' },
|
12
|
+
eml: { format: 'email', description: 'email' },
|
13
|
+
eps: { format: 'vector', description: 'fileEPS' },
|
14
|
+
exe: { format: 'executable', description: 'fileEXE' },
|
15
|
+
flac: { format: 'audio', description: 'uncompressedAudio' },
|
16
|
+
gif: { format: 'image', description: 'compressedImage', preview: true },
|
17
|
+
heic: { format: 'image', description: 'imageHEFF' },
|
18
|
+
htm: { format: 'markup', description: 'documentWeb' },
|
19
|
+
html: { format: 'markup', description: 'documentWeb' },
|
20
|
+
jpe: { format: 'image', description: 'compressedImage', preview: true },
|
21
|
+
jpeg: { format: 'image', description: 'compressedImage', preview: true },
|
22
|
+
jpg: { format: 'image', description: 'compressedImage', preview: true },
|
23
|
+
js: { format: 'code', description: 'fileJS' },
|
24
|
+
json: { format: 'data', description: 'fileJSON' },
|
25
|
+
jsx: { format: 'code', description: 'fileJS' },
|
26
|
+
m2v: { format: 'video', description: 'videoSD' },
|
27
|
+
mp2: { format: 'audio', description: 'compressedAudio' },
|
28
|
+
mp3: { format: 'audio', description: 'compressedAudio' },
|
29
|
+
mp4: { format: 'video', description: 'videoHD' },
|
30
|
+
mp4v: { format: 'video', description: 'videoHD' },
|
31
|
+
mpeg: { format: 'video', description: 'videoSD' },
|
32
|
+
mpg4: { format: 'video', description: 'videoSD' },
|
33
|
+
mpg: { format: 'video', description: 'videoSD' },
|
34
|
+
mpga: { format: 'audio', description: 'compressedAudio' },
|
35
|
+
odf: { format: 'document', description: 'openDocumentFormat' },
|
36
|
+
odp: { format: 'slide', description: 'slideLO' },
|
37
|
+
ods: { format: 'spreadsheet', description: 'spreadsheetLO' },
|
38
|
+
odt: { format: 'text', description: 'documentLO' },
|
39
|
+
ole: { format: 'document', description: 'objectLinkingAndEmbedding' },
|
40
|
+
p7m: { format: 'certificate', description: 'documentDigitalSingnature' },
|
41
|
+
pdf: { format: 'document', description: 'documentAdobe' },
|
42
|
+
php: { format: 'code', description: 'filePHP' },
|
43
|
+
png: { format: 'image', description: 'imagePNG', preview: true },
|
44
|
+
ppt: { format: 'slide', description: 'slidePowerPoint' },
|
45
|
+
rar: { format: 'archive', description: 'compressedArchive' },
|
46
|
+
rtf: { format: 'text', description: 'documentRTF' },
|
47
|
+
sass: { format: 'code', description: 'fileSASS' },
|
48
|
+
shtml: { format: 'markup', description: 'documentWeb' },
|
49
|
+
svg: { format: 'vector', description: 'imageSVG', preview: true },
|
50
|
+
tar: { format: 'archive', description: 'uncompressedArchive' },
|
51
|
+
tiff: { format: 'image', description: 'imageTIFF' },
|
52
|
+
ts: { format: 'code', description: 'fileTS' },
|
53
|
+
tsd: { format: 'certificate', description: 'certificateTSD' },
|
54
|
+
tsx: { format: 'code', description: 'fileTSX' },
|
55
|
+
txt: { format: 'text', description: 'documentTXT' },
|
56
|
+
wav: { format: 'audio', description: 'uncompressedAudio' },
|
57
|
+
webp: { format: 'image', description: 'imageWEBP', preview: true },
|
58
|
+
xar: { format: 'archive', description: 'compressedArchive' },
|
59
|
+
xls: { format: 'spreadsheet', description: 'spreadsheetMS' },
|
60
|
+
xlsx: { format: 'spreadsheet', description: 'spreadsheetMS' },
|
61
|
+
xml: { format: 'markup', description: 'extensibleMarkupLanguage' },
|
62
|
+
zip: { format: 'archive', description: 'compressedArchive' },
|
58
63
|
};
|
59
64
|
const genericMimeToExt = new Map([
|
60
65
|
['image', ['.png', '.jpg', '.jpeg', '.tiff', '.webp', '.jpe', '.gif', '.heic']],
|
@@ -1,6 +1,65 @@
|
|
1
|
+
const typographyTagDictionary = [
|
2
|
+
'abbr',
|
3
|
+
'address',
|
4
|
+
'article',
|
5
|
+
'b',
|
6
|
+
'bdo',
|
7
|
+
'blockquote',
|
8
|
+
'cite',
|
9
|
+
'code',
|
10
|
+
'dd',
|
11
|
+
'del',
|
12
|
+
'details',
|
13
|
+
'dfn',
|
14
|
+
'div',
|
15
|
+
'dl',
|
16
|
+
'dt',
|
17
|
+
'em',
|
18
|
+
'figcaption',
|
19
|
+
'h1',
|
20
|
+
'h2',
|
21
|
+
'h3',
|
22
|
+
'h4',
|
23
|
+
'h5',
|
24
|
+
'h6',
|
25
|
+
'i',
|
26
|
+
'ins',
|
27
|
+
'kbd',
|
28
|
+
'label',
|
29
|
+
'legend',
|
30
|
+
'li',
|
31
|
+
'mark',
|
32
|
+
'ol',
|
33
|
+
'p',
|
34
|
+
'pre',
|
35
|
+
'q',
|
36
|
+
'rb',
|
37
|
+
'rt',
|
38
|
+
'ruby',
|
39
|
+
's',
|
40
|
+
'samp',
|
41
|
+
'small',
|
42
|
+
'span',
|
43
|
+
'strong',
|
44
|
+
'sub',
|
45
|
+
'summary',
|
46
|
+
'sup',
|
47
|
+
'time',
|
48
|
+
'u',
|
49
|
+
'ul',
|
50
|
+
'var',
|
51
|
+
];
|
52
|
+
const typographyHeadingTagDictionary = [
|
53
|
+
'h1',
|
54
|
+
'h2',
|
55
|
+
'h3',
|
56
|
+
'h4',
|
57
|
+
'h5',
|
58
|
+
'h6',
|
59
|
+
];
|
1
60
|
const truncateDictionary = [
|
2
61
|
'all',
|
3
62
|
'none',
|
4
63
|
'word',
|
5
64
|
];
|
6
|
-
export { truncateDictionary, };
|
65
|
+
export { truncateDictionary, typographyHeadingTagDictionary, typographyTagDictionary, };
|
@@ -0,0 +1,13 @@
|
|
1
|
+
const treeActionsDictionary = [
|
2
|
+
'auto',
|
3
|
+
'visible',
|
4
|
+
];
|
5
|
+
const treeAppearanceDictionary = [
|
6
|
+
'depth',
|
7
|
+
'none',
|
8
|
+
];
|
9
|
+
const treeIconDictionary = [
|
10
|
+
'folder',
|
11
|
+
'chevron',
|
12
|
+
];
|
13
|
+
export { treeActionsDictionary, treeAppearanceDictionary, treeIconDictionary, };
|
@@ -54,4 +54,65 @@ const filesList = [
|
|
54
54
|
'wisconsin_bypassing_small.xar',
|
55
55
|
'wooden.jsx',
|
56
56
|
];
|
57
|
-
|
57
|
+
const namedFilesList = {
|
58
|
+
'7z': 'frozen_haptic.7z',
|
59
|
+
'No extension file': 'this_is_an_extensionless_file',
|
60
|
+
'png with URL': 'https://i2.wp.com/clipart.info/images/ccovers/1495750818Apple-PNG-Clip-Art.png',
|
61
|
+
ace: 'sky_marketing.ace',
|
62
|
+
ai: 'foreground_overriding.ai',
|
63
|
+
db: 'matrix_black_hat.db',
|
64
|
+
default: 'copying.default',
|
65
|
+
dmg: 'protocol_designer.dmg',
|
66
|
+
doc: 'forges.doc',
|
67
|
+
docm: 'officer_somalia.docm',
|
68
|
+
docx: 'upgradable_gold.docx',
|
69
|
+
eml: 'brunei_logistical.eml',
|
70
|
+
eps: 'alarm_circuit_plastic.eps',
|
71
|
+
exe: 'rss_systematic_avon.exe',
|
72
|
+
flac: 'liaison_panel_central.flac',
|
73
|
+
gif: 'initiatives_group.gif',
|
74
|
+
htm: 'books_monetize_arizona.htm',
|
75
|
+
html: 'flexibility_auto_money.html',
|
76
|
+
jpe: 'intelligent_radical.jpe',
|
77
|
+
jpeg: 'iowa_installation.jpeg',
|
78
|
+
jpg: 'buckinghamshire_macao.jpg',
|
79
|
+
js: 'monitor.js',
|
80
|
+
json: 'calculating.json',
|
81
|
+
jsx: 'wooden.jsx',
|
82
|
+
m2v: 'interface_bedfordshire_solid.m2v',
|
83
|
+
mp2: 'explicit.mp2',
|
84
|
+
mp3: 'optimization_radical.mp3',
|
85
|
+
mp4: 'nebraska.mp4',
|
86
|
+
mp4v: 'reduced_regional_greenland.mp4v',
|
87
|
+
mpeg: 'impactful_alarm_handmade.mpeg',
|
88
|
+
mpg4: 'revolutionize.mpg4',
|
89
|
+
mpg: 'complexity_deposit.mpg',
|
90
|
+
mpga: 'ports_copy_granite.mpga',
|
91
|
+
odf: 'This is a file_to_read.odf',
|
92
|
+
odp: 'needs_based_solid.odp',
|
93
|
+
ods: 'compressing_black_colorado.ods',
|
94
|
+
odt: 'salad_compressing.odt',
|
95
|
+
ole: 'Document-RPF_Open-new.ole',
|
96
|
+
p7m: 'file with certificate from government.pdf.p7m',
|
97
|
+
pdf: 'connect_local_visualize.pdf',
|
98
|
+
php: 'fish.php',
|
99
|
+
png: 'awesome_orchestration.png',
|
100
|
+
ppt: 'gorgeous_manager_savings.ppt',
|
101
|
+
rar: 'unbranded.rar',
|
102
|
+
rtf: 'pound.rtf',
|
103
|
+
sass: 'open_source_gorgeous.sass',
|
104
|
+
shtml: 'brand.shtml',
|
105
|
+
svg: 'b2c_tan_sports.svg',
|
106
|
+
tar: 'graphic_frozen_bedfordshire.tar',
|
107
|
+
ts: 'forge_face.ts',
|
108
|
+
tsd: 'Marked file-7483274hy6Fg6R8.tsd',
|
109
|
+
txt: 'bedfordshire_iceland_identity.txt',
|
110
|
+
wav: 'synergistic.wav',
|
111
|
+
webp: 'open_source.webp',
|
112
|
+
xar: 'wisconsin_bypassing_small.xar',
|
113
|
+
xls: 'metrics_lempira_account.xls',
|
114
|
+
xlsx: 'hdd_navigate_panama.xlsx',
|
115
|
+
xml: 'Markup language.xml',
|
116
|
+
zip: 'tuna_table_fall.zip',
|
117
|
+
};
|
118
|
+
export { filesList, namedFilesList, };
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -3,6 +3,7 @@ import baselineAttachFile from "@icon/mi/baseline/attach-file.svg";
|
|
3
3
|
import baselineAudiotrack from "@icon/mi/baseline/audiotrack.svg";
|
4
4
|
import baselineTerminal from "@icon/mi/baseline/terminal.svg";
|
5
5
|
import baselineInsertDriveFile from "@icon/mi/baseline/insert-drive-file.svg";
|
6
|
+
import mdiLicense from "@icon/mdi/license.svg";
|
6
7
|
import mdiHardDisk from "@icon/mdi/harddisk.svg";
|
7
8
|
import baselineEmail from "@icon/mi/baseline/email.svg";
|
8
9
|
import baselineWysiwyg from "@icon/mi/baseline/wysiwyg.svg";
|
@@ -26,6 +27,10 @@ const fileFormatsVariant = {
|
|
26
27
|
icon: baselineAudiotrack,
|
27
28
|
variant: 'violet',
|
28
29
|
},
|
30
|
+
certificate: {
|
31
|
+
icon: mdiLicense,
|
32
|
+
variant: 'orange',
|
33
|
+
},
|
29
34
|
code: {
|
30
35
|
icon: baselineTerminal,
|
31
36
|
variant: 'yellow',
|
@@ -8,7 +8,13 @@ const MdsInputTip$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputTip extends
|
|
8
8
|
super();
|
9
9
|
this.__registerHost();
|
10
10
|
this.__attachShadow();
|
11
|
+
/**
|
12
|
+
* Specifies if the component is active and shows expanded children or not
|
13
|
+
*/
|
11
14
|
this.active = false;
|
15
|
+
/**
|
16
|
+
* Specifies the position of the element relative to its container
|
17
|
+
*/
|
12
18
|
this.position = 'top';
|
13
19
|
}
|
14
20
|
render() {
|
package/dist/documentation.d.ts
CHANGED
@@ -316,6 +316,14 @@ export interface JsonDocsProp {
|
|
316
316
|
* ```
|
317
317
|
*/
|
318
318
|
required: boolean;
|
319
|
+
/**
|
320
|
+
* `true` if the prop has a `get()`. `false` otherwise
|
321
|
+
*/
|
322
|
+
getter: boolean;
|
323
|
+
/**
|
324
|
+
* `true` if the prop has a `set()`. `false` otherwise
|
325
|
+
*/
|
326
|
+
setter: boolean;
|
319
327
|
}
|
320
328
|
export interface JsonDocsMethod {
|
321
329
|
name: string;
|
package/dist/documentation.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
|
-
"timestamp": "
|
2
|
+
"timestamp": "2025-02-06T09:13:05",
|
3
3
|
"compiler": {
|
4
4
|
"name": "@stencil/core",
|
5
|
-
"version": "4.
|
5
|
+
"version": "4.25.1",
|
6
6
|
"typescriptVersion": "5.5.4"
|
7
7
|
},
|
8
8
|
"components": [
|
@@ -37,7 +37,9 @@
|
|
37
37
|
}
|
38
38
|
],
|
39
39
|
"optional": true,
|
40
|
-
"required": false
|
40
|
+
"required": false,
|
41
|
+
"getter": false,
|
42
|
+
"setter": false
|
41
43
|
},
|
42
44
|
{
|
43
45
|
"name": "position",
|
@@ -73,7 +75,9 @@
|
|
73
75
|
}
|
74
76
|
],
|
75
77
|
"optional": true,
|
76
|
-
"required": false
|
78
|
+
"required": false,
|
79
|
+
"getter": false,
|
80
|
+
"setter": false
|
77
81
|
}
|
78
82
|
],
|
79
83
|
"methods": [],
|