@paperless/core 3.15.1 → 3.15.3
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/dist/build/{p-4060ee8b.entry.js → p-53397cd2.entry.js} +1 -1
- package/dist/build/{p-a77f13cb.js → p-d9b9a508.js} +1 -1
- package/dist/build/p-e20c97d4.entry.js +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-dropzone.cjs.entry.js +7 -7
- package/dist/cjs/p-field_3.cjs.entry.js +7 -7
- package/dist/collection/components/molecules/dropzone/dropzone.component.css +1 -1
- package/dist/collection/components/molecules/dropzone/dropzone.component.js +6 -6
- package/dist/collection/components/molecules/field/container/field-container.component.css +1 -1
- package/dist/collection/components/molecules/field/container/field-container.component.js +6 -6
- package/dist/components/{p-BKVZoBXs.js → p-BM2LC6IR.js} +1 -1
- package/dist/components/{p-GCtiZnn_.js → p-C9E8dYEf.js} +1 -1
- package/dist/components/{p-C_ug-NFC.js → p-CS-hUUhn.js} +1 -1
- package/dist/components/p-D8nX9GTO.js +1 -0
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-datepicker.js +1 -1
- package/dist/components/p-dropzone.js +1 -1
- package/dist/components/p-field-container.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/{p-D-CC7BBx.js → p-gpZWMkW6.js} +1 -1
- package/dist/components/p-pagination-pages.js +1 -1
- package/dist/components/p-pagination.js +1 -1
- package/dist/components/p-select.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table.js +1 -1
- package/dist/components/{p-DEoTWGPb.js → p-tlG1f_wk.js} +1 -1
- package/dist/esm/p-dropzone.entry.js +7 -7
- package/dist/esm/p-field_3.entry.js +7 -7
- package/dist/index.html +1 -1
- package/dist/paperless/{p-4060ee8b.entry.js → p-53397cd2.entry.js} +1 -1
- package/dist/paperless/p-e20c97d4.entry.js +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/hydrate/index.js +14 -14
- package/hydrate/index.mjs +14 -14
- package/package.json +1 -1
- package/dist/build/p-95d1d5d3.entry.js +0 -1
- package/dist/components/p-bWeLk9nj.js +0 -1
- package/dist/paperless/p-95d1d5d3.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
*{box-sizing:border-box}.static{position:static}.flex{display:flex}.hidden{display:none}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-2{gap:.5rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.border-white-800{--tw-border-opacity:1;border-color:rgb(228 227 227/var(--tw-border-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-positive-green-50{--tw-bg-opacity:1;background-color:rgb(234 253 227/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.p-
|
|
1
|
+
*{box-sizing:border-box}.static{position:static}.flex{display:flex}.hidden{display:none}.h-inherit{height:inherit}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.border-white-800{--tw-border-opacity:1;border-color:rgb(228 227 227/var(--tw-border-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-positive-green-50{--tw-bg-opacity:1;background-color:rgb(234 253 227/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.p-4{padding:1rem}.text-center{text-align:center}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-hurricane-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-positive-green-800{--tw-text-opacity:1;color:rgb(47 100 7/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-50{opacity:.5}.filter{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)}.hover\:border-indigo-500:hover{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.group\/dropzone:hover .group-hover\/dropzone\:text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.group\/dropzone:hover .group-hover\/dropzone\:opacity-50{opacity:.5}.dark\:border-white\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\:bg-hurricane-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:hover\:border-white\/15:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\:hover\:bg-hurricane-500:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.group\/dropzone:hover .dark\:group-hover\/dropzone\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:border-white\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\:bg-hurricane-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:hover\:border-white\/15:hover:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\:hover\:bg-hurricane-500:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.group\/dropzone:hover .dark\:group-hover\/dropzone\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}
|
|
@@ -4,11 +4,11 @@ import { ThemedHost } from "../../../internal/themed-host.component";
|
|
|
4
4
|
import { cn } from "../../../utils";
|
|
5
5
|
const dropzone = cva([
|
|
6
6
|
'group/dropzone',
|
|
7
|
-
'flex w-full flex-col items-center gap-2',
|
|
7
|
+
'flex h-inherit w-full flex-col items-center justify-center gap-2',
|
|
8
8
|
'cursor-pointer',
|
|
9
9
|
'rounded-lg',
|
|
10
10
|
'border',
|
|
11
|
-
'p-
|
|
11
|
+
'p-4',
|
|
12
12
|
], {
|
|
13
13
|
variants: {
|
|
14
14
|
uploaded: {
|
|
@@ -118,16 +118,16 @@ export class Dropzone {
|
|
|
118
118
|
}
|
|
119
119
|
render() {
|
|
120
120
|
const hasContent = this._el.innerHTML?.length > 0;
|
|
121
|
-
return (h(ThemedHost, { key: '
|
|
121
|
+
return (h(ThemedHost, { key: 'd94080d9b34596727efaa72b0b2f808d19a248e1' }, h("div", { key: '047d1c3cb0ea179e93e34cc33eddce6311cf0a6b', class: dropzone({
|
|
122
122
|
isOver: this._isOver,
|
|
123
123
|
uploaded: this.uploaded,
|
|
124
|
-
}),
|
|
124
|
+
}), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (h("p-icon", { key: '5d7a32c5a7a4d16385d2744688fd7dfc597294ae', class: cn(`
|
|
125
125
|
group-hover/dropzone:text-indigo-900
|
|
126
126
|
dark:group-hover/dropzone:text-white
|
|
127
127
|
`, {
|
|
128
128
|
'text-storm-300 dark:text-hurricane-300': !this._isOver,
|
|
129
129
|
'text-indigo-900 dark:text-white': this._isOver,
|
|
130
|
-
}), variant: this.icon })), this.loading && h("p-loader", { key: '
|
|
130
|
+
}), variant: this.icon })), this.loading && h("p-loader", { key: '5f4a5818201809809a6c2bef85d7bbd3e1139d32' }), hasContent && h("slot", { key: 'a617832e2305a17b33ee1672161b086bcaee3ba6' }), this.uploaded && !this._isOver && (h("div", { key: '37d5abc7d1911191ce0837da4dc75ded564015b1', class: 'flex items-center gap-2 text-positive-green-800' }, h("p-icon", { key: '454995571fe41257ea43b317e79926e458cc934a', variant: 'check-circle' }), h("span", { key: '6aa0a20db5a5a65f02a0d5319ec18b559ef57b7a', class: 'font-medium' }, this.addedString))), (!this.uploaded || this._isOver) && (h("div", { key: '7e75e105348ebd58c4d2183b4d5f64a410393067', class: cn([
|
|
131
131
|
'flex flex-col text-center',
|
|
132
132
|
'group-hover/dropzone:opacity-50',
|
|
133
133
|
`
|
|
@@ -136,7 +136,7 @@ export class Dropzone {
|
|
|
136
136
|
`,
|
|
137
137
|
], {
|
|
138
138
|
'opacity-50': this._isOver,
|
|
139
|
-
}) }, h("span", { key: '
|
|
139
|
+
}) }, h("span", { key: '7e87b47205401f3ef2174ba8f069a59e09d84894', class: 'font-medium' }, this.dragFileString), h("span", { key: 'a474aff707224efbd3e248219c1798ac37c9e990', class: 'font-normal' }, this.orClickString)))), h("input", { key: '4d55ef7a4fc188f79383763914455d542bebce84', accept: this.acceptGroup == 'any' ? '' : 'image/*', class: 'hidden', multiple: this.allowMultiple === true ? true : undefined, ref: el => (this._fileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) })));
|
|
140
140
|
}
|
|
141
141
|
onDrop(ev) {
|
|
142
142
|
const files = this._getFiles(ev);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*{box-sizing:border-box}.static{position:static}.ml-auto{margin-left:auto}.flex{display:flex}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.w-full{width:100%}.w-inherit{width:inherit}.min-w-0{min-width:0}.flex-shrink-0{flex-shrink:0}.cursor-auto{cursor:auto}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.empty\:hidden:empty{display:none}.dark\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}
|
|
1
|
+
*{box-sizing:border-box}.static{position:static}.ml-auto{margin-left:auto}.flex{display:flex}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-inherit{height:inherit}.w-full{width:100%}.w-inherit{width:inherit}.min-w-0{min-width:0}.flex-shrink-0{flex-shrink:0}.cursor-auto{cursor:auto}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.empty\:hidden:empty{display:none}.dark\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}
|
|
@@ -109,23 +109,23 @@ export class FieldContainer {
|
|
|
109
109
|
if (this.loading) {
|
|
110
110
|
contentSlot = (h("p-loader", { key: 'fe69f220c9021a637ca5bef74868f769222a635d', class: loader({ variant: this.variant, size: this.loadingSize }), slot: 'trigger', variant: 'ghost' }));
|
|
111
111
|
}
|
|
112
|
-
return (h(ThemedHost, { key: 'cbed8c2f71c7be4f1789b3d234aafca4f9f078d9' }, h("label", { key: '
|
|
112
|
+
return (h(ThemedHost, { key: 'cbed8c2f71c7be4f1789b3d234aafca4f9f078d9' }, h("label", { key: '4cb5fac7fe945b5f520ac83a43a7a5af6b879adc', class: cn('flex h-inherit w-inherit flex-col gap-1', {
|
|
113
113
|
'cursor-auto': this.variant === 'read',
|
|
114
|
-
}), htmlFor: this.id }, h("div", { key: '
|
|
114
|
+
}), htmlFor: this.id }, h("div", { key: 'eddd1fb87a9a2d0878cd41420e88e54e31da3bd1', class: cn(`
|
|
115
115
|
flex items-end justify-between gap-1
|
|
116
116
|
empty:hidden
|
|
117
117
|
`, {
|
|
118
118
|
'flex-row-reverse': this.align === 'end',
|
|
119
|
-
}) }, (!!label?.length || !!helper?.length) && (h("div", { key: '
|
|
120
|
-
hasHeaderSlot) && (h("div", { key: '
|
|
119
|
+
}) }, (!!label?.length || !!helper?.length) && (h("div", { key: 'de0c79227552968864feee220604dc75ae7e4ecc', class: 'flex min-w-0 gap-2', onClick: () => this.focus.emit() }, h("span", { key: 'e3706293e4feae632d4d990adc3fb49f54c386cd', class: '\n min-w-0 overflow-hidden text-ellipsis text-xs font-medium\n text-storm-300\n dark:text-hurricane-200\n ' }, label), helper && (h("p-helper", { key: '7c8a9c8a5c82bda7028cd3ae2bf730425fea0eae', class: 'flex flex-shrink-0', placement: 'top' }, helper)))), ((!asBoolean(this.required) && asBoolean(this.showOptional)) ||
|
|
120
|
+
hasHeaderSlot) && (h("div", { key: '74c6873c1972f30938ae1e328f5bda72e41c4bb6', class: 'flex items-center gap-1' }, !asBoolean(this.required) &&
|
|
121
121
|
asBoolean(this.showOptional) &&
|
|
122
|
-
this.variant === 'write' && (h("span", { key: '
|
|
122
|
+
this.variant === 'write' && (h("span", { key: 'a26431f4d7f51d1a92f0124b3dbd89220d37d16a', class: '\n text-xs font-medium text-storm-200\n dark:text-hurricane-300\n ' }, this.optionalTemplate())), hasHeaderSlot && h("slot", { key: 'c45674f169680c8f677dbd0f05c3cd1b54c713f5', name: 'header' })))), h("p-tooltip", { key: 'e1cd66e97f216465f0a6ebb4f7283ee934d28379', class: cn({
|
|
123
123
|
'w-full': this.variant === 'write' || this.loading,
|
|
124
124
|
'ml-auto': this.align === 'end',
|
|
125
125
|
'font-normal': this.variant === 'read',
|
|
126
126
|
'text-storm-500 dark:text-white': this.variant === 'read',
|
|
127
127
|
}), content: this.error, enableUserInput: false, placement: this.errorPlacement, show: errorAndErrorIsNotBoolean &&
|
|
128
|
-
asBoolean(this.forceShowTooltip, false), variant: 'error' }, hasErrorSlot && (h("slot", { key: '
|
|
128
|
+
asBoolean(this.forceShowTooltip, false), variant: 'error' }, hasErrorSlot && (h("slot", { key: 'a6e72b011664317de5e09b4a2fd689e307c0d5d2', name: 'error', slot: 'content' })), contentSlot))));
|
|
129
129
|
}
|
|
130
130
|
async _setLocales() {
|
|
131
131
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as a,H as t,c as r,h as i,F as o}from"./p-CySg37XO.js";import{c as s}from"./p-CBWjHURv.js";import{T as d}from"./p-Au2WuEGF.js";import{P as n,a as p}from"./p-CEaB2BT0.js";import{d as c}from"./p-Dzd3xVIu.js";import{d as m}from"./p-CK5WtJW3.js";import{d as h}from"./p-O5rAm8zV.js";import{d as g}from"./p-DA92PZeS.js";import{d as b}from"./p-CmhjRWQy.js";import{d as l}from"./p-B0R6Smvm.js";import{d as f}from"./p-
|
|
1
|
+
import{t as e,p as a,H as t,c as r,h as i,F as o}from"./p-CySg37XO.js";import{c as s}from"./p-CBWjHURv.js";import{T as d}from"./p-Au2WuEGF.js";import{P as n,a as p}from"./p-CEaB2BT0.js";import{d as c}from"./p-Dzd3xVIu.js";import{d as m}from"./p-CK5WtJW3.js";import{d as h}from"./p-O5rAm8zV.js";import{d as g}from"./p-DA92PZeS.js";import{d as b}from"./p-CmhjRWQy.js";import{d as l}from"./p-B0R6Smvm.js";import{d as f}from"./p-gpZWMkW6.js";import{d as u}from"./p-D8nX9GTO.js";import{d as k}from"./p-DW2CgFRa.js";import{d as w}from"./p-CPr4Yiq8.js";import{d as y}from"./p-D8faiybE.js";import{d as x}from"./p-CS-hUUhn.js";import{d as j}from"./p-CTFrItdj.js";import{d as z}from"./p-BmZe-ySu.js";import{d as E}from"./p-jLO4drbv.js";const P=s(["items-center gap-2","rounded-full","border border-solid border-off-white-700 bg-off-white-300","dark:border-hurricane-400 dark:bg-hurricane-500","p-1"],{variants:{hidden:{false:"flex",true:"hidden"}}}),v=a(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.pageChange=r(this,"pageChange",3),this.pageSizeChange=r(this,"pageSizeChange",3),this.pagesChange=r(this,"pagesChange",3)}hideOnSinglePage=!0;enablePaginationSize=!0;enablePaginationPages=!0;page=1;total;pageSize=n;pageSizeOptions=p;pageChange;pageSizeChange;pagesChange;_hasPaginationPages=!0;render(){const e=this.hideOnSinglePage&&this.total<=this.pageSizeOptions?.[0];return i(d,{key:"611fb4062cf7c6cd78adf2744d7694615fa8d502"},i("div",{key:"80ebed4ee0978c78ecee629d08f7ca026e395349",class:P({hidden:e&&!this._hasPaginationPages||!this.enablePaginationSize&&!this.enablePaginationPages})},this.enablePaginationPages&&this.enablePaginationSize&&i(o,{key:"81ffbba6758be70cb681d1b778365c1f83122048"},i("p-pagination-size",{key:"ede0a33d15261777f8d99ce866dedb3af3d63c86",hidden:e,size:this.pageSize,sizeOptions:this.pageSizeOptions,onSizeChange:({detail:e})=>this._changePageSize(e)}),!e&&this.hideOnSinglePage&&this._hasPaginationPages&&i("p-divider",{key:"8d9956dd7d2277ea8849003e31ce2000eb88db7d",class:"\n mx-0 h-4 text-off-white-700\n dark:text-hurricane-400\n ",variant:"vertical"})),this.enablePaginationPages&&i("p-pagination-pages",{key:"c39df7ebd431fbcfa82eb847ff1c9a52acfc7b41",hideOnSinglePage:this.hideOnSinglePage,page:this.page,pageSize:this.pageSize,total:this.total,onPageChange:({detail:e})=>this.pageChange.emit(e),onPagesChange:({detail:e})=>{this._hasPaginationPages=e>1,this.pagesChange.emit(e)}})))}_changePageSize(e){e&&(this.pageSize=e,this.pageSizeChange.emit(this.pageSize))}static get style(){return"*{box-sizing:border-box}.static{position:static}.mx-0{margin-left:0;margin-right:0}.flex{display:flex}.hidden{display:none}.h-4{height:1rem}.items-center{align-items:center}.gap-2{gap:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-solid{border-style:solid}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.p-1{padding:.25rem}.text-off-white-700{--tw-text-opacity:1;color:rgb(222 219 213/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}"}},[513,"p-pagination",{hideOnSinglePage:[4,"hide-on-single-page"],enablePaginationSize:[4,"enable-pagination-size"],enablePaginationPages:[4,"enable-pagination-pages"],page:[1538],total:[2],pageSize:[2,"page-size"],pageSizeOptions:[16],_hasPaginationPages:[32]}]);function S(){"undefined"!=typeof customElements&&["p-pagination","p-button","p-checkbox","p-divider","p-dropdown","p-dropdown-menu-container","p-dropdown-menu-item","p-field","p-field-container","p-helper","p-icon","p-loader","p-pagination-pages","p-pagination-pages-item","p-pagination-size","p-tooltip"].forEach((a=>{switch(a){case"p-pagination":customElements.get(e(a))||customElements.define(e(a),v);break;case"p-button":customElements.get(e(a))||c();break;case"p-checkbox":customElements.get(e(a))||m();break;case"p-divider":customElements.get(e(a))||h();break;case"p-dropdown":customElements.get(e(a))||g();break;case"p-dropdown-menu-container":customElements.get(e(a))||b();break;case"p-dropdown-menu-item":customElements.get(e(a))||l();break;case"p-field":customElements.get(e(a))||f();break;case"p-field-container":customElements.get(e(a))||u();break;case"p-helper":customElements.get(e(a))||k();break;case"p-icon":customElements.get(e(a))||w();break;case"p-loader":customElements.get(e(a))||y();break;case"p-pagination-pages":customElements.get(e(a))||x();break;case"p-pagination-pages-item":customElements.get(e(a))||j();break;case"p-pagination-size":customElements.get(e(a))||z();break;case"p-tooltip":customElements.get(e(a))||E()}}))}S();export{v as P,S as d}
|