@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.
Files changed (134) hide show
  1. package/CHANGELOG.md +81 -1
  2. package/README.md +14 -10
  3. package/dist/assets/icons/arrow.svg +1 -1
  4. package/dist/assets/icons/attachment.svg +1 -1
  5. package/dist/assets/icons/bread.svg +1 -1
  6. package/dist/assets/icons/calendar.svg +1 -1
  7. package/dist/assets/icons/car.svg +1 -1
  8. package/dist/assets/icons/checkmark.svg +1 -1
  9. package/dist/assets/icons/chevron.svg +1 -1
  10. package/dist/assets/icons/clock.svg +1 -1
  11. package/dist/assets/icons/cogs.svg +1 -1
  12. package/dist/assets/icons/comment.svg +1 -1
  13. package/dist/assets/icons/document.svg +1 -1
  14. package/dist/assets/icons/download.svg +1 -1
  15. package/dist/assets/icons/envelope.svg +1 -1
  16. package/dist/assets/icons/explanation.svg +1 -1
  17. package/dist/assets/icons/eye.svg +1 -1
  18. package/dist/assets/icons/filter.svg +1 -1
  19. package/dist/assets/icons/grid.svg +1 -1
  20. package/dist/assets/icons/headset.svg +1 -1
  21. package/dist/assets/icons/list.svg +1 -1
  22. package/dist/assets/icons/location.svg +1 -1
  23. package/dist/assets/icons/megaphone.svg +1 -1
  24. package/dist/assets/icons/minus.svg +1 -1
  25. package/dist/assets/icons/negative.svg +1 -1
  26. package/dist/assets/icons/pagination.svg +1 -1
  27. package/dist/assets/icons/payment.svg +1 -1
  28. package/dist/assets/icons/pencil.svg +1 -1
  29. package/dist/assets/icons/person.svg +1 -1
  30. package/dist/assets/icons/plus.svg +1 -1
  31. package/dist/assets/icons/question.svg +1 -1
  32. package/dist/assets/icons/receipt.svg +1 -1
  33. package/dist/assets/icons/report.svg +1 -1
  34. package/dist/assets/icons/search.svg +1 -1
  35. package/dist/assets/icons/settings.svg +1 -1
  36. package/dist/assets/icons/sick.svg +1 -1
  37. package/dist/assets/icons/tachometer.svg +1 -1
  38. package/dist/assets/icons/tool.svg +1 -1
  39. package/dist/assets/icons/trash.svg +1 -1
  40. package/dist/assets/icons/turn.svg +1 -1
  41. package/dist/assets/icons/upload.svg +1 -1
  42. package/dist/assets/icons/warning.svg +1 -1
  43. package/dist/build/p-7dc80d7d.entry.js +1 -0
  44. package/dist/build/p-925c3a50.entry.js +1 -0
  45. package/dist/build/p-ad4cf55f.entry.js +1 -0
  46. package/dist/build/p-e9cdc0f0.js +2 -0
  47. package/dist/build/paperless.css +22 -12
  48. package/dist/build/paperless.esm.js +1 -1
  49. package/dist/cjs/{index-e3e940d8.js → index-9fa1dff4.js} +47 -4
  50. package/dist/cjs/loader.cjs.js +2 -2
  51. package/dist/cjs/p-button.cjs.entry.js +4 -4
  52. package/dist/cjs/p-icon.cjs.entry.js +802 -0
  53. package/dist/cjs/p-illustration.cjs.entry.js +1426 -0
  54. package/dist/cjs/paperless.cjs.js +2 -2
  55. package/dist/collection/assets/icons/arrow.svg +1 -1
  56. package/dist/collection/assets/icons/attachment.svg +1 -1
  57. package/dist/collection/assets/icons/bread.svg +1 -1
  58. package/dist/collection/assets/icons/calendar.svg +1 -1
  59. package/dist/collection/assets/icons/car.svg +1 -1
  60. package/dist/collection/assets/icons/checkmark.svg +1 -1
  61. package/dist/collection/assets/icons/chevron.svg +1 -1
  62. package/dist/collection/assets/icons/clock.svg +1 -1
  63. package/dist/collection/assets/icons/cogs.svg +1 -1
  64. package/dist/collection/assets/icons/comment.svg +1 -1
  65. package/dist/collection/assets/icons/document.svg +1 -1
  66. package/dist/collection/assets/icons/download.svg +1 -1
  67. package/dist/collection/assets/icons/envelope.svg +1 -1
  68. package/dist/collection/assets/icons/explanation.svg +1 -1
  69. package/dist/collection/assets/icons/eye.svg +1 -1
  70. package/dist/collection/assets/icons/filter.svg +1 -1
  71. package/dist/collection/assets/icons/grid.svg +1 -1
  72. package/dist/collection/assets/icons/headset.svg +1 -1
  73. package/dist/collection/assets/icons/list.svg +1 -1
  74. package/dist/collection/assets/icons/location.svg +1 -1
  75. package/dist/collection/assets/icons/megaphone.svg +1 -1
  76. package/dist/collection/assets/icons/minus.svg +1 -1
  77. package/dist/collection/assets/icons/negative.svg +1 -1
  78. package/dist/collection/assets/icons/pagination.svg +1 -1
  79. package/dist/collection/assets/icons/payment.svg +1 -1
  80. package/dist/collection/assets/icons/pencil.svg +1 -1
  81. package/dist/collection/assets/icons/person.svg +1 -1
  82. package/dist/collection/assets/icons/plus.svg +1 -1
  83. package/dist/collection/assets/icons/question.svg +1 -1
  84. package/dist/collection/assets/icons/receipt.svg +1 -1
  85. package/dist/collection/assets/icons/report.svg +1 -1
  86. package/dist/collection/assets/icons/search.svg +1 -1
  87. package/dist/collection/assets/icons/settings.svg +1 -1
  88. package/dist/collection/assets/icons/sick.svg +1 -1
  89. package/dist/collection/assets/icons/tachometer.svg +1 -1
  90. package/dist/collection/assets/icons/tool.svg +1 -1
  91. package/dist/collection/assets/icons/trash.svg +1 -1
  92. package/dist/collection/assets/icons/turn.svg +1 -1
  93. package/dist/collection/assets/icons/upload.svg +1 -1
  94. package/dist/collection/assets/icons/warning.svg +1 -1
  95. package/dist/collection/collection-manifest.json +2 -0
  96. package/dist/collection/components/button/button.component.js +6 -5
  97. package/dist/collection/components/icon/icon.component.js +108 -0
  98. package/dist/collection/components/illustration/illustration.component.js +39 -0
  99. package/dist/collection/tailwind.config.js +6 -0
  100. package/dist/collection/utils/icons.js +82 -0
  101. package/dist/collection/utils/illustrations.js +18 -0
  102. package/dist/components/index.d.ts +2 -0
  103. package/dist/components/index.js +2 -0
  104. package/dist/components/p-button.js +4 -4
  105. package/dist/components/p-icon.d.ts +11 -0
  106. package/dist/components/p-icon.js +820 -0
  107. package/dist/components/p-illustration.d.ts +11 -0
  108. package/dist/components/p-illustration.js +1441 -0
  109. package/dist/esm/{index-100a5ae6.js → index-6dcfeac0.js} +47 -5
  110. package/dist/esm/loader.js +2 -2
  111. package/dist/esm/p-button.entry.js +4 -4
  112. package/dist/esm/p-icon.entry.js +798 -0
  113. package/dist/esm/p-illustration.entry.js +1422 -0
  114. package/dist/esm/paperless.js +2 -2
  115. package/dist/index.html +1 -1
  116. package/dist/paperless/p-7dc80d7d.entry.js +1 -0
  117. package/dist/paperless/p-925c3a50.entry.js +1 -0
  118. package/dist/paperless/p-ad4cf55f.entry.js +1 -0
  119. package/dist/paperless/p-e9cdc0f0.js +2 -0
  120. package/dist/paperless/paperless.css +23342 -13
  121. package/dist/paperless/paperless.esm.js +1 -1
  122. package/dist/sw.js +69 -20
  123. package/dist/tailwind.config.js +6 -0
  124. package/dist/types/components/button/button.component.d.ts +1 -1
  125. package/dist/types/components/icon/icon.component.d.ts +22 -0
  126. package/dist/types/components/illustration/illustration.component.d.ts +9 -0
  127. package/dist/types/components.d.ts +70 -2
  128. package/dist/types/utils/icons.d.ts +43 -0
  129. package/dist/types/utils/illustrations.d.ts +11 -0
  130. package/package.json +5 -2
  131. package/dist/build/p-54459ae1.js +0 -2
  132. package/dist/build/p-c66e9743.entry.js +0 -1
  133. package/dist/paperless/p-54459ae1.js +0 -2
  134. package/dist/paperless/p-c66e9743.entry.js +0 -1
