@paperless/core 3.15.6 → 3.15.7

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/hydrate/index.js CHANGED
@@ -95087,7 +95087,7 @@ class DropdownMenuItem {
95087
95087
  }; }
95088
95088
  }
95089
95089
 
95090
- const dropzoneComponentCss = () => `*{box-sizing:border-box}.static{position:static}.m-0{margin:0}.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-0{padding:0}.p-4{padding:1rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.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-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))}.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))}`;
95090
+ const dropzoneComponentCss = () => `*{box-sizing:border-box}.static{position:static}.m-0{margin:0}.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-positive-green-500{--tw-border-opacity:1;border-color:rgb(92 195 14/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-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-0{padding:0}.p-4{padding:1rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-hurricane-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-indigo-700{--tw-text-opacity:1;color:rgb(47 111 240/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-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))}.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))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-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-indigo-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(47 111 240/var(--tw-border-opacity,1))}.dark\\:border-white\\/10:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.1)}.dark\\:bg-indigo-700\\/10:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(47,111,240,.1)}.dark\\:bg-white\\/5:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.05)}.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-indigo-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(47 111 240/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-indigo-700:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(47 111 240/var(--tw-border-opacity,1))}.dark\\:hover\\:bg-indigo-700\\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(47,111,240,.1)}.group\\/dropzone:hover .dark\\:group-hover\\/dropzone\\:text-indigo-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.dark\\:border-indigo-700:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(47 111 240/var(--tw-border-opacity,1))}.dark\\:border-white\\/10:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.1)}.dark\\:bg-indigo-700\\/10:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(47,111,240,.1)}.dark\\:bg-white\\/5:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.05)}.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-indigo-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(47 111 240/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-indigo-700:hover:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(47 111 240/var(--tw-border-opacity,1))}.dark\\:hover\\:bg-indigo-700\\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(47,111,240,.1)}.group\\/dropzone:hover .dark\\:group-hover\\/dropzone\\:text-indigo-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}`;
95091
95091
 
