@paperless/core 0.0.2-alpha.0 → 0.0.3-alpha.10
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 +81 -1
- package/README.md +14 -10
- package/dist/assets/icons/arrow.svg +1 -1
- package/dist/assets/icons/attachment.svg +1 -1
- package/dist/assets/icons/bread.svg +1 -1
- package/dist/assets/icons/calendar.svg +1 -1
- package/dist/assets/icons/car.svg +1 -1
- package/dist/assets/icons/checkmark.svg +1 -1
- package/dist/assets/icons/chevron.svg +1 -1
- package/dist/assets/icons/clock.svg +1 -1
- package/dist/assets/icons/cogs.svg +1 -1
- package/dist/assets/icons/comment.svg +1 -1
- package/dist/assets/icons/document.svg +1 -1
- package/dist/assets/icons/download.svg +1 -1
- package/dist/assets/icons/envelope.svg +1 -1
- package/dist/assets/icons/explanation.svg +1 -1
- package/dist/assets/icons/eye.svg +1 -1
- package/dist/assets/icons/filter.svg +1 -1
- package/dist/assets/icons/grid.svg +1 -1
- package/dist/assets/icons/headset.svg +1 -1
- package/dist/assets/icons/list.svg +1 -1
- package/dist/assets/icons/location.svg +1 -1
- package/dist/assets/icons/megaphone.svg +1 -1
- package/dist/assets/icons/minus.svg +1 -1
- package/dist/assets/icons/negative.svg +1 -1
- package/dist/assets/icons/pagination.svg +1 -1
- package/dist/assets/icons/payment.svg +1 -1
- package/dist/assets/icons/pencil.svg +1 -1
- package/dist/assets/icons/person.svg +1 -1
- package/dist/assets/icons/plus.svg +1 -1
- package/dist/assets/icons/question.svg +1 -1
- package/dist/assets/icons/receipt.svg +1 -1
- package/dist/assets/icons/report.svg +1 -1
- package/dist/assets/icons/search.svg +1 -1
- package/dist/assets/icons/settings.svg +1 -1
- package/dist/assets/icons/sick.svg +1 -1
- package/dist/assets/icons/tachometer.svg +1 -1
- package/dist/assets/icons/tool.svg +1 -1
- package/dist/assets/icons/trash.svg +1 -1
- package/dist/assets/icons/turn.svg +1 -1
- package/dist/assets/icons/upload.svg +1 -1
- package/dist/assets/icons/warning.svg +1 -1
- package/dist/build/p-7dc80d7d.entry.js +1 -0
- package/dist/build/p-925c3a50.entry.js +1 -0
- package/dist/build/p-ad4cf55f.entry.js +1 -0
- package/dist/build/p-e9cdc0f0.js +2 -0
- package/dist/build/paperless.css +22 -12
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{index-e3e940d8.js → index-9fa1dff4.js} +47 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/p-button.cjs.entry.js +4 -4
- package/dist/cjs/p-icon.cjs.entry.js +802 -0
- package/dist/cjs/p-illustration.cjs.entry.js +1426 -0
- package/dist/cjs/paperless.cjs.js +2 -2
- package/dist/collection/assets/icons/arrow.svg +1 -1
- package/dist/collection/assets/icons/attachment.svg +1 -1
- package/dist/collection/assets/icons/bread.svg +1 -1
- package/dist/collection/assets/icons/calendar.svg +1 -1
- package/dist/collection/assets/icons/car.svg +1 -1
- package/dist/collection/assets/icons/checkmark.svg +1 -1
- package/dist/collection/assets/icons/chevron.svg +1 -1
- package/dist/collection/assets/icons/clock.svg +1 -1
- package/dist/collection/assets/icons/cogs.svg +1 -1
- package/dist/collection/assets/icons/comment.svg +1 -1
- package/dist/collection/assets/icons/document.svg +1 -1
- package/dist/collection/assets/icons/download.svg +1 -1
- package/dist/collection/assets/icons/envelope.svg +1 -1
- package/dist/collection/assets/icons/explanation.svg +1 -1
- package/dist/collection/assets/icons/eye.svg +1 -1
- package/dist/collection/assets/icons/filter.svg +1 -1
- package/dist/collection/assets/icons/grid.svg +1 -1
- package/dist/collection/assets/icons/headset.svg +1 -1
- package/dist/collection/assets/icons/list.svg +1 -1
- package/dist/collection/assets/icons/location.svg +1 -1
- package/dist/collection/assets/icons/megaphone.svg +1 -1
- package/dist/collection/assets/icons/minus.svg +1 -1
- package/dist/collection/assets/icons/negative.svg +1 -1
- package/dist/collection/assets/icons/pagination.svg +1 -1
- package/dist/collection/assets/icons/payment.svg +1 -1
- package/dist/collection/assets/icons/pencil.svg +1 -1
- package/dist/collection/assets/icons/person.svg +1 -1
- package/dist/collection/assets/icons/plus.svg +1 -1
- package/dist/collection/assets/icons/question.svg +1 -1
- package/dist/collection/assets/icons/receipt.svg +1 -1
- package/dist/collection/assets/icons/report.svg +1 -1
- package/dist/collection/assets/icons/search.svg +1 -1
- package/dist/collection/assets/icons/settings.svg +1 -1
- package/dist/collection/assets/icons/sick.svg +1 -1
- package/dist/collection/assets/icons/tachometer.svg +1 -1
- package/dist/collection/assets/icons/tool.svg +1 -1
- package/dist/collection/assets/icons/trash.svg +1 -1
- package/dist/collection/assets/icons/turn.svg +1 -1
- package/dist/collection/assets/icons/upload.svg +1 -1
- package/dist/collection/assets/icons/warning.svg +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/button/button.component.js +6 -5
- package/dist/collection/components/icon/icon.component.js +108 -0
- package/dist/collection/components/illustration/illustration.component.js +39 -0
- package/dist/collection/tailwind.config.js +6 -0
- package/dist/collection/utils/icons.js +82 -0
- package/dist/collection/utils/illustrations.js +18 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/p-button.js +4 -4
- package/dist/components/p-icon.d.ts +11 -0
- package/dist/components/p-icon.js +820 -0
- package/dist/components/p-illustration.d.ts +11 -0
- package/dist/components/p-illustration.js +1441 -0
- package/dist/esm/{index-100a5ae6.js → index-6dcfeac0.js} +47 -5
- package/dist/esm/loader.js +2 -2
- package/dist/esm/p-button.entry.js +4 -4
- package/dist/esm/p-icon.entry.js +798 -0
- package/dist/esm/p-illustration.entry.js +1422 -0
- package/dist/esm/paperless.js +2 -2
- package/dist/index.html +1 -1
- package/dist/paperless/p-7dc80d7d.entry.js +1 -0
- package/dist/paperless/p-925c3a50.entry.js +1 -0
- package/dist/paperless/p-ad4cf55f.entry.js +1 -0
- package/dist/paperless/p-e9cdc0f0.js +2 -0
- package/dist/paperless/paperless.css +23342 -13
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +69 -20
- package/dist/tailwind.config.js +6 -0
- package/dist/types/components/button/button.component.d.ts +1 -1
- package/dist/types/components/icon/icon.component.d.ts +22 -0
- package/dist/types/components/illustration/illustration.component.d.ts +9 -0
- package/dist/types/components.d.ts +70 -2
- package/dist/types/utils/icons.d.ts +43 -0
- package/dist/types/utils/illustrations.d.ts +11 -0
- package/package.json +5 -2
- package/dist/build/p-54459ae1.js +0 -2
- package/dist/build/p-c66e9743.entry.js +0 -1
- package/dist/paperless/p-54459ae1.js +0 -2
- package/dist/paperless/p-c66e9743.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as
|
|
1
|
+
import{p as t,b as a}from"./p-e9cdc0f0.js";(()=>{const a=import.meta.url,p={};return""!==a&&(p.resourcesUrl=new URL(".",a).href),t(p)})().then((t=>a([["p-925c3a50",[[1,"p-button",{variant:[1]}]]],["p-7dc80d7d",[[0,"p-icon",{variant:[1],size:[1],rotate:[2],flip:[1]}]]],["p-ad4cf55f",[[0,"p-illustration",{variant:[1]}]]]],t)));
|
package/dist/sw.js
CHANGED
|
@@ -27,21 +27,27 @@ self.addEventListener('message', (event) => {
|
|
|
27
27
|
self.__precacheManifest = [
|
|
28
28
|
{
|
|
29
29
|
"url": "index.html",
|
|
30
|
-
"revision": "
|
|
30
|
+
"revision": "4228723ebbe4b0e7476a5f63a121da71"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"url": "build/index.esm.js",
|
|
34
34
|
"revision": "d41d8cd98f00b204e9800998ecf8427e"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
"url": "build/p-
|
|
37
|
+
"url": "build/p-7dc80d7d.entry.js"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
"url": "build/p-
|
|
40
|
+
"url": "build/p-925c3a50.entry.js"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
"url": "
|
|
44
|
-
|
|
43
|
+
"url": "build/p-ad4cf55f.entry.js"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"url": "build/p-e9cdc0f0.js"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"url": "cjs/index-9fa1dff4.js",
|
|
50
|
+
"revision": "62bdf3c4170d5476d6dd07013cf1fd0b"
|
|
45
51
|
},
|
|
46
52
|
{
|
|
47
53
|
"url": "cjs/index.cjs.js",
|
|
@@ -49,19 +55,26 @@ self.__precacheManifest = [
|
|
|
49
55
|
},
|
|
50
56
|
{
|
|
51
57
|
"url": "cjs/loader.cjs.js",
|
|
52
|
-
"revision": "
|
|
58
|
+
"revision": "31d7c9beca66f5331e5790c309696947"
|
|
53
59
|
},
|
|
54
60
|
{
|
|
55
61
|
"url": "cjs/p-button.cjs.entry.js",
|
|
56
|
-
"revision": "
|
|
62
|
+
"revision": "f8527b6691252798ed5c35dcb7122ff5"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"url": "cjs/p-icon.cjs.entry.js",
|
|
66
|
+
"revision": "fa33ec5e71c673e75226e885200ad6b6"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"url": "cjs/p-illustration.cjs.entry.js"
|
|
57
70
|
},
|
|
58
71
|
{
|
|
59
72
|
"url": "cjs/paperless.cjs.js",
|
|
60
|
-
"revision": "
|
|
73
|
+
"revision": "f88fb52b5d44b546443c5e4dc7007785"
|
|
61
74
|
},
|
|
62
75
|
{
|
|
63
76
|
"url": "collection/collection-manifest.json",
|
|
64
|
-
"revision": "
|
|
77
|
+
"revision": "16c6c25d00077a28b3cf2f4c2b8c4314"
|
|
65
78
|
},
|
|
66
79
|
{
|
|
67
80
|
"url": "collection/components/button/button.component.css",
|
|
@@ -69,7 +82,15 @@ self.__precacheManifest = [
|
|
|
69
82
|
},
|
|
70
83
|
{
|
|
71
84
|
"url": "collection/components/button/button.component.js",
|
|
72
|
-
"revision": "
|
|
85
|
+
"revision": "bb87cf170753e7cc9083f9f172000469"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"url": "collection/components/icon/icon.component.js",
|
|
89
|
+
"revision": "2ff80f54824184a52a6bae6441ad457a"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"url": "collection/components/illustration/illustration.component.js",
|
|
93
|
+
"revision": "c6dc3500ec209bc7d4ac9891968e297e"
|
|
73
94
|
},
|
|
74
95
|
{
|
|
75
96
|
"url": "collection/index.js",
|
|
@@ -77,7 +98,7 @@ self.__precacheManifest = [
|
|
|
77
98
|
},
|
|
78
99
|
{
|
|
79
100
|
"url": "collection/tailwind.config.js",
|
|
80
|
-
"revision": "
|
|
101
|
+
"revision": "fbad7c4023643985c2ff629e465acf22"
|
|
81
102
|
},
|
|
82
103
|
{
|
|
83
104
|
"url": "collection/tailwind/border-radius.js",
|
|
@@ -91,21 +112,36 @@ self.__precacheManifest = [
|
|
|
91
112
|
"url": "collection/tailwind/shadows.js",
|
|
92
113
|
"revision": "90a3cc6f1c4f6714180ddbb3a0e40a53"
|
|
93
114
|
},
|
|
115
|
+
{
|
|
116
|
+
"url": "collection/utils/icons.js",
|
|
117
|
+
"revision": "637212fd72da5a3b90461d00940712b5"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"url": "collection/utils/illustrations.js",
|
|
121
|
+
"revision": "743b24c925f2eedd1e005aa87dc5987b"
|
|
122
|
+
},
|
|
94
123
|
{
|
|
95
124
|
"url": "collection/utils/utils.js",
|
|
96
125
|
"revision": "4beb8ca8a76230f44db73b6109a0043d"
|
|
97
126
|
},
|
|
98
127
|
{
|
|
99
128
|
"url": "components/index.js",
|
|
100
|
-
"revision": "
|
|
129
|
+
"revision": "0171af0b858ec4bab316248316c9e91d"
|
|
101
130
|
},
|
|
102
131
|
{
|
|
103
132
|
"url": "components/p-button.js",
|
|
104
|
-
"revision": "
|
|
133
|
+
"revision": "e5eb8482d0f017b0cd0e06e170376995"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"url": "components/p-icon.js",
|
|
137
|
+
"revision": "56b3dffb5840a6b9fc11370dcdf3bf79"
|
|
105
138
|
},
|
|
106
139
|
{
|
|
107
|
-
"url": "
|
|
108
|
-
|
|
140
|
+
"url": "components/p-illustration.js"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"url": "esm/index-6dcfeac0.js",
|
|
144
|
+
"revision": "24da42dcbc486be8ad85d7eea0c88d42"
|
|
109
145
|
},
|
|
110
146
|
{
|
|
111
147
|
"url": "esm/index.js",
|
|
@@ -113,11 +149,18 @@ self.__precacheManifest = [
|
|
|
113
149
|
},
|
|
114
150
|
{
|
|
115
151
|
"url": "esm/loader.js",
|
|
116
|
-
"revision": "
|
|
152
|
+
"revision": "00098dec624b26695fa3bc12dc666763"
|
|
117
153
|
},
|
|
118
154
|
{
|
|
119
155
|
"url": "esm/p-button.entry.js",
|
|
120
|
-
"revision": "
|
|
156
|
+
"revision": "f1cb825f307d12f9570244d2430dbf72"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"url": "esm/p-icon.entry.js",
|
|
160
|
+
"revision": "19576a3ec200bf2927cf059ec8fc96d5"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"url": "esm/p-illustration.entry.js"
|
|
121
164
|
},
|
|
122
165
|
{
|
|
123
166
|
"url": "esm/polyfills/core-js.js",
|
|
@@ -156,14 +199,20 @@ self.__precacheManifest = [
|
|
|
156
199
|
"revision": "d41d8cd98f00b204e9800998ecf8427e"
|
|
157
200
|
},
|
|
158
201
|
{
|
|
159
|
-
"url": "paperless/p-
|
|
202
|
+
"url": "paperless/p-7dc80d7d.entry.js"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"url": "paperless/p-925c3a50.entry.js"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"url": "paperless/p-ad4cf55f.entry.js"
|
|
160
209
|
},
|
|
161
210
|
{
|
|
162
|
-
"url": "paperless/p-
|
|
211
|
+
"url": "paperless/p-e9cdc0f0.js"
|
|
163
212
|
},
|
|
164
213
|
{
|
|
165
214
|
"url": "tailwind.config.js",
|
|
166
|
-
"revision": "
|
|
215
|
+
"revision": "fbad7c4023643985c2ff629e465acf22"
|
|
167
216
|
}
|
|
168
217
|
].concat(self.__precacheManifest || []);
|
|
169
218
|
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
|
package/dist/tailwind.config.js
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import icons from '../../utils/icons';
|
|
2
|
+
export declare type IconVariant = keyof typeof icons;
|
|
3
|
+
export declare class Icon {
|
|
4
|
+
/**
|
|
5
|
+
* The icon the be displayed
|
|
6
|
+
*/
|
|
7
|
+
variant: IconVariant;
|
|
8
|
+
/**
|
|
9
|
+
* The size of the icon, using tailwind sizes
|
|
10
|
+
*/
|
|
11
|
+
size: string;
|
|
12
|
+
/**
|
|
13
|
+
* Wether to rotate the icon x degrees
|
|
14
|
+
*/
|
|
15
|
+
rotate: number;
|
|
16
|
+
/**
|
|
17
|
+
* Wether to flip the icon horizontally or vertically
|
|
18
|
+
*/
|
|
19
|
+
flip: 'horizontal' | 'vertical';
|
|
20
|
+
render(): any;
|
|
21
|
+
private _getClass;
|
|
22
|
+
}
|
|
@@ -5,13 +5,39 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { IconVariant } from "./components/icon/icon.component";
|
|
9
|
+
import { IllustrationVariant } from "./components/illustration/illustration.component";
|
|
8
10
|
export namespace Components {
|
|
9
11
|
interface PButton {
|
|
10
12
|
/**
|
|
11
|
-
* The
|
|
13
|
+
* The variant of the button
|
|
12
14
|
*/
|
|
13
15
|
"variant": 'primary' | 'secondary';
|
|
14
16
|
}
|
|
17
|
+
interface PIcon {
|
|
18
|
+
/**
|
|
19
|
+
* Wether to flip the icon horizontally or vertically
|
|
20
|
+
*/
|
|
21
|
+
"flip": 'horizontal' | 'vertical';
|
|
22
|
+
/**
|
|
23
|
+
* Wether to rotate the icon x degrees
|
|
24
|
+
*/
|
|
25
|
+
"rotate": number;
|
|
26
|
+
/**
|
|
27
|
+
* The size of the icon, using tailwind sizes
|
|
28
|
+
*/
|
|
29
|
+
"size": string;
|
|
30
|
+
/**
|
|
31
|
+
* The icon the be displayed
|
|
32
|
+
*/
|
|
33
|
+
"variant": IconVariant;
|
|
34
|
+
}
|
|
35
|
+
interface PIllustration {
|
|
36
|
+
/**
|
|
37
|
+
* The icon the be displayed
|
|
38
|
+
*/
|
|
39
|
+
"variant": IllustrationVariant;
|
|
40
|
+
}
|
|
15
41
|
}
|
|
16
42
|
declare global {
|
|
17
43
|
interface HTMLPButtonElement extends Components.PButton, HTMLStencilElement {
|
|
@@ -20,19 +46,59 @@ declare global {
|
|
|
20
46
|
prototype: HTMLPButtonElement;
|
|
21
47
|
new (): HTMLPButtonElement;
|
|
22
48
|
};
|
|
49
|
+
interface HTMLPIconElement extends Components.PIcon, HTMLStencilElement {
|
|
50
|
+
}
|
|
51
|
+
var HTMLPIconElement: {
|
|
52
|
+
prototype: HTMLPIconElement;
|
|
53
|
+
new (): HTMLPIconElement;
|
|
54
|
+
};
|
|
55
|
+
interface HTMLPIllustrationElement extends Components.PIllustration, HTMLStencilElement {
|
|
56
|
+
}
|
|
57
|
+
var HTMLPIllustrationElement: {
|
|
58
|
+
prototype: HTMLPIllustrationElement;
|
|
59
|
+
new (): HTMLPIllustrationElement;
|
|
60
|
+
};
|
|
23
61
|
interface HTMLElementTagNameMap {
|
|
24
62
|
"p-button": HTMLPButtonElement;
|
|
63
|
+
"p-icon": HTMLPIconElement;
|
|
64
|
+
"p-illustration": HTMLPIllustrationElement;
|
|
25
65
|
}
|
|
26
66
|
}
|
|
27
67
|
declare namespace LocalJSX {
|
|
28
68
|
interface PButton {
|
|
29
69
|
/**
|
|
30
|
-
* The
|
|
70
|
+
* The variant of the button
|
|
31
71
|
*/
|
|
32
72
|
"variant"?: 'primary' | 'secondary';
|
|
33
73
|
}
|
|
74
|
+
interface PIcon {
|
|
75
|
+
/**
|
|
76
|
+
* Wether to flip the icon horizontally or vertically
|
|
77
|
+
*/
|
|
78
|
+
"flip"?: 'horizontal' | 'vertical';
|
|
79
|
+
/**
|
|
80
|
+
* Wether to rotate the icon x degrees
|
|
81
|
+
*/
|
|
82
|
+
"rotate"?: number;
|
|
83
|
+
/**
|
|
84
|
+
* The size of the icon, using tailwind sizes
|
|
85
|
+
*/
|
|
86
|
+
"size"?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The icon the be displayed
|
|
89
|
+
*/
|
|
90
|
+
"variant"?: IconVariant;
|
|
91
|
+
}
|
|
92
|
+
interface PIllustration {
|
|
93
|
+
/**
|
|
94
|
+
* The icon the be displayed
|
|
95
|
+
*/
|
|
96
|
+
"variant"?: IllustrationVariant;
|
|
97
|
+
}
|
|
34
98
|
interface IntrinsicElements {
|
|
35
99
|
"p-button": PButton;
|
|
100
|
+
"p-icon": PIcon;
|
|
101
|
+
"p-illustration": PIllustration;
|
|
36
102
|
}
|
|
37
103
|
}
|
|
38
104
|
export { LocalJSX as JSX };
|
|
@@ -40,6 +106,8 @@ declare module "@stencil/core" {
|
|
|
40
106
|
export namespace JSX {
|
|
41
107
|
interface IntrinsicElements {
|
|
42
108
|
"p-button": LocalJSX.PButton & JSXBase.HTMLAttributes<HTMLPButtonElement>;
|
|
109
|
+
"p-icon": LocalJSX.PIcon & JSXBase.HTMLAttributes<HTMLPIconElement>;
|
|
110
|
+
"p-illustration": LocalJSX.PIllustration & JSXBase.HTMLAttributes<HTMLPIllustrationElement>;
|
|
43
111
|
}
|
|
44
112
|
}
|
|
45
113
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
arrow: string;
|
|
3
|
+
attachment: string;
|
|
4
|
+
bread: string;
|
|
5
|
+
calendar: string;
|
|
6
|
+
car: string;
|
|
7
|
+
checkmark: string;
|
|
8
|
+
chevron: string;
|
|
9
|
+
clock: string;
|
|
10
|
+
cogs: string;
|
|
11
|
+
comment: string;
|
|
12
|
+
document: string;
|
|
13
|
+
download: string;
|
|
14
|
+
envelope: string;
|
|
15
|
+
explanation: string;
|
|
16
|
+
eye: string;
|
|
17
|
+
filter: string;
|
|
18
|
+
grid: string;
|
|
19
|
+
headset: string;
|
|
20
|
+
list: string;
|
|
21
|
+
location: string;
|
|
22
|
+
megaphone: string;
|
|
23
|
+
minus: string;
|
|
24
|
+
negative: string;
|
|
25
|
+
pagination: string;
|
|
26
|
+
payment: string;
|
|
27
|
+
pencil: string;
|
|
28
|
+
person: string;
|
|
29
|
+
plus: string;
|
|
30
|
+
question: string;
|
|
31
|
+
receipt: string;
|
|
32
|
+
report: string;
|
|
33
|
+
search: string;
|
|
34
|
+
settings: string;
|
|
35
|
+
sick: string;
|
|
36
|
+
tachometer: string;
|
|
37
|
+
tool: string;
|
|
38
|
+
trash: string;
|
|
39
|
+
turn: string;
|
|
40
|
+
upload: string;
|
|
41
|
+
warning: string;
|
|
42
|
+
};
|
|
43
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paperless/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3-alpha.10",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "stencil build --docs",
|
|
26
26
|
"build:prod": "stencil build",
|
|
27
|
-
"postbuild": "
|
|
27
|
+
"postbuild": "yarn tailwind:process",
|
|
28
|
+
"postbuild:prod": "yarn tailwind:process",
|
|
29
|
+
"tailwind:process": "tailwindcss -i dist/paperless/paperless.css -o dist/paperless/paperless.css",
|
|
28
30
|
"watch": "stencil build --watch",
|
|
29
31
|
"watch:bg": "(yarn watch&)",
|
|
30
32
|
"start": "stencil build --dev --watch --serve",
|
|
@@ -50,6 +52,7 @@
|
|
|
50
52
|
"jest": "^27.4.5",
|
|
51
53
|
"jest-cli": "^27.4.5",
|
|
52
54
|
"puppeteer": "^10.0.0",
|
|
55
|
+
"stencil-inline-svg": "^1.1.0",
|
|
53
56
|
"stencil-tailwind-plugin": "^1.3.0",
|
|
54
57
|
"tailwindcss": "~3.1.4",
|
|
55
58
|
"workbox-build": "4.3.1"
|
package/dist/build/p-54459ae1.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=new WeakMap,u=e=>"sc-"+e.o,a={},f=e=>"object"==(e=typeof e)||"function"===e,$=(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&&!f(l))&&(l+=""),s&&o?r[r.length-1].i+=l:r.push(s?h(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=h(e,null);return i.u=t,r.length>0&&(i.$=r),i},h=(e,t)=>({t:0,h:e,i:t,p:null,$:null,u:null}),p={},d=(e,t,n,l)=>{if(n!==l&&(t.toLowerCase(),"class"===t)){const t=e.classList,s=m(n),o=m(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}},y=/\s/,m=e=>e?e.split(y):[],b=(e,t,n,l)=>{const s=11===t.p.nodeType&&t.p.host?t.p.host:t.p,o=e&&e.u||a,r=t.u||a;for(l in o)l in r||d(s,l,o[l],void 0);for(l in r)d(s,l,o[l],r[l])},w=(t,n,l)=>{const o=n.$[l];let r,c,i=0;if(r=o.p=s.createElement(o.h),b(null,o),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),o.$)for(i=0;i<o.$.length;++i)c=w(t,o,i),c&&r.appendChild(c);return r},S=(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=w(null,l,o),c&&(s[o].p=c,i.insertBefore(c,n)))},g=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.p.remove()},j=(e,t)=>e.h===t.h,v=(e,t)=>{const n=t.p=e.p,l=e.$,s=t.$;"slot"===t.h||b(e,t),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],$=l[a];for(;o<=c&&r<=a;)null==i?i=t[++o]:null==u?u=t[--c]:null==f?f=l[++r]:null==$?$=l[--a]:j(i,f)?(v(i,f),i=t[++o],f=l[++r]):j(u,$)?(v(u,$),u=t[--c],$=l[--a]):j(i,$)?(v(i,$),e.insertBefore(i.p,u.p.nextSibling),i=t[++o],$=l[--a]):j(u,f)?(v(u,f),e.insertBefore(u.p,i.p),u=t[--c],f=l[++r]):(s=w(t&&t[r],n,r),f=l[++r],s&&i.p.parentNode.insertBefore(s,i.p));o>c?S(e,null==l[a+1]?null:l[a+1].p,n,l,r,a):r>a&&g(t,o,c)})(n,l,t,s):null!==s?S(n,null,t,s,0,s.length-1):null!==l&&g(l,0,l.length-1)},M=(e,t)=>{t&&!e.m&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.m=t)))},k=(e,t)=>{if(e.t|=16,!(4&e.t))return M(e,e.S),K((()=>C(e,t)));e.t|=512},C=(e,t)=>{const n=e.g;return N(void 0,(()=>O(e,n,t)))},O=async(e,t,n)=>{const l=e.j,o=l["s-rc"];n&&(e=>{const t=e.v,n=e.j,l=t.t,o=((e,t)=>{let n=u(t);const l=_.get(n);if(e=11===e.nodeType?e:s,l)if("string"==typeof l){let t,o=i.get(e=e.head||e);o||i.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);P(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>x(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},P=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.j,o=n.M||h(null,null),r=(e=>e&&e.h===p)(l)?l:$(null,null,l);t=s.tagName,r.h=null,r.t|=4,n.M=r,r.p=o.p=s.shadowRoot||s,e=s["s-sc"],v(o,r)})(n,l)}catch(e){F(e,n.j)}return null},x=e=>{const t=e.j,n=e.S;64&e.t||(e.t|=64,T(t),e.k(t),n||E()),e.m&&(e.m(),e.m=void 0),512&e.t&&J((()=>k(e,!1))),e.t&=-517},E=()=>{T(s.documentElement),J((()=>(e=>{const t=o.ce("appload",{detail:{namespace:"paperless"}});return e.dispatchEvent(t),t})(l)))},N=(e,t)=>e&&e.then?e.then(t):t(),T=e=>e.classList.add("hydrated"),A=(e,t,n)=>{if(t.C){const l=Object.entries(t.C),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>U(this).O.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=U(e),o=s.O.get(t),r=s.t,c=s.g;n=((e,t)=>null==e||f(e)?e:1&t?e+"":e)(n,l.C[t][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.O.set(t,n),c&&2==(18&r)&&k(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},L=(e,t={})=>{const n=[],r=t.exclude||[],i=l.customElements,a=s.head,f=a.querySelector("meta[charset]"),$=s.createElement("style"),h=[];let p,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],o:t[1],C:t[2],P:t[3]};l.C=t[2];const s=l.o,a=class extends HTMLElement{constructor(e){super(e),q(e=this,l),1&l.t&&e.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),d?h.push(this):o.jmp((()=>(e=>{if(0==(1&o.t)){const t=U(e),n=t.v,l=()=>{};if(!(1&t.t)){t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){M(t,t.S=n);break}}n.C&&Object.entries(n.C).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=V(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(A(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){F(e)}t.t&=-9,e()}if(s.style){let e=s.style;const t=u(n);if(!_.has(t)){const l=()=>{};((e,t,n)=>{let l=_.get(e);c&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,_.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.S,r=()=>k(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){o.jmp((()=>{}))}componentOnReady(){return U(this).N}};l.T=e[0],r.includes(s)||i.get(s)||(n.push(s),i.define(s,A(a,l,1)))}))})),$.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",$.setAttribute("data-styles",""),a.insertBefore($,f?f.nextSibling:a.firstChild),d=!1,h.length?h.map((e=>e.connectedCallback())):o.jmp((()=>p=setTimeout(E,30)))},R=new WeakMap,U=e=>R.get(e),W=(e,t)=>R.set(t.g=e,t),q=(e,t)=>{const n={t:0,j:e,v:t,O:new Map};return n.N=new Promise((e=>n.k=e)),e["s-p"]=[],e["s-rc"]=[],R.set(e,n)},F=(e,t)=>(0,console.error)(e,t),H=new Map,V=e=>{const t=e.o.replace(/-/g,"_"),n=e.T,l=H.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(H.set(n,e),e[t])),F)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},_=new Map,z=[],B=[],D=(e,t)=>l=>{e.push(l),n||(n=!0,t&&4&o.t?J(I):o.raf(I))},G=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){F(e)}e.length=0},I=()=>{G(z),G(B),(n=z.length>0)&&o.raf(I)},J=e=>r().then(e),K=D(B,!0);export{L as b,$ as h,r as p,W as r}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-54459ae1.js";const o=class{constructor(e){t(this,e),this.variant="primary"}render(){return e("button",{class:`variant-${this.variant}`},e("slot",null))}};o.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: }.rounded{border-radius:.25rem}.border{border-width:1px}.font-semibold{font-weight:600}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.outline{outline-style:solid}:host>button{--tw-text-opacity:1;--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity));border:0;border-radius:.25rem;color:rgb(255 255 255/var(--tw-text-opacity));font-weight:600;outline:0}.static{position:static}';export{o as p_button}
|
|
@@ -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=new WeakMap,u=e=>"sc-"+e.o,a={},f=e=>"object"==(e=typeof e)||"function"===e,$=(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&&!f(l))&&(l+=""),s&&o?r[r.length-1].i+=l:r.push(s?h(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=h(e,null);return i.u=t,r.length>0&&(i.$=r),i},h=(e,t)=>({t:0,h:e,i:t,p:null,$:null,u:null}),p={},d=(e,t,n,l)=>{if(n!==l&&(t.toLowerCase(),"class"===t)){const t=e.classList,s=m(n),o=m(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}},y=/\s/,m=e=>e?e.split(y):[],b=(e,t,n,l)=>{const s=11===t.p.nodeType&&t.p.host?t.p.host:t.p,o=e&&e.u||a,r=t.u||a;for(l in o)l in r||d(s,l,o[l],void 0);for(l in r)d(s,l,o[l],r[l])},w=(t,n,l)=>{const o=n.$[l];let r,c,i=0;if(r=o.p=s.createElement(o.h),b(null,o),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),o.$)for(i=0;i<o.$.length;++i)c=w(t,o,i),c&&r.appendChild(c);return r},S=(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=w(null,l,o),c&&(s[o].p=c,i.insertBefore(c,n)))},g=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.p.remove()},j=(e,t)=>e.h===t.h,v=(e,t)=>{const n=t.p=e.p,l=e.$,s=t.$;"slot"===t.h||b(e,t),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],$=l[a];for(;o<=c&&r<=a;)null==i?i=t[++o]:null==u?u=t[--c]:null==f?f=l[++r]:null==$?$=l[--a]:j(i,f)?(v(i,f),i=t[++o],f=l[++r]):j(u,$)?(v(u,$),u=t[--c],$=l[--a]):j(i,$)?(v(i,$),e.insertBefore(i.p,u.p.nextSibling),i=t[++o],$=l[--a]):j(u,f)?(v(u,f),e.insertBefore(u.p,i.p),u=t[--c],f=l[++r]):(s=w(t&&t[r],n,r),f=l[++r],s&&i.p.parentNode.insertBefore(s,i.p));o>c?S(e,null==l[a+1]?null:l[a+1].p,n,l,r,a):r>a&&g(t,o,c)})(n,l,t,s):null!==s?S(n,null,t,s,0,s.length-1):null!==l&&g(l,0,l.length-1)},M=(e,t)=>{t&&!e.m&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.m=t)))},k=(e,t)=>{if(e.t|=16,!(4&e.t))return M(e,e.S),K((()=>C(e,t)));e.t|=512},C=(e,t)=>{const n=e.g;return N(void 0,(()=>O(e,n,t)))},O=async(e,t,n)=>{const l=e.j,o=l["s-rc"];n&&(e=>{const t=e.v,n=e.j,l=t.t,o=((e,t)=>{let n=u(t);const l=_.get(n);if(e=11===e.nodeType?e:s,l)if("string"==typeof l){let t,o=i.get(e=e.head||e);o||i.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);P(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>x(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},P=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.j,o=n.M||h(null,null),r=(e=>e&&e.h===p)(l)?l:$(null,null,l);t=s.tagName,r.h=null,r.t|=4,n.M=r,r.p=o.p=s.shadowRoot||s,e=s["s-sc"],v(o,r)})(n,l)}catch(e){F(e,n.j)}return null},x=e=>{const t=e.j,n=e.S;64&e.t||(e.t|=64,T(t),e.k(t),n||E()),e.m&&(e.m(),e.m=void 0),512&e.t&&J((()=>k(e,!1))),e.t&=-517},E=()=>{T(s.documentElement),J((()=>(e=>{const t=o.ce("appload",{detail:{namespace:"paperless"}});return e.dispatchEvent(t),t})(l)))},N=(e,t)=>e&&e.then?e.then(t):t(),T=e=>e.classList.add("hydrated"),A=(e,t,n)=>{if(t.C){const l=Object.entries(t.C),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>U(this).O.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=U(e),o=s.O.get(t),r=s.t,c=s.g;n=((e,t)=>null==e||f(e)?e:1&t?e+"":e)(n,l.C[t][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.O.set(t,n),c&&2==(18&r)&&k(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},L=(e,t={})=>{const n=[],r=t.exclude||[],i=l.customElements,a=s.head,f=a.querySelector("meta[charset]"),$=s.createElement("style"),h=[];let p,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],o:t[1],C:t[2],P:t[3]};l.C=t[2];const s=l.o,a=class extends HTMLElement{constructor(e){super(e),q(e=this,l),1&l.t&&e.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),d?h.push(this):o.jmp((()=>(e=>{if(0==(1&o.t)){const t=U(e),n=t.v,l=()=>{};if(!(1&t.t)){t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){M(t,t.S=n);break}}n.C&&Object.entries(n.C).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=V(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(A(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){F(e)}t.t&=-9,e()}if(s.style){let e=s.style;const t=u(n);if(!_.has(t)){const l=()=>{};((e,t,n)=>{let l=_.get(e);c&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,_.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.S,r=()=>k(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){o.jmp((()=>{}))}componentOnReady(){return U(this).N}};l.T=e[0],r.includes(s)||i.get(s)||(n.push(s),i.define(s,A(a,l,1)))}))})),$.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",$.setAttribute("data-styles",""),a.insertBefore($,f?f.nextSibling:a.firstChild),d=!1,h.length?h.map((e=>e.connectedCallback())):o.jmp((()=>p=setTimeout(E,30)))},R=new WeakMap,U=e=>R.get(e),W=(e,t)=>R.set(t.g=e,t),q=(e,t)=>{const n={t:0,j:e,v:t,O:new Map};return n.N=new Promise((e=>n.k=e)),e["s-p"]=[],e["s-rc"]=[],R.set(e,n)},F=(e,t)=>(0,console.error)(e,t),H=new Map,V=e=>{const t=e.o.replace(/-/g,"_"),n=e.T,l=H.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(H.set(n,e),e[t])),F)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},_=new Map,z=[],B=[],D=(e,t)=>l=>{e.push(l),n||(n=!0,t&&4&o.t?J(I):o.raf(I))},G=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){F(e)}e.length=0},I=()=>{G(z),G(B),(n=z.length>0)&&o.raf(I)},J=e=>r().then(e),K=D(B,!0);export{L as b,$ as h,r as p,W as r}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-54459ae1.js";const o=class{constructor(e){t(this,e),this.variant="primary"}render(){return e("button",{class:`variant-${this.variant}`},e("slot",null))}};o.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: }.rounded{border-radius:.25rem}.border{border-width:1px}.font-semibold{font-weight:600}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.outline{outline-style:solid}:host>button{--tw-text-opacity:1;--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity));border:0;border-radius:.25rem;color:rgb(255 255 255/var(--tw-text-opacity));font-weight:600;outline:0}.static{position:static}';export{o as p_button}
|