@@ -1 +1 @@
1
- import{p as t,b as p}from"./p-54459ae1.js";(()=>{const p=import.meta.url,r={};return""!==p&&(r.resourcesUrl=new URL(".",p).href),t(r)})().then((t=>p([["p-c66e9743",[[1,"p-button",{variant:[1]}]]]],t)));
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": "6d017c2e7815839c26deed4c16edfb40"
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-54459ae1.js"
37
+ "url": "build/p-7dc80d7d.entry.js"
38
38
  },
39
39
  {
40
- "url": "build/p-c66e9743.entry.js"
40
+ "url": "build/p-925c3a50.entry.js"
41
41
  },
42
42
  {
43
- "url": "cjs/index-e3e940d8.js",
44
- "revision": "15ec95b593671d5c161f99f271f3cb57"
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": "b5e4969b6b60713dd64c520202fc5af1"
58
+ "revision": "31d7c9beca66f5331e5790c309696947"
53
59
  },
54
60
  {
55
61
  "url": "cjs/p-button.cjs.entry.js",
56
- "revision": "3e83d6ae2a6da2a5fed296efed3aa80c"
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": "478e5848c8b4bbf3733a3c43d8dfee86"
73
+ "revision": "f88fb52b5d44b546443c5e4dc7007785"
61
74
  },