95092
95092
  const dropzone = cva([
95093
95093
  'group/dropzone',
@@ -95100,35 +95100,32 @@ const dropzone = cva([
95100
95100
  variants: {
95101
95101
  uploaded: {
95102
95102
  false: 'border-dashed',
95103
- true: `
95104
- border-off-white-700
95105
- dark:border-white/15
95106
- `,
95103
+ true: `border-solid`,
95107
95104
  },
95108
95105
  isOver: {
95109
- true: 'border-dashed border-indigo-500 bg-indigo-50',
95110
- false: 'border-white-800',
95106
+ true: [
95107
+ 'border-dashed',
95108
+ 'border-indigo-500 bg-indigo-50',
95109
+ 'dark:border-indigo-700 dark:bg-indigo-700/10',
95110
+ ],
95111
+ false: '',
95111
95112
  },
95112
95113
  },
95113
95114
  compoundVariants: [
95114
95115
  {
95115
95116
  uploaded: true,
95116
95117
  isOver: false,
95117
- class: ['border-solid bg-positive-green-50'],
95118
+ class: ['border-solid border-positive-green-500 bg-positive-green-50'],
95118
95119
  },
95119
95120
  {
95120
95121
  uploaded: false,
95121
95122
  isOver: false,
95122
95123
  class: [
95123
- 'bg-white-600',
95124
- `
95125
- bg-indigo-500
95126
- hover:border-indigo-500
95127
- dark:hover:border-white/15
95128
- `,
95124
+ 'border-white-800 bg-white-600',
95125
+ `hover:border-indigo-500 hover:bg-indigo-500`,
95129
95126
  `
95130
- dark:border-white/15 dark:bg-hurricane-600
95131
- dark:hover:bg-hurricane-500
95127
+ dark:border-white/10 dark:bg-white/5
95128
+ dark:hover:border-indigo-700 dark:hover:bg-indigo-700/10
95132
95129
  `,
95133
95130
  ],
95134
95131
  },
@@ -95206,19 +95203,20 @@ class Dropzone {
95206
95203
  }
95207
95204
  render() {
95208
95205
  const hasContent = this._el.innerHTML?.length > 0;
95209
- return (hAsync(ThemedHost, { key: 'd94080d9b34596727efaa72b0b2f808d19a248e1' }, hAsync("div", { key: '047d1c3cb0ea179e93e34cc33eddce6311cf0a6b', class: dropzone({
95206
+ return (hAsync(ThemedHost, { key: '0bc55667babeb79d150003fa62cdc8b505d5f952' }, hAsync("div", { key: 'e7549dca007d24b761c97a8a62545b8475b810f0', class: dropzone({
95210
95207
  isOver: this._isOver,
95211
95208
  uploaded: this.uploaded,
95212
- }), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (hAsync("p-icon", { key: '5d7a32c5a7a4d16385d2744688fd7dfc597294ae', class: cn(`
95209
+ }), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (hAsync("p-icon", { key: '727ac5b76a2b2391c627fad2fc32da4f25218a9a', class: cn(`
95213
95210
  group-hover/dropzone:text-indigo-900
95214
- dark:group-hover/dropzone:text-white
95211
+ dark:group-hover/dropzone:text-indigo-700
95215
95212
  `, {
95216
- 'text-storm-300 dark:text-hurricane-300': !this._isOver,
95217
- 'text-indigo-900 dark:text-white': this._isOver,
95218
- }), variant: this.icon })), this.loading && hAsync("p-loader", { key: '5f4a5818201809809a6c2bef85d7bbd3e1139d32' }), hasContent && (hAsync("p", { key: '489ecb15f9cfa4fbcc01ea96d9a3e9ed6c8f7e23', class: cn('m-0 p-0 text-lg font-bold', {
95213
+ 'text-positive-green-800': this.uploaded,
95214
+ 'text-storm-300 dark:text-hurricane-200': !this._isOver && !this.uploaded,
95215
+ 'text-indigo-900 dark:text-indigo-700': this._isOver,
95216
+ }), variant: this.icon })), this.loading && hAsync("p-loader", { key: 'b4ec99cfcb36ee289eff13b57a6370d0498a1f4b' }), hasContent && (hAsync("p", { key: '91820ca4f3b77030b89ec439a378f7f38ed9bc63', class: cn('m-0 p-0 text-lg font-bold', {
95219
95217
  'dark:text-white': !this.uploaded || this._isOver,
95220
95218
  'text-storm-500': this.uploaded && !this._isOver,
95221
- }) }, hAsync("slot", { key: '529356d50ad7db1cc65f991148175eae123dc581' }))), this.uploaded && !this._isOver && (hAsync("div", { key: '547c8e8d91d235e9f97f6bfcbf19377104707014', class: 'flex items-center gap-2 text-positive-green-800' }, hAsync("p-icon", { key: 'fad36cc977bf232ffd69a381073aa13c96438582', variant: 'check-circle' }), hAsync("span", { key: 'c2acde848569d3e232c7a0da8c3d40ae2cb2aa46', class: 'font-medium' }, this.addedString))), (!this.uploaded || this._isOver) && (hAsync("div", { key: 'e4c2f02e28dfaca2343834902a619def0ccca0e3', class: cn([
95219
+ }) }, hAsync("slot", { key: '6517faf90d28a4db5da8ebb505139c1aef70bc22' }))), this.uploaded && !this._isOver && (hAsync("div", { key: '91b85f8c934db8b4b4be3625d2cbdf1fdc0fe811', class: 'flex items-center gap-2 text-positive-green-800' }, hAsync("p-icon", { key: 'c206101fe399f09e10291397a6174621aa188970', variant: 'check-circle' }), hAsync("span", { key: 'ef208253984b05362a31c025ba389608b8dd7a7c', class: 'font-medium' }, this.addedString))), (!this.uploaded || this._isOver) && (hAsync("div", { key: '31ba7eea9e41cf62e02bd91a504ef98ed104ccb0', class: cn([
95222
95220
  'flex flex-col text-center',
95223
95221
  'group-hover/dropzone:opacity-50',
95224
95222
  `
@@ -95227,7 +95225,7 @@ class Dropzone {
95227
95225
  `,
95228
95226
  ], {
95229
95227
  'opacity-50': this._isOver,
95230
- }) }, hAsync("span", { key: '3d5e9aa859dbd790029f1e623a149974fd0b52b7', class: 'font-medium' }, this.dragFileString), hAsync("span", { key: '0879b759f2eee003e3f4f701b042dc4743033bd9', class: 'font-normal' }, this.orClickString)))), hAsync("input", { key: 'a59f9de3a04eaa030ad11145265d5d780a8904e3', 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) })));
95228
+ }) }, hAsync("span", { key: 'ade8b71020983dd588703d543f12aaa37bd4638e', class: 'font-medium' }, this.dragFileString), hAsync("span", { key: '10e918eda3dc518167299f9ec59eb57863a60369', class: 'font-normal' }, this.orClickString)))), hAsync("input", { key: 'fff04fc62cf2ab2f37bc000077af73b5861123e2', 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) })));
95231
95229
  }
95232
95230
  onDrop(ev) {
95233
95231
  const files = this._getFiles(ev);
package/hydrate/index.mjs CHANGED
@@ -95085,7 +95085,7 @@ class DropdownMenuItem {
95085
95085
  }; }
95086
95086
  }
95087
95087
 
95088
- const dropzoneComponentCss = () => `*{box-sizing:border-box}.static{position:static}.m-0{margin:0}.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-0{padding:0}.p-4{padding:1rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.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-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))}.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))}`;
95088
+ const dropzoneComponentCss = () => `*{box-sizing:border-box}.static{position:static}.m-0{margin:0}.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-positive-green-500{--tw-border-opacity:1;border-color:rgb(92 195 14/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-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-0{padding:0}.p-4{padding:1rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-hurricane-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-indigo-700{--tw-text-opacity:1;color:rgb(47 111 240/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-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))}.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))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-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-indigo-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(47 111 240/var(--tw-border-opacity,1))}.dark\\:border-white\\/10:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.1)}.dark\\:bg-indigo-700\\/10:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(47,111,240,.1)}.dark\\:bg-white\\/5:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.05)}.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-indigo-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(47 111 240/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-indigo-700:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(47 111 240/var(--tw-border-opacity,1))}.dark\\:hover\\:bg-indigo-700\\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(47,111,240,.1)}.group\\/dropzone:hover .dark\\:group-hover\\/dropzone\\:text-indigo-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.dark\\:border-indigo-700:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(47 111 240/var(--tw-border-opacity,1))}.dark\\:border-white\\/10:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.1)}.dark\\:bg-indigo-700\\/10:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(47,111,240,.1)}.dark\\:bg-white\\/5:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.05)}.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-indigo-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(47 111 240/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-indigo-700:hover:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(47 111 240/var(--tw-border-opacity,1))}.dark\\:hover\\:bg-indigo-700\\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(47,111,240,.1)}.group\\/dropzone:hover .dark\\:group-hover\\/dropzone\\:text-indigo-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}`;
95089
95089
 
95090
95090
  const dropzone = cva([
95091
95091
  'group/dropzone',
@@ -95098,35 +95098,32 @@ const dropzone = cva([
95098
95098
  variants: {
95099
95099
  uploaded: {
95100
95100
  false: 'border-dashed',
95101
- true: `
95102
- border-off-white-700
95103
- dark:border-white/15
95104
- `,
95101
+ true: `border-solid`,
95105
95102
  },
95106
95103
  isOver: {
95107
- true: 'border-dashed border-indigo-500 bg-indigo-50',
95108
- false: 'border-white-800',
95104
+ true: [
95105
+ 'border-dashed',
95106
+ 'border-indigo-500 bg-indigo-50',
95107
+ 'dark:border-indigo-700 dark:bg-indigo-700/10',
95108
+ ],
95109
+ false: '',
95109
95110
  },
95110
95111
  },
95111
95112
  compoundVariants: [
95112
95113
  {
95113
95114
  uploaded: true,
95114
95115
  isOver: false,
95115
- class: ['border-solid bg-positive-green-50'],
95116
+ class: ['border-solid border-positive-green-500 bg-positive-green-50'],
95116
95117
  },
95117
95118
  {
95118
95119
  uploaded: false,
95119
95120
  isOver: false,
95120
95121
  class: [
95121
- 'bg-white-600',
95122
- `
95123
- bg-indigo-500
95124
- hover:border-indigo-500
95125
- dark:hover:border-white/15
95126
- `,
95122
+ 'border-white-800 bg-white-600',
95123
+ `hover:border-indigo-500 hover:bg-indigo-500`,
95127
95124
  `
95128
- dark:border-white/15 dark:bg-hurricane-600
95129
- dark:hover:bg-hurricane-500
95125
+ dark:border-white/10 dark:bg-white/5
95126
+ dark:hover:border-indigo-700 dark:hover:bg-indigo-700/10
95130
95127
  `,
95131
95128
  ],
95132
95129
  },
@@ -95204,19 +95201,20 @@ class Dropzone {
95204
95201
  }
95205
95202
  render() {
95206
95203
  const hasContent = this._el.innerHTML?.length > 0;
95207
- return (hAsync(ThemedHost, { key: 'd94080d9b34596727efaa72b0b2f808d19a248e1' }, hAsync("div", { key: '047d1c3cb0ea179e93e34cc33eddce6311cf0a6b', class: dropzone({
95204
+ return (hAsync(ThemedHost, { key: '0bc55667babeb79d150003fa62cdc8b505d5f952' }, hAsync("div", { key: 'e7549dca007d24b761c97a8a62545b8475b810f0', class: dropzone({
95208
95205
  isOver: this._isOver,
95209
95206
  uploaded: this.uploaded,
95210
- }), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (hAsync("p-icon", { key: '5d7a32c5a7a4d16385d2744688fd7dfc597294ae', class: cn(`
95207
+ }), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (hAsync("p-icon", { key: '727ac5b76a2b2391c627fad2fc32da4f25218a9a', class: cn(`
95211
95208
  group-hover/dropzone:text-indigo-900
95212
- dark:group-hover/dropzone:text-white
95209
+ dark:group-hover/dropzone:text-indigo-700
95213
95210
  `, {
95214
- 'text-storm-300 dark:text-hurricane-300': !this._isOver,
95215
- 'text-indigo-900 dark:text-white': this._isOver,
95216
- }), variant: this.icon })), this.loading && hAsync("p-loader", { key: '5f4a5818201809809a6c2bef85d7bbd3e1139d32' }), hasContent && (hAsync("p", { key: '489ecb15f9cfa4fbcc01ea96d9a3e9ed6c8f7e23', class: cn('m-0 p-0 text-lg font-bold', {
95211
+ 'text-positive-green-800': this.uploaded,
95212
+ 'text-storm-300 dark:text-hurricane-200': !this._isOver && !this.uploaded,
95213
+ 'text-indigo-900 dark:text-indigo-700': this._isOver,
95214
+ }), variant: this.icon })), this.loading && hAsync("p-loader", { key: 'b4ec99cfcb36ee289eff13b57a6370d0498a1f4b' }), hasContent && (hAsync("p", { key: '91820ca4f3b77030b89ec439a378f7f38ed9bc63', class: cn('m-0 p-0 text-lg font-bold', {
95217
95215
  'dark:text-white': !this.uploaded || this._isOver,
95218
95216
  'text-storm-500': this.uploaded && !this._isOver,
95219
- }) }, hAsync("slot", { key: '529356d50ad7db1cc65f991148175eae123dc581' }))), this.uploaded && !this._isOver && (hAsync("div", { key: '547c8e8d91d235e9f97f6bfcbf19377104707014', class: 'flex items-center gap-2 text-positive-green-800' }, hAsync("p-icon", { key: 'fad36cc977bf232ffd69a381073aa13c96438582', variant: 'check-circle' }), hAsync("span", { key: 'c2acde848569d3e232c7a0da8c3d40ae2cb2aa46', class: 'font-medium' }, this.addedString))), (!this.uploaded || this._isOver) && (hAsync("div", { key: 'e4c2f02e28dfaca2343834902a619def0ccca0e3', class: cn([
95217
+ }) }, hAsync("slot", { key: '6517faf90d28a4db5da8ebb505139c1aef70bc22' }))), this.uploaded && !this._isOver && (hAsync("div", { key: '91b85f8c934db8b4b4be3625d2cbdf1fdc0fe811', class: 'flex items-center gap-2 text-positive-green-800' }, hAsync("p-icon", { key: 'c206101fe399f09e10291397a6174621aa188970', variant: 'check-circle' }), hAsync("span", { key: 'ef208253984b05362a31c025ba389608b8dd7a7c', class: 'font-medium' }, this.addedString))), (!this.uploaded || this._isOver) && (hAsync("div", { key: '31ba7eea9e41cf62e02bd91a504ef98ed104ccb0', class: cn([
95220
95218
  'flex flex-col text-center',
95221
95219
  'group-hover/dropzone:opacity-50',
95222
95220
  `
@@ -95225,7 +95223,7 @@ class Dropzone {
95225
95223
  `,
95226
95224
  ], {
95227
95225
  'opacity-50': this._isOver,
95228
- }) }, hAsync("span", { key: '3d5e9aa859dbd790029f1e623a149974fd0b52b7', class: 'font-medium' }, this.dragFileString), hAsync("span", { key: '0879b759f2eee003e3f4f701b042dc4743033bd9', class: 'font-normal' }, this.orClickString)))), hAsync("input", { key: 'a59f9de3a04eaa030ad11145265d5d780a8904e3', 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) })));
95226
+ }) }, hAsync("span", { key: 'ade8b71020983dd588703d543f12aaa37bd4638e', class: 'font-medium' }, this.dragFileString), hAsync("span", { key: '10e918eda3dc518167299f9ec59eb57863a60369', class: 'font-normal' }, this.orClickString)))), hAsync("input", { key: 'fff04fc62cf2ab2f37bc000077af73b5861123e2', 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) })));
95229
95227
  }
