@paperless/core 3.17.2 → 3.18.0
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/time/history.svg +12 -0
- package/dist/build/index.esm.js +1 -1
- package/dist/build/{p-c6008b10.js → p-112e3ccc.js} +1 -1
- package/dist/{components/p-C8Ju8eG_.js → build/p-C8RpJKnN.js} +1 -1
- package/dist/build/p-CzUyWlXA.js +1 -0
- package/dist/build/{p-fa7c3951.entry.js → p-c0599b0e.entry.js} +1 -1
- package/dist/{paperless/p-386c86f6.entry.js → build/p-cfb68485.entry.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{icons-DIczdKrP.js → icons-DOXVTo-k.js} +16 -0
- package/dist/cjs/index.cjs.js +8 -2
- package/dist/cjs/is-platform-byJrxYJO.js +44 -0
- package/dist/cjs/p-button_3.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +9 -9
- package/dist/collection/assets/icons/time/history.svg +12 -0
- package/dist/collection/components/atoms/card/header/card-header.component.js +1 -1
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +1 -1
- package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +1 -1
- package/dist/collection/components/atoms/icon/icon.component.js +1 -1
- package/dist/collection/components/atoms/listing/item/listing-item.component.js +1 -1
- package/dist/collection/components/atoms/segment/item/segment-item.component.js +1 -1
- package/dist/collection/components/helpers/table/row-action/table-row-action.component.js +1 -1
- package/dist/collection/components/molecules/accordion/accordion.component.js +1 -1
- package/dist/collection/components/molecules/button/button.component.js +1 -1
- package/dist/collection/components/molecules/dropzone/dropzone.component.js +1 -1
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +1 -1
- package/dist/collection/components/molecules/field/field/field.component.js +1 -1
- package/dist/collection/components/molecules/label/label.component.js +1 -1
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +1 -1
- package/dist/collection/components/molecules/select/select.component.js +2 -2
- package/dist/collection/components/molecules/table/header/table-header.component.js +1 -1
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/table/table.component.js +10 -10
- package/dist/collection/utils/icons.js +3 -0
- package/dist/collection/utils/is-platform.js +34 -10
- package/dist/components/index.js +1 -1
- package/dist/components/{p-wYHaAjO_.js → p-B4-tGTJs.js} +1 -1
- package/dist/components/{p-B91CxVcz.js → p-BAQuP-An.js} +1 -1
- package/dist/components/{p-B6hIbVwt.js → p-BFvoC7BA.js} +1 -1
- package/dist/components/{p-SUrtpFuE.js → p-BRDvNH4S.js} +1 -1
- package/dist/components/{p-C0cLQxQE.js → p-BZNy3k2j.js} +1 -1
- package/dist/components/{p-Dv2ILejF.js → p-BdzBKuLb.js} +1 -1
- package/dist/components/{p-xkXCC7GI.js → p-Bg73A-l5.js} +1 -1
- package/dist/components/{p-CTI55iY5.js → p-C3fzR817.js} +1 -1
- package/dist/{paperless/p-C8Ju8eG_.js → components/p-C8RpJKnN.js} +1 -1
- package/dist/components/{p-DM-VvZXT.js → p-CYJ2s8gf.js} +1 -1
- package/dist/components/{p-D6g8cYWI.js → p-CdX4ibSM.js} +1 -1
- package/dist/components/p-CzUyWlXA.js +1 -0
- package/dist/components/{p-CRBPo2To.js → p-D34oUQRc.js} +1 -1
- package/dist/components/{p-Dp4CjRib.js → p-DHzp47zt.js} +1 -1
- package/dist/components/{p-CjhbgGH8.js → p-DOjiMWKc.js} +1 -1
- package/dist/components/{p-Bk5wUwrW.js → p-DY2oKnxw.js} +1 -1
- package/dist/components/{p-COuYu8I6.js → p-D_ZHRLtg.js} +1 -1
- package/dist/components/{p-BEo__1-X.js → p-DlYs-VL_.js} +1 -1
- package/dist/components/{p-Dkr0Ta5m.js → p-PAx1R45S.js} +1 -1
- package/dist/components/{p-BOJwTddb.js → p-Sl3w6Zuw.js} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/{p-BSCgVJQ9.js → p-b-xaFyhe.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 +2 -2
- 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-CQ6JEZg6.js → p-p7QZcgoc.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/components/{p-7-twKt34.js → p-wQxTl8yW.js} +1 -1
- package/dist/esm/{icons-C8Ju8eG_.js → icons-C8RpJKnN.js} +16 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/is-platform-CzUyWlXA.js +36 -0
- package/dist/esm/p-button_3.entry.js +1 -1
- package/dist/esm/p-table.entry.js +9 -9
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/{build/p-C8Ju8eG_.js → paperless/p-C8RpJKnN.js} +1 -1
- package/dist/paperless/p-CzUyWlXA.js +1 -0
- package/dist/paperless/{p-fa7c3951.entry.js → p-c0599b0e.entry.js} +1 -1
- package/dist/{build/p-386c86f6.entry.js → paperless/p-cfb68485.entry.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/utils/icons.d.ts +2 -0
- package/dist/types/utils/is-platform.d.ts +6 -0
- package/hydrate/index.js +52 -18
- package/hydrate/index.mjs +52 -18
- package/package.json +1 -1
- package/dist/build/p-17aZBUHj.js +0 -1
- package/dist/cjs/is-platform-DrUncDjO.js +0 -14
- package/dist/components/p-17aZBUHj.js +0 -1
- package/dist/esm/is-platform-17aZBUHj.js +0 -12
- package/dist/paperless/p-17aZBUHj.js +0 -1
|
@@ -130,6 +130,7 @@ export declare const categorized: {
|
|
|
130
130
|
'calendar-free': string;
|
|
131
131
|
'calendar-not-free': string;
|
|
132
132
|
clock: string;
|
|
133
|
+
history: string;
|
|
133
134
|
};
|
|
134
135
|
users: {
|
|
135
136
|
'address-book': string;
|
|
@@ -263,6 +264,7 @@ export declare const icons: {
|
|
|
263
264
|
'calendar-free': string;
|
|
264
265
|
'calendar-not-free': string;
|
|
265
266
|
clock: string;
|
|
267
|
+
history: string;
|
|
266
268
|
'address-book': string;
|
|
267
269
|
female: string;
|
|
268
270
|
id: string;
|
|
@@ -1 +1,7 @@
|
|
|
1
|
+
export declare const getOS: () => "MacOS" | "iOS" | "Windows" | "Android" | "Linux" | "Unkown";
|
|
2
|
+
export declare const isApple: () => boolean;
|
|
3
|
+
export declare const isMac: () => boolean;
|
|
1
4
|
export declare const isIOS: () => boolean;
|
|
5
|
+
export declare const isWindows: () => boolean;
|
|
6
|
+
export declare const isLinux: () => boolean;
|
|
7
|
+
export declare const isAndroid: () => boolean;
|
package/hydrate/index.js
CHANGED
|
@@ -8246,6 +8246,20 @@ var clock$1 = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em"
|
|
|
8246
8246
|
</svg>
|
|
8247
8247
|
`;
|
|
8248
8248
|
|
|
8249
|
+
var history = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8250
|
+
<g clip-path="url(#clip0_2753_40677)">
|
|
8251
|
+
<path d="M8 5V8L10.5 9.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8252
|
+
<path d="M4.5 6.5H2V4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8253
|
+
<path d="M4.225 12.0002C5.01123 12.7421 5.99865 13.2359 7.06389 13.4198C8.12914 13.6037 9.22496 13.4697 10.2144 13.0344C11.2039 12.5991 12.0432 11.8818 12.6274 10.9723C13.2116 10.0627 13.5148 9.00116 13.4991 7.92028C13.4834 6.83939 13.1496 5.78708 12.5393 4.89484C11.929 4.0026 11.0693 3.30999 10.0676 2.90356C9.06588 2.49712 7.96664 2.39487 6.90718 2.6096C5.84771 2.82432 4.87502 3.34649 4.11062 4.11087C3.375 4.85587 2.7675 5.55837 2 6.50024" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8254
|
+
</g>
|
|
8255
|
+
<defs>
|
|
8256
|
+
<clipPath id="clip0_2753_40677">
|
|
8257
|
+
<rect width="16" height="16" fill="white"/>
|
|
8258
|
+
</clipPath>
|
|
8259
|
+
</defs>
|
|
8260
|
+
</svg>
|
|
8261
|
+
`;
|
|
8262
|
+
|
|
8249
8263
|
var addressBook = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8250
8264
|
<g clip-path="url(#clip0_4599_3969)">
|
|
8251
8265
|
<path d="M8.5 9C9.60457 9 10.5 8.10457 10.5 7C10.5 5.89543 9.60457 5 8.5 5C7.39543 5 6.5 5.89543 6.5 7C6.5 8.10457 7.39543 9 8.5 9Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -8464,6 +8478,7 @@ const icons = {
|
|
|
8464
8478
|
'calendar-free': calendarFree,
|
|
8465
8479
|
'calendar-not-free': calendarNotFree,
|
|
8466
8480
|
clock: clock$1,
|
|
8481
|
+
history,
|
|
8467
8482
|
//users
|
|
8468
8483
|
'address-book': addressBook,
|
|
8469
8484
|
female,
|
|
@@ -8747,16 +8762,35 @@ const isMobileBrowser = () => {
|
|
|
8747
8762
|
return false;
|
|
8748
8763
|
};
|
|
8749
8764
|
|
|
8750
|
-
const
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
'
|
|
8756
|
-
'
|
|
8757
|
-
]
|
|
8758
|
-
|
|
8759
|
-
|
|
8765
|
+
const getOS = () => {
|
|
8766
|
+
const userAgent = navigator.userAgent;
|
|
8767
|
+
const platform =
|
|
8768
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8769
|
+
navigator?.userAgentData?.platform || navigator.platform;
|
|
8770
|
+
const macosPlatforms = ['macintosh', 'macintel', 'macppc', 'mac68k', 'macos'];
|
|
8771
|
+
const windowsPlatforms = ['win32', 'win64', 'windows', 'wince'];
|
|
8772
|
+
const iosPlatforms = ['iphone', 'ipad', 'ipod'];
|
|
8773
|
+
if (macosPlatforms.includes(platform.toLowerCase())) {
|
|
8774
|
+
return 'MacOS';
|
|
8775
|
+
}
|
|
8776
|
+
if (iosPlatforms.includes(platform.toLowerCase())) {
|
|
8777
|
+
return 'iOS';
|
|
8778
|
+
}
|
|
8779
|
+
if (windowsPlatforms.includes(platform.toLowerCase())) {
|
|
8780
|
+
return 'Windows';
|
|
8781
|
+
}
|
|
8782
|
+
if (/Android/.test(userAgent)) {
|
|
8783
|
+
return 'Android';
|
|
8784
|
+
}
|
|
8785
|
+
if (/Linux/.test(platform)) {
|
|
8786
|
+
return 'Linux';
|
|
8787
|
+
}
|
|
8788
|
+
return 'Unkown';
|
|
8789
|
+
};
|
|
8790
|
+
const isApple = () => {
|
|
8791
|
+
const os = getOS();
|
|
8792
|
+
return os === 'MacOS' || os === 'iOS';
|
|
8793
|
+
};
|
|
8760
8794
|
|
|
8761
8795
|
var bundleCjs = {};
|
|
8762
8796
|
|
|
@@ -100569,7 +100603,7 @@ class Table {
|
|
|
100569
100603
|
this.hasRendered.emit();
|
|
100570
100604
|
}
|
|
100571
100605
|
render() {
|
|
100572
|
-
return (hAsync(Host, { key: '
|
|
100606
|
+
return (hAsync(Host, { key: '425442ed379af6ed510015af1c215a243d14a709', class: 'z-0 flex flex-col' }, hAsync("p-table-container", { key: 'f4a76f0df1ff84f4cef210c3721e32f160df7e3b' }, this.enableHeader && (hAsync("p-table-header", { key: 'f621cdc3fce191ec8a921a1bbba6f67212fda95b', actionButtonTemplate: this.actionButtonTemplate, actionIcon: this.actionButtonIcon, actionLoading: this.actionButtonLoading, actionText: this.actionButtonText, activeQuickFilterIdentifier: this.activeQuickFilterIdentifier, canUseAction: this.actionButtonEnabled, class: 'mb-8', enableAction: this.enableAction, enableExport: this.enableExport, enableFilter: this.enableFilter, enableFilterDesktop: this.enableFilterDesktop, enableSearch: this.enableSearch, filterButtonTemplate: this.filterButtonTemplate, itemsSelectedAmount: this.selectedRows?.length, loading: this.headerLoading, query: this.query, quickFilters: this.quickFilters, selectedFiltersAmount: this.selectedFiltersAmount, onAction: () => this.action.emit(), onExport: () => this.export.emit(), onFilter: () => this.filter.emit(), onQueryChange: ({ detail }) => this.queryChange.emit(detail), onQuickFilter: ({ detail }) => this.quickFilter.emit(detail) }, this._hasCustomFilterSlot && (hAsync("slot", { key: '6ad3e112ed8d23bdf8c1ba550071b7bf6deb9fc1', name: 'custom-filter', slot: 'custom-filter' })), this._hasCustomActionsSlot && (hAsync("slot", { key: '1a5aeaa7135c9a91fb624e46bb66a281bff81735', name: 'custom-actions', slot: 'custom-actions' })))), this._getExtraHeader(), this._getHeader(), hAsync("div", { key: '02e8e776a8f52f98eac3524fac5099d3ce59a43f', class: 'flex flex-1 flex-col' }, this._getRows(), hAsync("slot", { key: '4682df30035958e2c07533eb9103d827c60e2ecf', name: 'custom-rows' })), this.enableFloatingMenu && this._enableRowSelection ? (hAsync("p-floating-menu-container", { amount: this.selectedRows?.length, amountSelectedTemplate: this.floatingMenuAmountSelectedTemplate, class: floatingMenuContainerClass({
|
|
100573
100607
|
hasFooter: this.enableFooter && !this._footerHidden,
|
|
100574
100608
|
active: !!this.selectedRows?.length,
|
|
100575
100609
|
shown: this._floatingMenuShown,
|
|
@@ -100579,7 +100613,7 @@ class Table {
|
|
|
100579
100613
|
!!a.action &&
|
|
100580
100614
|
a.type === 'single'
|
|
100581
100615
|
? a.action(this.selectedRows[0], false)
|
|
100582
|
-
: a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (hAsync("p-table-footer", { key: '
|
|
100616
|
+
: a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (hAsync("p-table-footer", { key: '28611ac3b55ea811d39a349edf7698b19b48b264', enablePaginationPages: this.enablePaginationPages, enablePaginationSize: this.enablePaginationSize, hideOnSinglePage: this.hideOnSinglePage, loading: this.footerLoading, page: this.page, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, tableHeaderHasAction: this.enableHeader &&
|
|
100583
100617
|
this.enableAction &&
|
|
100584
100618
|
this.actionButtonEnabled, total: this.total, onHiddenChange: ({ detail }) => (this._footerHidden = detail), onPageChange: ({ detail }) => this.pageChange.emit(detail), onPageSizeChange: ({ detail }) => this.pageSizeChange.emit(detail) })))));
|
|
100585
100619
|
}
|
|
@@ -100590,18 +100624,18 @@ class Table {
|
|
|
100590
100624
|
this._generateColumns();
|
|
100591
100625
|
}
|
|
100592
100626
|
keyDown({ ctrlKey, metaKey }) {
|
|
100593
|
-
const
|
|
100594
|
-
const isMeta = metaKey &&
|
|
100595
|
-
const isCtrl = ctrlKey && !
|
|
100627
|
+
const apple = isApple();
|
|
100628
|
+
const isMeta = metaKey && apple;
|
|
100629
|
+
const isCtrl = ctrlKey && !apple;
|
|
100596
100630
|
if ((!isMeta && !isCtrl) || this._ctrlDown === true) {
|
|
100597
100631
|
return;
|
|
100598
100632
|
}
|
|
100599
100633
|
this._ctrlDown = true;
|
|
100600
100634
|
}
|
|
100601
100635
|
keyUp({ code }) {
|
|
100602
|
-
const
|
|
100603
|
-
const isMeta = ['MetaLeft', 'MetaRight'].includes(code) &&
|
|
100604
|
-
const isCtrl = ['ControlLeft', 'ControlRight'].includes(code) && !
|
|
100636
|
+
const apple = isApple();
|
|
100637
|
+
const isMeta = ['MetaLeft', 'MetaRight'].includes(code) && apple;
|
|
100638
|
+
const isCtrl = ['ControlLeft', 'ControlRight'].includes(code) && !apple;
|
|
100605
100639
|
if ((!isMeta && !isCtrl) || this._ctrlDown === false) {
|
|
100606
100640
|
return;
|
|
100607
100641
|
}
|
package/hydrate/index.mjs
CHANGED
|
@@ -8244,6 +8244,20 @@ var clock$1 = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em"
|
|
|
8244
8244
|
</svg>
|
|
8245
8245
|
`;
|
|
8246
8246
|
|
|
8247
|
+
var history = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8248
|
+
<g clip-path="url(#clip0_2753_40677)">
|
|
8249
|
+
<path d="M8 5V8L10.5 9.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8250
|
+
<path d="M4.5 6.5H2V4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8251
|
+
<path d="M4.225 12.0002C5.01123 12.7421 5.99865 13.2359 7.06389 13.4198C8.12914 13.6037 9.22496 13.4697 10.2144 13.0344C11.2039 12.5991 12.0432 11.8818 12.6274 10.9723C13.2116 10.0627 13.5148 9.00116 13.4991 7.92028C13.4834 6.83939 13.1496 5.78708 12.5393 4.89484C11.929 4.0026 11.0693 3.30999 10.0676 2.90356C9.06588 2.49712 7.96664 2.39487 6.90718 2.6096C5.84771 2.82432 4.87502 3.34649 4.11062 4.11087C3.375 4.85587 2.7675 5.55837 2 6.50024" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8252
|
+
</g>
|
|
8253
|
+
<defs>
|
|
8254
|
+
<clipPath id="clip0_2753_40677">
|
|
8255
|
+
<rect width="16" height="16" fill="white"/>
|
|
8256
|
+
</clipPath>
|
|
8257
|
+
</defs>
|
|
8258
|
+
</svg>
|
|
8259
|
+
`;
|
|
8260
|
+
|
|
8247
8261
|
var addressBook = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8248
8262
|
<g clip-path="url(#clip0_4599_3969)">
|
|
8249
8263
|
<path d="M8.5 9C9.60457 9 10.5 8.10457 10.5 7C10.5 5.89543 9.60457 5 8.5 5C7.39543 5 6.5 5.89543 6.5 7C6.5 8.10457 7.39543 9 8.5 9Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -8462,6 +8476,7 @@ const icons = {
|
|
|
8462
8476
|
'calendar-free': calendarFree,
|
|
8463
8477
|
'calendar-not-free': calendarNotFree,
|
|
8464
8478
|
clock: clock$1,
|
|
8479
|
+
history,
|
|
8465
8480
|
//users
|
|
8466
8481
|
'address-book': addressBook,
|
|
8467
8482
|
female,
|
|
@@ -8745,16 +8760,35 @@ const isMobileBrowser = () => {
|
|
|
8745
8760
|
return false;
|
|
8746
8761
|
};
|
|
8747
8762
|
|
|
8748
|
-
const
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
'
|
|
8754
|
-
'
|
|
8755
|
-
]
|
|
8756
|
-
|
|
8757
|
-
|
|
8763
|
+
const getOS = () => {
|
|
8764
|
+
const userAgent = navigator.userAgent;
|
|
8765
|
+
const platform =
|
|
8766
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8767
|
+
navigator?.userAgentData?.platform || navigator.platform;
|
|
8768
|
+
const macosPlatforms = ['macintosh', 'macintel', 'macppc', 'mac68k', 'macos'];
|
|
8769
|
+
const windowsPlatforms = ['win32', 'win64', 'windows', 'wince'];
|
|
8770
|
+
const iosPlatforms = ['iphone', 'ipad', 'ipod'];
|
|
8771
|
+
if (macosPlatforms.includes(platform.toLowerCase())) {
|
|
8772
|
+
return 'MacOS';
|
|
8773
|
+
}
|
|
8774
|
+
if (iosPlatforms.includes(platform.toLowerCase())) {
|
|
8775
|
+
return 'iOS';
|
|
8776
|
+
}
|
|
8777
|
+
if (windowsPlatforms.includes(platform.toLowerCase())) {
|
|
8778
|
+
return 'Windows';
|
|
8779
|
+
}
|
|
8780
|
+
if (/Android/.test(userAgent)) {
|
|
8781
|
+
return 'Android';
|
|
8782
|
+
}
|
|
8783
|
+
if (/Linux/.test(platform)) {
|
|
8784
|
+
return 'Linux';
|
|
8785
|
+
}
|
|
8786
|
+
return 'Unkown';
|
|
8787
|
+
};
|
|
8788
|
+
const isApple = () => {
|
|
8789
|
+
const os = getOS();
|
|
8790
|
+
return os === 'MacOS' || os === 'iOS';
|
|
8791
|
+
};
|
|
8758
8792
|
|
|
8759
8793
|
var bundleCjs = {};
|
|
8760
8794
|
|
|
@@ -100567,7 +100601,7 @@ class Table {
|
|
|
100567
100601
|
this.hasRendered.emit();
|
|
100568
100602
|
}
|
|
100569
100603
|
render() {
|
|
100570
|
-
return (hAsync(Host, { key: '
|
|
100604
|
+
return (hAsync(Host, { key: '425442ed379af6ed510015af1c215a243d14a709', class: 'z-0 flex flex-col' }, hAsync("p-table-container", { key: 'f4a76f0df1ff84f4cef210c3721e32f160df7e3b' }, this.enableHeader && (hAsync("p-table-header", { key: 'f621cdc3fce191ec8a921a1bbba6f67212fda95b', actionButtonTemplate: this.actionButtonTemplate, actionIcon: this.actionButtonIcon, actionLoading: this.actionButtonLoading, actionText: this.actionButtonText, activeQuickFilterIdentifier: this.activeQuickFilterIdentifier, canUseAction: this.actionButtonEnabled, class: 'mb-8', enableAction: this.enableAction, enableExport: this.enableExport, enableFilter: this.enableFilter, enableFilterDesktop: this.enableFilterDesktop, enableSearch: this.enableSearch, filterButtonTemplate: this.filterButtonTemplate, itemsSelectedAmount: this.selectedRows?.length, loading: this.headerLoading, query: this.query, quickFilters: this.quickFilters, selectedFiltersAmount: this.selectedFiltersAmount, onAction: () => this.action.emit(), onExport: () => this.export.emit(), onFilter: () => this.filter.emit(), onQueryChange: ({ detail }) => this.queryChange.emit(detail), onQuickFilter: ({ detail }) => this.quickFilter.emit(detail) }, this._hasCustomFilterSlot && (hAsync("slot", { key: '6ad3e112ed8d23bdf8c1ba550071b7bf6deb9fc1', name: 'custom-filter', slot: 'custom-filter' })), this._hasCustomActionsSlot && (hAsync("slot", { key: '1a5aeaa7135c9a91fb624e46bb66a281bff81735', name: 'custom-actions', slot: 'custom-actions' })))), this._getExtraHeader(), this._getHeader(), hAsync("div", { key: '02e8e776a8f52f98eac3524fac5099d3ce59a43f', class: 'flex flex-1 flex-col' }, this._getRows(), hAsync("slot", { key: '4682df30035958e2c07533eb9103d827c60e2ecf', name: 'custom-rows' })), this.enableFloatingMenu && this._enableRowSelection ? (hAsync("p-floating-menu-container", { amount: this.selectedRows?.length, amountSelectedTemplate: this.floatingMenuAmountSelectedTemplate, class: floatingMenuContainerClass({
|
|
100571
100605
|
hasFooter: this.enableFooter && !this._footerHidden,
|
|
100572
100606
|
active: !!this.selectedRows?.length,
|
|
100573
100607
|
shown: this._floatingMenuShown,
|
|
@@ -100577,7 +100611,7 @@ class Table {
|
|
|
100577
100611
|
!!a.action &&
|
|
100578
100612
|
a.type === 'single'
|
|
100579
100613
|
? a.action(this.selectedRows[0], false)
|
|
100580
|
-
: a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (hAsync("p-table-footer", { key: '
|
|
100614
|
+
: a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (hAsync("p-table-footer", { key: '28611ac3b55ea811d39a349edf7698b19b48b264', enablePaginationPages: this.enablePaginationPages, enablePaginationSize: this.enablePaginationSize, hideOnSinglePage: this.hideOnSinglePage, loading: this.footerLoading, page: this.page, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, tableHeaderHasAction: this.enableHeader &&
|
|
100581
100615
|
this.enableAction &&
|
|
100582
100616
|
this.actionButtonEnabled, total: this.total, onHiddenChange: ({ detail }) => (this._footerHidden = detail), onPageChange: ({ detail }) => this.pageChange.emit(detail), onPageSizeChange: ({ detail }) => this.pageSizeChange.emit(detail) })))));
|
|
100583
100617
|
}
|
|
@@ -100588,18 +100622,18 @@ class Table {
|
|
|
100588
100622
|
this._generateColumns();
|
|
100589
100623
|
}
|
|
100590
100624
|
keyDown({ ctrlKey, metaKey }) {
|
|
100591
|
-
const
|
|
100592
|
-
const isMeta = metaKey &&
|
|
100593
|
-
const isCtrl = ctrlKey && !
|
|
100625
|
+
const apple = isApple();
|
|
100626
|
+
const isMeta = metaKey && apple;
|
|
100627
|
+
const isCtrl = ctrlKey && !apple;
|
|
100594
100628
|
if ((!isMeta && !isCtrl) || this._ctrlDown === true) {
|
|
100595
100629
|
return;
|
|
100596
100630
|
}
|
|
100597
100631
|
this._ctrlDown = true;
|
|
100598
100632
|
}
|
|
100599
100633
|
keyUp({ code }) {
|
|
100600
|
-
const
|
|
100601
|
-
const isMeta = ['MetaLeft', 'MetaRight'].includes(code) &&
|
|
100602
|
-
const isCtrl = ['ControlLeft', 'ControlRight'].includes(code) && !
|
|
100634
|
+
const apple = isApple();
|
|
100635
|
+
const isMeta = ['MetaLeft', 'MetaRight'].includes(code) && apple;
|
|
100636
|
+
const isCtrl = ['ControlLeft', 'ControlRight'].includes(code) && !apple;
|
|
100603
100637
|
if ((!isMeta && !isCtrl) || this._ctrlDown === false) {
|
|
100604
100638
|
return;
|
|
100605
100639
|
}
|
package/package.json
CHANGED
package/dist/build/p-17aZBUHj.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const o=()=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document;export{o as i}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const isIOS = () => [
|
|
4
|
-
'iPad Simulator',
|
|
5
|
-
'iPhone Simulator',
|
|
6
|
-
'iPod Simulator',
|
|
7
|
-
'iPad',
|
|
8
|
-
'iPhone',
|
|
9
|
-
'iPod',
|
|
10
|
-
].includes(navigator.platform) ||
|
|
11
|
-
// iPad on iOS 13 detection
|
|
12
|
-
(navigator.userAgent.includes('Mac') && 'ontouchend' in document);
|
|
13
|
-
|
|
14
|
-
exports.isIOS = isIOS;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const o=()=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document;export{o as i}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const isIOS = () => [
|
|
2
|
-
'iPad Simulator',
|
|
3
|
-
'iPhone Simulator',
|
|
4
|
-
'iPod Simulator',
|
|
5
|
-
'iPad',
|
|
6
|
-
'iPhone',
|
|
7
|
-
'iPod',
|
|
8
|
-
].includes(navigator.platform) ||
|
|
9
|
-
// iPad on iOS 13 detection
|
|
10
|
-
(navigator.userAgent.includes('Mac') && 'ontouchend' in document);
|
|
11
|
-
|
|
12
|
-
export { isIOS as i };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const o=()=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document;export{o as i}
|