@paperless/core 0.1.0-alpha.2 → 0.1.0-alpha.20
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/CHANGELOG.md +180 -0
- package/README.md +18 -1
- package/dist/assets/images/avatar/company-default.svg +12 -0
- package/dist/assets/images/avatar/user-default.svg +12 -0
- package/dist/assets/images/helper/helper-hover.svg +15 -0
- package/dist/assets/images/helper/helper.svg +15 -0
- package/dist/build/{p-1d13a9d2.entry.js → p-14ceb308.entry.js} +1 -1
- package/dist/build/p-17c11169.entry.js +1 -0
- package/dist/build/p-42dab9d4.entry.js +1 -0
- package/dist/build/p-47b52f92.entry.js +1 -0
- package/dist/build/p-5ec6ea71.entry.js +1 -0
- package/dist/build/p-76464e0b.js +2 -0
- package/dist/build/{p-feec8ec1.entry.js → p-8501ba07.entry.js} +1 -1
- package/dist/build/p-aae3d4f0.entry.js +1 -0
- package/dist/build/p-adcb0b93.entry.js +1 -0
- package/dist/build/p-bbec0e86.entry.js +1 -0
- package/dist/build/p-d23e4d57.entry.js +1 -0
- package/dist/build/p-f65d7bbf.entry.js +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{index-5b30cb95.js → index-a46a39a5.js} +494 -9
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{p-loader.cjs.entry.js → p-avatar.cjs.entry.js} +13 -38
- package/dist/cjs/{p-icon.cjs.entry.js → p-button_3.cjs.entry.js} +108 -5
- package/dist/cjs/p-counter.cjs.entry.js +19 -0
- package/dist/cjs/p-divider.cjs.entry.js +19 -0
- package/dist/cjs/{p-button.cjs.entry.js → p-helper.cjs.entry.js} +6 -10
- package/dist/cjs/p-illustration.cjs.entry.js +9 -12
- package/dist/cjs/p-info-panel.cjs.entry.js +31 -0
- package/dist/cjs/p-navigation-item.cjs.entry.js +23 -0
- package/dist/cjs/p-pagination-item.cjs.entry.js +23 -0
- package/dist/cjs/p-pagination.cjs.entry.js +167 -0
- package/dist/cjs/p-tooltip.cjs.entry.js +62 -20
- package/dist/cjs/paperless.cjs.js +2 -2
- package/dist/collection/assets/images/avatar/company-default.svg +12 -0
- package/dist/collection/assets/images/avatar/user-default.svg +12 -0
- package/dist/collection/assets/images/helper/helper-hover.svg +15 -0
- package/dist/collection/assets/images/helper/helper.svg +15 -0
- package/dist/collection/collection-manifest.json +9 -1
- package/dist/collection/components/atoms/avatar/avatar.component.css +31 -0
- package/dist/collection/components/atoms/avatar/avatar.component.js +105 -0
- package/dist/collection/components/atoms/button/button.component.css +68 -3
- package/dist/collection/components/atoms/button/button.component.js +241 -7
- package/dist/collection/components/atoms/counter/counter.component.css +5 -0
- package/dist/collection/components/atoms/counter/counter.component.js +15 -0
- package/dist/collection/components/atoms/divider/divider.component.css +3 -0
- package/dist/collection/components/atoms/divider/divider.component.js +14 -0
- package/dist/collection/components/atoms/helper/helper.component.css +7 -0
- package/dist/collection/components/atoms/helper/helper.component.js +18 -0
- package/dist/collection/components/atoms/icon/icon.component.js +2 -7
- package/dist/collection/components/atoms/illustration/illustration.component.js +2 -9
- package/dist/collection/components/atoms/info-panel/info-panel.component.css +28 -0
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +106 -0
- package/dist/collection/components/atoms/loader/loader.component.js +1 -1
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +16 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +41 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.css +15 -12
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +122 -32
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +28 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +118 -0
- package/dist/collection/components/molecules/pagination/pagination.component.css +3 -0
- package/dist/collection/components/molecules/pagination/pagination.component.js +238 -0
- package/dist/collection/components/molecules/pagination/pagination.value-accessor.js +6 -0
- package/dist/collection/tailwind/border-radius.js +1 -0
- package/dist/collection/tailwind/grid.js +24 -4
- package/dist/collection/tailwind.config.js +1 -1
- package/dist/collection/value-accessors.config.js +5 -0
- package/dist/components/counter.component.js +30 -0
- package/dist/{esm/p-icon.entry.js → components/icon.component.js} +26 -11
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.js +8 -0
- package/dist/{esm/p-loader.entry.js → components/loader.component.js} +30 -9
- package/dist/components/p-avatar.d.ts +11 -0
- package/dist/components/p-avatar.js +52 -0
- package/dist/components/p-button.js +67 -8
- package/dist/components/p-counter.d.ts +11 -0
- package/dist/components/p-counter.js +6 -0
- package/dist/components/p-divider.d.ts +11 -0
- package/dist/components/p-divider.js +33 -0
- package/dist/components/p-helper.d.ts +11 -0
- package/dist/components/p-helper.js +39 -0
- package/dist/components/p-icon.js +1 -815
- package/dist/components/p-illustration.js +0 -4
- package/dist/components/p-info-panel.d.ts +11 -0
- package/dist/components/p-info-panel.js +56 -0
- package/dist/components/p-loader.js +1 -72
- package/dist/components/p-navigation-item.d.ts +11 -0
- package/dist/components/p-navigation-item.js +55 -0
- package/dist/components/p-pagination-item.d.ts +11 -0
- package/dist/components/p-pagination-item.js +6 -0
- package/dist/components/p-pagination.d.ts +11 -0
- package/dist/components/p-pagination.js +196 -0
- package/dist/components/p-tooltip.js +1 -1886
- package/dist/components/pagination-item.component.js +36 -0
- package/dist/components/tooltip.component.js +1932 -0
- package/dist/esm/{index-111a6307.js → index-a68e547b.js} +494 -10
- package/dist/esm/loader.js +2 -2
- package/dist/esm/p-avatar.entry.js +28 -0
- package/dist/esm/p-button_3.entry.js +899 -0
- package/dist/esm/p-counter.entry.js +15 -0
- package/dist/esm/p-divider.entry.js +15 -0
- package/dist/esm/{p-button.entry.js → p-helper.entry.js} +6 -10
- package/dist/esm/p-illustration.entry.js +9 -12
- package/dist/esm/p-info-panel.entry.js +27 -0
- package/dist/esm/p-navigation-item.entry.js +19 -0
- package/dist/esm/p-pagination-item.entry.js +19 -0
- package/dist/esm/p-pagination.entry.js +163 -0
- package/dist/esm/p-tooltip.entry.js +62 -20
- package/dist/esm/paperless.js +2 -2
- package/dist/index.html +1 -1
- package/dist/paperless/{p-1d13a9d2.entry.js → p-14ceb308.entry.js} +1 -1
- package/dist/paperless/p-17c11169.entry.js +1 -0
- package/dist/paperless/p-42dab9d4.entry.js +1 -0
- package/dist/paperless/p-47b52f92.entry.js +1 -0
- package/dist/paperless/p-5ec6ea71.entry.js +1 -0
- package/dist/paperless/p-76464e0b.js +2 -0
- package/dist/paperless/{p-feec8ec1.entry.js → p-8501ba07.entry.js} +1 -1
- package/dist/paperless/p-aae3d4f0.entry.js +1 -0
- package/dist/paperless/p-adcb0b93.entry.js +1 -0
- package/dist/paperless/p-bbec0e86.entry.js +1 -0
- package/dist/paperless/p-d23e4d57.entry.js +1 -0
- package/dist/paperless/p-f65d7bbf.entry.js +1 -0
- package/dist/paperless/paperless.css +96 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +248 -51
- package/dist/tailwind.config.js +1 -1
- package/dist/types/components/atoms/avatar/avatar.component.d.ts +21 -0
- package/dist/types/components/atoms/button/button.component.d.ts +45 -1
- package/dist/types/components/atoms/counter/counter.component.d.ts +3 -0
- package/dist/types/components/atoms/divider/divider.component.d.ts +3 -0
- package/dist/types/components/atoms/helper/helper.component.d.ts +3 -0
- package/dist/types/components/atoms/info-panel/info-panel.component.d.ts +24 -0
- package/dist/types/components/atoms/pagination-item/pagination-item.component.d.ts +7 -0
- package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +20 -8
- package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +24 -0
- package/dist/types/components/molecules/pagination/pagination.component.d.ts +28 -0
- package/dist/types/components/molecules/pagination/pagination.value-accessor.d.ts +2 -0
- package/dist/types/components.d.ts +358 -16
- package/dist/types/value-accessors.config.d.ts +2 -0
- package/package.json +1 -1
- package/dist/build/p-208c1f28.entry.js +0 -1
- package/dist/build/p-98d07776.js +0 -2
- package/dist/build/p-bbd1d3df.entry.js +0 -1
- package/dist/build/p-cd525dcc.entry.js +0 -1
- package/dist/paperless/p-208c1f28.entry.js +0 -1
- package/dist/paperless/p-98d07776.js +0 -2
- package/dist/paperless/p-bbd1d3df.entry.js +0 -1
- package/dist/paperless/p-cd525dcc.entry.js +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
export declare class Pagination {
|
|
3
|
+
/**
|
|
4
|
+
* The current page
|
|
5
|
+
*/
|
|
6
|
+
value: number;
|
|
7
|
+
valueChange: EventEmitter<number>;
|
|
8
|
+
/**
|
|
9
|
+
* The amount of items per page
|
|
10
|
+
*/
|
|
11
|
+
pageSize: number;
|
|
12
|
+
/**
|
|
13
|
+
* The total amount of items
|
|
14
|
+
*/
|
|
15
|
+
total: number;
|
|
16
|
+
private _pages;
|
|
17
|
+
private _set;
|
|
18
|
+
componentWillRender(): void;
|
|
19
|
+
render(): any;
|
|
20
|
+
protected pageChangeHandler(): void;
|
|
21
|
+
private _generate;
|
|
22
|
+
private _changePage;
|
|
23
|
+
private _previousClick;
|
|
24
|
+
private _nextClick;
|
|
25
|
+
private _pageClick;
|
|
26
|
+
private _generatePages;
|
|
27
|
+
private _generateSet;
|
|
28
|
+
}
|
|
@@ -6,15 +6,76 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { IconFlipOptions, IconVariant } from "./components/atoms/icon/icon.component";
|
|
9
|
+
import { IconFlipOptions as IconFlipOptions1, IconVariant as IconVariant1 } from "./components/atoms/icon/icon.component";
|
|
9
10
|
import { IllustrationVariant } from "./components/atoms/illustration/illustration.component";
|
|
10
11
|
import { Observable } from "rxjs";
|
|
11
12
|
import { Placement } from "@popperjs/core";
|
|
12
13
|
export namespace Components {
|
|
14
|
+
interface PAvatar {
|
|
15
|
+
/**
|
|
16
|
+
* The default image to show on errors
|
|
17
|
+
*/
|
|
18
|
+
"defaultImage": string;
|
|
19
|
+
/**
|
|
20
|
+
* The size of the avatar
|
|
21
|
+
*/
|
|
22
|
+
"size": 'small' | 'medium' | 'large';
|
|
23
|
+
/**
|
|
24
|
+
* The image used for the avatar
|
|
25
|
+
*/
|
|
26
|
+
"src": string;
|
|
27
|
+
/**
|
|
28
|
+
* The variant of the avatar
|
|
29
|
+
*/
|
|
30
|
+
"variant": 'user' | 'company';
|
|
31
|
+
}
|
|
13
32
|
interface PButton {
|
|
33
|
+
/**
|
|
34
|
+
* Wether the button is disabled
|
|
35
|
+
*/
|
|
36
|
+
"disabled": boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Href in case of "text" version
|
|
39
|
+
*/
|
|
40
|
+
"href": string;
|
|
41
|
+
/**
|
|
42
|
+
* Icon to show on the button
|
|
43
|
+
*/
|
|
44
|
+
"icon": IconVariant;
|
|
45
|
+
/**
|
|
46
|
+
* Icon flip
|
|
47
|
+
*/
|
|
48
|
+
"iconFlip": IconFlipOptions;
|
|
49
|
+
/**
|
|
50
|
+
* Icon position
|
|
51
|
+
*/
|
|
52
|
+
"iconPosition": 'start' | 'end';
|
|
53
|
+
/**
|
|
54
|
+
* Icon rotate
|
|
55
|
+
*/
|
|
56
|
+
"iconRotate": number;
|
|
57
|
+
/**
|
|
58
|
+
* Wether to show a loader or not
|
|
59
|
+
*/
|
|
60
|
+
"loading": boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The size of the button
|
|
63
|
+
*/
|
|
64
|
+
"size": 'small' | 'medium';
|
|
65
|
+
/**
|
|
66
|
+
* Target in case of "text" version
|
|
67
|
+
*/
|
|
68
|
+
"target": string;
|
|
14
69
|
/**
|
|
15
70
|
* The variant of the button
|
|
16
71
|
*/
|
|
17
|
-
"variant": 'primary' | 'secondary';
|
|
72
|
+
"variant": 'primary' | 'secondary' | 'text';
|
|
73
|
+
}
|
|
74
|
+
interface PCounter {
|
|
75
|
+
}
|
|
76
|
+
interface PDivider {
|
|
77
|
+
}
|
|
78
|
+
interface PHelper {
|
|
18
79
|
}
|
|
19
80
|
interface PIcon {
|
|
20
81
|
/**
|
|
@@ -40,6 +101,24 @@ export namespace Components {
|
|
|
40
101
|
*/
|
|
41
102
|
"variant": IllustrationVariant;
|
|
42
103
|
}
|
|
104
|
+
interface PInfoPanel {
|
|
105
|
+
/**
|
|
106
|
+
* Wether the panel can be closed
|
|
107
|
+
*/
|
|
108
|
+
"closeable": boolean;
|
|
109
|
+
/**
|
|
110
|
+
* The content of the info panel
|
|
111
|
+
*/
|
|
112
|
+
"content": string;
|
|
113
|
+
/**
|
|
114
|
+
* The header of the info panel
|
|
115
|
+
*/
|
|
116
|
+
"header": string;
|
|
117
|
+
/**
|
|
118
|
+
* The variant of the info panel
|
|
119
|
+
*/
|
|
120
|
+
"variant": 'info' | 'negative' | 'positive' | 'unbiased';
|
|
121
|
+
}
|
|
43
122
|
interface PLoader {
|
|
44
123
|
/**
|
|
45
124
|
* Color of the loader
|
|
@@ -62,28 +141,110 @@ export namespace Components {
|
|
|
62
141
|
*/
|
|
63
142
|
"variant": 'inline' | 'full-width' | 'full-screen' | 'modal';
|
|
64
143
|
}
|
|
65
|
-
interface
|
|
144
|
+
interface PNavigationItem {
|
|
145
|
+
/**
|
|
146
|
+
* Wether the navigation item is active
|
|
147
|
+
*/
|
|
148
|
+
"active": boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Icon of the navigation item
|
|
151
|
+
*/
|
|
152
|
+
"counter": number | string;
|
|
153
|
+
/**
|
|
154
|
+
* The href of the navigation item
|
|
155
|
+
*/
|
|
156
|
+
"href": string;
|
|
157
|
+
/**
|
|
158
|
+
* Icon of the navigation item
|
|
159
|
+
*/
|
|
160
|
+
"icon": IconVariant;
|
|
161
|
+
/**
|
|
162
|
+
* The target of the navigation item
|
|
163
|
+
*/
|
|
164
|
+
"target": string;
|
|
165
|
+
}
|
|
166
|
+
interface PPagination {
|
|
167
|
+
/**
|
|
168
|
+
* The amount of items per page
|
|
169
|
+
*/
|
|
170
|
+
"pageSize": number;
|
|
171
|
+
/**
|
|
172
|
+
* The total amount of items
|
|
173
|
+
*/
|
|
174
|
+
"total": number;
|
|
175
|
+
/**
|
|
176
|
+
* The current page
|
|
177
|
+
*/
|
|
178
|
+
"value": number;
|
|
179
|
+
}
|
|
180
|
+
interface PPaginationItem {
|
|
66
181
|
/**
|
|
67
|
-
*
|
|
182
|
+
* Wether the pagination item is active
|
|
68
183
|
*/
|
|
69
|
-
"
|
|
184
|
+
"active": boolean;
|
|
185
|
+
}
|
|
186
|
+
interface PTooltip {
|
|
70
187
|
/**
|
|
71
|
-
* Wether to
|
|
188
|
+
* Wether to someone can manually close the popover
|
|
72
189
|
*/
|
|
73
|
-
"
|
|
190
|
+
"canManuallyClose": boolean;
|
|
74
191
|
/**
|
|
75
|
-
* The content of the
|
|
192
|
+
* The content of the popover
|
|
76
193
|
*/
|
|
77
194
|
"placement": Placement;
|
|
195
|
+
/**
|
|
196
|
+
* The content of the popover
|
|
197
|
+
*/
|
|
198
|
+
"popover": any;
|
|
199
|
+
/**
|
|
200
|
+
* Wether to show the popover
|
|
201
|
+
*/
|
|
202
|
+
"show": boolean;
|
|
203
|
+
/**
|
|
204
|
+
* The variant of the popover
|
|
205
|
+
*/
|
|
206
|
+
"variant": 'hover' | 'click';
|
|
78
207
|
}
|
|
79
208
|
}
|
|
209
|
+
export interface PButtonCustomEvent<T> extends CustomEvent<T> {
|
|
210
|
+
detail: T;
|
|
211
|
+
target: HTMLPButtonElement;
|
|
212
|
+
}
|
|
213
|
+
export interface PPaginationCustomEvent<T> extends CustomEvent<T> {
|
|
214
|
+
detail: T;
|
|
215
|
+
target: HTMLPPaginationElement;
|
|
216
|
+
}
|
|
80
217
|
declare global {
|
|
218
|
+
interface HTMLPAvatarElement extends Components.PAvatar, HTMLStencilElement {
|
|
219
|
+
}
|
|
220
|
+
var HTMLPAvatarElement: {
|
|
221
|
+
prototype: HTMLPAvatarElement;
|
|
222
|
+
new (): HTMLPAvatarElement;
|
|
223
|
+
};
|
|
81
224
|
interface HTMLPButtonElement extends Components.PButton, HTMLStencilElement {
|
|
82
225
|
}
|
|
83
226
|
var HTMLPButtonElement: {
|
|
84
227
|
prototype: HTMLPButtonElement;
|
|
85
228
|
new (): HTMLPButtonElement;
|
|
86
229
|
};
|
|
230
|
+
interface HTMLPCounterElement extends Components.PCounter, HTMLStencilElement {
|
|
231
|
+
}
|
|
232
|
+
var HTMLPCounterElement: {
|
|
233
|
+
prototype: HTMLPCounterElement;
|
|
234
|
+
new (): HTMLPCounterElement;
|
|
235
|
+
};
|
|
236
|
+
interface HTMLPDividerElement extends Components.PDivider, HTMLStencilElement {
|
|
237
|
+
}
|
|
238
|
+
var HTMLPDividerElement: {
|
|
239
|
+
prototype: HTMLPDividerElement;
|
|
240
|
+
new (): HTMLPDividerElement;
|
|
241
|
+
};
|
|
242
|
+
interface HTMLPHelperElement extends Components.PHelper, HTMLStencilElement {
|
|
243
|
+
}
|
|
244
|
+
var HTMLPHelperElement: {
|
|
245
|
+
prototype: HTMLPHelperElement;
|
|
246
|
+
new (): HTMLPHelperElement;
|
|
247
|
+
};
|
|
87
248
|
interface HTMLPIconElement extends Components.PIcon, HTMLStencilElement {
|
|
88
249
|
}
|
|
89
250
|
var HTMLPIconElement: {
|
|
@@ -96,12 +257,36 @@ declare global {
|
|
|
96
257
|
prototype: HTMLPIllustrationElement;
|
|
97
258
|
new (): HTMLPIllustrationElement;
|
|
98
259
|
};
|
|
260
|
+
interface HTMLPInfoPanelElement extends Components.PInfoPanel, HTMLStencilElement {
|
|
261
|
+
}
|
|
262
|
+
var HTMLPInfoPanelElement: {
|
|
263
|
+
prototype: HTMLPInfoPanelElement;
|
|
264
|
+
new (): HTMLPInfoPanelElement;
|
|
265
|
+
};
|
|
99
266
|
interface HTMLPLoaderElement extends Components.PLoader, HTMLStencilElement {
|
|
100
267
|
}
|
|
101
268
|
var HTMLPLoaderElement: {
|
|
102
269
|
prototype: HTMLPLoaderElement;
|
|
103
270
|
new (): HTMLPLoaderElement;
|
|
104
271
|
};
|
|
272
|
+
interface HTMLPNavigationItemElement extends Components.PNavigationItem, HTMLStencilElement {
|
|
273
|
+
}
|
|
274
|
+
var HTMLPNavigationItemElement: {
|
|
275
|
+
prototype: HTMLPNavigationItemElement;
|
|
276
|
+
new (): HTMLPNavigationItemElement;
|
|
277
|
+
};
|
|
278
|
+
interface HTMLPPaginationElement extends Components.PPagination, HTMLStencilElement {
|
|
279
|
+
}
|
|
280
|
+
var HTMLPPaginationElement: {
|
|
281
|
+
prototype: HTMLPPaginationElement;
|
|
282
|
+
new (): HTMLPPaginationElement;
|
|
283
|
+
};
|
|
284
|
+
interface HTMLPPaginationItemElement extends Components.PPaginationItem, HTMLStencilElement {
|
|
285
|
+
}
|
|
286
|
+
var HTMLPPaginationItemElement: {
|
|
287
|
+
prototype: HTMLPPaginationItemElement;
|
|
288
|
+
new (): HTMLPPaginationItemElement;
|
|
289
|
+
};
|
|
105
290
|
interface HTMLPTooltipElement extends Components.PTooltip, HTMLStencilElement {
|
|
106
291
|
}
|
|
107
292
|
var HTMLPTooltipElement: {
|
|
@@ -109,19 +294,91 @@ declare global {
|
|
|
109
294
|
new (): HTMLPTooltipElement;
|
|
110
295
|
};
|
|
111
296
|
interface HTMLElementTagNameMap {
|
|
297
|
+
"p-avatar": HTMLPAvatarElement;
|
|
112
298
|
"p-button": HTMLPButtonElement;
|
|
299
|
+
"p-counter": HTMLPCounterElement;
|
|
300
|
+
"p-divider": HTMLPDividerElement;
|
|
301
|
+
"p-helper": HTMLPHelperElement;
|
|
113
302
|
"p-icon": HTMLPIconElement;
|
|
114
303
|
"p-illustration": HTMLPIllustrationElement;
|
|
304
|
+
"p-info-panel": HTMLPInfoPanelElement;
|
|
115
305
|
"p-loader": HTMLPLoaderElement;
|
|
306
|
+
"p-navigation-item": HTMLPNavigationItemElement;
|
|
307
|
+
"p-pagination": HTMLPPaginationElement;
|
|
308
|
+
"p-pagination-item": HTMLPPaginationItemElement;
|
|
116
309
|
"p-tooltip": HTMLPTooltipElement;
|
|
117
310
|
}
|
|
118
311
|
}
|
|
119
312
|
declare namespace LocalJSX {
|
|
313
|
+
interface PAvatar {
|
|
314
|
+
/**
|
|
315
|
+
* The default image to show on errors
|
|
316
|
+
*/
|
|
317
|
+
"defaultImage"?: string;
|
|
318
|
+
/**
|
|
319
|
+
* The size of the avatar
|
|
320
|
+
*/
|
|
321
|
+
"size"?: 'small' | 'medium' | 'large';
|
|
322
|
+
/**
|
|
323
|
+
* The image used for the avatar
|
|
324
|
+
*/
|
|
325
|
+
"src": string;
|
|
326
|
+
/**
|
|
327
|
+
* The variant of the avatar
|
|
328
|
+
*/
|
|
329
|
+
"variant"?: 'user' | 'company';
|
|
330
|
+
}
|
|
120
331
|
interface PButton {
|
|
332
|
+
/**
|
|
333
|
+
* Wether the button is disabled
|
|
334
|
+
*/
|
|
335
|
+
"disabled"?: boolean;
|
|
336
|
+
/**
|
|
337
|
+
* Href in case of "text" version
|
|
338
|
+
*/
|
|
339
|
+
"href"?: string;
|
|
340
|
+
/**
|
|
341
|
+
* Icon to show on the button
|
|
342
|
+
*/
|
|
343
|
+
"icon"?: IconVariant;
|
|
344
|
+
/**
|
|
345
|
+
* Icon flip
|
|
346
|
+
*/
|
|
347
|
+
"iconFlip"?: IconFlipOptions;
|
|
348
|
+
/**
|
|
349
|
+
* Icon position
|
|
350
|
+
*/
|
|
351
|
+
"iconPosition"?: 'start' | 'end';
|
|
352
|
+
/**
|
|
353
|
+
* Icon rotate
|
|
354
|
+
*/
|
|
355
|
+
"iconRotate"?: number;
|
|
356
|
+
/**
|
|
357
|
+
* Wether to show a loader or not
|
|
358
|
+
*/
|
|
359
|
+
"loading"?: boolean;
|
|
360
|
+
/**
|
|
361
|
+
* Button click event
|
|
362
|
+
*/
|
|
363
|
+
"onOnClick"?: (event: PButtonCustomEvent<MouseEvent>) => void;
|
|
364
|
+
/**
|
|
365
|
+
* The size of the button
|
|
366
|
+
*/
|
|
367
|
+
"size"?: 'small' | 'medium';
|
|
368
|
+
/**
|
|
369
|
+
* Target in case of "text" version
|
|
370
|
+
*/
|
|
371
|
+
"target"?: string;
|
|
121
372
|
/**
|
|
122
373
|
* The variant of the button
|
|
123
374
|
*/
|
|
124
|
-
"variant"?: 'primary' | 'secondary';
|
|
375
|
+
"variant"?: 'primary' | 'secondary' | 'text';
|
|
376
|
+
}
|
|
377
|
+
interface PCounter {
|
|
378
|
+
}
|
|
379
|
+
interface PDivider {
|
|
380
|
+
}
|
|
381
|
+
interface PHelper {
|
|
125
382
|
}
|
|
126
383
|
interface PIcon {
|
|
127
384
|
/**
|
|
@@ -139,13 +396,31 @@ declare namespace LocalJSX {
|
|
|
139
396
|
/**
|
|
140
397
|
* The icon the be displayed
|
|
141
398
|
*/
|
|
142
|
-
"variant"
|
|
399
|
+
"variant": IconVariant;
|
|
143
400
|
}
|
|
144
401
|
interface PIllustration {
|
|
145
402
|
/**
|
|
146
403
|
* The icon the be displayed
|
|
147
404
|
*/
|
|
148
|
-
"variant"
|
|
405
|
+
"variant": IllustrationVariant;
|
|
406
|
+
}
|
|
407
|
+
interface PInfoPanel {
|
|
408
|
+
/**
|
|
409
|
+
* Wether the panel can be closed
|
|
410
|
+
*/
|
|
411
|
+
"closeable"?: boolean;
|
|
412
|
+
/**
|
|
413
|
+
* The content of the info panel
|
|
414
|
+
*/
|
|
415
|
+
"content"?: string;
|
|
416
|
+
/**
|
|
417
|
+
* The header of the info panel
|
|
418
|
+
*/
|
|
419
|
+
"header"?: string;
|
|
420
|
+
/**
|
|
421
|
+
* The variant of the info panel
|
|
422
|
+
*/
|
|
423
|
+
"variant"?: 'info' | 'negative' | 'positive' | 'unbiased';
|
|
149
424
|
}
|
|
150
425
|
interface PLoader {
|
|
151
426
|
/**
|
|
@@ -169,25 +444,84 @@ declare namespace LocalJSX {
|
|
|
169
444
|
*/
|
|
170
445
|
"variant"?: 'inline' | 'full-width' | 'full-screen' | 'modal';
|
|
171
446
|
}
|
|
172
|
-
interface
|
|
447
|
+
interface PNavigationItem {
|
|
448
|
+
/**
|
|
449
|
+
* Wether the navigation item is active
|
|
450
|
+
*/
|
|
451
|
+
"active"?: boolean;
|
|
452
|
+
/**
|
|
453
|
+
* Icon of the navigation item
|
|
454
|
+
*/
|
|
455
|
+
"counter"?: number | string;
|
|
456
|
+
/**
|
|
457
|
+
* The href of the navigation item
|
|
458
|
+
*/
|
|
459
|
+
"href"?: string;
|
|
460
|
+
/**
|
|
461
|
+
* Icon of the navigation item
|
|
462
|
+
*/
|
|
463
|
+
"icon"?: IconVariant;
|
|
464
|
+
/**
|
|
465
|
+
* The target of the navigation item
|
|
466
|
+
*/
|
|
467
|
+
"target"?: string;
|
|
468
|
+
}
|
|
469
|
+
interface PPagination {
|
|
470
|
+
"onValueChange"?: (event: PPaginationCustomEvent<number>) => void;
|
|
471
|
+
/**
|
|
472
|
+
* The amount of items per page
|
|
473
|
+
*/
|
|
474
|
+
"pageSize"?: number;
|
|
173
475
|
/**
|
|
174
|
-
* The
|
|
476
|
+
* The total amount of items
|
|
175
477
|
*/
|
|
176
|
-
"
|
|
478
|
+
"total": number;
|
|
177
479
|
/**
|
|
178
|
-
*
|
|
480
|
+
* The current page
|
|
179
481
|
*/
|
|
180
|
-
"
|
|
482
|
+
"value"?: number;
|
|
483
|
+
}
|
|
484
|
+
interface PPaginationItem {
|
|
181
485
|
/**
|
|
182
|
-
*
|
|
486
|
+
* Wether the pagination item is active
|
|
487
|
+
*/
|
|
488
|
+
"active"?: boolean;
|
|
489
|
+
}
|
|
490
|
+
interface PTooltip {
|
|
491
|
+
/**
|
|
492
|
+
* Wether to someone can manually close the popover
|
|
493
|
+
*/
|
|
494
|
+
"canManuallyClose"?: boolean;
|
|
495
|
+
/**
|
|
496
|
+
* The content of the popover
|
|
183
497
|
*/
|
|
184
498
|
"placement"?: Placement;
|
|
499
|
+
/**
|
|
500
|
+
* The content of the popover
|
|
501
|
+
*/
|
|
502
|
+
"popover"?: any;
|
|
503
|
+
/**
|
|
504
|
+
* Wether to show the popover
|
|
505
|
+
*/
|
|
506
|
+
"show"?: boolean;
|
|
507
|
+
/**
|
|
508
|
+
* The variant of the popover
|
|
509
|
+
*/
|
|
510
|
+
"variant"?: 'hover' | 'click';
|
|
185
511
|
}
|
|
186
512
|
interface IntrinsicElements {
|
|
513
|
+
"p-avatar": PAvatar;
|
|
187
514
|
"p-button": PButton;
|
|
515
|
+
"p-counter": PCounter;
|
|
516
|
+
"p-divider": PDivider;
|
|
517
|
+
"p-helper": PHelper;
|
|
188
518
|
"p-icon": PIcon;
|
|
189
519
|
"p-illustration": PIllustration;
|
|
520
|
+
"p-info-panel": PInfoPanel;
|
|
190
521
|
"p-loader": PLoader;
|
|
522
|
+
"p-navigation-item": PNavigationItem;
|
|
523
|
+
"p-pagination": PPagination;
|
|
524
|
+
"p-pagination-item": PPaginationItem;
|
|
191
525
|
"p-tooltip": PTooltip;
|
|
192
526
|
}
|
|
193
527
|
}
|
|
@@ -195,10 +529,18 @@ export { LocalJSX as JSX };
|
|
|
195
529
|
declare module "@stencil/core" {
|
|
196
530
|
export namespace JSX {
|
|
197
531
|
interface IntrinsicElements {
|
|
532
|
+
"p-avatar": LocalJSX.PAvatar & JSXBase.HTMLAttributes<HTMLPAvatarElement>;
|
|
198
533
|
"p-button": LocalJSX.PButton & JSXBase.HTMLAttributes<HTMLPButtonElement>;
|
|
534
|
+
"p-counter": LocalJSX.PCounter & JSXBase.HTMLAttributes<HTMLPCounterElement>;
|
|
535
|
+
"p-divider": LocalJSX.PDivider & JSXBase.HTMLAttributes<HTMLPDividerElement>;
|
|
536
|
+
"p-helper": LocalJSX.PHelper & JSXBase.HTMLAttributes<HTMLPHelperElement>;
|
|
199
537
|
"p-icon": LocalJSX.PIcon & JSXBase.HTMLAttributes<HTMLPIconElement>;
|
|
200
538
|
"p-illustration": LocalJSX.PIllustration & JSXBase.HTMLAttributes<HTMLPIllustrationElement>;
|
|
539
|
+
"p-info-panel": LocalJSX.PInfoPanel & JSXBase.HTMLAttributes<HTMLPInfoPanelElement>;
|
|
201
540
|
"p-loader": LocalJSX.PLoader & JSXBase.HTMLAttributes<HTMLPLoaderElement>;
|
|
541
|
+
"p-navigation-item": LocalJSX.PNavigationItem & JSXBase.HTMLAttributes<HTMLPNavigationItemElement>;
|
|
542
|
+
"p-pagination": LocalJSX.PPagination & JSXBase.HTMLAttributes<HTMLPPaginationElement>;
|
|
543
|
+
"p-pagination-item": LocalJSX.PPaginationItem & JSXBase.HTMLAttributes<HTMLPPaginationItemElement>;
|
|
202
544
|
"p-tooltip": LocalJSX.PTooltip & JSXBase.HTMLAttributes<HTMLPTooltipElement>;
|
|
203
545
|
}
|
|
204
546
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as o,H as r}from"./p-98d07776.js";const e=class{constructor(r){t(this,r),this.show=!0,this.variant="inline",this.color="indigo",this._show=this.show,this._loader=o("div",{class:`loader color-${this.color}`})}componentWillRender(){this._checkShow()}componentShouldUpdate(){this._checkShow()}render(){if(this._show)return"full-screen"===this.variant?o(r,{class:"p-loader"},o("div",{class:"loading-screen"},o("div",{class:"content"},o("slot",null),o("div",{class:"loader-wrapper"},this._loader)))):o(r,{class:`p-loader ${"full-width"===this.variant&&"w-100 d-block flex justify-center text-4xl"}`},this._loader)}_checkShow(){var t;this._showSubscriber&&(this._showSubscriber.unsubscribe(),this._showSubscriber=null),"boolean"==typeof this.show?this._show=this.show:this._showSubscriber=null===(t=this.show)||void 0===t?void 0:t.subscribe((t=>this._show=t))}};e.style='/*! tailwindcss v3.1.4 | MIT License | https://tailwindcss.com*/*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed!important}.top-0{top:0!important}.left-0{left:0!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.h-\\[1em\\]{height:1em!important}.w-\\[1em\\]{width:1em!important}.w-screen{width:100vw!important}.w-full{width:100%!important}@-webkit-keyframes spin{to{transform:rotate(1turn)}}.animate-spin{-webkit-animation:spin 1s linear infinite!important;animation:spin 1s linear infinite!important}.items-center{align-items:center!important}.border-2{border-width:2px!important}.border-solid{border-style:solid!important}.border-indigo-light{--tw-border-opacity:1!important;border-color:rgb(241 246 255/var(--tw-border-opacity))!important}.border-storm-light\\/40{border-color:rgba(176,178,203,.4)!important}.border-indigo-light\\/40{border-color:rgba(241,246,255,.4)!important}.border-t-indigo{--tw-border-opacity:1!important;border-top-color:rgb(82 138 250/var(--tw-border-opacity))!important}.border-t-storm{--tw-border-opacity:1!important;border-top-color:rgb(81 83 107/var(--tw-border-opacity))!important}.border-t-white{--tw-border-opacity:1!important;border-top-color:rgb(255 255 255/var(--tw-border-opacity))!important}:host .loader{--tw-border-opacity:1!important;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border-color:rgb(241 246 255/var(--tw-border-opacity))!important;border-radius:100%;border-style:solid!important;border-top:solid rgb(82 138 250/var(--tw-border-opacity))!important;border-width:2px!important;display:inline-block;height:1em;transition-duration:.5s;width:1em}:host .loader.color-storm{--tw-border-opacity:1!important;border-color:rgba(176,178,203,.4)!important;border-top-color:rgb(81 83 107/var(--tw-border-opacity))!important}:host .loader.color-white{--tw-border-opacity:1!important;border-color:rgba(241,246,255,.4)!important;border-top-color:rgb(255 255 255/var(--tw-border-opacity))!important}:host .loading-screen{--tw-bg-opacity:1;align-items:center;background-color:rgb(247 250 252/var(--tw-bg-opacity));display:flex;height:100vh;justify-content:center;left:0;position:fixed;top:0;width:100vw;z-index:9999}:host .loading-screen .content{max-width:20rem}:host .loading-screen .content .loader-wrapper{display:flex;justify-content:center;width:100%}:host .loading-screen .content .loader-wrapper .loader{font-size:2.25rem;line-height:2.5rem}.static{position:static!important}.inline{display:inline!important}.justify-center{justify-content:center!important}.text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}';export{e as p_loader}
|
package/dist/build/p-98d07776.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let e,t,n=!1;const l="undefined"!=typeof window?window:{},s=l.document||{head:{}},o={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},r=e=>Promise.resolve(e),c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),i=(e,t,n)=>{n&&n.map((([n,l,s])=>{const r=e,c=u(t,s),i=a(n);o.ael(r,l,c,i),(t.o=t.o||[]).push((()=>o.rel(r,l,c,i)))}))},u=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){G(e)}},a=e=>0!=(2&e),f=new WeakMap,h=e=>"sc-"+e.h,$={},p=e=>"object"==(e=typeof e)||"function"===e,y=(e,t,...n)=>{let l=null,s=!1,o=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!p(l))&&(l+=""),s&&o?r[r.length-1].$+=l:r.push(s?d(null,l):l),o=s)};if(c(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const i=d(e,null);return i.p=t,r.length>0&&(i.m=r),i},d=(e,t)=>({t:0,S:e,$:t,g:null,m:null,p:null}),m={},b=(e,t,n,l,s,o)=>{if(n!==l){let r=D(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,s=S(n),o=S(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("ref"===t)l&&l(e);else{const c=p(l);if((r||c&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const s=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&o||s)&&!c&&e.setAttribute(t,l=!0===l?"":l)}}},w=/\s/,S=e=>e?e.split(w):[],g=(e,t,n,l)=>{const s=11===t.g.nodeType&&t.g.host?t.g.host:t.g,o=e&&e.p||$,r=t.p||$;for(l in o)l in r||b(s,l,o[l],void 0,n,t.t);for(l in r)b(s,l,o[l],r[l],n,t.t)},j=(t,n,l)=>{const o=n.m[l];let r,c,i=0;if(null!==o.$)r=o.g=s.createTextNode(o.$);else if(r=o.g=s.createElement(o.S),g(null,o,!1),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),o.m)for(i=0;i<o.m.length;++i)c=j(t,o,i),c&&r.appendChild(c);return r},v=(e,n,l,s,o,r)=>{let c,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);o<=r;++o)s[o]&&(c=j(null,l,o),c&&(s[o].g=c,i.insertBefore(c,n)))},M=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.g,O(l),s.remove())},k=(e,t)=>e.S===t.S,C=(e,t)=>{const n=t.g=e.g,l=e.m,s=t.m,o=t.$;null===o?("slot"===t.S||g(e,t,!1),null!==l&&null!==s?((e,t,n,l)=>{let s,o=0,r=0,c=t.length-1,i=t[0],u=t[c],a=l.length-1,f=l[0],h=l[a];for(;o<=c&&r<=a;)null==i?i=t[++o]:null==u?u=t[--c]:null==f?f=l[++r]:null==h?h=l[--a]:k(i,f)?(C(i,f),i=t[++o],f=l[++r]):k(u,h)?(C(u,h),u=t[--c],h=l[--a]):k(i,h)?(C(i,h),e.insertBefore(i.g,u.g.nextSibling),i=t[++o],h=l[--a]):k(u,f)?(C(u,f),e.insertBefore(u.g,i.g),u=t[--c],f=l[++r]):(s=j(t&&t[r],n,r),f=l[++r],s&&i.g.parentNode.insertBefore(s,i.g));o>c?v(e,null==l[a+1]?null:l[a+1].g,n,l,r,a):r>a&&M(t,o,c)})(n,l,t,s):null!==s?(null!==e.$&&(n.textContent=""),v(n,null,t,s,0,s.length-1)):null!==l&&M(l,0,l.length-1)):e.$!==o&&(n.data=o)},O=e=>{e.p&&e.p.ref&&e.p.ref(null),e.m&&e.m.map(O)},P=e=>_(e).j,x=(e,t)=>{t&&!e.v&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.v=t)))},E=(e,t)=>{if(e.t|=16,!(4&e.t))return x(e,e.M),ne((()=>N(e,t)));e.t|=512},N=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>F(n,e,t))),e.u=null)),l=H(l,(()=>F(n,"componentWillRender"))),H(l,(()=>R(e,n,t)))},R=async(e,t,n)=>{const l=e.j,o=l["s-rc"];n&&(e=>{const t=e.k,n=e.j,l=t.t,o=((e,t)=>{let n=h(t);const l=K.get(n);if(e=11===e.nodeType?e:s,l)if("string"==typeof l){let t,o=f.get(e=e.head||e);o||f.set(e,o=new Set),o.has(n)||(t=s.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);T(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>W(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},T=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.j,o=n.C||d(null,null),r=(e=>e&&e.S===m)(l)?l:y(null,null,l);t=s.tagName,r.S=null,r.t|=4,n.C=r,r.g=o.g=s.shadowRoot||s,e=s["s-sc"],C(o,r)})(n,l)}catch(e){G(e,n.j)}return null},W=e=>{const t=e.j,n=e.M;64&e.t||(e.t|=64,L(t),e.O(t),n||A()),e.v&&(e.v(),e.v=void 0),512&e.t&&te((()=>E(e,!1))),e.t&=-517},A=()=>{L(s.documentElement),te((()=>(e=>{const t=o.ce("appload",{detail:{namespace:"paperless"}});return e.dispatchEvent(t),t})(l)))},F=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){G(e)}},H=(e,t)=>e&&e.then?e.then(t):t(),L=e=>e.classList.add("hydrated"),U=(e,t,n)=>{if(t.P){const l=Object.entries(t.P),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>_(this).N.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=_(e),o=s.N.get(t),r=s.t,c=s.i;if(n=((e,t)=>null==e||p(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.P[t][0]),(!(8&r)||void 0===o)&&n!==o&&(!Number.isNaN(o)||!Number.isNaN(n))&&(s.N.set(t,n),c&&2==(18&r))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,o,t))return;E(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){o.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},q=(e,t={})=>{const n=[],r=t.exclude||[],u=l.customElements,a=s.head,f=a.querySelector("meta[charset]"),$=s.createElement("style"),p=[];let y,d=!0;Object.assign(o,t),o.l=new URL(t.resourcesUrl||"./",s.baseURI).href,e.map((e=>{e[1].map((t=>{const l={t:t[0],h:t[1],P:t[2],R:t[3]};l.P=t[2],l.R=t[3];const s=l.h,a=class extends HTMLElement{constructor(e){super(e),B(e=this,l),1&l.t&&e.attachShadow({mode:"open"})}connectedCallback(){y&&(clearTimeout(y),y=null),d?p.push(this):o.jmp((()=>(e=>{if(0==(1&o.t)){const t=_(e),n=t.k,l=()=>{};if(1&t.t)i(e,t,n.R);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){x(t,t.M=n);break}}n.P&&Object.entries(n.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=J(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(U(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){G(e)}t.t&=-9,e()}if(s.style){let e=s.style;const t=h(n);if(!K.has(t)){const l=()=>{};((e,t,n)=>{let l=K.get(e);c&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,K.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.M,r=()=>E(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){o.jmp((()=>(()=>{if(0==(1&o.t)){const e=_(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return _(this).T}};l.W=e[0],r.includes(s)||u.get(s)||(n.push(s),u.define(s,U(a,l,1)))}))})),$.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",$.setAttribute("data-styles",""),a.insertBefore($,f?f.nextSibling:a.firstChild),d=!1,p.length?p.map((e=>e.connectedCallback())):o.jmp((()=>y=setTimeout(A,30)))},V=new WeakMap,_=e=>V.get(e),z=(e,t)=>V.set(t.i=e,t),B=(e,t)=>{const n={t:0,j:e,k:t,N:new Map};return n.T=new Promise((e=>n.O=e)),e["s-p"]=[],e["s-rc"]=[],i(e,n,t.R),V.set(e,n)},D=(e,t)=>t in e,G=(e,t)=>(0,console.error)(e,t),I=new Map,J=e=>{const t=e.h.replace(/-/g,"_"),n=e.W,l=I.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(I.set(n,e),e[t])),G)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},K=new Map,Q=[],X=[],Y=(e,t)=>l=>{e.push(l),n||(n=!0,t&&4&o.t?te(ee):o.raf(ee))},Z=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){G(e)}e.length=0},ee=()=>{Z(Q),Z(X),(n=Q.length>0)&&o.raf(ee)},te=e=>r().then(e),ne=Y(X,!0);export{m as H,q as b,P as g,y as h,r as p,z as r}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as r,g as o}from"./p-98d07776.js";var n="top",i="bottom",a="right",s="left",c=[n,i,a,s],u=c.reduce((function(t,e){return t.concat([e+"-start",e+"-end"])}),[]),p=[].concat(c,["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),f=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function l(t){return t?(t.nodeName||"").toLowerCase():null}function d(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function w(t){return t instanceof d(t).Element||t instanceof Element}function b(t){return t instanceof d(t).HTMLElement||t instanceof HTMLElement}function h(t){return"undefined"!=typeof ShadowRoot&&(t instanceof d(t).ShadowRoot||t instanceof ShadowRoot)}function v(t){return t.split("-")[0]}var m=Math.max,g=Math.min,y=Math.round;function x(t,e){void 0===e&&(e=!1);var r=t.getBoundingClientRect(),o=1,n=1;if(b(t)&&e){var i=t.offsetHeight,a=t.offsetWidth;a>0&&(o=y(r.width)/a||1),i>0&&(n=y(r.height)/i||1)}return{width:r.width/o,height:r.height/n,top:r.top/n,right:r.right/o,bottom:r.bottom/n,left:r.left/o,x:r.left/o,y:r.top/n}}function k(t){var e=x(t),r=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:o}}function O(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&h(r)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function j(t){return d(t).getComputedStyle(t)}function z(t){return["table","td","th"].indexOf(l(t))>=0}function M(t){return((w(t)?t.ownerDocument:t.document)||window.document).documentElement}function S(t){return"html"===l(t)?t:t.assignedSlot||t.parentNode||(h(t)?t.host:null)||M(t)}function E(t){return b(t)&&"fixed"!==j(t).position?t.offsetParent:null}function A(t){for(var e=d(t),r=E(t);r&&z(r)&&"static"===j(r).position;)r=E(r);return r&&("html"===l(r)||"body"===l(r)&&"static"===j(r).position)?e:r||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&b(t)&&"fixed"===j(t).position)return null;var r=S(t);for(h(r)&&(r=r.host);b(r)&&["html","body"].indexOf(l(r))<0;){var o=j(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(t)||e}function L(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function q(t,e,r){return m(t,g(e,r))}function B(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function I(t,e){return e.reduce((function(e,r){return e[r]=t,e}),{})}function R(t){return t.split("-")[1]}var P={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _(t){var e,r=t.popper,o=t.popperRect,c=t.placement,u=t.variation,p=t.offsets,f=t.position,l=t.gpuAcceleration,w=t.adaptive,b=t.roundOffsets,h=t.isFixed,v=p.x,m=void 0===v?0:v,g=p.y,x=void 0===g?0:g,k="function"==typeof b?b({x:m,y:x}):{x:m,y:x};m=k.x,x=k.y;var O=p.hasOwnProperty("x"),z=p.hasOwnProperty("y"),S=s,E=n,L=window;if(w){var q=A(r),B="clientHeight",I="clientWidth";q===d(r)&&"static"!==j(q=M(r)).position&&"absolute"===f&&(B="scrollHeight",I="scrollWidth"),q=q,(c===n||(c===s||c===a)&&"end"===u)&&(E=i,x-=(h&&q===L&&L.visualViewport?L.visualViewport.height:q[B])-o.height,x*=l?1:-1),c!==s&&(c!==n&&c!==i||"end"!==u)||(S=a,m-=(h&&q===L&&L.visualViewport?L.visualViewport.width:q[I])-o.width,m*=l?1:-1)}var R,_=Object.assign({position:f},w&&P),C=!0===b?function(t){var e=t.y,r=window.devicePixelRatio||1;return{x:y(t.x*r)/r||0,y:y(e*r)/r||0}}({x:m,y:x}):{x:m,y:x};return m=C.x,x=C.y,Object.assign({},_,l?((R={})[E]=z?"0":"",R[S]=O?"0":"",R.transform=(L.devicePixelRatio||1)<=1?"translate("+m+"px, "+x+"px)":"translate3d("+m+"px, "+x+"px, 0)",R):((e={})[E]=z?x+"px":"",e[S]=O?m+"px":"",e.transform="",e))}var C={passive:!0},H={left:"right",right:"left",bottom:"top",top:"bottom"};function T(t){return t.replace(/left|right|bottom|top/g,(function(t){return H[t]}))}var W={start:"end",end:"start"};function U(t){return t.replace(/start|end/g,(function(t){return W[t]}))}function N(t){var e=d(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function X(t){return x(M(t)).left+N(t).scrollLeft}function Y(t){var e=j(t);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function F(t){return["html","body","#document"].indexOf(l(t))>=0?t.ownerDocument.body:b(t)&&Y(t)?t:F(S(t))}function D(t,e){var r;void 0===e&&(e=[]);var o=F(t),n=o===(null==(r=t.ownerDocument)?void 0:r.body),i=d(o),a=n?[i].concat(i.visualViewport||[],Y(o)?o:[]):o,s=e.concat(a);return n?s:s.concat(D(S(a)))}function V(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function G(t,e){return"viewport"===e?V(function(t){var e=d(t),r=M(t),o=e.visualViewport,n=r.clientWidth,i=r.clientHeight,a=0,s=0;return o&&(n=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=o.offsetLeft,s=o.offsetTop)),{width:n,height:i,x:a+X(t),y:s}}(t)):w(e)?function(t){var e=x(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):V(function(t){var e,r=M(t),o=N(t),n=null==(e=t.ownerDocument)?void 0:e.body,i=m(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=m(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+X(t),c=-o.scrollTop;return"rtl"===j(n||r).direction&&(s+=m(r.clientWidth,n?n.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(M(t)))}function J(t){var e,r=t.reference,o=t.element,c=t.placement,u=c?v(c):null,p=c?R(c):null,f=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2;switch(u){case n:e={x:f,y:r.y-o.height};break;case i:e={x:f,y:r.y+r.height};break;case a:e={x:r.x+r.width,y:l};break;case s:e={x:r.x-o.width,y:l};break;default:e={x:r.x,y:r.y}}var d=u?L(u):null;if(null!=d){var w="y"===d?"height":"width";switch(p){case"start":e[d]=e[d]-(r[w]/2-o[w]/2);break;case"end":e[d]=e[d]+(r[w]/2-o[w]/2)}}return e}function K(t,e){void 0===e&&(e={});var r=e.placement,o=void 0===r?t.placement:r,s=e.boundary,u=void 0===s?"clippingParents":s,p=e.rootBoundary,f=void 0===p?"viewport":p,d=e.elementContext,h=void 0===d?"popper":d,v=e.altBoundary,y=void 0!==v&&v,k=e.padding,z=void 0===k?0:k,E=B("number"!=typeof z?z:I(z,c)),L=t.rects.popper,q=t.elements[y?"popper"===h?"reference":"popper":h],R=function(t,e,r){var o="clippingParents"===e?function(t){var e=D(S(t)),r=["absolute","fixed"].indexOf(j(t).position)>=0&&b(t)?A(t):t;return w(r)?e.filter((function(t){return w(t)&&O(t,r)&&"body"!==l(t)})):[]}(t):[].concat(e),n=[].concat(o,[r]),i=n.reduce((function(e,r){var o=G(t,r);return e.top=m(o.top,e.top),e.right=g(o.right,e.right),e.bottom=g(o.bottom,e.bottom),e.left=m(o.left,e.left),e}),G(t,n[0]));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}(w(q)?q:q.contextElement||M(t.elements.popper),u,f),P=x(t.elements.reference),_=J({reference:P,element:L,strategy:"absolute",placement:o}),C=V(Object.assign({},L,_)),H="popper"===h?C:P,T={top:R.top-H.top+E.top,bottom:H.bottom-R.bottom+E.bottom,left:R.left-H.left+E.left,right:H.right-R.right+E.right},W=t.modifiersData.offset;if("popper"===h&&W){var U=W[o];Object.keys(T).forEach((function(t){var e=[a,i].indexOf(t)>=0?1:-1,r=[n,i].indexOf(t)>=0?"y":"x";T[t]+=U[r]*e}))}return T}function Q(t,e){void 0===e&&(e={});var r=e.boundary,o=e.rootBoundary,n=e.padding,i=e.flipVariations,a=e.allowedAutoPlacements,s=void 0===a?p:a,f=R(e.placement),l=f?i?u:u.filter((function(t){return R(t)===f})):c,d=l.filter((function(t){return s.indexOf(t)>=0}));0===d.length&&(d=l);var w=d.reduce((function(e,i){return e[i]=K(t,{placement:i,boundary:r,rootBoundary:o,padding:n})[v(i)],e}),{});return Object.keys(w).sort((function(t,e){return w[t]-w[e]}))}function Z(t,e,r){return void 0===r&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function $(t){return[n,a,i,s].some((function(e){return t[e]>=0}))}function tt(t,e,r){void 0===r&&(r=!1);var o,n,i=b(e),a=b(e)&&function(t){var e=t.getBoundingClientRect(),r=y(e.width)/t.offsetWidth||1,o=y(e.height)/t.offsetHeight||1;return 1!==r||1!==o}(e),s=M(e),c=x(t,a),u={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(i||!i&&!r)&&(("body"!==l(e)||Y(s))&&(u=(o=e)!==d(o)&&b(o)?{scrollLeft:(n=o).scrollLeft,scrollTop:n.scrollTop}:N(o)),b(e)?((p=x(e,!0)).x+=e.clientLeft,p.y+=e.clientTop):s&&(p.x=X(s))),{x:c.left+u.scrollLeft-p.x,y:c.top+u.scrollTop-p.y,width:c.width,height:c.height}}function et(t){var e=new Map,r=new Set,o=[];function n(t){r.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!r.has(t)){var o=e.get(t);o&&n(o)}})),o.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){r.has(t.name)||n(t)})),o}var rt={placement:"bottom",modifiers:[],strategy:"absolute"};function ot(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function nt(t){void 0===t&&(t={});var e=t.defaultModifiers,r=void 0===e?[]:e,o=t.defaultOptions,n=void 0===o?rt:o;return function(t,e,o){void 0===o&&(o=n);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},rt,n),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],u=!1,p={state:s,setOptions:function(o){var i="function"==typeof o?o(s.options):o;l(),s.options=Object.assign({},n,s.options,i),s.scrollParents={reference:w(t)?D(t):t.contextElement?D(t.contextElement):[],popper:D(e)};var a,u,d=function(t){var e=et(t);return f.reduce((function(t,r){return t.concat(e.filter((function(t){return t.phase===r})))}),[])}((a=[].concat(r,s.options.modifiers),u=a.reduce((function(t,e){var r=t[e.name];return t[e.name]=r?Object.assign({},r,e,{options:Object.assign({},r.options,e.options),data:Object.assign({},r.data,e.data)}):e,t}),{}),Object.keys(u).map((function(t){return u[t]}))));return s.orderedModifiers=d.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.options,r=t.effect;if("function"==typeof r){var o=r({state:s,name:t.name,instance:p,options:void 0===e?{}:e});c.push(o||function(){})}})),p.update()},forceUpdate:function(){if(!u){var t=s.elements,e=t.reference,r=t.popper;if(ot(e,r)){s.rects={reference:tt(e,A(r),"fixed"===s.options.strategy),popper:k(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var o=0;o<s.orderedModifiers.length;o++)if(!0!==s.reset){var n=s.orderedModifiers[o],i=n.fn,a=n.options;"function"==typeof i&&(s=i({state:s,options:void 0===a?{}:a,name:n.name,instance:p})||s)}else s.reset=!1,o=-1}}},update:(i=function(){return new Promise((function(t){p.forceUpdate(),t(s)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(i())}))}))),a}),destroy:function(){l(),u=!0}};if(!ot(t,e))return p;function l(){c.forEach((function(t){return t()})),c=[]}return p.setOptions(o).then((function(t){!u&&o.onFirstUpdate&&o.onFirstUpdate(t)})),p}}var it=nt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,r=t.instance,o=t.options,n=o.scroll,i=void 0===n||n,a=o.resize,s=void 0===a||a,c=d(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach((function(t){t.addEventListener("scroll",r.update,C)})),s&&c.addEventListener("resize",r.update,C),function(){i&&u.forEach((function(t){t.removeEventListener("scroll",r.update,C)})),s&&c.removeEventListener("resize",r.update,C)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;e.modifiersData[t.name]=J({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,r=t.options,o=r.gpuAcceleration,n=void 0===o||o,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,c=void 0===s||s,u={placement:v(e.placement),variation:R(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,_(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,_(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},n=e.elements[t];b(n)&&l(n)&&(Object.assign(n.style,r),Object.keys(o).forEach((function(t){var e=o[t];!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],n=e.attributes[t]||{},i=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:r[t]).reduce((function(t,e){return t[e]="",t}),{});b(o)&&l(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,r=t.name,o=t.options.offset,i=void 0===o?[0,0]:o,c=p.reduce((function(t,r){return t[r]=function(t,e,r){var o=v(t),i=[s,n].indexOf(o)>=0?-1:1,c="function"==typeof r?r(Object.assign({},e,{placement:t})):r,u=c[0],p=c[1];return u=u||0,p=(p||0)*i,[s,a].indexOf(o)>=0?{x:p,y:u}:{x:u,y:p}}(r,e.rects,i),t}),{}),u=c[e.placement],f=u.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u.x,e.modifiersData.popperOffsets.y+=f),e.modifiersData[r]=c}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var c=r.mainAxis,u=void 0===c||c,p=r.altAxis,f=void 0===p||p,l=r.fallbackPlacements,d=r.padding,w=r.boundary,b=r.rootBoundary,h=r.altBoundary,m=r.flipVariations,g=void 0===m||m,y=r.allowedAutoPlacements,x=e.options.placement,k=v(x),O=l||(k!==x&&g?function(t){if("auto"===v(t))return[];var e=T(t);return[U(t),e,U(e)]}(x):[T(x)]),j=[x].concat(O).reduce((function(t,r){return t.concat("auto"===v(r)?Q(e,{placement:r,boundary:w,rootBoundary:b,padding:d,flipVariations:g,allowedAutoPlacements:y}):r)}),[]),z=e.rects.reference,M=e.rects.popper,S=new Map,E=!0,A=j[0],L=0;L<j.length;L++){var q=j[L],B=v(q),I="start"===R(q),P=[n,i].indexOf(B)>=0,_=P?"width":"height",C=K(e,{placement:q,boundary:w,rootBoundary:b,altBoundary:h,padding:d}),H=P?I?a:s:I?i:n;z[_]>M[_]&&(H=T(H));var W=T(H),N=[];if(u&&N.push(C[B]<=0),f&&N.push(C[H]<=0,C[W]<=0),N.every((function(t){return t}))){A=q,E=!1;break}S.set(q,N)}if(E)for(var X=function(t){var e=j.find((function(e){var r=S.get(e);if(r)return r.slice(0,t).every((function(t){return t}))}));if(e)return A=e,"break"},Y=g?3:1;Y>0&&"break"!==X(Y);Y--);e.placement!==A&&(e.modifiersData[o]._skip=!0,e.placement=A,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,o=t.name,c=r.mainAxis,u=void 0===c||c,p=r.altAxis,f=void 0!==p&&p,l=r.tether,d=void 0===l||l,w=r.tetherOffset,b=void 0===w?0:w,h=K(e,{boundary:r.boundary,rootBoundary:r.rootBoundary,padding:r.padding,altBoundary:r.altBoundary}),y=v(e.placement),x=R(e.placement),O=!x,j=L(y),z="x"===j?"y":"x",M=e.modifiersData.popperOffsets,S=e.rects.reference,E=e.rects.popper,B="function"==typeof b?b(Object.assign({},e.rects,{placement:e.placement})):b,I="number"==typeof B?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),P=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,_={x:0,y:0};if(M){if(u){var C,H="y"===j?n:s,T="y"===j?i:a,W="y"===j?"height":"width",U=M[j],N=U+h[H],X=U-h[T],Y=d?-E[W]/2:0,F="start"===x?S[W]:E[W],D="start"===x?-E[W]:-S[W],V=e.elements.arrow,G=d&&V?k(V):{width:0,height:0},J=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Q=J[H],Z=J[T],$=q(0,S[W],G[W]),tt=O?S[W]/2-Y-$-Q-I.mainAxis:F-$-Q-I.mainAxis,et=O?-S[W]/2+Y+$+Z+I.mainAxis:D+$+Z+I.mainAxis,rt=e.elements.arrow&&A(e.elements.arrow),ot=null!=(C=null==P?void 0:P[j])?C:0,nt=U+et-ot,it=q(d?g(N,U+tt-ot-(rt?"y"===j?rt.clientTop||0:rt.clientLeft||0:0)):N,U,d?m(X,nt):X);M[j]=it,_[j]=it-U}if(f){var at,st=M[z],ct="y"===z?"height":"width",ut=st+h["x"===j?n:s],pt=st-h["x"===j?i:a],ft=-1!==[n,s].indexOf(y),lt=null!=(at=null==P?void 0:P[z])?at:0,dt=ft?ut:st-S[ct]-E[ct]-lt+I.altAxis,wt=ft?st+S[ct]+E[ct]-lt-I.altAxis:pt,bt=d&&ft?function(t,e,r){var o=q(t,e,r);return o>r?r:o}(dt,st,wt):q(d?dt:ut,st,d?wt:pt);M[z]=bt,_[z]=bt-st}e.modifiersData[o]=_}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,r=t.state,o=t.name,u=t.options,p=r.elements.arrow,f=r.modifiersData.popperOffsets,l=v(r.placement),d=L(l),w=[s,a].indexOf(l)>=0?"height":"width";if(p&&f){var b=function(t,e){return B("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:I(t,c))}(u.padding,r),h=k(p),m="y"===d?n:s,g="y"===d?i:a,y=r.rects.reference[w]+r.rects.reference[d]-f[d]-r.rects.popper[w],x=f[d]-r.rects.reference[d],O=A(p),j=O?"y"===d?O.clientHeight||0:O.clientWidth||0:0,z=j/2-h[w]/2+(y/2-x/2),M=q(b[m],z,j-h[w]-b[g]);r.modifiersData[o]=((e={})[d]=M,e.centerOffset=M-z,e)}},effect:function(t){var e=t.state,r=t.options.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&O(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,r=t.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,a=K(e,{elementContext:"reference"}),s=K(e,{altBoundary:!0}),c=Z(a,o),u=Z(s,n,i),p=$(c),f=$(u);e.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}}]});const at=class{constructor(e){t(this,e),this.content=null,this.placement="top",this.forceShow=!1,this._loaded=!1}componentShouldUpdate(){this._setOptions(),this.forceShow&&this._show()}render(){return e(r,{class:"p-tooltip"},e("slot",null),e("div",{class:"tooltip",role:"tooltip",ref:t=>this._load(t)},this.content,e("div",{class:"arrow","data-popper-arrow":!0})))}_show(){this._loaded&&(this._tooltip.setAttribute("data-show",""),this._popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:!0}]}))),this._popper.update())}_hide(){(this._loaded||this.forceShow)&&(this._tooltip.removeAttribute("data-show"),this._popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]}))))}_load(t){this._tooltip=t,t&&(this._popper=it(this._el,t),this._setOptions(),this._loaded=!0,this.forceShow&&this._show())}_setOptions(){this._popper&&this._popper.setOptions({placement:this.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})}get _el(){return o(this)}};at.style='/*! tailwindcss v3.1.4 | MIT License | https://tailwindcss.com*/*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.visible{visibility:visible!important}.absolute{position:absolute!important}.block{display:block!important}.hidden{display:none!important}.w-2{width:.5rem!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rounded{border-radius:.25rem!important}.bg-storm{--tw-bg-opacity:1!important;background-color:rgb(81 83 107/var(--tw-bg-opacity))!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}:host{cursor:pointer}:host .tooltip{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-drop-shadow:drop-shadow(0px 0.0625rem 0.05rem rgba(0,0,0,.5));background-color:rgb(81 83 107/var(--tw-bg-opacity));border-radius:.25rem;color:rgb(255 255 255/var(--tw-text-opacity));display:none;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);font-size:.75rem;font-weight:500;line-height:1rem;max-width:14.5rem;padding:.25rem .75rem}:host .tooltip[data-show]{display:block}:host .tooltip .arrow,:host .tooltip .arrow:before{background:inherit;height:.5rem;position:absolute;width:.5rem}:host .tooltip .arrow{visibility:hidden}:host .tooltip .arrow:before{--tw-rotate:45deg;content:"";transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));visibility:visible}:host .tooltip[data-popper-placement^=top]>.arrow{bottom:-.25rem}:host .tooltip[data-popper-placement^=bottom]>.arrow{top:-.25rem}:host .tooltip[data-popper-placement^=left]>.arrow{right:-.25rem}:host .tooltip[data-popper-placement^=right]>.arrow{left:-.25rem}.static{position:static!important}.blur{--tw-blur:blur(8px)!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}';export{at as p_tooltip}
|