95230
95228
  onDrop(ev) {
95231
95229
  const files = this._getFiles(ev);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/core",
3
- "version": "3.15.6",
3
+ "version": "3.15.7",
4
4
  "description": "Stencil Component Starter",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
@@ -1 +0,0 @@
1
- import{r as t,a as e,d as r,h as o}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as i}from"./p-CSySY6aC.js";import{c as d}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const h=a(["group/dropzone","flex h-inherit w-full flex-col items-center justify-center gap-2","cursor-pointer","rounded-lg","border","p-4"],{variants:{uploaded:{false:"border-dashed",true:"\n border-off-white-700\n dark:border-white/15\n "},isOver:{true:"border-dashed border-indigo-500 bg-indigo-50",false:"border-white-800"}},compoundVariants:[{uploaded:!0,isOver:!1,class:["border-solid bg-positive-green-50"]},{uploaded:!1,isOver:!1,class:["bg-white-600","\n bg-indigo-500\n hover:border-indigo-500\n dark:hover:border-white/15\n ","\n dark:border-white/15 dark:bg-hurricane-600\n dark:hover:bg-hurricane-500\n "]}]}),c=class{constructor(r){t(this,r),this.upload=e(this,"upload",3)}icon="file-export";showIcon=!0;acceptGroup="any";fileId;loading=!1;allowMultiple=!0;uploaded=!1;addedString="Toegevoegd";dragFileString="Sleep je bestand hierheen";orClickString="of klik om te uploaden";upload;get _el(){return r(this)}_isOver=!1;_fileRef;_filesToProcess=0;_results=[];_documentBlocked=!1;_preventDefault=t=>t.preventDefault();componentWillRender(){if(!this._isOver&&this._documentBlocked)return document.removeEventListener("drop",this._preventDefault),document.removeEventListener("dragover",this._preventDefault),void(this._documentBlocked=!1);this._isOver&&(document.addEventListener("drop",this._preventDefault),document.addEventListener("dragover",this._preventDefault),this._documentBlocked=!0)}render(){const t=this._el.innerHTML?.length>0;return o(i,{key:"d94080d9b34596727efaa72b0b2f808d19a248e1"},o("div",{key:"047d1c3cb0ea179e93e34cc33eddce6311cf0a6b",class:h({isOver:this._isOver,uploaded:this.uploaded}),onClick:()=>this._uploadClick()},!this.loading&&this.showIcon&&o("p-icon",{key:"5d7a32c5a7a4d16385d2744688fd7dfc597294ae",class:d("\n group-hover/dropzone:text-indigo-900\n dark:group-hover/dropzone:text-white\n ",{"text-storm-300 dark:text-hurricane-300":!this._isOver,"text-indigo-900 dark:text-white":this._isOver}),variant:this.icon}),this.loading&&o("p-loader",{key:"5f4a5818201809809a6c2bef85d7bbd3e1139d32"}),t&&o("p",{key:"489ecb15f9cfa4fbcc01ea96d9a3e9ed6c8f7e23",class:d("m-0 p-0 text-lg font-bold",{"dark:text-white":!this.uploaded||this._isOver,"text-storm-500":this.uploaded&&!this._isOver})},o("slot",{key:"529356d50ad7db1cc65f991148175eae123dc581"})),this.uploaded&&!this._isOver&&o("div",{key:"547c8e8d91d235e9f97f6bfcbf19377104707014",class:"flex items-center gap-2 text-positive-green-800"},o("p-icon",{key:"fad36cc977bf232ffd69a381073aa13c96438582",variant:"check-circle"}),o("span",{key:"c2acde848569d3e232c7a0da8c3d40ae2cb2aa46",class:"font-medium"},this.addedString)),(!this.uploaded||this._isOver)&&o("div",{key:"e4c2f02e28dfaca2343834902a619def0ccca0e3",class:d(["flex flex-col text-center","group-hover/dropzone:opacity-50","\n text-storm-300\n dark:text-hurricane-300\n "],{"opacity-50":this._isOver})},o("span",{key:"3d5e9aa859dbd790029f1e623a149974fd0b52b7",class:"font-medium"},this.dragFileString),o("span",{key:"0879b759f2eee003e3f4f701b042dc4743033bd9",class:"font-normal"},this.orClickString))),o("input",{key:"a59f9de3a04eaa030ad11145265d5d780a8904e3",accept:"any"==this.acceptGroup?"":"image/*",class:"hidden",multiple:!0===this.allowMultiple||void 0,ref:t=>this._fileRef=t,type:"file",onChange:t=>this._onFileChange(t)}))}onDrop(t){const e=this._getFiles(t);e?.length&&(this._isOver=!1,this._processFiles(e))}onDragOver(t){this._isFilesEvent(t)&&(this._isOver=!0)}onDragLeave(){this._isOver=!1}_isFilesEvent(t){return!!t.dataTransfer&&0!==[...t.dataTransfer.items].filter((t=>"file"===t.kind)).length}_getFiles(t){if(!this._isFilesEvent(t))return;const e=t.dataTransfer?.files??[];return 0!==e.length?[...e]:void 0}_uploadClick(){this._fileRef&&this._fileRef.click()}_onFileChange(t){const e=t.target;if(!e.files)return;const r=[...e.files];r?.length&&this._processFiles(r)}_processFiles(t){this._results=[],this.allowMultiple||(t=[t[0]]),this._filesToProcess=t.length;for(const e of t)this._processFile(e)}_processFile(t){this.loading=!0;const e=new FileReader;e.addEventListener("load",(e=>this._onLoad(t,e?.currentTarget?.result))),e.readAsDataURL(t)}_onLoad(t,e){if(this._results.push({file:t,result:e}),this._results?.length<this._filesToProcess)return;const r={fileId:this.fileId,results:this._results};1!==this._results.length&&this.allowMultiple||(r.file=this._results[0].file,r.result=this._results[0].result),this.upload.emit(r),this._fileRef&&(this._fileRef.value=""),this.loading=!1}};c.style="*{box-sizing:border-box}.static{position:static}.m-0{margin:0}.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-0{padding:0}.p-4{padding:1rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.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-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))}.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))}";export{c as p_dropzone}
@@ -1 +0,0 @@
1
- import{r as t,a as e,d as r,h as o}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as i}from"./p-CSySY6aC.js";import{c as d}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const h=a(["group/dropzone","flex h-inherit w-full flex-col items-center justify-center gap-2","cursor-pointer","rounded-lg","border","p-4"],{variants:{uploaded:{false:"border-dashed",true:"\n border-off-white-700\n dark:border-white/15\n "},isOver:{true:"border-dashed border-indigo-500 bg-indigo-50",false:"border-white-800"}},compoundVariants:[{uploaded:!0,isOver:!1,class:["border-solid bg-positive-green-50"]},{uploaded:!1,isOver:!1,class:["bg-white-600","\n bg-indigo-500\n hover:border-indigo-500\n dark:hover:border-white/15\n ","\n dark:border-white/15 dark:bg-hurricane-600\n dark:hover:bg-hurricane-500\n "]}]}),c=class{constructor(r){t(this,r),this.upload=e(this,"upload",3)}icon="file-export";showIcon=!0;acceptGroup="any";fileId;loading=!1;allowMultiple=!0;uploaded=!1;addedString="Toegevoegd";dragFileString="Sleep je bestand hierheen";orClickString="of klik om te uploaden";upload;get _el(){return r(this)}_isOver=!1;_fileRef;_filesToProcess=0;_results=[];_documentBlocked=!1;_preventDefault=t=>t.preventDefault();componentWillRender(){if(!this._isOver&&this._documentBlocked)return document.removeEventListener("drop",this._preventDefault),document.removeEventListener("dragover",this._preventDefault),void(this._documentBlocked=!1);this._isOver&&(document.addEventListener("drop",this._preventDefault),document.addEventListener("dragover",this._preventDefault),this._documentBlocked=!0)}render(){const t=this._el.innerHTML?.length>0;return o(i,{key:"d94080d9b34596727efaa72b0b2f808d19a248e1"},o("div",{key:"047d1c3cb0ea179e93e34cc33eddce6311cf0a6b",class:h({isOver:this._isOver,uploaded:this.uploaded}),onClick:()=>this._uploadClick()},!this.loading&&this.showIcon&&o("p-icon",{key:"5d7a32c5a7a4d16385d2744688fd7dfc597294ae",class:d("\n group-hover/dropzone:text-indigo-900\n dark:group-hover/dropzone:text-white\n ",{"text-storm-300 dark:text-hurricane-300":!this._isOver,"text-indigo-900 dark:text-white":this._isOver}),variant:this.icon}),this.loading&&o("p-loader",{key:"5f4a5818201809809a6c2bef85d7bbd3e1139d32"}),t&&o("p",{key:"489ecb15f9cfa4fbcc01ea96d9a3e9ed6c8f7e23",class:d("m-0 p-0 text-lg font-bold",{"dark:text-white":!this.uploaded||this._isOver,"text-storm-500":this.uploaded&&!this._isOver})},o("slot",{key:"529356d50ad7db1cc65f991148175eae123dc581"})),this.uploaded&&!this._isOver&&o("div",{key:"547c8e8d91d235e9f97f6bfcbf19377104707014",class:"flex items-center gap-2 text-positive-green-800"},o("p-icon",{key:"fad36cc977bf232ffd69a381073aa13c96438582",variant:"check-circle"}),o("span",{key:"c2acde848569d3e232c7a0da8c3d40ae2cb2aa46",class:"font-medium"},this.addedString)),(!this.uploaded||this._isOver)&&o("div",{key:"e4c2f02e28dfaca2343834902a619def0ccca0e3",class:d(["flex flex-col text-center","group-hover/dropzone:opacity-50","\n text-storm-300\n dark:text-hurricane-300\n "],{"opacity-50":this._isOver})},o("span",{key:"3d5e9aa859dbd790029f1e623a149974fd0b52b7",class:"font-medium"},this.dragFileString),o("span",{key:"0879b759f2eee003e3f4f701b042dc4743033bd9",class:"font-normal"},this.orClickString))),o("input",{key:"a59f9de3a04eaa030ad11145265d5d780a8904e3",accept:"any"==this.acceptGroup?"":"image/*",class:"hidden",multiple:!0===this.allowMultiple||void 0,ref:t=>this._fileRef=t,type:"file",onChange:t=>this._onFileChange(t)}))}onDrop(t){const e=this._getFiles(t);e?.length&&(this._isOver=!1,this._processFiles(e))}onDragOver(t){this._isFilesEvent(t)&&(this._isOver=!0)}onDragLeave(){this._isOver=!1}_isFilesEvent(t){return!!t.dataTransfer&&0!==[...t.dataTransfer.items].filter((t=>"file"===t.kind)).length}_getFiles(t){if(!this._isFilesEvent(t))return;const e=t.dataTransfer?.files??[];return 0!==e.length?[...e]:void 0}_uploadClick(){this._fileRef&&this._fileRef.click()}_onFileChange(t){const e=t.target;if(!e.files)return;const r=[...e.files];r?.length&&this._processFiles(r)}_processFiles(t){this._results=[],this.allowMultiple||(t=[t[0]]),this._filesToProcess=t.length;for(const e of t)this._processFile(e)}_processFile(t){this.loading=!0;const e=new FileReader;e.addEventListener("load",(e=>this._onLoad(t,e?.currentTarget?.result))),e.readAsDataURL(t)}_onLoad(t,e){if(this._results.push({file:t,result:e}),this._results?.length<this._filesToProcess)return;const r={fileId:this.fileId,results:this._results};1!==this._results.length&&this.allowMultiple||(r.file=this._results[0].file,r.result=this._results[0].result),this.upload.emit(r),this._fileRef&&(this._fileRef.value=""),this.loading=!1}};c.style="*{box-sizing:border-box}.static{position:static}.m-0{margin:0}.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-0{padding:0}.p-4{padding:1rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.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-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))}.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))}";export{c as p_dropzone}