@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,167 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-a46a39a5.js');
|
|
6
|
+
|
|
7
|
+
const paginationComponentCss = "/*! 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: }.flex{display:flex!important}p-pagination{display:flex}.static{position:static!important}";
|
|
8
|
+
|
|
9
|
+
const Pagination = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.valueChange = index.createEvent(this, "valueChange", 7);
|
|
13
|
+
/**
|
|
14
|
+
* The current page
|
|
15
|
+
*/
|
|
16
|
+
this.value = 1;
|
|
17
|
+
/**
|
|
18
|
+
* The amount of items per page
|
|
19
|
+
*/
|
|
20
|
+
this.pageSize = 12;
|
|
21
|
+
this._pages = [];
|
|
22
|
+
this._set = [];
|
|
23
|
+
this._nextClick = () => {
|
|
24
|
+
const nextPage = this.value + 1;
|
|
25
|
+
if (nextPage > this._pages[this._pages.length - 1]) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
this._changePage(nextPage);
|
|
29
|
+
};
|
|
30
|
+
this._pageClick = (p) => this._changePage(p);
|
|
31
|
+
this._generateSet = (range = 1, enableBoundaries = true) => {
|
|
32
|
+
const totalPages = this._pages.length;
|
|
33
|
+
if (!totalPages) {
|
|
34
|
+
return [];
|
|
35
|
+
}
|
|
36
|
+
let start = this.value - range;
|
|
37
|
+
let end = this.value + range;
|
|
38
|
+
if (end > totalPages) {
|
|
39
|
+
end = totalPages;
|
|
40
|
+
start = totalPages - range * 2;
|
|
41
|
+
start = start < 1 ? 1 : start;
|
|
42
|
+
}
|
|
43
|
+
if (start <= 1) {
|
|
44
|
+
start = 1;
|
|
45
|
+
end = Math.min(range * 2 + 1, totalPages);
|
|
46
|
+
}
|
|
47
|
+
const set = [];
|
|
48
|
+
const previous = {
|
|
49
|
+
type: 'previous',
|
|
50
|
+
value: index.h("p-icon", { variant: "chevron", rotate: 90 }),
|
|
51
|
+
};
|
|
52
|
+
const next = {
|
|
53
|
+
type: 'next',
|
|
54
|
+
value: index.h("p-icon", { variant: "chevron", rotate: -90 }),
|
|
55
|
+
};
|
|
56
|
+
// Disable page range, display all the pages
|
|
57
|
+
if (range === null) {
|
|
58
|
+
const p = this._pages.map((p) => ({
|
|
59
|
+
type: 'page',
|
|
60
|
+
value: p,
|
|
61
|
+
}));
|
|
62
|
+
return enableBoundaries ? [previous, ...p, next] : p;
|
|
63
|
+
}
|
|
64
|
+
if (enableBoundaries) {
|
|
65
|
+
set.push(previous);
|
|
66
|
+
}
|
|
67
|
+
if (start <= 3) {
|
|
68
|
+
for (let i = 1; i < start; i++) {
|
|
69
|
+
set.push({
|
|
70
|
+
type: 'page',
|
|
71
|
+
value: this._pages[i - 1],
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
set.push({
|
|
77
|
+
type: 'page',
|
|
78
|
+
value: 1,
|
|
79
|
+
});
|
|
80
|
+
set.push({
|
|
81
|
+
type: 'ellipsis',
|
|
82
|
+
value: 'ellipsis',
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
for (let i = start; i <= end; i++) {
|
|
86
|
+
set.push({
|
|
87
|
+
type: 'page',
|
|
88
|
+
value: this._pages[i - 1],
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
if (end >= totalPages - 2) {
|
|
92
|
+
for (let i = end + 1; i <= totalPages; i++) {
|
|
93
|
+
set.push({
|
|
94
|
+
type: 'page',
|
|
95
|
+
value: this._pages[i - 1],
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
set.push({
|
|
101
|
+
type: 'ellipsis',
|
|
102
|
+
});
|
|
103
|
+
set.push({
|
|
104
|
+
type: 'page',
|
|
105
|
+
value: this._pages[this._pages.length - 1],
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
if (enableBoundaries) {
|
|
109
|
+
set.push(next);
|
|
110
|
+
}
|
|
111
|
+
return set;
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
componentWillRender() {
|
|
115
|
+
this._generate();
|
|
116
|
+
}
|
|
117
|
+
render() {
|
|
118
|
+
var _a;
|
|
119
|
+
return (index.h(index.Host, { class: "p-pagination" }, (_a = this._set) === null || _a === void 0 ? void 0 : _a.map((p) => {
|
|
120
|
+
if (p.type === 'previous' || p.type === 'next') {
|
|
121
|
+
return (index.h("p-pagination-item", { onClick: () => p.type === 'previous'
|
|
122
|
+
? this._previousClick()
|
|
123
|
+
: this._nextClick() }, p.value));
|
|
124
|
+
}
|
|
125
|
+
if (p.type === 'ellipsis') {
|
|
126
|
+
return index.h("p-pagination-item", null, "...");
|
|
127
|
+
}
|
|
128
|
+
return (index.h("p-pagination-item", { active: p.value === this.value, onClick: () => this._pageClick(p.value) }, p.value));
|
|
129
|
+
})));
|
|
130
|
+
}
|
|
131
|
+
pageChangeHandler() {
|
|
132
|
+
this._generate();
|
|
133
|
+
}
|
|
134
|
+
_generate() {
|
|
135
|
+
this._pages = this._generatePages();
|
|
136
|
+
this._set = this._generateSet();
|
|
137
|
+
}
|
|
138
|
+
_changePage(p) {
|
|
139
|
+
if (!p) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
this.value = p;
|
|
143
|
+
this.valueChange.emit(this.value);
|
|
144
|
+
}
|
|
145
|
+
_previousClick() {
|
|
146
|
+
const previousPage = this.value - 1;
|
|
147
|
+
if (previousPage < this._pages[0]) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
this._changePage(previousPage);
|
|
151
|
+
}
|
|
152
|
+
_generatePages() {
|
|
153
|
+
if (!this.total || !this.pageSize) {
|
|
154
|
+
return [];
|
|
155
|
+
}
|
|
156
|
+
const pages = Math.ceil(this.total / this.pageSize);
|
|
157
|
+
return new Array(pages).fill(undefined).map((_, i) => i + 1);
|
|
158
|
+
}
|
|
159
|
+
static get watchers() { return {
|
|
160
|
+
"value": ["pageChangeHandler"],
|
|
161
|
+
"pageSize": ["pageChangeHandler"],
|
|
162
|
+
"total": ["pageChangeHandler"]
|
|
163
|
+
}; }
|
|
164
|
+
};
|
|
165
|
+
Pagination.style = paginationComponentCss;
|
|
166
|
+
|
|
167
|
+
exports.p_pagination = Pagination;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a46a39a5.js');
|
|
6
6
|
|
|
7
7
|
var top = 'top';
|
|
8
8
|
var bottom = 'bottom';
|
|
@@ -1791,62 +1791,104 @@ var createPopper = /*#__PURE__*/popperGenerator({
|
|
|
1791
1791
|
defaultModifiers: defaultModifiers
|
|
1792
1792
|
}); // eslint-disable-next-line import/no-unused-modules
|
|
1793
1793
|
|
|
1794
|
-
const tooltipComponentCss = "/*! 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
|
|
1794
|
+
const tooltipComponentCss = "/*! 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}.cursor-pointer{cursor:pointer!important}.rounded{border-radius:.25rem!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.bg-storm,.bg-white{--tw-bg-opacity:1!important}.bg-storm{background-color:rgb(81 83 107/var(--tw-bg-opacity))!important}.py-2{padding-bottom:.5rem!important;padding-top:.5rem!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;display:inline-block}:host .popover{--tw-bg-opacity:1;--tw-drop-shadow:drop-shadow(0px 0.3125rem 1rem rgba(0,24,98,.08)) drop-shadow(0px 0.0625rem 0.1875rem rgba(0,24,98,.13));background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.25rem;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:.5rem .75rem}:host .popover.variant-hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(81 83 107/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));padding-bottom:.25rem;padding-top:.25rem}:host .popover[data-show]{display:block}:host .popover .arrow,:host .popover .arrow:before{background:inherit;height:.5rem;position:absolute;width:.5rem}:host .popover .arrow{visibility:hidden}:host .popover .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 .popover[data-popper-placement^=top]>.arrow{bottom:-.25rem}:host .popover[data-popper-placement^=bottom]>.arrow{top:-.25rem}:host .popover[data-popper-placement^=left]>.arrow{right:-.25rem}:host .popover[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}";
|
|
1795
1795
|
|
|
1796
1796
|
const Tooltip = class {
|
|
1797
1797
|
constructor(hostRef) {
|
|
1798
1798
|
index.registerInstance(this, hostRef);
|
|
1799
1799
|
/**
|
|
1800
|
-
* The
|
|
1800
|
+
* The variant of the popover
|
|
1801
1801
|
*/
|
|
1802
|
-
this.
|
|
1802
|
+
this.variant = 'hover';
|
|
1803
1803
|
/**
|
|
1804
|
-
* The content of the
|
|
1804
|
+
* The content of the popover
|
|
1805
|
+
*/
|
|
1806
|
+
this.popover = null;
|
|
1807
|
+
/**
|
|
1808
|
+
* The content of the popover
|
|
1805
1809
|
*/
|
|
1806
1810
|
this.placement = 'top';
|
|
1807
1811
|
/**
|
|
1808
|
-
* Wether to
|
|
1812
|
+
* Wether to show the popover
|
|
1813
|
+
*/
|
|
1814
|
+
this.show = false;
|
|
1815
|
+
/**
|
|
1816
|
+
* Wether to someone can manually close the popover
|
|
1809
1817
|
*/
|
|
1810
|
-
this.
|
|
1818
|
+
this.canManuallyClose = true;
|
|
1811
1819
|
this._loaded = false;
|
|
1812
1820
|
}
|
|
1813
1821
|
componentShouldUpdate() {
|
|
1814
1822
|
this._setOptions();
|
|
1815
|
-
if (this.
|
|
1823
|
+
if (this._loaded && this.show) {
|
|
1816
1824
|
this._show();
|
|
1817
1825
|
}
|
|
1818
1826
|
}
|
|
1819
1827
|
render() {
|
|
1820
|
-
return (index.h(index.Host, { class: "p-
|
|
1828
|
+
return (index.h(index.Host, { class: "p-popover" }, index.h("slot", { name: "content" }), index.h("div", { class: `popover variant-${this.variant}`, role: "popover", ref: el => this._load(el) }, this.popover ? this.popover : index.h("slot", { name: "popover" }), index.h("div", { class: "arrow", "data-popper-arrow": true }))));
|
|
1829
|
+
}
|
|
1830
|
+
clickHandler() {
|
|
1831
|
+
if (this.variant === 'hover') {
|
|
1832
|
+
return;
|
|
1833
|
+
}
|
|
1834
|
+
if (this._popover.hasAttribute('data-show')) {
|
|
1835
|
+
return;
|
|
1836
|
+
}
|
|
1837
|
+
if (!this._popover.hasAttribute('data-show')) {
|
|
1838
|
+
this._show();
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
documentClickHandler() {
|
|
1842
|
+
if (this.variant === 'hover' || !this.canManuallyClose) {
|
|
1843
|
+
return;
|
|
1844
|
+
}
|
|
1845
|
+
if (!this._popover.hasAttribute('data-show')) {
|
|
1846
|
+
return;
|
|
1847
|
+
}
|
|
1848
|
+
if (this._popover.hasAttribute('data-show')) {
|
|
1849
|
+
this._hide();
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
mouseEnterHandler() {
|
|
1853
|
+
if (this.variant === 'click') {
|
|
1854
|
+
return;
|
|
1855
|
+
}
|
|
1856
|
+
this._show();
|
|
1857
|
+
}
|
|
1858
|
+
mouseLeaveHandler() {
|
|
1859
|
+
if (this.show || this.variant === 'click') {
|
|
1860
|
+
return;
|
|
1861
|
+
}
|
|
1862
|
+
this._hide();
|
|
1821
1863
|
}
|
|
1822
1864
|
_show() {
|
|
1823
1865
|
if (!this._loaded) {
|
|
1824
1866
|
return;
|
|
1825
1867
|
}
|
|
1826
|
-
// Make the
|
|
1827
|
-
this.
|
|
1868
|
+
// Make the popover visible
|
|
1869
|
+
this._popover.setAttribute('data-show', '');
|
|
1828
1870
|
// Enable the event listeners
|
|
1829
1871
|
this._popper.setOptions(options => (Object.assign(Object.assign({}, options), { modifiers: [...options.modifiers, { name: 'eventListeners', enabled: true }] })));
|
|
1830
1872
|
// Update its position
|
|
1831
1873
|
this._popper.update();
|
|
1832
1874
|
}
|
|
1833
1875
|
_hide() {
|
|
1834
|
-
if (!this._loaded
|
|
1876
|
+
if (!this._loaded) {
|
|
1835
1877
|
return;
|
|
1836
1878
|
}
|
|
1837
|
-
// Hide the
|
|
1838
|
-
this.
|
|
1879
|
+
// Hide the popover
|
|
1880
|
+
this._popover.removeAttribute('data-show');
|
|
1839
1881
|
// Disable the event listeners
|
|
1840
1882
|
this._popper.setOptions(options => (Object.assign(Object.assign({}, options), { modifiers: [...options.modifiers, { name: 'eventListeners', enabled: false }] })));
|
|
1841
1883
|
}
|
|
1842
|
-
_load(
|
|
1843
|
-
this.
|
|
1844
|
-
if (
|
|
1845
|
-
this._popper = createPopper(this._el,
|
|
1884
|
+
_load(popover) {
|
|
1885
|
+
this._popover = popover;
|
|
1886
|
+
if (popover) {
|
|
1887
|
+
this._popper = createPopper(this._el, popover);
|
|
1846
1888
|
this._setOptions();
|
|
1847
1889
|
this._loaded = true;
|
|
1848
|
-
if (this.
|
|
1849
|
-
this._show();
|
|
1890
|
+
if (this.show) {
|
|
1891
|
+
setTimeout(() => this._show(), 100);
|
|
1850
1892
|
}
|
|
1851
1893
|
}
|
|
1852
1894
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-a46a39a5.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v2.17.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["p-
|
|
18
|
+
return index.bootstrapLazy([["p-navigation-item.cjs",[[1,"p-navigation-item",{"active":[4],"icon":[1],"counter":[8],"href":[1],"target":[1]}]]],["p-pagination.cjs",[[0,"p-pagination",{"value":[1538],"pageSize":[2,"page-size"],"total":[2]}]]],["p-helper.cjs",[[1,"p-helper"]]],["p-info-panel.cjs",[[1,"p-info-panel",{"variant":[1],"header":[1],"content":[1],"closeable":[4]}]]],["p-avatar.cjs",[[1,"p-avatar",{"variant":[1],"size":[1],"defaultImage":[1,"default-image"],"src":[1],"_src":[32]}]]],["p-divider.cjs",[[1,"p-divider"]]],["p-illustration.cjs",[[0,"p-illustration",{"variant":[1]}]]],["p-counter.cjs",[[1,"p-counter"]]],["p-pagination-item.cjs",[[1,"p-pagination-item",{"active":[4]}]]],["p-tooltip.cjs",[[1,"p-tooltip",{"variant":[1],"popover":[8],"placement":[1],"show":[4],"canManuallyClose":[4,"can-manually-close"]},[[2,"click","clickHandler"],[6,"click","documentClickHandler"],[1,"mouseenter","mouseEnterHandler"],[0,"focus","mouseEnterHandler"],[1,"mouseleave","mouseLeaveHandler"],[0,"blur","mouseLeaveHandler"]]]]],["p-button_3.cjs",[[4,"p-button",{"variant":[1],"href":[1],"target":[1],"size":[1],"loading":[4],"disabled":[4],"icon":[1],"iconPosition":[1,"icon-position"],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]},[[2,"click","handleClick"]]],[1,"p-loader",{"show":[4],"variant":[1],"color":[1],"modalTitle":[1,"modal-title"],"modalDescription":[1,"modal-description"]}],[0,"p-icon",{"variant":[1],"size":[1],"rotate":[2],"flip":[1]}]]]], options);
|
|
19
19
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32" viewBox="0 0 32 32">
|
|
2
|
+
<defs>
|
|
3
|
+
<rect id="a" width="32" height="32" rx="4"/>
|
|
4
|
+
</defs>
|
|
5
|
+
<g fill="none" fill-rule="evenodd">
|
|
6
|
+
<mask id="b" fill="#fff">
|
|
7
|
+
<use xlink:href="#a"/>
|
|
8
|
+
</mask>
|
|
9
|
+
<use fill="#FFE8EA" fill-rule="nonzero" xlink:href="#a"/>
|
|
10
|
+
<path fill="#FF7D88" fill-rule="nonzero" d="M16 20.5l-5.29 2.781 1.01-5.89-4.28-4.172 5.915-.86L16 7l2.645 5.36 5.915.859-4.28 4.172 1.01 5.89z" mask="url(#b)"/>
|
|
11
|
+
</g>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="104" height="104" viewBox="0 0 104 104">
|
|
2
|
+
<defs>
|
|
3
|
+
<rect id="a" width="104" height="104" rx="52"/>
|
|
4
|
+
</defs>
|
|
5
|
+
<g fill="none" fill-rule="evenodd">
|
|
6
|
+
<mask id="b" fill="#fff">
|
|
7
|
+
<use xlink:href="#a"/>
|
|
8
|
+
</mask>
|
|
9
|
+
<use fill="#F7FAFC" xlink:href="#a"/>
|
|
10
|
+
<path fill="#E3ECF3" fill-rule="nonzero" d="M52.5 23C60.717 23 71 29.402 71 42c0 12.598-8.283 23-18.5 23S34 54.598 34 42s10.283-19 18.5-19zM24 77c15-10 41-10 56 0 10 6.667 10 23 0 49H24c-10-26-10-42.333 0-49z" mask="url(#b)"/>
|
|
11
|
+
</g>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="12px" height="12px" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<!-- Generator: Sketch 49.2 (51160) - http://www.bohemiancoding.com/sketch -->
|
|
4
|
+
<title>icon - 21</title>
|
|
5
|
+
<desc>Created with Sketch.</desc>
|
|
6
|
+
<defs></defs>
|
|
7
|
+
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8
|
+
<g id="icon---21" fill-rule="nonzero">
|
|
9
|
+
<rect id="Rectangle-path" fill="#30C2C9" x="0" y="0" width="12" height="12" rx="3"></rect>
|
|
10
|
+
<g id="icon---21-b-link" transform="translate(4.000000, 2.000000)" fill="#FFFFFF">
|
|
11
|
+
<path d="M4.20169494,2.05088469 C4.20169494,2.90088469 3.68169494,3.31088469 3.41169494,3.53088469 L2.96745401,4.03088469 C2.69745401,4.26088469 2.66745401,4.38088469 2.65745401,4.63088469 L2.64745401,4.96088469 L1.10581057,4.96088469 L1.10581057,4.53088469 C1.08581057,4.08088469 1.58581057,3.36380227 1.83581057,3.16380227 C2.08581057,2.96380227 2.72169494,2.80726703 2.72169494,2.33612319 C2.72169494,1.86497934 2.30756831,1.6573357 1.93756831,1.6573357 C1.56756831,1.6573357 0.94169494,1.88088469 0.79169494,2.03088469 L0,0.9190163 C0.15,0.7690163 0.95649746,0 2.15649746,0 C3.35649746,0 4.20169494,1.20088469 4.20169494,2.05088469 Z M2.96745401,6.46948689 C2.96745401,6.86948689 2.66245401,7.32102543 2.16149746,7.32102543 C1.66054091,7.32102543 1.32164313,6.94462439 1.32164313,6.46948689 C1.32164313,5.99434938 1.53925393,5.67842783 2.16149746,5.67842783 C2.78374099,5.67842783 2.96745401,6.06948689 2.96745401,6.46948689 Z" id="icon---21-b"></path>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
</svg>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="12px" height="12px" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<!-- Generator: Sketch 48.2 (47327) - http://www.bohemiancoding.com/sketch -->
|
|
4
|
+
<title>helper</title>
|
|
5
|
+
<desc>Created with Sketch.</desc>
|
|
6
|
+
<defs></defs>
|
|
7
|
+
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8
|
+
<g id="helper" fill-rule="nonzero">
|
|
9
|
+
<rect id="Rectangle-path" fill="#D0F5F7" x="0" y="0" width="12" height="12" rx="3"></rect>
|
|
10
|
+
<g id="icon---19-b-link" transform="translate(3.000000, 2.000000)" fill="#1EDAE3">
|
|
11
|
+
<path d="M5.03019748,2.07245686 C5.03019748,2.92245686 4.51019748,3.33245686 4.24019748,3.55245686 L3.79595655,4.05245686 C3.52595655,4.28245686 3.49595655,4.40245686 3.48595655,4.65245686 L3.47595655,4.98245686 L1.93431311,4.98245686 L1.93431311,4.55245686 C1.91431311,4.10245686 2.41431311,3.38537444 2.66431311,3.18537444 C2.91431311,2.98537444 3.55019748,2.8288392 3.55019748,2.35769536 C3.55019748,1.88655151 3.13607085,1.67890787 2.76607085,1.67890787 C2.39607085,1.67890787 1.77019748,1.90245686 1.62019748,2.05245686 L0.82850254,0.94058847 C0.97850254,0.79058847 1.785,0.02157217 2.985,0.02157217 C4.185,0.02157217 5.03019748,1.22245686 5.03019748,2.07245686 Z M3.79595655,6.49105906 C3.79595655,6.89105906 3.49095655,7.3425976 2.99,7.3425976 C2.48904345,7.3425976 2.15014567,6.96619656 2.15014567,6.49105906 C2.15014567,6.01592155 2.36775647,5.7 2.99,5.7 C3.61224353,5.7 3.79595655,6.09105906 3.79595655,6.49105906 Z" id="icon---19-b"></path>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
</svg>
|
|
@@ -2,9 +2,17 @@
|
|
|
2
2
|
"entries": [
|
|
3
3
|
"./components/atoms/icon/icon.component.js",
|
|
4
4
|
"./components/atoms/illustration/illustration.component.js",
|
|
5
|
+
"./components/atoms/avatar/avatar.component.js",
|
|
5
6
|
"./components/atoms/button/button.component.js",
|
|
7
|
+
"./components/atoms/counter/counter.component.js",
|
|
8
|
+
"./components/atoms/divider/divider.component.js",
|
|
9
|
+
"./components/atoms/helper/helper.component.js",
|
|
10
|
+
"./components/atoms/info-panel/info-panel.component.js",
|
|
6
11
|
"./components/atoms/loader/loader.component.js",
|
|
7
|
-
"./components/atoms/
|
|
12
|
+
"./components/atoms/pagination-item/pagination-item.component.js",
|
|
13
|
+
"./components/atoms/tooltip/tooltip.component.js",
|
|
14
|
+
"./components/molecules/navigation-item/navigation-item.component.js",
|
|
15
|
+
"./components/molecules/pagination/pagination.component.js"
|
|
8
16
|
],
|
|
9
17
|
"compiler": {
|
|
10
18
|
"name": "@stencil/core",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
@apply inline-block;
|
|
3
|
+
}
|
|
4
|
+
:host > img {
|
|
5
|
+
@apply object-cover object-center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host(.size-small) > img {
|
|
9
|
+
@apply w-10 h-10;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host(.size-medium) > img {
|
|
13
|
+
@apply w-20 h-20;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host(.size-large) > img {
|
|
17
|
+
@apply w-28 h-28;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:host(.variant-company) > img {
|
|
21
|
+
@apply rounded;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host(.variant-company.size-medium),
|
|
25
|
+
:host(.variant-company.size-large) {
|
|
26
|
+
@apply rounded-large;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host(.variant-user) > img {
|
|
30
|
+
@apply rounded-round;
|
|
31
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Component, h, Host, Prop, State } from '@stencil/core';
|
|
2
|
+
export class Avatar {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* The variant of the avatar
|
|
6
|
+
*/
|
|
7
|
+
this.variant = 'user';
|
|
8
|
+
/**
|
|
9
|
+
* The size of the avatar
|
|
10
|
+
*/
|
|
11
|
+
this.size = 'medium';
|
|
12
|
+
this._src = this.src;
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (h(Host, { class: `p-avatar size-${this.size} variant-${this.variant}` },
|
|
16
|
+
h("img", { src: this._src, onError: () => this._setDefaultLink() })));
|
|
17
|
+
}
|
|
18
|
+
_setDefaultLink() {
|
|
19
|
+
var _a;
|
|
20
|
+
this._src = (_a = this.defaultImage) !== null && _a !== void 0 ? _a : (this.variant === 'user' ? '/assets/images/avatar/user-default.svg' : '/assets/images/avatar/company-default.svg');
|
|
21
|
+
}
|
|
22
|
+
static get is() { return "p-avatar"; }
|
|
23
|
+
static get encapsulation() { return "shadow"; }
|
|
24
|
+
static get originalStyleUrls() { return {
|
|
25
|
+
"$": ["avatar.component.scss"]
|
|
26
|
+
}; }
|
|
27
|
+
static get styleUrls() { return {
|
|
28
|
+
"$": ["avatar.component.css"]
|
|
29
|
+
}; }
|
|
30
|
+
static get properties() { return {
|
|
31
|
+
"variant": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"mutable": false,
|
|
34
|
+
"complexType": {
|
|
35
|
+
"original": "'user' | 'company'",
|
|
36
|
+
"resolved": "\"company\" | \"user\"",
|
|
37
|
+
"references": {}
|
|
38
|
+
},
|
|
39
|
+
"required": false,
|
|
40
|
+
"optional": false,
|
|
41
|
+
"docs": {
|
|
42
|
+
"tags": [],
|
|
43
|
+
"text": "The variant of the avatar"
|
|
44
|
+
},
|
|
45
|
+
"attribute": "variant",
|
|
46
|
+
"reflect": false,
|
|
47
|
+
"defaultValue": "'user'"
|
|
48
|
+
},
|
|
49
|
+
"size": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"mutable": false,
|
|
52
|
+
"complexType": {
|
|
53
|
+
"original": "'small' | 'medium' | 'large'",
|
|
54
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
55
|
+
"references": {}
|
|
56
|
+
},
|
|
57
|
+
"required": false,
|
|
58
|
+
"optional": false,
|
|
59
|
+
"docs": {
|
|
60
|
+
"tags": [],
|
|
61
|
+
"text": "The size of the avatar"
|
|
62
|
+
},
|
|
63
|
+
"attribute": "size",
|
|
64
|
+
"reflect": false,
|
|
65
|
+
"defaultValue": "'medium'"
|
|
66
|
+
},
|
|
67
|
+
"defaultImage": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "string",
|
|
72
|
+
"resolved": "string",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": "The default image to show on errors"
|
|
80
|
+
},
|
|
81
|
+
"attribute": "default-image",
|
|
82
|
+
"reflect": false
|
|
83
|
+
},
|
|
84
|
+
"src": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"mutable": false,
|
|
87
|
+
"complexType": {
|
|
88
|
+
"original": "string",
|
|
89
|
+
"resolved": "string",
|
|
90
|
+
"references": {}
|
|
91
|
+
},
|
|
92
|
+
"required": true,
|
|
93
|
+
"optional": false,
|
|
94
|
+
"docs": {
|
|
95
|
+
"tags": [],
|
|
96
|
+
"text": "The image used for the avatar"
|
|
97
|
+
},
|
|
98
|
+
"attribute": "src",
|
|
99
|
+
"reflect": false
|
|
100
|
+
}
|
|
101
|
+
}; }
|
|
102
|
+
static get states() { return {
|
|
103
|
+
"_src": {}
|
|
104
|
+
}; }
|
|
105
|
+
}
|
|
@@ -1,6 +1,71 @@
|
|
|
1
|
-
|
|
1
|
+
p-button {
|
|
2
|
+
@apply inline-block;
|
|
3
|
+
}
|
|
4
|
+
p-button > button,
|
|
5
|
+
p-button > a {
|
|
2
6
|
outline: 0;
|
|
3
7
|
border: 0;
|
|
4
|
-
@apply
|
|
5
|
-
@apply
|
|
8
|
+
@apply h-10 rounded-large;
|
|
9
|
+
@apply font-semibold leading-4;
|
|
10
|
+
@apply flex items-center justify-center;
|
|
11
|
+
@apply cursor-pointer;
|
|
12
|
+
}
|
|
13
|
+
p-button > button > p-loader,
|
|
14
|
+
p-button > a > p-loader {
|
|
15
|
+
@apply ml-2;
|
|
16
|
+
}
|
|
17
|
+
p-button > button.icon-position-end > p-icon,
|
|
18
|
+
p-button > a.icon-position-end > p-icon {
|
|
19
|
+
@apply ml-2;
|
|
20
|
+
}
|
|
21
|
+
p-button > button.icon-position-start > p-icon,
|
|
22
|
+
p-button > a.icon-position-start > p-icon {
|
|
23
|
+
@apply mr-2;
|
|
24
|
+
}
|
|
25
|
+
p-button > button.variant-primary, p-button > button.variant-secondary,
|
|
26
|
+
p-button > a.variant-primary,
|
|
27
|
+
p-button > a.variant-secondary {
|
|
28
|
+
@apply px-4;
|
|
29
|
+
}
|
|
30
|
+
p-button > button.variant-primary,
|
|
31
|
+
p-button > a.variant-primary {
|
|
32
|
+
@apply bg-indigo text-white;
|
|
33
|
+
}
|
|
34
|
+
p-button > button.variant-primary:hover,
|
|
35
|
+
p-button > a.variant-primary:hover {
|
|
36
|
+
@apply bg-indigo/95;
|
|
37
|
+
}
|
|
38
|
+
p-button > button.variant-primary:active,
|
|
39
|
+
p-button > a.variant-primary:active {
|
|
40
|
+
@apply bg-indigo-dark;
|
|
41
|
+
}
|
|
42
|
+
p-button > button.variant-secondary,
|
|
43
|
+
p-button > a.variant-secondary {
|
|
44
|
+
@apply border border-mystic-dark !important;
|
|
45
|
+
@apply bg-white text-storm;
|
|
46
|
+
@apply filter drop-shadow-4;
|
|
47
|
+
}
|
|
48
|
+
p-button > button.variant-secondary:hover,
|
|
49
|
+
p-button > a.variant-secondary:hover {
|
|
50
|
+
@apply bg-mystic;
|
|
51
|
+
}
|
|
52
|
+
p-button > button.variant-secondary:active,
|
|
53
|
+
p-button > a.variant-secondary:active {
|
|
54
|
+
@apply bg-storm-light/5 border-storm-light/20;
|
|
55
|
+
}
|
|
56
|
+
p-button > button.variant-text,
|
|
57
|
+
p-button > a.variant-text {
|
|
58
|
+
@apply text-indigo;
|
|
59
|
+
}
|
|
60
|
+
p-button > button.variant-text:hover,
|
|
61
|
+
p-button > a.variant-text:hover {
|
|
62
|
+
@apply text-indigo-dark;
|
|
63
|
+
}
|
|
64
|
+
p-button > button.size-small,
|
|
65
|
+
p-button > a.size-small {
|
|
66
|
+
@apply h-8 text-sm;
|
|
67
|
+
}
|
|
68
|
+
p-button > button[disabled],
|
|
69
|
+
p-button > a[disabled] {
|
|
70
|
+
@apply opacity-50;
|
|
6
71
|
}
|