xv-webcomponents 0.1.9 → 0.1.11
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/README.md +2 -2
- package/dist/cjs/{index-888a60d0.js → index-4d938647.js} +291 -6
- package/dist/cjs/index-4d938647.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/utils-c7652b74.js +13 -0
- package/dist/cjs/utils-c7652b74.js.map +1 -0
- package/dist/cjs/xv-accordion_10.cjs.entry.js +263 -0
- package/dist/cjs/xv-accordion_10.cjs.entry.js.map +1 -0
- package/dist/cjs/xv-breadcrumbs.cjs.entry.js +22 -0
- package/dist/cjs/xv-breadcrumbs.cjs.entry.js.map +1 -0
- package/dist/cjs/xv-webcomponents.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +10 -1
- package/dist/collection/components/xv-accordion/xv-accordion.css +3 -0
- package/dist/collection/components/xv-accordion/xv-accordion.js +163 -0
- package/dist/collection/components/xv-accordion/xv-accordion.js.map +1 -0
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.css +68 -0
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +132 -0
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.js.map +1 -0
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.css +3 -0
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js +19 -0
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js.map +1 -0
- package/dist/collection/components/xv-button/xv-button-v2.css +150 -0
- package/dist/collection/components/xv-button/xv-button.js +12 -15
- package/dist/collection/components/xv-button/xv-button.js.map +1 -1
- package/dist/collection/components/xv-card/xv-card.css +63 -0
- package/dist/collection/components/xv-card/xv-card.js +122 -0
- package/dist/collection/components/xv-card/xv-card.js.map +1 -0
- package/dist/collection/components/xv-checkbox/xv-checkbox.js +1 -1
- package/dist/collection/components/xv-link/xv-link.css +60 -0
- package/dist/collection/components/xv-link/xv-link.js +132 -0
- package/dist/collection/components/xv-link/xv-link.js.map +1 -0
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.css +6 -0
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +70 -0
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js.map +1 -0
- package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.css +66 -0
- package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.js +47 -0
- package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.js.map +1 -0
- package/dist/collection/components/xv-tag/xv-tag.css +97 -0
- package/dist/collection/components/xv-tag/xv-tag.js +158 -0
- package/dist/collection/components/xv-tag/xv-tag.js.map +1 -0
- package/dist/collection/components/xv-tooltip/xv-tooltip.css +153 -0
- package/dist/collection/components/xv-tooltip/xv-tooltip.js +70 -0
- package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +1 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/esm/{index-5147034e.js → index-60f5a964.js} +291 -7
- package/dist/esm/index-60f5a964.js.map +1 -0
- package/dist/esm/index.js +1 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/utils-9bb6333b.js +10 -0
- package/dist/esm/utils-9bb6333b.js.map +1 -0
- package/dist/esm/xv-accordion_10.entry.js +250 -0
- package/dist/esm/xv-accordion_10.entry.js.map +1 -0
- package/dist/esm/xv-breadcrumbs.entry.js +18 -0
- package/dist/esm/xv-breadcrumbs.entry.js.map +1 -0
- package/dist/esm/xv-webcomponents.js +3 -3
- package/dist/types/components/xv-accordion/xv-accordion.d.ts +20 -0
- package/dist/types/components/xv-accordion-item/xv-accordion-item.d.ts +15 -0
- package/dist/types/components/xv-breadcrumbs/xv-breadcrumbs.d.ts +3 -0
- package/dist/types/components/xv-button/xv-button.d.ts +0 -3
- package/dist/types/components/xv-card/xv-card.d.ts +8 -0
- package/dist/types/components/xv-link/xv-link.d.ts +9 -0
- package/dist/types/components/xv-progress-indicator/xv-progress-indicator.d.ts +7 -0
- package/dist/types/components/xv-progress-indicator-item/xv-progress-indicator-item.d.ts +5 -0
- package/dist/types/components/xv-tag/xv-tag.d.ts +11 -0
- package/dist/types/components/xv-tooltip/xv-tooltip.d.ts +11 -0
- package/dist/types/components.d.ts +236 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/xv-webcomponents/index.esm.js +1 -1
- package/dist/xv-webcomponents/index.esm.js.map +1 -1
- package/dist/xv-webcomponents/p-41bd284c.entry.js +2 -0
- package/dist/xv-webcomponents/p-41bd284c.entry.js.map +1 -0
- package/dist/xv-webcomponents/p-543fe755.js +3 -0
- package/dist/xv-webcomponents/p-543fe755.js.map +1 -0
- package/dist/xv-webcomponents/p-6f058b7f.entry.js +2 -0
- package/dist/xv-webcomponents/p-6f058b7f.entry.js.map +1 -0
- package/dist/xv-webcomponents/p-a0b74d3c.js +2 -0
- package/dist/xv-webcomponents/p-a0b74d3c.js.map +1 -0
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
- package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
- package/package.json +3 -1
- package/dist/cjs/index-888a60d0.js.map +0 -1
- package/dist/cjs/xv-button-v2_2.cjs.entry.js +0 -68
- package/dist/cjs/xv-button-v2_2.cjs.entry.js.map +0 -1
- package/dist/esm/index-5147034e.js.map +0 -1
- package/dist/esm/xv-button-v2_2.entry.js +0 -63
- package/dist/esm/xv-button-v2_2.entry.js.map +0 -1
- package/dist/xv-webcomponents/p-186c04ea.entry.js +0 -2
- package/dist/xv-webcomponents/p-186c04ea.entry.js.map +0 -1
- package/dist/xv-webcomponents/p-b6c1c52d.js +0 -3
- package/dist/xv-webcomponents/p-b6c1c52d.js.map +0 -1
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/* General styles for tooltip */
|
|
8
|
+
:host::before,
|
|
9
|
+
:host::after {
|
|
10
|
+
position: absolute;
|
|
11
|
+
opacity: 0;
|
|
12
|
+
visibility: hidden;
|
|
13
|
+
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
|
|
14
|
+
z-index: 10;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Tooltip */
|
|
18
|
+
:host::before {
|
|
19
|
+
content: attr(tooltip);
|
|
20
|
+
background: var(--background-inverse, #333);
|
|
21
|
+
color: var(--icon-inverse, #fff);
|
|
22
|
+
padding: var(--gap-sm, 5px) var(--gap-md, 16px);
|
|
23
|
+
border-radius: 2px;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
text-overflow: ellipsis;
|
|
27
|
+
max-width: 70vw;
|
|
28
|
+
font-family: var(--fz-body, Tahoma);
|
|
29
|
+
font-size: var(fz-md, 14px);
|
|
30
|
+
font-weight: 400;
|
|
31
|
+
line-height: 18px;
|
|
32
|
+
letter-spacing: 0.16px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Arrow */
|
|
36
|
+
:host::after {
|
|
37
|
+
content: "";
|
|
38
|
+
border: 6px solid transparent;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Show Tooltip and arrow */
|
|
42
|
+
:host(:hover)::before,
|
|
43
|
+
:host(:hover)::after,
|
|
44
|
+
:host(:focus)::before,
|
|
45
|
+
:host(:focus)::after {
|
|
46
|
+
opacity: 1;
|
|
47
|
+
visibility: visible;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Tooltip positions */
|
|
51
|
+
:host(.xv-tooltip_top)::before {
|
|
52
|
+
bottom: 100%;
|
|
53
|
+
left: 50%;
|
|
54
|
+
transform: translateX(-50%) translateY(-5px);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:host(.xv-tooltip_top)::after {
|
|
58
|
+
bottom: 100%;
|
|
59
|
+
left: 50%;
|
|
60
|
+
border-top-color: var(--background-inverse, #333);
|
|
61
|
+
transform: translateX(-50%) translateY(5px);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host(.xv-tooltip_top-left)::before {
|
|
65
|
+
bottom: 100%;
|
|
66
|
+
left: 0;
|
|
67
|
+
transform: translateY(-5px);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host(.xv-tooltip_top-left)::after {
|
|
71
|
+
bottom: 100%;
|
|
72
|
+
left: 10px;
|
|
73
|
+
border-top-color: black;
|
|
74
|
+
transform: translateY(5px);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:host(.xv-tooltip_top-right)::before {
|
|
78
|
+
bottom: 100%;
|
|
79
|
+
right: 0;
|
|
80
|
+
transform: translateY(-5px);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host(.xv-tooltip_top-right)::after {
|
|
84
|
+
bottom: 100%;
|
|
85
|
+
right: 10px;
|
|
86
|
+
border-top-color: var(--background-inverse, #333);
|
|
87
|
+
transform: translateY(5px);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:host(.xv-tooltip_bottom)::before {
|
|
91
|
+
top: 100%;
|
|
92
|
+
left: 50%;
|
|
93
|
+
transform: translateX(-50%) translateY(5px);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host(.xv-tooltip_bottom)::after {
|
|
97
|
+
top: 100%;
|
|
98
|
+
left: 50%;
|
|
99
|
+
border-bottom-color: black;
|
|
100
|
+
transform: translateX(-50%) translateY(-5px);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:host(.xv-tooltip_bottom-left)::before {
|
|
104
|
+
top: 100%;
|
|
105
|
+
left: 0;
|
|
106
|
+
transform: translateY(5px);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
:host(.xv-tooltip_bottom-left)::after {
|
|
110
|
+
top: 100%;
|
|
111
|
+
left: 10px;
|
|
112
|
+
border-bottom-color: var(--background-inverse, #333);
|
|
113
|
+
transform: translateY(-5px);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:host(.xv-tooltip_bottom-right)::before {
|
|
117
|
+
top: 100%;
|
|
118
|
+
right: 0;
|
|
119
|
+
transform: translateY(5px);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:host(.xv-tooltip_bottom-right)::after {
|
|
123
|
+
top: 100%;
|
|
124
|
+
right: 10px;
|
|
125
|
+
border-bottom-color: var(--background-inverse, #333);
|
|
126
|
+
transform: translateY(-5px);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:host(.xv-tooltip_left)::before {
|
|
130
|
+
right: 100%;
|
|
131
|
+
top: 50%;
|
|
132
|
+
transform: translateY(-50%) translateX(-5px);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:host(.xv-tooltip_left)::after {
|
|
136
|
+
right: 100%;
|
|
137
|
+
top: 50%;
|
|
138
|
+
border-left-color: var(--background-inverse, #333);
|
|
139
|
+
transform: translateY(-50%) translateX(5px);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:host(.xv-tooltip_right)::before {
|
|
143
|
+
left: 100%;
|
|
144
|
+
top: 50%;
|
|
145
|
+
transform: translateY(-50%) translateX(5px);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:host(.xv-tooltip_right)::after {
|
|
149
|
+
left: 100%;
|
|
150
|
+
top: 50%;
|
|
151
|
+
border-right-color: var(--background-inverse, #333);
|
|
152
|
+
transform: translateY(-50%) translateX(-5px);
|
|
153
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class XvTooltip {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Tooltip and arrow position related to element
|
|
6
|
+
* possible options: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'right'.
|
|
7
|
+
* By default, "top"
|
|
8
|
+
*/
|
|
9
|
+
this.position = 'top';
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return (h(Host, { key: 'd91cba6a2425ac5188d0c3908d670887849ddf9b', tooltip: this.message, class: `xv-tooltip_${this.position}` }, h("slot", { key: 'f8b284b78d72f5a1e53880173e9df9a286e4ab59' }, h("svg", { key: '2b3dc074585eff9515c3383dd1415f7655425c0e', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", width: 16, height: 16 }, h("path", { key: 'd2d1e7eb69b531ae9212ee6da186628f57482317', fill: "currentColor", d: "M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z" })))));
|
|
13
|
+
}
|
|
14
|
+
static get is() { return "xv-tooltip"; }
|
|
15
|
+
static get encapsulation() { return "shadow"; }
|
|
16
|
+
static get originalStyleUrls() {
|
|
17
|
+
return {
|
|
18
|
+
"$": ["xv-tooltip.scss"]
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
static get styleUrls() {
|
|
22
|
+
return {
|
|
23
|
+
"$": ["xv-tooltip.css"]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
static get properties() {
|
|
27
|
+
return {
|
|
28
|
+
"message": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"mutable": false,
|
|
31
|
+
"complexType": {
|
|
32
|
+
"original": "string",
|
|
33
|
+
"resolved": "string",
|
|
34
|
+
"references": {}
|
|
35
|
+
},
|
|
36
|
+
"required": false,
|
|
37
|
+
"optional": false,
|
|
38
|
+
"docs": {
|
|
39
|
+
"tags": [],
|
|
40
|
+
"text": "Message what will be shown for tooltip *"
|
|
41
|
+
},
|
|
42
|
+
"getter": false,
|
|
43
|
+
"setter": false,
|
|
44
|
+
"attribute": "message",
|
|
45
|
+
"reflect": false
|
|
46
|
+
},
|
|
47
|
+
"position": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"mutable": false,
|
|
50
|
+
"complexType": {
|
|
51
|
+
"original": "'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'right'",
|
|
52
|
+
"resolved": "\"bottom\" | \"bottom-left\" | \"bottom-right\" | \"left\" | \"right\" | \"top\" | \"top-left\" | \"top-right\"",
|
|
53
|
+
"references": {}
|
|
54
|
+
},
|
|
55
|
+
"required": false,
|
|
56
|
+
"optional": false,
|
|
57
|
+
"docs": {
|
|
58
|
+
"tags": [],
|
|
59
|
+
"text": "Tooltip and arrow position related to element\r\npossible options: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'right'.\r\nBy default, \"top\""
|
|
60
|
+
},
|
|
61
|
+
"getter": false,
|
|
62
|
+
"setter": false,
|
|
63
|
+
"attribute": "position",
|
|
64
|
+
"reflect": false,
|
|
65
|
+
"defaultValue": "'top'"
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=xv-tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xv-tooltip.js","sourceRoot":"","sources":["../../../src/components/xv-tooltip/xv-tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,SAAS;IALtB;QAQE;;;;WAIG;QACK,aAAQ,GAAoG,KAAK,CAAC;KAgB3H;IAdC,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,cAAc,IAAI,CAAC,QAAQ,EAAE;YAC/D;gBACE,4DAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE;oBACjF,6DACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,yTAAyT,GAC3T,CACE,CACD,CACF,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'xv-tooltip',\r\n styleUrl: 'xv-tooltip.scss',\r\n shadow: true,\r\n})\r\nexport class XvTooltip {\r\n /** Message what will be shown for tooltip **/\r\n @Prop() message: string;\r\n /**\r\n * Tooltip and arrow position related to element\r\n * possible options: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'right'.\r\n * By default, \"top\"\r\n */\r\n @Prop() position: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'right' = 'top';\r\n\r\n render() {\r\n return (\r\n <Host tooltip={this.message} class={`xv-tooltip_${this.position}`}>\r\n <slot>\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width={16} height={16}>\r\n <path\r\n fill=\"currentColor\"\r\n d=\"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z\"\r\n />\r\n </svg>\r\n </slot>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export function format(first, middle, last) {
|
|
2
2
|
return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
|
|
3
3
|
}
|
|
4
|
+
export function uidGenerator() {
|
|
5
|
+
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, c => (+c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +c / 4).toString(16));
|
|
6
|
+
}
|
|
4
7
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,KAAc,EAAE,MAAe,EAAE,IAAa;IACnE,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AACjF,CAAC","sourcesContent":["export function format(first?: string, middle?: string, last?: string): string {\r\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,KAAc,EAAE,MAAe,EAAE,IAAa;IACnE,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AACjF,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,OAAO,sCAAsC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAClE,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,eAAe,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAChF,CAAC;AACJ,CAAC","sourcesContent":["export function format(first?: string, middle?: string, last?: string): string {\r\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\r\n}\r\n\r\nexport function uidGenerator() {\r\n return \"10000000-1000-4000-8000-100000000000\".replace(/[018]/g, c =>\r\n (+c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +c / 4).toString(16)\r\n );\r\n}\r\n"]}
|