@paperless/core 3.26.0 → 3.26.2
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-1a373297.entry.js +1 -0
- package/dist/build/p-28098df8.entry.js +1 -0
- package/dist/build/p-d5de83c7.entry.js +1 -0
- package/dist/build/{p-fce7a33d.js → p-ee7b4c48.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +1 -1
- package/dist/cjs/p-dropzone.cjs.entry.js +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js +3 -7
- package/dist/collection/components/atoms/info-panel/info-panel.component.css +1 -1
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +2 -6
- package/dist/collection/components/molecules/attachment/attachment.component.js +1 -1
- package/dist/collection/components/molecules/dropzone/dropzone.component.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-dropzone.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/esm/p-attachment.entry.js +1 -1
- package/dist/esm/p-dropzone.entry.js +1 -1
- package/dist/esm/p-info-panel.entry.js +3 -7
- package/dist/index.html +1 -1
- package/dist/paperless/p-1a373297.entry.js +1 -0
- package/dist/paperless/p-28098df8.entry.js +1 -0
- package/dist/paperless/p-d5de83c7.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 +5 -9
- package/hydrate/index.mjs +5 -9
- package/package.json +1 -1
- package/dist/build/p-56ceed87.entry.js +0 -1
- package/dist/build/p-8ae7f9fd.entry.js +0 -1
- package/dist/build/p-a4957083.entry.js +0 -1
- package/dist/paperless/p-56ceed87.entry.js +0 -1
- package/dist/paperless/p-8ae7f9fd.entry.js +0 -1
- package/dist/paperless/p-a4957083.entry.js +0 -1
package/hydrate/index.js
CHANGED
|
@@ -11852,7 +11852,7 @@ class Attachment {
|
|
|
11852
11852
|
: this.delete).emit() })), this.enableCameraOnMobile &&
|
|
11853
11853
|
this.mode === 'write' &&
|
|
11854
11854
|
isTouch &&
|
|
11855
|
-
!this.value?.length && (hAsync("p-tooltip", { key: 'c1c6fb8cc84e89e3dd274c1af6b8cefc3a9b39e7', class: '\n w-8\n desktop-xs:hidden\n ', content: this.cameraTooltip }, hAsync("p-button", { key: 'fb5e43cbd06718b6169648b248195b0530a886fb', icon: 'camera', iconOnly: true, slot: 'trigger', variant: 'secondary', onOnClick: () => this._cameraClick() }))))), hAsync("input", { key: '
|
|
11855
|
+
!this.value?.length && (hAsync("p-tooltip", { key: 'c1c6fb8cc84e89e3dd274c1af6b8cefc3a9b39e7', class: '\n w-8\n desktop-xs:hidden\n ', content: this.cameraTooltip }, hAsync("p-button", { key: 'fb5e43cbd06718b6169648b248195b0530a886fb', icon: 'camera', iconOnly: true, slot: 'trigger', variant: 'secondary', onOnClick: () => this._cameraClick() }))))), hAsync("input", { key: '92f7921316dcf7937bc10fcad782fefd429d6688', accept: Array.isArray(this.accept) ? this.accept?.join(',') : this.accept, class: 'hidden', name: 'attachment', ref: el => (this._fileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) }), hAsync("input", { key: '341272326c34577b88fe9f959779b5a0f6435ccc', accept: 'image/*', capture: 'true', class: 'hidden', name: 'camera', ref: el => (this._cameraFileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) })));
|
|
11856
11856
|
}
|
|
11857
11857
|
_uploadClick() {
|
|
11858
11858
|
if (!this._fileRef || this.mode !== 'write' || this.value?.length) {
|
|
@@ -95359,7 +95359,7 @@ class Dropzone {
|
|
|
95359
95359
|
`,
|
|
95360
95360
|
], {
|
|
95361
95361
|
'opacity-50': this._isOver,
|
|
95362
|
-
}) }, hAsync("span", { key: 'c9ec4e45968281ce5c2033264ff7c972b25bd799', class: 'font-medium' }, this.dragFileString), hAsync("span", { key: 'bc2aac22c381cdb7d5cbfaa42627f57d08cab115', class: 'font-normal' }, this.orClickString)))), hAsync("input", { key: '
|
|
95362
|
+
}) }, hAsync("span", { key: 'c9ec4e45968281ce5c2033264ff7c972b25bd799', class: 'font-medium' }, this.dragFileString), hAsync("span", { key: 'bc2aac22c381cdb7d5cbfaa42627f57d08cab115', class: 'font-normal' }, this.orClickString)))), hAsync("input", { key: '38b25c010d7be237a2f2f2c7a8e96d343ce6c725', accept: this.acceptGroup == 'any' ? '' : 'image/*', class: 'hidden', multiple: this.allowMultiple === true ? true : undefined, name: 'dropzone', ref: el => (this._fileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) })));
|
|
95363
95363
|
}
|
|
95364
95364
|
onDrop(ev) {
|
|
95365
95365
|
const files = this._getFiles(ev);
|
|
@@ -96983,13 +96983,10 @@ class Illustration {
|
|
|
96983
96983
|
}; }
|
|
96984
96984
|
}
|
|
96985
96985
|
|
|
96986
|
-
const infoPanelComponentCss = () => `*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.right-2{right:.5rem}.top-2{top:.5rem}.my-0{margin-bottom:0;margin-top:0}.flex{display:flex}.h-6{height:1.5rem}.h-inherit{height:inherit}.w-6{width:1.5rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.rounded-lg{border-radius:.5rem}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 250 224/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-negative-red-100{--tw-bg-opacity:1;background-color:rgb(255 221 221/var(--tw-bg-opacity,1))}.bg-positive-green-100{--tw-bg-opacity:1;background-color:rgb(213 251 199/var(--tw-bg-opacity,1))}.bg-white-700{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity,1))}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.
|
|
96986
|
+
const infoPanelComponentCss = () => `*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.right-2{right:.5rem}.top-2{top:.5rem}.my-0{margin-bottom:0;margin-top:0}.flex{display:flex}.h-6{height:1.5rem}.h-inherit{height:inherit}.w-6{width:1.5rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.rounded-lg{border-radius:.5rem}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 250 224/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-negative-red-100{--tw-bg-opacity:1;background-color:rgb(255 221 221/var(--tw-bg-opacity,1))}.bg-positive-green-100{--tw-bg-opacity:1;background-color:rgb(213 251 199/var(--tw-bg-opacity,1))}.bg-white-700{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity,1))}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-amber-800{--tw-text-opacity:1;color:rgb(148 77 11/var(--tw-text-opacity,1))}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/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-800{--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.text-storm-800\\/60{color:rgba(2,8,21,.6)}.hover\\:bg-white-500\\/40:hover{background-color:hsla(0,0%,100%,.4)}.hover\\:text-storm-800\\/60:hover{color:rgba(2,8,21,.6)}.dark\\:bg-amber-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.dark\\:text-white\\/60:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.6)}.dark\\:text-white\\/70:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.7)}.dark\\:hover\\:bg-white\\/15:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:text-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-amber-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.dark\\:text-white\\/60:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.6)}.dark\\:text-white\\/70:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.7)}.dark\\:hover\\:bg-white\\/15:hover:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:text-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}`;
|
|
96987
96987
|
|
|
96988
96988
|
const infopanel = cva(['flex flex-col gap-1', 'h-inherit w-full px-4 py-3', 'relative rounded-lg'], {
|
|
96989
96989
|
variants: {
|
|
96990
|
-
closeAble: {
|
|
96991
|
-
true: 'pr-10',
|
|
96992
|
-
},
|
|
96993
96990
|
variant: {
|
|
96994
96991
|
neutral: `
|
|
96995
96992
|
bg-indigo-100
|
|
@@ -97083,10 +97080,9 @@ class InfoPanel {
|
|
|
97083
97080
|
render() {
|
|
97084
97081
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
97085
97082
|
const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
97086
|
-
return (hAsync(ThemedHost, { key: '
|
|
97083
|
+
return (hAsync(ThemedHost, { key: '0e4c69a738eaeb64f21c3a4326a473dec08d4195' }, hAsync("div", { key: '4eecd83ce9b3d027570760192aa22a9b2f2b2c61', class: infopanel({
|
|
97087
97084
|
variant: this.variant,
|
|
97088
|
-
|
|
97089
|
-
}) }, (this.header?.length || hasHeaderSlot) && (hAsync("div", { key: '2c4295ffec4dd380af662b41fdc4d907ae090bf9', class: header$3({ variant: this.variant }) }, this.header?.length ? (hAsync("p", { class: 'my-0' }, this.header)) : (hAsync("slot", { name: 'header' })))), (this.content?.length || hasContentSlot) && (hAsync("div", { key: '812ca8b8ff2e09d49602bc986b785d6a1d81e3d1', class: '\n h-inherit text-sm font-normal text-storm-800/60\n dark:text-white/70\n ' }, this.content?.length ? (hAsync("p", { class: 'my-0' }, this.content)) : (hAsync("slot", { name: 'content' })))), this.closeable && (hAsync("div", { key: '05a02d7363647ad0acd9ca89db7b75e83cd38bd6', class: close(), onClick: () => this._close() }, hAsync("p-icon", { key: 'c2825dc70562a98674bd86b7997db390988c088c', variant: 'negative' }))))));
|
|
97085
|
+
}) }, (this.header?.length || hasHeaderSlot) && (hAsync("div", { key: '63e5670c13ee1a77c883b1c01339f623f048e0a3', class: header$3({ variant: this.variant }) }, this.header?.length ? (hAsync("p", { class: 'my-0' }, this.header)) : (hAsync("slot", { name: 'header' })))), (this.content?.length || hasContentSlot) && (hAsync("div", { key: '0fe907aad0cc522d6a880a606dd7d5e5317bc202', class: '\n h-inherit text-sm font-normal text-storm-800/60\n dark:text-white/70\n ' }, this.content?.length ? (hAsync("p", { class: 'my-0' }, this.content)) : (hAsync("slot", { name: 'content' })))), this.closeable && (hAsync("div", { key: '695ece74691be7642fd6ed4e88de70da4c03822c', class: close(), onClick: () => this._close() }, hAsync("p-icon", { key: '63aeeb6486dccf0a426cf7c03bd662e81ace0ce9', variant: 'negative' }))))));
|
|
97090
97086
|
}
|
|
97091
97087
|
_close() {
|
|
97092
97088
|
this.closed.emit();
|
package/hydrate/index.mjs
CHANGED
|
@@ -11850,7 +11850,7 @@ class Attachment {
|
|
|
11850
11850
|
: this.delete).emit() })), this.enableCameraOnMobile &&
|
|
11851
11851
|
this.mode === 'write' &&
|
|
11852
11852
|
isTouch &&
|
|
11853
|
-
!this.value?.length && (hAsync("p-tooltip", { key: 'c1c6fb8cc84e89e3dd274c1af6b8cefc3a9b39e7', class: '\n w-8\n desktop-xs:hidden\n ', content: this.cameraTooltip }, hAsync("p-button", { key: 'fb5e43cbd06718b6169648b248195b0530a886fb', icon: 'camera', iconOnly: true, slot: 'trigger', variant: 'secondary', onOnClick: () => this._cameraClick() }))))), hAsync("input", { key: '
|
|
11853
|
+
!this.value?.length && (hAsync("p-tooltip", { key: 'c1c6fb8cc84e89e3dd274c1af6b8cefc3a9b39e7', class: '\n w-8\n desktop-xs:hidden\n ', content: this.cameraTooltip }, hAsync("p-button", { key: 'fb5e43cbd06718b6169648b248195b0530a886fb', icon: 'camera', iconOnly: true, slot: 'trigger', variant: 'secondary', onOnClick: () => this._cameraClick() }))))), hAsync("input", { key: '92f7921316dcf7937bc10fcad782fefd429d6688', accept: Array.isArray(this.accept) ? this.accept?.join(',') : this.accept, class: 'hidden', name: 'attachment', ref: el => (this._fileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) }), hAsync("input", { key: '341272326c34577b88fe9f959779b5a0f6435ccc', accept: 'image/*', capture: 'true', class: 'hidden', name: 'camera', ref: el => (this._cameraFileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) })));
|
|
11854
11854
|
}
|
|
11855
11855
|
_uploadClick() {
|
|
11856
11856
|
if (!this._fileRef || this.mode !== 'write' || this.value?.length) {
|
|
@@ -95357,7 +95357,7 @@ class Dropzone {
|
|
|
95357
95357
|
`,
|
|
95358
95358
|
], {
|
|
95359
95359
|
'opacity-50': this._isOver,
|
|
95360
|
-
}) }, hAsync("span", { key: 'c9ec4e45968281ce5c2033264ff7c972b25bd799', class: 'font-medium' }, this.dragFileString), hAsync("span", { key: 'bc2aac22c381cdb7d5cbfaa42627f57d08cab115', class: 'font-normal' }, this.orClickString)))), hAsync("input", { key: '
|
|
95360
|
+
}) }, hAsync("span", { key: 'c9ec4e45968281ce5c2033264ff7c972b25bd799', class: 'font-medium' }, this.dragFileString), hAsync("span", { key: 'bc2aac22c381cdb7d5cbfaa42627f57d08cab115', class: 'font-normal' }, this.orClickString)))), hAsync("input", { key: '38b25c010d7be237a2f2f2c7a8e96d343ce6c725', accept: this.acceptGroup == 'any' ? '' : 'image/*', class: 'hidden', multiple: this.allowMultiple === true ? true : undefined, name: 'dropzone', ref: el => (this._fileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) })));
|
|
95361
95361
|
}
|
|
95362
95362
|
onDrop(ev) {
|
|
95363
95363
|
const files = this._getFiles(ev);
|
|
@@ -96981,13 +96981,10 @@ class Illustration {
|
|
|
96981
96981
|
}; }
|
|
96982
96982
|
}
|
|
96983
96983
|
|
|
96984
|
-
const infoPanelComponentCss = () => `*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.right-2{right:.5rem}.top-2{top:.5rem}.my-0{margin-bottom:0;margin-top:0}.flex{display:flex}.h-6{height:1.5rem}.h-inherit{height:inherit}.w-6{width:1.5rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.rounded-lg{border-radius:.5rem}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 250 224/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-negative-red-100{--tw-bg-opacity:1;background-color:rgb(255 221 221/var(--tw-bg-opacity,1))}.bg-positive-green-100{--tw-bg-opacity:1;background-color:rgb(213 251 199/var(--tw-bg-opacity,1))}.bg-white-700{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity,1))}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.
|
|
96984
|
+
const infoPanelComponentCss = () => `*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.right-2{right:.5rem}.top-2{top:.5rem}.my-0{margin-bottom:0;margin-top:0}.flex{display:flex}.h-6{height:1.5rem}.h-inherit{height:inherit}.w-6{width:1.5rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.rounded-lg{border-radius:.5rem}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 250 224/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-negative-red-100{--tw-bg-opacity:1;background-color:rgb(255 221 221/var(--tw-bg-opacity,1))}.bg-positive-green-100{--tw-bg-opacity:1;background-color:rgb(213 251 199/var(--tw-bg-opacity,1))}.bg-white-700{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity,1))}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-amber-800{--tw-text-opacity:1;color:rgb(148 77 11/var(--tw-text-opacity,1))}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/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-800{--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.text-storm-800\\/60{color:rgba(2,8,21,.6)}.hover\\:bg-white-500\\/40:hover{background-color:hsla(0,0%,100%,.4)}.hover\\:text-storm-800\\/60:hover{color:rgba(2,8,21,.6)}.dark\\:bg-amber-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.dark\\:text-white\\/60:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.6)}.dark\\:text-white\\/70:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.7)}.dark\\:hover\\:bg-white\\/15:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:text-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-amber-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.dark\\:text-white\\/60:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.6)}.dark\\:text-white\\/70:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.7)}.dark\\:hover\\:bg-white\\/15:hover:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:text-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}`;
|
|
96985
96985
|
|
|
96986
96986
|
const infopanel = cva(['flex flex-col gap-1', 'h-inherit w-full px-4 py-3', 'relative rounded-lg'], {
|
|
96987
96987
|
variants: {
|
|
96988
|
-
closeAble: {
|
|
96989
|
-
true: 'pr-10',
|
|
96990
|
-
},
|
|
96991
96988
|
variant: {
|
|
96992
96989
|
neutral: `
|
|
96993
96990
|
bg-indigo-100
|
|
@@ -97081,10 +97078,9 @@ class InfoPanel {
|
|
|
97081
97078
|
render() {
|
|
97082
97079
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
97083
97080
|
const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
97084
|
-
return (hAsync(ThemedHost, { key: '
|
|
97081
|
+
return (hAsync(ThemedHost, { key: '0e4c69a738eaeb64f21c3a4326a473dec08d4195' }, hAsync("div", { key: '4eecd83ce9b3d027570760192aa22a9b2f2b2c61', class: infopanel({
|
|
97085
97082
|
variant: this.variant,
|
|
97086
|
-
|
|
97087
|
-
}) }, (this.header?.length || hasHeaderSlot) && (hAsync("div", { key: '2c4295ffec4dd380af662b41fdc4d907ae090bf9', class: header$3({ variant: this.variant }) }, this.header?.length ? (hAsync("p", { class: 'my-0' }, this.header)) : (hAsync("slot", { name: 'header' })))), (this.content?.length || hasContentSlot) && (hAsync("div", { key: '812ca8b8ff2e09d49602bc986b785d6a1d81e3d1', class: '\n h-inherit text-sm font-normal text-storm-800/60\n dark:text-white/70\n ' }, this.content?.length ? (hAsync("p", { class: 'my-0' }, this.content)) : (hAsync("slot", { name: 'content' })))), this.closeable && (hAsync("div", { key: '05a02d7363647ad0acd9ca89db7b75e83cd38bd6', class: close(), onClick: () => this._close() }, hAsync("p-icon", { key: 'c2825dc70562a98674bd86b7997db390988c088c', variant: 'negative' }))))));
|
|
97083
|
+
}) }, (this.header?.length || hasHeaderSlot) && (hAsync("div", { key: '63e5670c13ee1a77c883b1c01339f623f048e0a3', class: header$3({ variant: this.variant }) }, this.header?.length ? (hAsync("p", { class: 'my-0' }, this.header)) : (hAsync("slot", { name: 'header' })))), (this.content?.length || hasContentSlot) && (hAsync("div", { key: '0fe907aad0cc522d6a880a606dd7d5e5317bc202', class: '\n h-inherit text-sm font-normal text-storm-800/60\n dark:text-white/70\n ' }, this.content?.length ? (hAsync("p", { class: 'my-0' }, this.content)) : (hAsync("slot", { name: 'content' })))), this.closeable && (hAsync("div", { key: '695ece74691be7642fd6ed4e88de70da4c03822c', class: close(), onClick: () => this._close() }, hAsync("p-icon", { key: '63aeeb6486dccf0a426cf7c03bd662e81ace0ce9', variant: 'negative' }))))));
|
|
97088
97084
|
}
|
|
97089
97085
|
_close() {
|
|
97090
97086
|
this.closed.emit();
|
package/package.json
CHANGED
|
@@ -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 d}from"./p-CSySY6aC.js";import{c as i}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:"border-solid"},isOver:{true:["border-dashed","border-indigo-500 bg-indigo-50","dark:border-indigo-700 dark:bg-indigo-700/10"],false:""}},compoundVariants:[{uploaded:!0,isOver:!1,class:["border-solid border-positive-green-500 bg-positive-green-50"]},{uploaded:!1,isOver:!1,class:["border-white-800 bg-white-600","hover:border-indigo-500 hover:bg-indigo-50","\n dark:border-white/10 dark:bg-white/5\n dark:hover:border-indigo-700 dark:hover:bg-indigo-700/10\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(d,{key:"7c1db4cb49b8699a6aa11ffb0b6fe4d496dabee2"},o("div",{key:"a059feda628b54161629ea0e05dbbfb0fa8e4aba",class:h({isOver:this._isOver,uploaded:this.uploaded}),onClick:()=>this._uploadClick()},!this.loading&&this.showIcon&&o("p-icon",{key:"79d280c89d5274171ba689463491ab9386712353",class:i("\n group-hover/dropzone:text-indigo-900\n dark:group-hover/dropzone:text-indigo-700\n ",{"text-positive-green-800":this.uploaded,"text-storm-300 dark:text-hurricane-200":!this._isOver&&!this.uploaded,"text-indigo-900 dark:text-indigo-700":this._isOver}),variant:this.icon}),this.loading&&o("p-loader",{key:"7c28c02bada55efe9d2045b3a42a7c3c2139ee76"}),t&&o("p",{key:"78208423e2b95c23a5303f8fca3300e06b5b4d86",class:i("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:"c0656e295223d620af579278f1c763eb7f368acf"})),this.uploaded&&!this._isOver&&o("div",{key:"e5ebd90b568883a025118f3df155188b21f1f67e",class:"flex items-center gap-2 text-positive-green-800"},o("p-icon",{key:"782fc223bd7de1a5d2e7e78bce753e32160fb477",variant:"check-circle"}),o("span",{key:"063369d8309f4d992b53d8db3165d4f9ed663992",class:"font-medium"},this.addedString)),(!this.uploaded||this._isOver)&&o("div",{key:"c05af902cc62cfdbb7feea9de5aabf567c6d22f5",class:i(["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:"c9ec4e45968281ce5c2033264ff7c972b25bd799",class:"font-medium"},this.dragFileString),o("span",{key:"bc2aac22c381cdb7d5cbfaa42627f57d08cab115",class:"font-normal"},this.orClickString))),o("input",{key:"d7569817461cc246b0d17e9f8cf238ea169ad436",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-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-50:hover{--tw-bg-opacity:1;background-color:rgb(241 246 255/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))}";export{c as p_dropzone}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,a as t,h as r,F as a}from"./p-yFtRjnrU.js";import{c as i}from"./p-CBWjHURv.js";import{e as o}from"./p-CWO2YJCh.js";import{c as d}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";const s=i(["flex flex-1 items-center justify-start gap-2","h-8 min-w-0 rounded-lg px-2","border border-solid","bg-white-600 text-storm-200","dark:bg-white/15 dark:text-hurricane-200"],{variants:{click:{false:null,true:"cursor-pointer"},error:{false:"\n border-storm-100\n dark:border-white/15\n ",true:"\n border-negative-red-500\n dark:border-negative-red-alternative\n "}}}),h=class{constructor(r){e(this,r),this.upload=t(this,"upload",3),this.download=t(this,"download",3),this.delete=t(this,"delete",3)}enableCameraOnMobile=!1;value;fileId;accept=null;label;helper;required=!0;mode="read";placeholder="Upload a file...";cameraTooltip="Camera";downloadTooltip="Download";uploadTooltip="Upload";deleteTooltip="Delete";loading=!1;error;upload;download;delete;_fileRef;_cameraFileRef;render(){let e=r("p-icon",{key:"92543de0489a337c848126766f819db2fd41d71a",class:"text-storm-300",variant:"attachment"});this.error&&(e=r("p-icon",{key:"054ab596512483fadb5ef423d3af05a1245a7897",class:"text-negative-red-500",variant:"warning"}));const t=o(),i="min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm";return r(a,{key:"dfc02ee49966fa6009702b16c5e5ec70d881cf75"},r("p-field-container",{key:"5f68f5218a1ee05b02a3744a9189c42ec4bd6d9e",error:this.error,forceShowTooltip:!!this.error?.length,helper:this.helper,label:this.label,required:this.required,variant:"write"},r("div",{key:"959c70c73218f0c2b07b6645f2fcfe8b1ce9224d",class:"flex w-full items-start gap-2",slot:"content"},r("div",{key:"e6d80d5d7d14d0acedb3d957e19032bf27c9b375",class:s({click:"write"===this.mode&&!this.value?.length,error:!!this.error?.length}),onClick:()=>this._uploadClick()},e,r("span",{key:"7e7f35e5e13a026f75771dde94cbdc55b4fc3739",class:d(i,"\n peer\n empty:hidden\n dark:text-white\n ")},this.value),r("span",{key:"74f7181ec319d38f6bf3a9ba55b8a506a80be964",class:d(i,"\n hidden\n peer-empty:block\n ")},this.placeholder)),r("p-tooltip",{key:"ea7aba4d71cf0843b31b2a7b777de62ed2e1a313",class:"w-8",content:"read"===this.mode?this.downloadTooltip:this.value?.length?this.deleteTooltip:this.uploadTooltip},r("p-button",{key:"f581f7d0988cc99b0c6697778592b90c9191dc1a",disabled:this.loading,icon:"read"===this.mode?"download":this.value?.length?"trash":"upload",iconOnly:!0,loading:this.loading,slot:"trigger",variant:"secondary",onOnClick:()=>"write"!==this.mode||this.value?.length?("read"===this.mode?this.download:this.delete).emit():this._uploadClick()})),this.enableCameraOnMobile&&"write"===this.mode&&t&&!this.value?.length&&r("p-tooltip",{key:"c1c6fb8cc84e89e3dd274c1af6b8cefc3a9b39e7",class:"\n w-8\n desktop-xs:hidden\n ",content:this.cameraTooltip},r("p-button",{key:"fb5e43cbd06718b6169648b248195b0530a886fb",icon:"camera",iconOnly:!0,slot:"trigger",variant:"secondary",onOnClick:()=>this._cameraClick()})))),r("input",{key:"ccd2a070b8d0cc7f829b806265a9fd12250953a4",accept:Array.isArray(this.accept)?this.accept?.join(","):this.accept,class:"hidden",ref:e=>this._fileRef=e,type:"file",onChange:e=>this._onFileChange(e)}),r("input",{key:"915a250d2be98c55bf180ac7eb79038d7001b006",accept:"image/*",capture:"true",class:"hidden",ref:e=>this._cameraFileRef=e,type:"file",onChange:e=>this._onFileChange(e)}))}_uploadClick(){this._fileRef&&"write"===this.mode&&!this.value?.length&&this._fileRef.click()}_cameraClick(){this.enableCameraOnMobile&&o()&&this._cameraFileRef&&"write"===this.mode&&this._cameraFileRef?.click()}_onFileChange(e){const t=e.target,r=t.files?.[0];if(r){this.loading=!0;const e=new FileReader;e.addEventListener("load",(e=>this._onLoad(r,e?.currentTarget?.result))),e.readAsDataURL(r)}}_onLoad(e,t){this.upload.emit({fileId:this.fileId,result:t,file:e}),this._fileRef&&(this._fileRef.value=""),this._cameraFileRef&&(this._cameraFileRef.value=""),this.loading=!1}};h.style=".block{display:block}*{box-sizing:border-box}:host{display:block;width:100%}.static{position:static}.flex{display:flex}.hidden{display:none}.h-8{height:2rem}.w-8{width:2rem}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-negative-red-500{--tw-border-opacity:1;border-color:rgb(230 30 30/var(--tw-border-opacity,1))}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.px-2{padding-left:.5rem;padding-right:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.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))}.empty\\:hidden:empty{display:none}.peer:empty~.peer-empty\\:block{display:block}@media (min-width:64rem){.desktop-xs\\:hidden{display:none}}.dark\\:border-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(255 92 92/var(--tw-border-opacity,1))}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.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-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-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(255 92 92/var(--tw-border-opacity,1))}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.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-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{h as p_attachment}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,a as e,d as a,h as r}from"./p-yFtRjnrU.js";import{c as o}from"./p-CBWjHURv.js";import{T as d}from"./p-CSySY6aC.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const i=o(["flex flex-col gap-1","h-inherit w-full px-4 py-3","relative rounded-lg"],{variants:{closeAble:{true:"pr-10"},variant:{neutral:"\n bg-indigo-100\n dark:bg-indigo-300/15\n ",positive:"\n bg-positive-green-100\n dark:bg-positive-green-alternative/15\n ",biased:"\n bg-amber-50\n dark:bg-amber-alternative/15\n ",negative:"\n bg-negative-red-100\n dark:bg-negative-red-alternative/15\n ",feedback:"\n bg-white-700\n dark:bg-hurricane-100/15\n "}}}),h=o("text-sm font-medium",{variants:{variant:{neutral:"\n text-indigo-900\n dark:text-indigo-400\n ",positive:"\n text-positive-green-800\n dark:text-positive-green-alternative\n ",biased:"\n text-amber-800\n dark:text-amber-alternative\n ",negative:"\n text-negative-red-800\n dark:text-negative-red-alternative\n ",feedback:"\n text-storm-800\n dark:text-hurricane-100\n "}}}),n=o(["absolute right-2 top-2","flex items-center justify-center","cursor-pointer rounded-lg","\n text-storm-800/60\n hover:bg-white-500/40 hover:text-storm-800/60\n ","\n dark:text-white/60\n dark:hover:bg-white/15 dark:hover:text-white\n ","h-6 w-6"]),c=class{constructor(a){t(this,a),this.closed=e(this,"closed",3)}variant="feedback";header;content;closeable=!1;closed;get _el(){return a(this)}render(){const t=!!this._el.querySelector(':scope > [slot="header"]'),e=!!this._el.querySelector(':scope > [slot="content"]');return r(d,{key:"9f78c3309b7d3fb699d224b018af652a65899654"},r("div",{key:"72eee0bb6462c25485392a4c38da3cad6b5bd8bd",class:i({variant:this.variant,closeAble:this.closeable})},(this.header?.length||t)&&r("div",{key:"2c4295ffec4dd380af662b41fdc4d907ae090bf9",class:h({variant:this.variant})},this.header?.length?r("p",{class:"my-0"},this.header):r("slot",{name:"header"})),(this.content?.length||e)&&r("div",{key:"812ca8b8ff2e09d49602bc986b785d6a1d81e3d1",class:"\n h-inherit text-sm font-normal text-storm-800/60\n dark:text-white/70\n "},this.content?.length?r("p",{class:"my-0"},this.content):r("slot",{name:"content"})),this.closeable&&r("div",{key:"05a02d7363647ad0acd9ca89db7b75e83cd38bd6",class:n(),onClick:()=>this._close()},r("p-icon",{key:"c2825dc70562a98674bd86b7997db390988c088c",variant:"negative"}))))}_close(){this.closed.emit(),this._el.remove()}};c.style="*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.right-2{right:.5rem}.top-2{top:.5rem}.my-0{margin-bottom:0;margin-top:0}.flex{display:flex}.h-6{height:1.5rem}.h-inherit{height:inherit}.w-6{width:1.5rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.rounded-lg{border-radius:.5rem}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 250 224/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-negative-red-100{--tw-bg-opacity:1;background-color:rgb(255 221 221/var(--tw-bg-opacity,1))}.bg-positive-green-100{--tw-bg-opacity:1;background-color:rgb(213 251 199/var(--tw-bg-opacity,1))}.bg-white-700{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity,1))}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pr-10{padding-right:2.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-amber-800{--tw-text-opacity:1;color:rgb(148 77 11/var(--tw-text-opacity,1))}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/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-800{--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.text-storm-800\\/60{color:rgba(2,8,21,.6)}.hover\\:bg-white-500\\/40:hover{background-color:hsla(0,0%,100%,.4)}.hover\\:text-storm-800\\/60:hover{color:rgba(2,8,21,.6)}.dark\\:bg-amber-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.dark\\:text-white\\/60:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.6)}.dark\\:text-white\\/70:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.7)}.dark\\:hover\\:bg-white\\/15:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:text-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-amber-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.dark\\:text-white\\/60:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.6)}.dark\\:text-white\\/70:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.7)}.dark\\:hover\\:bg-white\\/15:hover:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:text-white:hover: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_info_panel}
|
|
@@ -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 d}from"./p-CSySY6aC.js";import{c as i}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:"border-solid"},isOver:{true:["border-dashed","border-indigo-500 bg-indigo-50","dark:border-indigo-700 dark:bg-indigo-700/10"],false:""}},compoundVariants:[{uploaded:!0,isOver:!1,class:["border-solid border-positive-green-500 bg-positive-green-50"]},{uploaded:!1,isOver:!1,class:["border-white-800 bg-white-600","hover:border-indigo-500 hover:bg-indigo-50","\n dark:border-white/10 dark:bg-white/5\n dark:hover:border-indigo-700 dark:hover:bg-indigo-700/10\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(d,{key:"7c1db4cb49b8699a6aa11ffb0b6fe4d496dabee2"},o("div",{key:"a059feda628b54161629ea0e05dbbfb0fa8e4aba",class:h({isOver:this._isOver,uploaded:this.uploaded}),onClick:()=>this._uploadClick()},!this.loading&&this.showIcon&&o("p-icon",{key:"79d280c89d5274171ba689463491ab9386712353",class:i("\n group-hover/dropzone:text-indigo-900\n dark:group-hover/dropzone:text-indigo-700\n ",{"text-positive-green-800":this.uploaded,"text-storm-300 dark:text-hurricane-200":!this._isOver&&!this.uploaded,"text-indigo-900 dark:text-indigo-700":this._isOver}),variant:this.icon}),this.loading&&o("p-loader",{key:"7c28c02bada55efe9d2045b3a42a7c3c2139ee76"}),t&&o("p",{key:"78208423e2b95c23a5303f8fca3300e06b5b4d86",class:i("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:"c0656e295223d620af579278f1c763eb7f368acf"})),this.uploaded&&!this._isOver&&o("div",{key:"e5ebd90b568883a025118f3df155188b21f1f67e",class:"flex items-center gap-2 text-positive-green-800"},o("p-icon",{key:"782fc223bd7de1a5d2e7e78bce753e32160fb477",variant:"check-circle"}),o("span",{key:"063369d8309f4d992b53d8db3165d4f9ed663992",class:"font-medium"},this.addedString)),(!this.uploaded||this._isOver)&&o("div",{key:"c05af902cc62cfdbb7feea9de5aabf567c6d22f5",class:i(["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:"c9ec4e45968281ce5c2033264ff7c972b25bd799",class:"font-medium"},this.dragFileString),o("span",{key:"bc2aac22c381cdb7d5cbfaa42627f57d08cab115",class:"font-normal"},this.orClickString))),o("input",{key:"d7569817461cc246b0d17e9f8cf238ea169ad436",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-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-50:hover{--tw-bg-opacity:1;background-color:rgb(241 246 255/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))}";export{c as p_dropzone}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,a as t,h as r,F as a}from"./p-yFtRjnrU.js";import{c as i}from"./p-CBWjHURv.js";import{e as o}from"./p-CWO2YJCh.js";import{c as d}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";const s=i(["flex flex-1 items-center justify-start gap-2","h-8 min-w-0 rounded-lg px-2","border border-solid","bg-white-600 text-storm-200","dark:bg-white/15 dark:text-hurricane-200"],{variants:{click:{false:null,true:"cursor-pointer"},error:{false:"\n border-storm-100\n dark:border-white/15\n ",true:"\n border-negative-red-500\n dark:border-negative-red-alternative\n "}}}),h=class{constructor(r){e(this,r),this.upload=t(this,"upload",3),this.download=t(this,"download",3),this.delete=t(this,"delete",3)}enableCameraOnMobile=!1;value;fileId;accept=null;label;helper;required=!0;mode="read";placeholder="Upload a file...";cameraTooltip="Camera";downloadTooltip="Download";uploadTooltip="Upload";deleteTooltip="Delete";loading=!1;error;upload;download;delete;_fileRef;_cameraFileRef;render(){let e=r("p-icon",{key:"92543de0489a337c848126766f819db2fd41d71a",class:"text-storm-300",variant:"attachment"});this.error&&(e=r("p-icon",{key:"054ab596512483fadb5ef423d3af05a1245a7897",class:"text-negative-red-500",variant:"warning"}));const t=o(),i="min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm";return r(a,{key:"dfc02ee49966fa6009702b16c5e5ec70d881cf75"},r("p-field-container",{key:"5f68f5218a1ee05b02a3744a9189c42ec4bd6d9e",error:this.error,forceShowTooltip:!!this.error?.length,helper:this.helper,label:this.label,required:this.required,variant:"write"},r("div",{key:"959c70c73218f0c2b07b6645f2fcfe8b1ce9224d",class:"flex w-full items-start gap-2",slot:"content"},r("div",{key:"e6d80d5d7d14d0acedb3d957e19032bf27c9b375",class:s({click:"write"===this.mode&&!this.value?.length,error:!!this.error?.length}),onClick:()=>this._uploadClick()},e,r("span",{key:"7e7f35e5e13a026f75771dde94cbdc55b4fc3739",class:d(i,"\n peer\n empty:hidden\n dark:text-white\n ")},this.value),r("span",{key:"74f7181ec319d38f6bf3a9ba55b8a506a80be964",class:d(i,"\n hidden\n peer-empty:block\n ")},this.placeholder)),r("p-tooltip",{key:"ea7aba4d71cf0843b31b2a7b777de62ed2e1a313",class:"w-8",content:"read"===this.mode?this.downloadTooltip:this.value?.length?this.deleteTooltip:this.uploadTooltip},r("p-button",{key:"f581f7d0988cc99b0c6697778592b90c9191dc1a",disabled:this.loading,icon:"read"===this.mode?"download":this.value?.length?"trash":"upload",iconOnly:!0,loading:this.loading,slot:"trigger",variant:"secondary",onOnClick:()=>"write"!==this.mode||this.value?.length?("read"===this.mode?this.download:this.delete).emit():this._uploadClick()})),this.enableCameraOnMobile&&"write"===this.mode&&t&&!this.value?.length&&r("p-tooltip",{key:"c1c6fb8cc84e89e3dd274c1af6b8cefc3a9b39e7",class:"\n w-8\n desktop-xs:hidden\n ",content:this.cameraTooltip},r("p-button",{key:"fb5e43cbd06718b6169648b248195b0530a886fb",icon:"camera",iconOnly:!0,slot:"trigger",variant:"secondary",onOnClick:()=>this._cameraClick()})))),r("input",{key:"ccd2a070b8d0cc7f829b806265a9fd12250953a4",accept:Array.isArray(this.accept)?this.accept?.join(","):this.accept,class:"hidden",ref:e=>this._fileRef=e,type:"file",onChange:e=>this._onFileChange(e)}),r("input",{key:"915a250d2be98c55bf180ac7eb79038d7001b006",accept:"image/*",capture:"true",class:"hidden",ref:e=>this._cameraFileRef=e,type:"file",onChange:e=>this._onFileChange(e)}))}_uploadClick(){this._fileRef&&"write"===this.mode&&!this.value?.length&&this._fileRef.click()}_cameraClick(){this.enableCameraOnMobile&&o()&&this._cameraFileRef&&"write"===this.mode&&this._cameraFileRef?.click()}_onFileChange(e){const t=e.target,r=t.files?.[0];if(r){this.loading=!0;const e=new FileReader;e.addEventListener("load",(e=>this._onLoad(r,e?.currentTarget?.result))),e.readAsDataURL(r)}}_onLoad(e,t){this.upload.emit({fileId:this.fileId,result:t,file:e}),this._fileRef&&(this._fileRef.value=""),this._cameraFileRef&&(this._cameraFileRef.value=""),this.loading=!1}};h.style=".block{display:block}*{box-sizing:border-box}:host{display:block;width:100%}.static{position:static}.flex{display:flex}.hidden{display:none}.h-8{height:2rem}.w-8{width:2rem}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-negative-red-500{--tw-border-opacity:1;border-color:rgb(230 30 30/var(--tw-border-opacity,1))}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.px-2{padding-left:.5rem;padding-right:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.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))}.empty\\:hidden:empty{display:none}.peer:empty~.peer-empty\\:block{display:block}@media (min-width:64rem){.desktop-xs\\:hidden{display:none}}.dark\\:border-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(255 92 92/var(--tw-border-opacity,1))}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.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-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-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(255 92 92/var(--tw-border-opacity,1))}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.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-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{h as p_attachment}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,a as e,d as a,h as r}from"./p-yFtRjnrU.js";import{c as o}from"./p-CBWjHURv.js";import{T as d}from"./p-CSySY6aC.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const i=o(["flex flex-col gap-1","h-inherit w-full px-4 py-3","relative rounded-lg"],{variants:{closeAble:{true:"pr-10"},variant:{neutral:"\n bg-indigo-100\n dark:bg-indigo-300/15\n ",positive:"\n bg-positive-green-100\n dark:bg-positive-green-alternative/15\n ",biased:"\n bg-amber-50\n dark:bg-amber-alternative/15\n ",negative:"\n bg-negative-red-100\n dark:bg-negative-red-alternative/15\n ",feedback:"\n bg-white-700\n dark:bg-hurricane-100/15\n "}}}),h=o("text-sm font-medium",{variants:{variant:{neutral:"\n text-indigo-900\n dark:text-indigo-400\n ",positive:"\n text-positive-green-800\n dark:text-positive-green-alternative\n ",biased:"\n text-amber-800\n dark:text-amber-alternative\n ",negative:"\n text-negative-red-800\n dark:text-negative-red-alternative\n ",feedback:"\n text-storm-800\n dark:text-hurricane-100\n "}}}),n=o(["absolute right-2 top-2","flex items-center justify-center","cursor-pointer rounded-lg","\n text-storm-800/60\n hover:bg-white-500/40 hover:text-storm-800/60\n ","\n dark:text-white/60\n dark:hover:bg-white/15 dark:hover:text-white\n ","h-6 w-6"]),c=class{constructor(a){t(this,a),this.closed=e(this,"closed",3)}variant="feedback";header;content;closeable=!1;closed;get _el(){return a(this)}render(){const t=!!this._el.querySelector(':scope > [slot="header"]'),e=!!this._el.querySelector(':scope > [slot="content"]');return r(d,{key:"9f78c3309b7d3fb699d224b018af652a65899654"},r("div",{key:"72eee0bb6462c25485392a4c38da3cad6b5bd8bd",class:i({variant:this.variant,closeAble:this.closeable})},(this.header?.length||t)&&r("div",{key:"2c4295ffec4dd380af662b41fdc4d907ae090bf9",class:h({variant:this.variant})},this.header?.length?r("p",{class:"my-0"},this.header):r("slot",{name:"header"})),(this.content?.length||e)&&r("div",{key:"812ca8b8ff2e09d49602bc986b785d6a1d81e3d1",class:"\n h-inherit text-sm font-normal text-storm-800/60\n dark:text-white/70\n "},this.content?.length?r("p",{class:"my-0"},this.content):r("slot",{name:"content"})),this.closeable&&r("div",{key:"05a02d7363647ad0acd9ca89db7b75e83cd38bd6",class:n(),onClick:()=>this._close()},r("p-icon",{key:"c2825dc70562a98674bd86b7997db390988c088c",variant:"negative"}))))}_close(){this.closed.emit(),this._el.remove()}};c.style="*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.right-2{right:.5rem}.top-2{top:.5rem}.my-0{margin-bottom:0;margin-top:0}.flex{display:flex}.h-6{height:1.5rem}.h-inherit{height:inherit}.w-6{width:1.5rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.rounded-lg{border-radius:.5rem}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 250 224/var(--tw-bg-opacity,1))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-negative-red-100{--tw-bg-opacity:1;background-color:rgb(255 221 221/var(--tw-bg-opacity,1))}.bg-positive-green-100{--tw-bg-opacity:1;background-color:rgb(213 251 199/var(--tw-bg-opacity,1))}.bg-white-700{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity,1))}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pr-10{padding-right:2.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-amber-800{--tw-text-opacity:1;color:rgb(148 77 11/var(--tw-text-opacity,1))}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/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-800{--tw-text-opacity:1;color:rgb(2 8 21/var(--tw-text-opacity,1))}.text-storm-800\\/60{color:rgba(2,8,21,.6)}.hover\\:bg-white-500\\/40:hover{background-color:hsla(0,0%,100%,.4)}.hover\\:text-storm-800\\/60:hover{color:rgba(2,8,21,.6)}.dark\\:bg-amber-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.dark\\:text-white\\/60:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.6)}.dark\\:text-white\\/70:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.7)}.dark\\:hover\\:bg-white\\/15:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:text-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-amber-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,231,92,.15)}.dark\\:bg-hurricane-100\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(220,3%,83%,.15)}.dark\\:bg-indigo-300\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(187,209,253,.15)}.dark\\:bg-negative-red-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(255,92,92,.15)}.dark\\:bg-positive-green-alternative\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(98,255,92,.15)}.dark\\:text-amber-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 231 92/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-indigo-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(165 194 252/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-positive-green-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(98 255 92/var(--tw-text-opacity,1))}.dark\\:text-white\\/60:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.6)}.dark\\:text-white\\/70:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.7)}.dark\\:hover\\:bg-white\\/15:hover:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:text-white:hover: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_info_panel}
|