62
75
  {
63
76
  "url": "collection/collection-manifest.json",
64
- "revision": "fe2f674be73c110b95acf4d1a6f3fcac"
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": "cd78b7a9e36b7cd079c8807084249cb7"
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": "f70ac9bc426c08110a00b29dba180d04"
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": "5d3af333e686ef0839491478542c72b5"
129
+ "revision": "0171af0b858ec4bab316248316c9e91d"
101
130
  },
102
131
  {
103
132
  "url": "components/p-button.js",
104
- "revision": "b7e0bffe1e5e78171a6a4f2b9264bedf"
133
+ "revision": "e5eb8482d0f017b0cd0e06e170376995"
134
+ },
135
+ {
136
+ "url": "components/p-icon.js",
137
+ "revision": "56b3dffb5840a6b9fc11370dcdf3bf79"
105
138
  },
106
139
  {
107
- "url": "esm/index-100a5ae6.js",
108
- "revision": "b8a9d6a5b2765379ce7fdb58463fd47b"
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": "efc5e53be87882ce77c9570688d3ebc2"
152
+ "revision": "00098dec624b26695fa3bc12dc666763"
117
153
  },
118
154
  {
119
155
  "url": "esm/p-button.entry.js",
120
- "revision": "a37b1f96b51bedaf8d5b961fcb1a96ba"
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-54459ae1.js"
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-c66e9743.entry.js"
211
+ "url": "paperless/p-e9cdc0f0.js"
163
212
  },
164
213
  {
165
214
  "url": "tailwind.config.js",
166
- "revision": "f70ac9bc426c08110a00b29dba180d04"
215
+ "revision": "fbad7c4023643985c2ff629e465acf22"
167
216
  }
168
217
  ].concat(self.__precacheManifest || []);
169
218
  workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
@@ -3,6 +3,12 @@ const shadows = require('./tailwind/shadows');
3
3
  const borderRadius = require('./tailwind/border-radius');
4
4
 
5
5
  module.exports = {
6
+ important: true,
7
+ safelist: [
8
+ {
9
+ pattern: /./,
10
+ },
11
+ ],
6
12
  theme: {
7
13
  colors,
8
14
  boxShadow: shadows,
@@ -1,6 +1,6 @@
1
1
  export declare class Button {
2
2
  /**
3
- * The name
3
+ * The variant of the button
4
4
  */
5
5
  variant: 'primary' | 'secondary';
6
6
  render(): any;
@@ -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
+ }
@@ -0,0 +1,9 @@
1
+ import illustrations from '../../utils/illustrations';
2
+ export declare type IllustrationVariant = keyof typeof illustrations;
3
+ export declare class Icon {
4
+ /**
5
+ * The icon the be displayed
6
+ */
7
+ variant: IllustrationVariant;
8
+ render(): any;
9
+ }
@@ -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 name
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 name
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;
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ 'empty-state': string;
3
+ departments: string;
4
+ expenses: string;
5
+ functions: string;
6
+ questions: string;
7
+ 'sick-leave': string;
8
+ 'time-off': string;
9
+ 'upgrade-to-hr': string;
10
+ };
11
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/core",
3
- "version": "0.0.2-alpha.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": "tailwindcss -i dist/paperless/paperless.css -o dist/paperless/paperless.css",
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"
@@ -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}