@paperless/core 3.14.0 → 3.15.1
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/assets/icons/general/scroll.svg +13 -1
- package/dist/build/index.esm.js +1 -1
- package/dist/build/{p-8319c5c8.entry.js → p-25dd095e.entry.js} +1 -1
- package/dist/build/p-95d1d5d3.entry.js +1 -0
- package/dist/{paperless/p-CU4DsLKq.js → build/p-C8Ju8eG_.js} +1 -1
- package/dist/build/p-a77f13cb.js +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{icons-B5X261jk.js → icons-DIczdKrP.js} +13 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +1 -1
- package/dist/cjs/p-dropzone.cjs.entry.js +54 -11
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/assets/icons/general/scroll.svg +13 -1
- package/dist/collection/components/molecules/dropzone/dropzone.component.css +1 -1
- package/dist/collection/components/molecules/dropzone/dropzone.component.js +113 -10
- package/dist/components/index.js +1 -1
- package/dist/components/{p-BAgl1Jf7.js → p-5xGhxj77.js} +1 -1
- package/dist/components/{p-N0W9Q2h8.js → p-B0R6Smvm.js} +1 -1
- package/dist/components/{p-lFkw6WvI.js → p-BKVZoBXs.js} +1 -1
- package/dist/components/p-Bd4QOMb3.js +1 -0
- package/dist/components/{p-GdkB5ZCP.js → p-BmZe-ySu.js} +1 -1
- package/dist/components/{p-C-iLhpLl.js → p-C-Fx-e2u.js} +1 -1
- package/dist/{build/p-CU4DsLKq.js → components/p-C8Ju8eG_.js} +1 -1
- package/dist/components/{p-B8IerItk.js → p-CGolQEyn.js} +1 -1
- package/dist/components/{p-CoivV36y.js → p-CK5WtJW3.js} +1 -1
- package/dist/components/{p-DEFO0n7t.js → p-CPr4Yiq8.js} +1 -1
- package/dist/components/{p-CEBec4st.js → p-C_ug-NFC.js} +1 -1
- package/dist/components/{p-BtiIk9Ea.js → p-D-CC7BBx.js} +1 -1
- package/dist/components/{p-CKm4p-11.js → p-DEoTWGPb.js} +1 -1
- package/dist/components/{p-BeBgV6gj.js → p-DW2CgFRa.js} +1 -1
- package/dist/components/{p-CTCbhlKP.js → p-DgXmfcNf.js} +1 -1
- package/dist/components/{p-7Uv4DOCo.js → p-Du6rwBJ8.js} +1 -1
- package/dist/components/{p-CaJvFmB-.js → p-Dzd3xVIu.js} +1 -1
- package/dist/components/{p-C2vLGMIb.js → p-F3PaXjBa.js} +1 -1
- package/dist/components/{p-DWf-f_X3.js → p-GCtiZnn_.js} +1 -1
- package/dist/components/{p-BkaMV4Cw.js → p-R1ZwoW7p.js} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/{p-K_XCfGz8.js → p-bWeLk9nj.js} +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-header.js +1 -1
- package/dist/components/p-checkbox.js +1 -1
- package/dist/components/p-cropper.js +1 -1
- package/dist/components/p-datepicker.js +1 -1
- package/dist/components/p-drawer-header.js +1 -1
- package/dist/components/p-drawer.js +1 -1
- package/dist/components/p-dropdown-menu-item.js +1 -1
- package/dist/components/p-dropzone.js +1 -1
- package/dist/components/p-empty-state.js +1 -1
- package/dist/components/p-field-container.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/p-floating-menu-container.js +1 -1
- package/dist/components/p-floating-menu-item.js +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/p-icon.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-label.js +1 -1
- package/dist/components/p-listing-item.js +1 -1
- package/dist/components/p-modal-header.js +1 -1
- package/dist/components/p-modal.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +1 -1
- package/dist/components/p-pagination-pages.js +1 -1
- package/dist/components/p-pagination-size.js +1 -1
- package/dist/components/p-pagination.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-range.js +1 -1
- package/dist/components/p-segment-item.js +1 -1
- package/dist/components/p-select.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/esm/{icons-CU4DsLKq.js → icons-C8Ju8eG_.js} +13 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-button_3.entry.js +1 -1
- package/dist/esm/p-dropzone.entry.js +54 -11
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/{p-8319c5c8.entry.js → p-25dd095e.entry.js} +1 -1
- package/dist/paperless/p-95d1d5d3.entry.js +1 -0
- package/dist/{components/p-CU4DsLKq.js → paperless/p-C8Ju8eG_.js} +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/molecules/dropzone/dropzone.component.d.ts +12 -0
- package/dist/types/components.d.ts +30 -0
- package/hydrate/index.js +70 -12
- package/hydrate/index.mjs +70 -12
- package/package.json +1 -1
- package/dist/build/p-87b1c4f1.js +0 -1
- package/dist/build/p-e6669599.entry.js +0 -1
- package/dist/components/p-DZbo8o1B.js +0 -1
- package/dist/paperless/p-e6669599.entry.js +0 -1
|
@@ -39,6 +39,18 @@ export declare class Dropzone {
|
|
|
39
39
|
* Wether the file is uploaded
|
|
40
40
|
*/
|
|
41
41
|
uploaded: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* String to use for "added" text
|
|
44
|
+
*/
|
|
45
|
+
addedString: string;
|
|
46
|
+
/**
|
|
47
|
+
* String to use for "title" text
|
|
48
|
+
*/
|
|
49
|
+
dragFileString: string;
|
|
50
|
+
/**
|
|
51
|
+
* String to use for "description" text
|
|
52
|
+
*/
|
|
53
|
+
orClickString: string;
|
|
42
54
|
/**
|
|
43
55
|
* Event when upload is pressed
|
|
44
56
|
*/
|
|
@@ -863,11 +863,21 @@ export namespace Components {
|
|
|
863
863
|
* @default 'any'
|
|
864
864
|
*/
|
|
865
865
|
"acceptGroup": 'any' | 'images';
|
|
866
|
+
/**
|
|
867
|
+
* String to use for "added" text
|
|
868
|
+
* @default 'Toegevoegd'
|
|
869
|
+
*/
|
|
870
|
+
"addedString": string;
|
|
866
871
|
/**
|
|
867
872
|
* Allow multiple files
|
|
868
873
|
* @default true
|
|
869
874
|
*/
|
|
870
875
|
"allowMultiple": boolean;
|
|
876
|
+
/**
|
|
877
|
+
* String to use for "title" text
|
|
878
|
+
* @default 'Sleep je bestand hierheen'
|
|
879
|
+
*/
|
|
880
|
+
"dragFileString": string;
|
|
871
881
|
/**
|
|
872
882
|
* The fileID to use to track the file
|
|
873
883
|
*/
|
|
@@ -882,6 +892,11 @@ export namespace Components {
|
|
|
882
892
|
* @default false
|
|
883
893
|
*/
|
|
884
894
|
"loading": boolean;
|
|
895
|
+
/**
|
|
896
|
+
* String to use for "description" text
|
|
897
|
+
* @default 'of klik om te uploaden'
|
|
898
|
+
*/
|
|
899
|
+
"orClickString": string;
|
|
885
900
|
/**
|
|
886
901
|
* Wether to show the icon or not
|
|
887
902
|
* @default true
|
|
@@ -4618,11 +4633,21 @@ declare namespace LocalJSX {
|
|
|
4618
4633
|
* @default 'any'
|
|
4619
4634
|
*/
|
|
4620
4635
|
"acceptGroup"?: 'any' | 'images';
|
|
4636
|
+
/**
|
|
4637
|
+
* String to use for "added" text
|
|
4638
|
+
* @default 'Toegevoegd'
|
|
4639
|
+
*/
|
|
4640
|
+
"addedString"?: string;
|
|
4621
4641
|
/**
|
|
4622
4642
|
* Allow multiple files
|
|
4623
4643
|
* @default true
|
|
4624
4644
|
*/
|
|
4625
4645
|
"allowMultiple"?: boolean;
|
|
4646
|
+
/**
|
|
4647
|
+
* String to use for "title" text
|
|
4648
|
+
* @default 'Sleep je bestand hierheen'
|
|
4649
|
+
*/
|
|
4650
|
+
"dragFileString"?: string;
|
|
4626
4651
|
/**
|
|
4627
4652
|
* The fileID to use to track the file
|
|
4628
4653
|
*/
|
|
@@ -4641,6 +4666,11 @@ declare namespace LocalJSX {
|
|
|
4641
4666
|
* Event when upload is pressed
|
|
4642
4667
|
*/
|
|
4643
4668
|
"onUpload"?: (event: PDropzoneCustomEvent<DropzoneUploadEvent>) => void;
|
|
4669
|
+
/**
|
|
4670
|
+
* String to use for "description" text
|
|
4671
|
+
* @default 'of klik om te uploaden'
|
|
4672
|
+
*/
|
|
4673
|
+
"orClickString"?: string;
|
|
4644
4674
|
/**
|
|
4645
4675
|
* Wether to show the icon or not
|
|
4646
4676
|
* @default true
|
package/hydrate/index.js
CHANGED
|
@@ -7832,7 +7832,19 @@ var running = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xml
|
|
|
7832
7832
|
</svg>
|
|
7833
7833
|
`;
|
|
7834
7834
|
|
|
7835
|
-
var scroll = `<svg
|
|
7835
|
+
var scroll = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7836
|
+
<g clip-path="url(#clip0_4900_27)">
|
|
7837
|
+
<path d="M12.5 11V4C12.5 3.60218 12.342 3.22064 12.0607 2.93934C11.7794 2.65804 11.3978 2.5 11 2.5H2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7838
|
+
<path d="M6.5 6.5H10.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7839
|
+
<path d="M6.5 8.5H10.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7840
|
+
<path d="M1.5 5C1.5 5 1 4.625 1 4C1 3.60218 1.15804 3.22064 1.43934 2.93934C1.72064 2.65804 2.10218 2.5 2.5 2.5C2.89782 2.5 3.27936 2.65804 3.56066 2.93934C3.84196 3.22064 4 3.60218 4 4V12C4 12.3978 4.15804 12.7794 4.43934 13.0607C4.72064 13.342 5.10218 13.5 5.5 13.5M5.5 13.5C5.89782 13.5 6.27936 13.342 6.56066 13.0607C6.84196 12.7794 7 12.3978 7 12C7 11.375 6.5 11 6.5 11H13.5C13.5 11 14 11.375 14 12C14 12.3978 13.842 12.7794 13.5607 13.0607C13.2794 13.342 12.8978 13.5 12.5 13.5H5.5Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7841
|
+
</g>
|
|
7842
|
+
<defs>
|
|
7843
|
+
<clipPath id="clip0_4900_27">
|
|
7844
|
+
<rect width="16" height="16" fill="white"/>
|
|
7845
|
+
</clipPath>
|
|
7846
|
+
</defs>
|
|
7847
|
+
</svg>
|
|
7836
7848
|
`;
|
|
7837
7849
|
|
|
7838
7850
|
var search$1 = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 16 16">
|
|
@@ -95075,13 +95087,23 @@ class DropdownMenuItem {
|
|
|
95075
95087
|
}; }
|
|
95076
95088
|
}
|
|
95077
95089
|
|
|
95078
|
-
const dropzoneComponentCss = () => `*{box-sizing:border-box}.static{position:static}.flex{display:flex}.hidden{display:none}.w-full{width:100%}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-2{gap:.5rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.border-white-800{--tw-border-opacity:1;border-color:rgb(228 227 227/var(--tw-border-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-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-8{padding:2rem}.text-center{text-align:center}.font-medium{font-weight:500}.font-normal{font-weight:400}.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))}.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)}`;
|
|
95090
|
+
const dropzoneComponentCss = () => `*{box-sizing:border-box}.static{position:static}.flex{display:flex}.hidden{display:none}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-2{gap:.5rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.border-white-800{--tw-border-opacity:1;border-color:rgb(228 227 227/var(--tw-border-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-positive-green-50{--tw-bg-opacity:1;background-color:rgb(234 253 227/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.p-8{padding:2rem}.text-center{text-align:center}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-hurricane-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-positive-green-800{--tw-text-opacity:1;color:rgb(47 100 7/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-50{opacity:.5}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:border-indigo-500:hover{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.group\\/dropzone:hover .group-hover\\/dropzone\\:text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.group\\/dropzone:hover .group-hover\\/dropzone\\:opacity-50{opacity:.5}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-hurricane-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:border-white\\/15:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:bg-hurricane-500:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.group\\/dropzone:hover .dark\\:group-hover\\/dropzone\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-hurricane-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:border-white\\/15:hover:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:bg-hurricane-500:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.group\\/dropzone:hover .dark\\:group-hover\\/dropzone\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}`;
|
|
95079
95091
|
|
|
95080
|
-
const dropzone = cva([
|
|
95092
|
+
const dropzone = cva([
|
|
95093
|
+
'group/dropzone',
|
|
95094
|
+
'flex w-full flex-col items-center gap-2',
|
|
95095
|
+
'cursor-pointer',
|
|
95096
|
+
'rounded-lg',
|
|
95097
|
+
'border',
|
|
95098
|
+
'p-8',
|
|
95099
|
+
], {
|
|
95081
95100
|
variants: {
|
|
95082
95101
|
uploaded: {
|
|
95083
95102
|
false: 'border-dashed',
|
|
95084
|
-
true:
|
|
95103
|
+
true: `
|
|
95104
|
+
border-off-white-700
|
|
95105
|
+
dark:border-white/15
|
|
95106
|
+
`,
|
|
95085
95107
|
},
|
|
95086
95108
|
isOver: {
|
|
95087
95109
|
true: 'border-dashed border-indigo-500 bg-indigo-50',
|
|
@@ -95092,12 +95114,23 @@ const dropzone = cva(['flex w-full flex-col items-center gap-2', 'rounded-lg', '
|
|
|
95092
95114
|
{
|
|
95093
95115
|
uploaded: true,
|
|
95094
95116
|
isOver: false,
|
|
95095
|
-
class: 'border-solid bg-positive-green-50',
|
|
95117
|
+
class: ['border-solid bg-positive-green-50'],
|
|
95096
95118
|
},
|
|
95097
95119
|
{
|
|
95098
95120
|
uploaded: false,
|
|
95099
95121
|
isOver: false,
|
|
95100
|
-
class:
|
|
95122
|
+
class: [
|
|
95123
|
+
'bg-white-600',
|
|
95124
|
+
`
|
|
95125
|
+
bg-indigo-500
|
|
95126
|
+
hover:border-indigo-500
|
|
95127
|
+
dark:hover:border-white/15
|
|
95128
|
+
`,
|
|
95129
|
+
`
|
|
95130
|
+
dark:border-white/15 dark:bg-hurricane-600
|
|
95131
|
+
dark:hover:bg-hurricane-500
|
|
95132
|
+
`,
|
|
95133
|
+
],
|
|
95101
95134
|
},
|
|
95102
95135
|
],
|
|
95103
95136
|
});
|
|
@@ -95134,6 +95167,18 @@ class Dropzone {
|
|
|
95134
95167
|
* Wether the file is uploaded
|
|
95135
95168
|
*/
|
|
95136
95169
|
uploaded = false;
|
|
95170
|
+
/**
|
|
95171
|
+
* String to use for "added" text
|
|
95172
|
+
*/
|
|
95173
|
+
addedString = 'Toegevoegd';
|
|
95174
|
+
/**
|
|
95175
|
+
* String to use for "title" text
|
|
95176
|
+
*/
|
|
95177
|
+
dragFileString = 'Sleep je bestand hierheen';
|
|
95178
|
+
/**
|
|
95179
|
+
* String to use for "description" text
|
|
95180
|
+
*/
|
|
95181
|
+
orClickString = 'of klik om te uploaden';
|
|
95137
95182
|
/**
|
|
95138
95183
|
* Event when upload is pressed
|
|
95139
95184
|
*/
|
|
@@ -95161,15 +95206,25 @@ class Dropzone {
|
|
|
95161
95206
|
}
|
|
95162
95207
|
render() {
|
|
95163
95208
|
const hasContent = this._el.innerHTML?.length > 0;
|
|
95164
|
-
return (hAsync(ThemedHost, { key: '
|
|
95209
|
+
return (hAsync(ThemedHost, { key: 'c6a304f790ab3c0b54c5d5350c9e8ac2ec223a65' }, hAsync("div", { key: '113088a5533a084c34a928e54bd944df1fcc3c6e', class: cn(dropzone({
|
|
95165
95210
|
isOver: this._isOver,
|
|
95166
95211
|
uploaded: this.uploaded,
|
|
95167
|
-
}), {}), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (hAsync("p-icon", { key: '
|
|
95168
|
-
|
|
95169
|
-
|
|
95170
|
-
|
|
95212
|
+
}), {}), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (hAsync("p-icon", { key: '3c5d082c288a05557991ddd340ae127725558c92', class: cn(`
|
|
95213
|
+
group-hover/dropzone:text-indigo-900
|
|
95214
|
+
dark:group-hover/dropzone:text-white
|
|
95215
|
+
`, {
|
|
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: '9854984ce9ab9c30a8d5148251bef513e4c28ccd' }), hasContent && hAsync("slot", { key: '16f25e0d116db0aa876a6671c992e59745d1ee68' }), this.uploaded && !this._isOver && (hAsync("div", { key: 'c136286b06f36b6511ea3c8e3648da74dbb1c136', class: 'flex items-center gap-2 text-positive-green-800' }, hAsync("p-icon", { key: 'b0b91066f4bc43d7d7ff2a24ece00e58ceeda7b8', variant: 'check-circle' }), hAsync("span", { key: '66f8a7b314a5bbe2f579cc6c9591d1c11a6496d2', class: 'font-medium' }, this.addedString))), (!this.uploaded || this._isOver) && (hAsync("div", { key: 'f79f19dba4baba080d9d45b6147a358660b2cda1', class: cn([
|
|
95219
|
+
'flex flex-col text-center',
|
|
95220
|
+
'group-hover/dropzone:opacity-50',
|
|
95221
|
+
`
|
|
95222
|
+
text-storm-300
|
|
95223
|
+
dark:text-hurricane-300
|
|
95224
|
+
`,
|
|
95225
|
+
], {
|
|
95171
95226
|
'opacity-50': this._isOver,
|
|
95172
|
-
}) }, hAsync("span", { key: '
|
|
95227
|
+
}) }, hAsync("span", { key: 'cc8d02cd3b4bd3676651a9c570f30d34dc318059', class: 'font-medium' }, this.dragFileString), hAsync("span", { key: 'f2e94c94bfe3eaded27e346baf8b99a46dae3ef3', class: 'font-normal' }, this.orClickString)))), hAsync("input", { key: 'bee3ca3736c3b0e7c90e44adfaf523475dab4ea5', 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) })));
|
|
95173
95228
|
}
|
|
95174
95229
|
onDrop(ev) {
|
|
95175
95230
|
const files = this._getFiles(ev);
|
|
@@ -95274,6 +95329,9 @@ class Dropzone {
|
|
|
95274
95329
|
"loading": [4],
|
|
95275
95330
|
"allowMultiple": [4, "allow-multiple"],
|
|
95276
95331
|
"uploaded": [4],
|
|
95332
|
+
"addedString": [1, "added-string"],
|
|
95333
|
+
"dragFileString": [1, "drag-file-string"],
|
|
95334
|
+
"orClickString": [1, "or-click-string"],
|
|
95277
95335
|
"_isOver": [32]
|
|
95278
95336
|
},
|
|
95279
95337
|
"$listeners$": [[1, "drop", "onDrop"], [1, "dragover", "onDragOver"], [1, "dragleave", "onDragLeave"]],
|
package/hydrate/index.mjs
CHANGED
|
@@ -7830,7 +7830,19 @@ var running = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xml
|
|
|
7830
7830
|
</svg>
|
|
7831
7831
|
`;
|
|
7832
7832
|
|
|
7833
|
-
var scroll = `<svg
|
|
7833
|
+
var scroll = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7834
|
+
<g clip-path="url(#clip0_4900_27)">
|
|
7835
|
+
<path d="M12.5 11V4C12.5 3.60218 12.342 3.22064 12.0607 2.93934C11.7794 2.65804 11.3978 2.5 11 2.5H2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7836
|
+
<path d="M6.5 6.5H10.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7837
|
+
<path d="M6.5 8.5H10.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7838
|
+
<path d="M1.5 5C1.5 5 1 4.625 1 4C1 3.60218 1.15804 3.22064 1.43934 2.93934C1.72064 2.65804 2.10218 2.5 2.5 2.5C2.89782 2.5 3.27936 2.65804 3.56066 2.93934C3.84196 3.22064 4 3.60218 4 4V12C4 12.3978 4.15804 12.7794 4.43934 13.0607C4.72064 13.342 5.10218 13.5 5.5 13.5M5.5 13.5C5.89782 13.5 6.27936 13.342 6.56066 13.0607C6.84196 12.7794 7 12.3978 7 12C7 11.375 6.5 11 6.5 11H13.5C13.5 11 14 11.375 14 12C14 12.3978 13.842 12.7794 13.5607 13.0607C13.2794 13.342 12.8978 13.5 12.5 13.5H5.5Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7839
|
+
</g>
|
|
7840
|
+
<defs>
|
|
7841
|
+
<clipPath id="clip0_4900_27">
|
|
7842
|
+
<rect width="16" height="16" fill="white"/>
|
|
7843
|
+
</clipPath>
|
|
7844
|
+
</defs>
|
|
7845
|
+
</svg>
|
|
7834
7846
|
`;
|
|
7835
7847
|
|
|
7836
7848
|
var search$1 = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 16 16">
|
|
@@ -95073,13 +95085,23 @@ class DropdownMenuItem {
|
|
|
95073
95085
|
}; }
|
|
95074
95086
|
}
|
|
95075
95087
|
|
|
95076
|
-
const dropzoneComponentCss = () => `*{box-sizing:border-box}.static{position:static}.flex{display:flex}.hidden{display:none}.w-full{width:100%}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-2{gap:.5rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.border-white-800{--tw-border-opacity:1;border-color:rgb(228 227 227/var(--tw-border-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-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-8{padding:2rem}.text-center{text-align:center}.font-medium{font-weight:500}.font-normal{font-weight:400}.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))}.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)}`;
|
|
95088
|
+
const dropzoneComponentCss = () => `*{box-sizing:border-box}.static{position:static}.flex{display:flex}.hidden{display:none}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-2{gap:.5rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.border-white-800{--tw-border-opacity:1;border-color:rgb(228 227 227/var(--tw-border-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-positive-green-50{--tw-bg-opacity:1;background-color:rgb(234 253 227/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.p-8{padding:2rem}.text-center{text-align:center}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-hurricane-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-positive-green-800{--tw-text-opacity:1;color:rgb(47 100 7/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-50{opacity:.5}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:border-indigo-500:hover{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.group\\/dropzone:hover .group-hover\\/dropzone\\:text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.group\\/dropzone:hover .group-hover\\/dropzone\\:opacity-50{opacity:.5}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-hurricane-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:border-white\\/15:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:bg-hurricane-500:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.group\\/dropzone:hover .dark\\:group-hover\\/dropzone\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-hurricane-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:border-white\\/15:hover:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:bg-hurricane-500:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.group\\/dropzone:hover .dark\\:group-hover\\/dropzone\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}`;
|
|
95077
95089
|
|
|
95078
|
-
const dropzone = cva([
|
|
95090
|
+
const dropzone = cva([
|
|
95091
|
+
'group/dropzone',
|
|
95092
|
+
'flex w-full flex-col items-center gap-2',
|
|
95093
|
+
'cursor-pointer',
|
|
95094
|
+
'rounded-lg',
|
|
95095
|
+
'border',
|
|
95096
|
+
'p-8',
|
|
95097
|
+
], {
|
|
95079
95098
|
variants: {
|
|
95080
95099
|
uploaded: {
|
|
95081
95100
|
false: 'border-dashed',
|
|
95082
|
-
true:
|
|
95101
|
+
true: `
|
|
95102
|
+
border-off-white-700
|
|
95103
|
+
dark:border-white/15
|
|
95104
|
+
`,
|
|
95083
95105
|
},
|
|
95084
95106
|
isOver: {
|
|
95085
95107
|
true: 'border-dashed border-indigo-500 bg-indigo-50',
|
|
@@ -95090,12 +95112,23 @@ const dropzone = cva(['flex w-full flex-col items-center gap-2', 'rounded-lg', '
|
|
|
95090
95112
|
{
|
|
95091
95113
|
uploaded: true,
|
|
95092
95114
|
isOver: false,
|
|
95093
|
-
class: 'border-solid bg-positive-green-50',
|
|
95115
|
+
class: ['border-solid bg-positive-green-50'],
|
|
95094
95116
|
},
|
|
95095
95117
|
{
|
|
95096
95118
|
uploaded: false,
|
|
95097
95119
|
isOver: false,
|
|
95098
|
-
class:
|
|
95120
|
+
class: [
|
|
95121
|
+
'bg-white-600',
|
|
95122
|
+
`
|
|
95123
|
+
bg-indigo-500
|
|
95124
|
+
hover:border-indigo-500
|
|
95125
|
+
dark:hover:border-white/15
|
|
95126
|
+
`,
|
|
95127
|
+
`
|
|
95128
|
+
dark:border-white/15 dark:bg-hurricane-600
|
|
95129
|
+
dark:hover:bg-hurricane-500
|
|
95130
|
+
`,
|
|
95131
|
+
],
|
|
95099
95132
|
},
|
|
95100
95133
|
],
|
|
95101
95134
|
});
|
|
@@ -95132,6 +95165,18 @@ class Dropzone {
|
|
|
95132
95165
|
* Wether the file is uploaded
|
|
95133
95166
|
*/
|
|
95134
95167
|
uploaded = false;
|
|
95168
|
+
/**
|
|
95169
|
+
* String to use for "added" text
|
|
95170
|
+
*/
|
|
95171
|
+
addedString = 'Toegevoegd';
|
|
95172
|
+
/**
|
|
95173
|
+
* String to use for "title" text
|
|
95174
|
+
*/
|
|
95175
|
+
dragFileString = 'Sleep je bestand hierheen';
|
|
95176
|
+
/**
|
|
95177
|
+
* String to use for "description" text
|
|
95178
|
+
*/
|
|
95179
|
+
orClickString = 'of klik om te uploaden';
|
|
95135
95180
|
/**
|
|
95136
95181
|
* Event when upload is pressed
|
|
95137
95182
|
*/
|
|
@@ -95159,15 +95204,25 @@ class Dropzone {
|
|
|
95159
95204
|
}
|
|
95160
95205
|
render() {
|
|
95161
95206
|
const hasContent = this._el.innerHTML?.length > 0;
|
|
95162
|
-
return (hAsync(ThemedHost, { key: '
|
|
95207
|
+
return (hAsync(ThemedHost, { key: 'c6a304f790ab3c0b54c5d5350c9e8ac2ec223a65' }, hAsync("div", { key: '113088a5533a084c34a928e54bd944df1fcc3c6e', class: cn(dropzone({
|
|
95163
95208
|
isOver: this._isOver,
|
|
95164
95209
|
uploaded: this.uploaded,
|
|
95165
|
-
}), {}), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (hAsync("p-icon", { key: '
|
|
95166
|
-
|
|
95167
|
-
|
|
95168
|
-
|
|
95210
|
+
}), {}), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (hAsync("p-icon", { key: '3c5d082c288a05557991ddd340ae127725558c92', class: cn(`
|
|
95211
|
+
group-hover/dropzone:text-indigo-900
|
|
95212
|
+
dark:group-hover/dropzone:text-white
|
|
95213
|
+
`, {
|
|
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: '9854984ce9ab9c30a8d5148251bef513e4c28ccd' }), hasContent && hAsync("slot", { key: '16f25e0d116db0aa876a6671c992e59745d1ee68' }), this.uploaded && !this._isOver && (hAsync("div", { key: 'c136286b06f36b6511ea3c8e3648da74dbb1c136', class: 'flex items-center gap-2 text-positive-green-800' }, hAsync("p-icon", { key: 'b0b91066f4bc43d7d7ff2a24ece00e58ceeda7b8', variant: 'check-circle' }), hAsync("span", { key: '66f8a7b314a5bbe2f579cc6c9591d1c11a6496d2', class: 'font-medium' }, this.addedString))), (!this.uploaded || this._isOver) && (hAsync("div", { key: 'f79f19dba4baba080d9d45b6147a358660b2cda1', class: cn([
|
|
95217
|
+
'flex flex-col text-center',
|
|
95218
|
+
'group-hover/dropzone:opacity-50',
|
|
95219
|
+
`
|
|
95220
|
+
text-storm-300
|
|
95221
|
+
dark:text-hurricane-300
|
|
95222
|
+
`,
|
|
95223
|
+
], {
|
|
95169
95224
|
'opacity-50': this._isOver,
|
|
95170
|
-
}) }, hAsync("span", { key: '
|
|
95225
|
+
}) }, hAsync("span", { key: 'cc8d02cd3b4bd3676651a9c570f30d34dc318059', class: 'font-medium' }, this.dragFileString), hAsync("span", { key: 'f2e94c94bfe3eaded27e346baf8b99a46dae3ef3', class: 'font-normal' }, this.orClickString)))), hAsync("input", { key: 'bee3ca3736c3b0e7c90e44adfaf523475dab4ea5', 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) })));
|
|
95171
95226
|
}
|
|
95172
95227
|
onDrop(ev) {
|
|
95173
95228
|
const files = this._getFiles(ev);
|
|
@@ -95272,6 +95327,9 @@ class Dropzone {
|
|
|
95272
95327
|
"loading": [4],
|
|
95273
95328
|
"allowMultiple": [4, "allow-multiple"],
|
|
95274
95329
|
"uploaded": [4],
|
|
95330
|
+
"addedString": [1, "added-string"],
|
|
95331
|
+
"dragFileString": [1, "drag-file-string"],
|
|
95332
|
+
"orClickString": [1, "or-click-string"],
|
|
95275
95333
|
"_isOver": [32]
|
|
95276
95334
|
},
|
|
95277
95335
|
"$listeners$": [[1, "drop", "onDrop"], [1, "dragover", "onDragOver"], [1, "dragleave", "onDragLeave"]],
|
package/package.json
CHANGED
package/dist/build/p-87b1c4f1.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as e,B as a,c as o,w as t,N as n,H as i,g as l,b as c}from"./p-yFtRjnrU.js";export{s as setNonce}from"./p-yFtRjnrU.js";var r=e=>{const a=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return a.call(this,e);const o=a.call(this,!1),t=this.childNodes;if(e)for(let e=0;e<t.length;e++)2!==t[e].nodeType&&o.appendChild(t[e].cloneNode(!0));return o}};(()=>{a.isDev&&!a.isTesting&&o("Running in development mode."),a.cloneNodeFix&&r(i.prototype);const l=a.scriptDataOpts?t.document&&Array.from(t.document.querySelectorAll("script")).find((e=>new RegExp(`/${n}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===n)):null,c=import.meta.url,s=a.scriptDataOpts&&(l||{})["data-opts"]||{};return""!==c&&(s.resourcesUrl=new URL(".",c).href),e(s)})().then((async e=>(await l(),c(JSON.parse('[["p-8319c5c8",[[769,"p-button",{"label":[1],"as":[1],"underline":[4],"tabIndex":[2,"tab-index"],"variant":[1],"active":[4],"error":[4],"href":[1],"target":[1],"size":[1],"type":[1],"loading":[4],"chevron":[8],"chevronPosition":[1,"chevron-position"],"disabled":[4],"icon":[1],"iconOnly":[4,"icon-only"],"iconClass":[1,"icon-class"],"iconPosition":[1,"icon-position"],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"inheritText":[4,"inherit-text"],"buttonGroupPosition":[1,"button-group-position"],"class":[1]},[[2,"click","handleClick"]]],[769,"p-loader",{"show":[4],"variant":[1],"color":[1],"modalTitle":[1,"modal-title"],"modalDescription":[1,"modal-description"]}],[513,"p-icon",{"variant":[1],"size":[1],"rotate":[2],"flip":[1]}]]],["p-b91cdc33",[[772,"p-table",{"items":[1],"loading":[4],"headerLoading":[4,"header-loading"],"footerLoading":[4,"footer-loading"],"amountOfLoadingRows":[2,"amount-of-loading-rows"],"enableRowSelection":[4,"enable-row-selection"],"rowSelectionLimit":[2,"row-selection-limit"],"enableRowClick":[4,"enable-row-click"],"selectedRows":[16],"enableFloatingMenu":[4,"enable-floating-menu"],"floatingMenuAmountSelectedTemplate":[16],"selectionKey":[1,"selection-key"],"canSelectKey":[1,"can-select-key"],"enableHeader":[4,"enable-header"],"quickFilters":[1,"quick-filters"],"activeQuickFilterIdentifier":[1,"active-quick-filter-identifier"],"enableSearch":[4,"enable-search"],"query":[1025],"enableFilter":[4,"enable-filter"],"enableFilterDesktop":[4,"enable-filter-desktop"],"selectedFiltersAmount":[2,"selected-filters-amount"],"filterButtonTemplate":[16],"enableAction":[4,"enable-action"],"actionButtonLoading":[4,"action-button-loading"],"actionButtonEnabled":[4,"action-button-enabled"],"actionButtonIcon":[1,"action-button-icon"],"actionButtonText":[1,"action-button-text"],"actionButtonTemplate":[16],"enableFooter":[4,"enable-footer"],"enablePaginationSize":[4,"enable-pagination-size"],"enablePaginationPages":[4,"enable-pagination-pages"],"enableExport":[4,"enable-export"],"page":[1538],"total":[2],"pageSize":[2,"page-size"],"pageSizeOptions":[16],"hideOnSinglePage":[4,"hide-on-single-page"],"emptyStateHeader":[16],"emptyStateContent":[16],"emptyStateAction":[16],"enableEmptyStateAction":[4,"enable-empty-state-action"],"emptyStateFilteredHeader":[16],"emptyStateFilteredContent":[16],"shadow":[4],"_locales":[32],"_extraHeaders":[32],"_columns":[32],"_items":[32],"_enableRowSelection":[32],"_rowSelectionLimit":[32],"_rowActionsFloating":[32],"_rowActionsRow":[32],"_footerHidden":[32]},[[16,"localeChanged","_setLocales"],[16,"tableDefinitionChanged","onTableDefinitionUpdated"],[4,"keydown","keyDown"],[4,"keyup","keyUp"],[4,"visibilitychange","visibilityChange"],[9,"resize","_setRowSelectionData"]],{"items":[{"_parseItems":0}],"enableRowSelection":[{"_setRowSelectionData":0}],"rowSelectionLimit":[{"_setRowSelectionData":0}],"selectedRows":[{"_setRowSelectionData":0}]}]]],["p-d58dcb50",[[576,"p-select",{"items":[1],"multi":[516],"strategy":[1],"icon":[1],"query":[1],"placeholder":[1],"autocompletePlaceholder":[1,"autocomplete-placeholder"],"value":[8],"displayKey":[1,"display-key"],"dropdownDisplayKey":[1,"dropdown-display-key"],"selectionDisplayKey":[1,"selection-display-key"],"valueKey":[1,"value-key"],"avatarKey":[1,"avatar-key"],"iconKey":[1,"icon-key"],"iconClassKey":[1,"icon-class-key"],"showIconOnSelectedItem":[1,"show-icon-on-selected-item"],"classKey":[1,"class-key"],"applyClassOnSelectedItem":[4,"apply-class-on-selected-item"],"applyClassOnSelectedItemInMenu":[4,"apply-class-on-selected-item-in-menu"],"avatarLettersKey":[1,"avatar-letters-key"],"identifierKey":[1,"identifier-key"],"queryKey":[1,"query-key"],"autoSelectFirst":[4,"auto-select-first"],"showChevron":[4,"show-chevron"],"maxDisplayedItems":[2,"max-displayed-items"],"enableAutocomplete":[4,"enable-autocomplete"],"enableTextWrap":[4,"enable-text-wrap"],"asyncFilter":[4,"async-filter"],"loading":[4],"enableSelectAll":[4,"enable-select-all"],"selectAllText":[1,"select-all-text"],"selectAllIcon":[1,"select-all-icon"],"size":[1],"prefix":[1],"label":[1],"helper":[1],"required":[516],"showOptional":[516,"show-optional"],"error":[513],"disabled":[516],"showAddItem":[4,"show-add-item"],"addItemText":[1,"add-item-text"],"emptyStateText":[1,"empty-state-text"],"_showDropdown":[32],"_selectedItem":[32],"_allSelected":[32],"_amountHidden":[32]},[[6,"click","documentClickHandler"]],{"value":[{"_valueChange":0}],"items":[{"itemChanges":0}],"_showDropdown":[{"_showDropdownChanges":0}],"multi":[{"multiChanges":0}]}]]],["p-9a6196a5",[[576,"p-datepicker",{"placeholder":[1],"value":[1],"preselectToday":[4,"preselect-today"],"enableNativePicker":[4,"enable-native-picker"],"disabledDates":[1,"disabled-dates"],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"disableWeekends":[4,"disable-weekends"],"enableToday":[4,"enable-today"],"todayText":[1,"today-text"],"mode":[1],"format":[1],"hideIconWhenFilled":[4,"hide-icon-when-filled"],"size":[1],"prefix":[1],"label":[1],"loading":[4],"helper":[1],"required":[516],"showOptional":[516,"show-optional"],"error":[513],"disabled":[516],"strategy":[1],"placement":[513],"_showDropdown":[32],"_value":[32],"_minDate":[32],"_maxDate":[32],"_disabledDates":[32],"_isMobileBrowser":[32]},[[6,"click","documentClickHandler"]],{"value":[{"parseValue":0}],"minDate":[{"parseMinDate":0}],"maxDate":[{"parseMaxDate":0}],"disabledDates":[{"parseDisabledDates":0}]}]]],["p-cfd7eb55",[[769,"p-modal",{"size":[1],"header":[1],"show":[4],"applyBlur":[4,"apply-blur"],"showClose":[4,"show-close"],"showMobileFooter":[4,"show-mobile-footer"],"backdropClickClose":[4,"backdrop-click-close"],"scrollLock":[4,"scroll-lock"],"_closing":[32]},[[8,"closeModal","handleCloseModal"]]]]],["p-2c68cb4f",[[769,"p-drawer",{"header":[1],"show":[4],"applyBlur":[4,"apply-blur"],"showClose":[4,"show-close"],"backdropClickClose":[4,"backdrop-click-close"],"canClose":[4,"can-close"],"scrollLock":[4,"scroll-lock"],"_closing":[32]},[[8,"closeDrawer","handleCloseDrawer"],[8,"forceCloseDrawer","handleForceCloseDrawer"]]]]],["p-3a857d73",[[513,"p-attachment",{"enableCameraOnMobile":[4,"enable-camera-on-mobile"],"value":[1],"fileId":[1,"file-id"],"accept":[1],"label":[1],"helper":[1],"required":[516],"mode":[1],"placeholder":[1],"cameraTooltip":[1,"camera-tooltip"],"downloadTooltip":[1,"download-tooltip"],"uploadTooltip":[1,"upload-tooltip"],"deleteTooltip":[1,"delete-tooltip"],"loading":[4],"error":[1]}]]],["p-195e954b",[[769,"p-profile",{"dropdownLocation":[1,"dropdown-location"],"_dropdownOpen":[32],"_hasDropdownSlot":[32]},[[0,"slotchange","slotchange"]]]]],["p-90610536",[[769,"p-navbar",{"_show":[32]},[[8,"closeNavbar","handleCloseNavbar"],[8,"openNavbar","handleOpenNavbar"]]]]],["p-d614092e",[[769,"p-card-header",{"variant":[1],"header":[1],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"divider":[4]}]]],["p-7abc21d8",[[774,"p-navigation-item",{"icon":[1],"active":[4],"loading":[4],"as":[1],"counter":[8],"href":[1],"target":[1],"class":[1],"applyFullWidth":[4,"apply-full-width"]}]]],["p-f5cacfd0",[[769,"p-accordion",{"variant":[1],"header":[1],"open":[4],"closeable":[4],"openable":[4]}]]],["p-45ce6a54",[[513,"p-cropper",{"value":[1],"returnType":[1,"return-type"],"_loaded":[32],"_currentScale":[32]},[[9,"resize","onResize"]]]]],["p-e6669599",[[769,"p-dropzone",{"icon":[1],"showIcon":[4,"show-icon"],"acceptGroup":[1,"accept-group"],"fileId":[1,"file-id"],"loading":[4],"allowMultiple":[4,"allow-multiple"],"uploaded":[4],"_isOver":[32]},[[1,"drop","onDrop"],[1,"dragover","onDragOver"],[1,"dragleave","onDragLeave"]]]]],["p-d43e5a94",[[769,"p-stepper",{"steps":[1],"activeStep":[2,"active-step"],"enableAutoStatus":[4,"enable-auto-status"],"direction":[1],"align":[1],"contentPosition":[1,"content-position"],"_generatedOnce":[32],"_loaded":[32]},null,{"align":[{"_onAlignChange":0}],"direction":[{"_onDirectionChange":0}],"activeStep":[{"_onActiveStepChange":0}]}]]],["p-221357a9",[[769,"p-info-panel",{"variant":[1],"header":[1],"content":[1],"closeable":[4]}]]],["p-2e8e4b6c",[[769,"p-label",{"variant":[513],"iconOnly":[516,"icon-only"],"icon":[513],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"keepMobileContent":[516,"keep-mobile-content"]}]]],["p-31167a12",[[769,"p-listing",{"_generatedOnce":[32]}]]],["p-d1cb90b9",[[769,"p-listing-item",{"icon":[1]}]]],["p-9c29695a",[[772,"p-navigation-section",{"header":[1]}]]],["p-06e05b91",[[257,"p-tab-container"]]],["p-fcff315d",[[769,"p-toast",{"variant":[1],"header":[1],"content":[1],"enableAction":[4,"enable-action"],"actionIcon":[1,"action-icon"],"actionIconFlip":[1,"action-icon-flip"],"actionIconRotate":[2,"action-icon-rotate"]}]]],["p-bdda8043",[[772,"p-avatar-group",{"extra":[2]}]]],["p-e2917e71",[[769,"p-button-group",{"size":[1]},[[0,"slotchange","slotchange"]]]]],["p-b8f7c55a",[[257,"p-card-body"]]],["p-50c4d56e",[[769,"p-card-container",{"variant":[1],"bgClass":[1,"bg-class"],"active":[4],"hoverable":[4],"shadow":[4],"border":[4]}]]],["p-fea58ded",[[769,"p-content-slider",{"hideMobileIndicator":[4,"hide-mobile-indicator"],"disableDrag":[4,"disable-drag"],"disableAutoCenter":[4,"disable-auto-center"],"disableIndicatorClick":[4,"disable-indicator-click"],"_visibleIndex":[32],"_outerHeight":[32],"_totalWidth":[32],"_dragging":[32]},[[9,"mouseup","mouseUpHandler"],[9,"touchend","mouseUpHandler"],[9,"resize","resizeHandler"]]]]],["p-ff8efea6",[[513,"p-iban-icon",{"iban":[513],"variant":[513]}]]],["p-3bc3a649",[[769,"p-layout",{"variant":[1]}]]],["p-e405fba1",[[836,"p-radio",{"value":[1],"disabled":[516],"required":[516],"id":[513],"name":[513],"checked":[516],"_nonce":[32]}]]],["p-3b2b195d",[[769,"p-tab-item",{"active":[4]}]]],["p-79657959",[[512,"p-table-column",{"path":[1537],"variant":[1537],"name":[1537],"flex":[1540],"useSlot":[1540,"use-slot"],"hasCheckbox":[1540,"has-checkbox"],"align":[1537],"headerAlign":[1537,"header-align"],"sticky":[1544],"parsedSizes":[1040],"sizes":[1032]}]]],["p-a65cd6ad",[[512,"p-table-extra-header",{"name":[1537],"sticky":[1544],"useSlot":[1540,"use-slot"],"align":[1537],"parsedSizes":[1040],"sizes":[1032]}]]],["p-2cefa6ba",[[512,"p-table-row-action",{"type":[1537],"icon":[1],"iconOnly":[4,"icon-only"],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"label":[1],"action":[16],"disabled":[4],"loading":[4],"showFunction":[16]}]]],["p-44cee1cb",[[769,"p-toast-container",{"placement":[1]}]]],["p-dca31554",[[836,"p-toggle",{"checked":[4],"disabled":[516],"required":[516],"id":[513],"name":[513],"_nonce":[32]}]]],["p-2e47c533",[[513,"p-calendar",{"variant":[1],"value":[1],"preselectToday":[4,"preselect-today"],"disabledDates":[1,"disabled-dates"],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"disableWeekends":[4,"disable-weekends"],"enableToday":[4,"enable-today"],"todayText":[1,"today-text"],"mode":[1],"_view":[32],"_viewDate":[32],"_value":[32],"_minDate":[32],"_maxDate":[32],"_disabledDates":[32],"_enableToday":[32]},null,{"value":[{"_parseValue":0}],"minDate":[{"_parseMinDate":0}],"maxDate":[{"_parseMaxDate":0}],"disabledDates":[{"_parseDisabledDates":0}],"mode":[{"_modeChange":0}]}]]],["p-3203bd08",[[513,"p-range",{"min":[2],"max":[2],"step":[2],"value":[2]}]]],["p-835737f1",[[512,"p-avatar",{"variant":[1],"size":[513],"defaultImage":[1,"default-image"],"src":[1],"letters":[1],"_src":[32],"_failed":[32]},null,{"src":[{"onSrchChange":0}]}]]],["p-91dcf7d0",[[1,"p-listing-line"]]],["p-fedaa9ef",[[257,"p-navigation-title"]]],["p-b6809b6f",[[772,"p-floating-menu-item",{"hover":[4],"disabled":[4],"loading":[4],"icon":[1],"iconPosition":[1,"icon-position"],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]}]]],["p-507261fa",[[769,"p-stepper-item",{"number":[2],"direction":[1],"align":[1],"contentPosition":[1,"content-position"],"finished":[4],"active":[4]}],[513,"p-stepper-line",{"active":[516],"direction":[513]}]]],["p-14df360e",[[512,"p-illustration",{"variant":[1]}]]],["p-f3cbc433",[[769,"p-drawer-header",{"showClose":[4,"show-close"]}],[257,"p-drawer-body"],[769,"p-drawer-container",{"closing":[4]}]]],["p-21af7426",[[769,"p-backdrop",{"variant":[1],"applyBlur":[4,"apply-blur"],"closing":[4],"scrollLock":[4,"scroll-lock"],"class":[1]},[[2,"click","handleClick"]]]]],["p-832c13bc",[[512,"p-smile",{"variant":[1]}]]],["p-ad2650e8",[[769,"p-modal-header",{"showClose":[4,"show-close"]}],[257,"p-modal-footer"],[769,"p-modal-body",{"roundedBottom":[4,"rounded-bottom"],"roundedTop":[4,"rounded-top"]}],[769,"p-modal-container",{"size":[1],"closing":[4]}]]],["p-b48c0217",[[769,"p-segment-item",{"variant":[1],"active":[4],"iconOnly":[4,"icon-only"],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]}],[257,"p-segment-container"],[257,"p-badge"]]],["p-655fda1a",[[836,"p-checkbox",{"checked":[4],"indeterminate":[4],"disabled":[516],"required":[516],"id":[513],"name":[513],"_nonce":[32]}],[769,"p-dropdown",{"variant":[1],"placement":[513],"offset":[2],"strategy":[1],"show":[4],"applyMaxWidth":[4,"apply-max-width"],"applyFullWidth":[4,"apply-full-width"],"allowOverflow":[4,"allow-overflow"],"scrollable":[8],"insideClick":[4,"inside-click"],"disableTriggerClick":[4,"disable-trigger-click"],"manual":[4],"applyChevron":[4,"apply-chevron"],"manualChevron":[4,"manual-chevron"],"chevronPosition":[1,"chevron-position"],"chevronDirection":[1,"chevron-direction"],"containerClass":[1,"container-class"],"isDatepicker":[4,"is-datepicker"]},[[6,"click","documentClickHandler"]],{"show":[{"onShowChange":0}]}],[769,"p-dropdown-menu-container",{"variant":[1],"maxWidth":[4,"max-width"],"class":[1],"fullWidth":[4,"full-width"],"allowOverflow":[4,"allow-overflow"],"scrollable":[8]}]]],["p-9b28fc94",[[769,"p-pagination-pages-item",{"variant":[1],"active":[4],"hover":[4],"disabled":[4]}],[769,"p-dropdown-menu-item",{"active":[4],"checkbox":[4],"variant":[1],"enableHover":[4,"enable-hover"],"enableTextWrap":[4,"enable-text-wrap"],"disabled":[4],"icon":[1],"iconWave":[4,"icon-wave"],"useContainer":[4,"use-container"],"autoHeight":[4,"auto-height"]}]]],["p-e86238e2",[[769,"p-divider",{"variant":[513],"alignContent":[513,"align-content"]}]]],["p-938b6c09",[[769,"p-tooltip",{"variant":[1],"content":[1],"placement":[1],"offset":[2],"strategy":[1],"enableUserInput":[4,"enable-user-input"],"show":[4],"canManuallyClose":[4,"can-manually-close"]},[[2,"click","clickHandler"],[6,"click","documentClickHandler"],[1,"mouseenter","mouseEnterHandler"],[0,"focus","mouseEnterHandler"],[1,"mouseleave","mouseLeaveHandler"],[0,"blur","mouseLeaveHandler"]],{"show":[{"onShowChange":0}],"content":[{"onContentChange":0}]}]]],["p-4060ee8b",[[833,"p-field",{"align":[1],"variant":[1],"id":[1],"size":[1],"type":[1],"properties":[8],"prefix":[1],"suffix":[1],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"iconPosition":[1,"icon-position"],"value":[8],"label":[1],"loading":[4],"enablePasswordEye":[4,"enable-password-eye"],"placeholder":[1],"helper":[1],"required":[516],"showOptional":[516,"show-optional"],"showAddOnEmpty":[516,"show-add-on-empty"],"addText":[513,"add-text"],"autofocus":[516],"error":[513],"autoShowError":[516,"auto-show-error"],"errorPlacement":[1,"error-placement"],"disabled":[516],"focused":[516],"forceShowTooltip":[516,"force-show-tooltip"],"selectAllOnFocus":[516,"select-all-on-focus"],"focusMethod":[1,"focus-method"],"optionalTemplate":[16],"_focused":[32],"_nonce":[32],"_type":[32]},[[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[2,"keyup","handleKeyup"],[2,"keydown","handleKeydown"]],{"value":[{"watchvalue":0}]}],[769,"p-field-container",{"id":[1],"align":[1],"label":[1],"loading":[4],"loadingSize":[1,"loading-size"],"variant":[1],"helper":[1],"required":[516],"showOptional":[516,"show-optional"],"error":[513],"errorPlacement":[1,"error-placement"],"forceShowTooltip":[516,"force-show-tooltip"],"optionalTemplate":[16],"_locales":[32]},[[16,"localeChanged","_setLocales"]]],[769,"p-helper",{"strategy":[1],"placement":[1]}]]],["p-54b0790e",[[513,"p-pagination",{"hideOnSinglePage":[4,"hide-on-single-page"],"enablePaginationSize":[4,"enable-pagination-size"],"enablePaginationPages":[4,"enable-pagination-pages"],"page":[1538],"total":[2],"pageSize":[2,"page-size"],"pageSizeOptions":[16],"_hasPaginationPages":[32]}],[513,"p-pagination-pages",{"page":[1538],"dropdownPageTemplate":[16],"pageSize":[2,"page-size"],"hideOnSinglePage":[4,"hide-on-single-page"],"total":[2],"_showDropdown":[32],"_dropdowns":[32],"_locales":[32]},[[16,"localeChanged","_setLocales"],[6,"click","documentClickHandler"]],{"page":[{"pageChangeHandler":0}],"pageSize":[{"pageChangeHandler":0}],"total":[{"pageChangeHandler":0}]}],[769,"p-pagination-size",{"size":[1538],"sizeOptions":[16],"itemTemplate":[16],"hidden":[4],"dropdownIsOpen":[32],"_locales":[32]},[[16,"localeChanged","_setLocales"]]]]],["p-b966039d",[[513,"p-table-footer",{"enablePaginationSize":[4,"enable-pagination-size"],"enablePaginationPages":[4,"enable-pagination-pages"],"loading":[4],"page":[1538],"total":[2],"pageSize":[2,"page-size"],"pageSizeOptions":[16],"tableHeaderHasAction":[4,"table-header-has-action"],"hideOnSinglePage":[4,"hide-on-single-page"],"_isPinned":[32],"_hasPaginationPages":[32]},[[9,"scroll","onScroll"]]],[769,"p-table-header",{"quickFilters":[1,"quick-filters"],"activeQuickFilterIdentifier":[1,"active-quick-filter-identifier"],"hideQuickFiltersOnMobile":[4,"hide-quick-filters-on-mobile"],"loading":[4],"enableSearch":[4,"enable-search"],"itemsSelectedAmount":[2,"items-selected-amount"],"query":[1025],"enableFilter":[4,"enable-filter"],"enableExport":[4,"enable-export"],"enableFilterDesktop":[4,"enable-filter-desktop"],"selectedFiltersAmount":[2,"selected-filters-amount"],"filterButtonTemplate":[16],"enableAction":[4,"enable-action"],"actionLoading":[4,"action-loading"],"actionIcon":[1,"action-icon"],"actionText":[1,"action-text"],"canUseAction":[1028,"can-use-action"],"actionButtonTemplate":[16],"_locales":[32]},[[16,"localeChanged","_setLocales"]]],[769,"p-empty-state",{"illustration":[1],"header":[1],"content":[1],"enableAction":[4,"enable-action"],"actionText":[1,"action-text"],"actionVariant":[1,"action-variant"],"actionIcon":[1,"action-icon"],"actionIconPosition":[1,"action-icon-position"],"actionLoading":[4,"action-loading"]}],[769,"p-floating-menu-container",{"usedInTable":[4,"used-in-table"],"enableAmountSelected":[4,"enable-amount-selected"],"amount":[2],"enableClose":[4,"enable-close"],"amountSelectedTemplate":[16],"_locales":[32]},[[16,"localeChanged","_setLocales"]]],[772,"p-table-cell",{"variant":[1],"index":[2],"rowIndex":[2,"row-index"],"definition":[8],"item":[8],"value":[8],"checkbox":[8],"checkboxOffset":[4,"checkbox-offset"],"template":[16]}],[769,"p-table-row",{"variant":[1],"enableHover":[4,"enable-hover"],"checked":[4],"isLast":[4,"is-last"]}],[260,"p-table-container"],[769,"p-table-row-actions-container",{"checked":[4]}]]]]'),e))));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,a as t,d as r,h as i}from"./p-yFtRjnrU.js";import{c as o}from"./p-CBWjHURv.js";import{T as s}from"./p-CSySY6aC.js";import{c as a}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const d=o(["flex w-full flex-col items-center gap-2","rounded-lg","border","p-8"],{variants:{uploaded:{false:"border-dashed",true:"border-off-white-700"},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"}]}),c=class{constructor(r){e(this,r),this.upload=t(this,"upload",3)}icon="file-export";showIcon=!0;acceptGroup="any";fileId;loading=!1;allowMultiple=!0;uploaded=!1;upload;get _el(){return r(this)}_isOver=!1;_fileRef;_filesToProcess=0;_results=[];_documentBlocked=!1;_preventDefault=e=>e.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 e=this._el.innerHTML?.length>0;return i(s,{key:"850603b4fb37087fd8bd7db5f37d9fcb17687fd2"},i("div",{key:"594badd15df513690f388b021993694ad710e5c6",class:a(d({isOver:this._isOver,uploaded:this.uploaded}),{}),onClick:()=>this._uploadClick()},!this.loading&&this.showIcon&&i("p-icon",{key:"10d41c9cd21bcba962c186ed04f48c1abf9c2073",class:a({"text-storm-300":!this._isOver,"text-indigo-900":this._isOver}),variant:this.icon}),this.loading&&i("p-loader",{key:"1c2b811db6711ef9bc4ba54d380f4aff7870ea0b"}),e&&i("slot",{key:"2e1ab2124bef07b476a23bfefed446e4ac17c0d2"}),this.uploaded&&!this._isOver&&i("div",{key:"e277e12954fd53100ec6202002c1b495d42ddb8b",class:"flex items-center gap-2 text-positive-green-800"},i("p-icon",{key:"68dc24d68232b98aaed2d1a5b1bc38888c7efffb",variant:"check-circle"}),i("span",{key:"f8cc3ffc3201efb23cd90d30eb7921e5c597db62",class:"font-medium"},"Toegevoegd")),(!this.uploaded||this._isOver)&&i("div",{key:"be0dfd5990877b7e914580f3d6c193d48402ab2a",class:a("flex flex-col text-center",{"opacity-50":this._isOver})},i("span",{key:"f406b49e7b8ec6b4fb01fff011523147714da170",class:"font-medium"},"Sleep je bestand hierheen"),i("span",{key:"7656b9d337a582f2e69cf555a4f5c8eaa70e6f51",class:"font-normal"},"of klik om te uploaden"))),i("input",{key:"09b2471f370d6140db3bd9359e7c4c7a9237b9dc",accept:"any"==this.acceptGroup?"":"image/*",class:"hidden",multiple:!0===this.allowMultiple||void 0,ref:e=>this._fileRef=e,type:"file",onChange:e=>this._onFileChange(e)}))}onDrop(e){const t=this._getFiles(e);t?.length&&this._processFiles(t)}onDragOver(e){this._isFilesEvent(e)&&(this._isOver=!0)}onDragLeave(){this._isOver=!1}_isFilesEvent(e){return!!e.dataTransfer&&0!==[...e.dataTransfer.items].filter((e=>"file"===e.kind)).length}_getFiles(e){if(!this._isFilesEvent(e))return;const t=e.dataTransfer?.files??[];return 0!==t.length?[...t]:void 0}_uploadClick(){this._fileRef&&this._fileRef.click()}_onFileChange(e){const t=e.target;if(!t.files)return;const r=[...t.files];r?.length&&this._processFiles(r)}_processFiles(e){this._results=[],this.allowMultiple||(e=[e[0]]),this._filesToProcess=e.length;for(const t of e)this._processFile(t)}_processFile(e){this.loading=!0;const t=new FileReader;t.addEventListener("load",(t=>this._onLoad(e,t?.currentTarget?.result))),t.readAsDataURL(e)}_onLoad(e,t){if(this._results.push({file:e,result:t}),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}.flex{display:flex}.hidden{display:none}.w-full{width:100%}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-2{gap:.5rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.border-white-800{--tw-border-opacity:1;border-color:rgb(228 227 227/var(--tw-border-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-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-8{padding:2rem}.text-center{text-align:center}.font-medium{font-weight:500}.font-normal{font-weight:400}.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))}.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)}";export{c as p_dropzone}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e,p as t,H as a,c as r,h as o}from"./p-CySg37XO.js";import{c as i}from"./p-CBWjHURv.js";import{T as s}from"./p-Au2WuEGF.js";import{d}from"./p-CaJvFmB-.js";import{d as c}from"./p-DEFO0n7t.js";import{d as n}from"./p-D8faiybE.js";import{d as l}from"./p-BCWtvvOe.js";const h=i(["relative z-[1] min-h-18 w-full flex-col overflow-hidden rounded-t-2xl","\n bg-white\n dark:bg-hurricane-600\n ","inline-flex"]),m=i(["flex justify-between","min-h-12 w-full p-4 pb-0"]),f=i(["flex-1 text-center","\n font-ambit text-2xl font-bold text-storm-500\n dark:text-white\n "]),b=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.close=r(this,"close",3)}showClose=!0;close;render(){return o(s,{key:"68ec14e2f8d7fe78e6f4121f26b500e4f6806f2f"},o("div",{key:"bfd65e98e1e370ae5d1fe1204b0f35fa6ea5c527",class:h()},o("div",{key:"5216d5ff046ec5d9308960ca6536221806070893",class:m()},this.showClose&&o("p-button",{key:"068ff9a02ffe20649644d45a4883322bc213ed4f",icon:"negative",iconOnly:!0,variant:"secondary",onClick:e=>this.close.emit(e)}),o("div",{key:"ce6808112de2a48b49b4632ee3b98cb80525aebf",class:f()},o("slot",{key:"66c6afa30f02a8bb7b10da5264470cc5e92c0777"})),this.showClose&&o("div",{key:"947d1919641618b24dd528cb1d1f00974cc0252e",class:"size-8"})),o("p-smile",{key:"3809052da27e1deb595d5ebe0357fa03d3c610f3",class:"dark:text-hurricane-400"})))}static get style(){return"*{box-sizing:border-box}.static{position:static}.relative{position:relative}.z-\\[1\\]{z-index:1}.flex{display:flex}.inline-flex{display:inline-flex}.size-8{height:2rem;width:2rem}.min-h-12{min-height:3rem}.min-h-18{min-height:4.5rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.justify-between{justify-content:space-between}.overflow-hidden{overflow:hidden}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-4{padding:1rem}.pb-0{padding-bottom:0}.text-center{text-align:center}.font-ambit{font-family:Ambit,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.font-bold{font-weight:700}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.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-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\: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\\: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-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/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))}"}},[769,"p-drawer-header",{showClose:[4,"show-close"]}]);function p(){"undefined"!=typeof customElements&&["p-drawer-header","p-button","p-icon","p-loader","p-smile"].forEach((t=>{switch(t){case"p-drawer-header":customElements.get(e(t))||customElements.define(e(t),b);break;case"p-button":customElements.get(e(t))||d();break;case"p-icon":customElements.get(e(t))||c();break;case"p-loader":customElements.get(e(t))||n();break;case"p-smile":customElements.get(e(t))||l()}}))}p();export{b as D,p as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,a as t,d as r,h as i}from"./p-yFtRjnrU.js";import{c as o}from"./p-CBWjHURv.js";import{T as s}from"./p-CSySY6aC.js";import{c as a}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const d=o(["flex w-full flex-col items-center gap-2","rounded-lg","border","p-8"],{variants:{uploaded:{false:"border-dashed",true:"border-off-white-700"},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"}]}),c=class{constructor(r){e(this,r),this.upload=t(this,"upload",3)}icon="file-export";showIcon=!0;acceptGroup="any";fileId;loading=!1;allowMultiple=!0;uploaded=!1;upload;get _el(){return r(this)}_isOver=!1;_fileRef;_filesToProcess=0;_results=[];_documentBlocked=!1;_preventDefault=e=>e.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 e=this._el.innerHTML?.length>0;return i(s,{key:"850603b4fb37087fd8bd7db5f37d9fcb17687fd2"},i("div",{key:"594badd15df513690f388b021993694ad710e5c6",class:a(d({isOver:this._isOver,uploaded:this.uploaded}),{}),onClick:()=>this._uploadClick()},!this.loading&&this.showIcon&&i("p-icon",{key:"10d41c9cd21bcba962c186ed04f48c1abf9c2073",class:a({"text-storm-300":!this._isOver,"text-indigo-900":this._isOver}),variant:this.icon}),this.loading&&i("p-loader",{key:"1c2b811db6711ef9bc4ba54d380f4aff7870ea0b"}),e&&i("slot",{key:"2e1ab2124bef07b476a23bfefed446e4ac17c0d2"}),this.uploaded&&!this._isOver&&i("div",{key:"e277e12954fd53100ec6202002c1b495d42ddb8b",class:"flex items-center gap-2 text-positive-green-800"},i("p-icon",{key:"68dc24d68232b98aaed2d1a5b1bc38888c7efffb",variant:"check-circle"}),i("span",{key:"f8cc3ffc3201efb23cd90d30eb7921e5c597db62",class:"font-medium"},"Toegevoegd")),(!this.uploaded||this._isOver)&&i("div",{key:"be0dfd5990877b7e914580f3d6c193d48402ab2a",class:a("flex flex-col text-center",{"opacity-50":this._isOver})},i("span",{key:"f406b49e7b8ec6b4fb01fff011523147714da170",class:"font-medium"},"Sleep je bestand hierheen"),i("span",{key:"7656b9d337a582f2e69cf555a4f5c8eaa70e6f51",class:"font-normal"},"of klik om te uploaden"))),i("input",{key:"09b2471f370d6140db3bd9359e7c4c7a9237b9dc",accept:"any"==this.acceptGroup?"":"image/*",class:"hidden",multiple:!0===this.allowMultiple||void 0,ref:e=>this._fileRef=e,type:"file",onChange:e=>this._onFileChange(e)}))}onDrop(e){const t=this._getFiles(e);t?.length&&this._processFiles(t)}onDragOver(e){this._isFilesEvent(e)&&(this._isOver=!0)}onDragLeave(){this._isOver=!1}_isFilesEvent(e){return!!e.dataTransfer&&0!==[...e.dataTransfer.items].filter((e=>"file"===e.kind)).length}_getFiles(e){if(!this._isFilesEvent(e))return;const t=e.dataTransfer?.files??[];return 0!==t.length?[...t]:void 0}_uploadClick(){this._fileRef&&this._fileRef.click()}_onFileChange(e){const t=e.target;if(!t.files)return;const r=[...t.files];r?.length&&this._processFiles(r)}_processFiles(e){this._results=[],this.allowMultiple||(e=[e[0]]),this._filesToProcess=e.length;for(const t of e)this._processFile(t)}_processFile(e){this.loading=!0;const t=new FileReader;t.addEventListener("load",(t=>this._onLoad(e,t?.currentTarget?.result))),t.readAsDataURL(e)}_onLoad(e,t){if(this._results.push({file:e,result:t}),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}.flex{display:flex}.hidden{display:none}.w-full{width:100%}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-2{gap:.5rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.border-white-800{--tw-border-opacity:1;border-color:rgb(228 227 227/var(--tw-border-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-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-8{padding:2rem}.text-center{text-align:center}.font-medium{font-weight:500}.font-normal{font-weight:400}.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))}.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)}";export{c as p_dropzone}
|