@paperless/core 0.1.0-alpha.223 → 0.1.0-alpha.225

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.
Files changed (135) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/assets/i18n/table.i18n.en.json +13 -0
  3. package/dist/assets/i18n/table.i18n.nl.json +13 -0
  4. package/dist/assets/illustrations/empty-state-overview.svg +65 -0
  5. package/dist/assets/illustrations/empty-state-search.svg +88 -0
  6. package/dist/build/p-25ed4eb4.entry.js +1 -0
  7. package/dist/build/p-337ad423.entry.js +1 -0
  8. package/dist/build/{p-1f6a0296.entry.js → p-417a706f.entry.js} +1 -1
  9. package/dist/build/p-47c36e96.entry.js +1 -0
  10. package/dist/build/p-48d04ece.entry.js +1 -0
  11. package/dist/build/p-7e40c097.entry.js +1 -0
  12. package/dist/build/p-d70f6f04.entry.js +1 -0
  13. package/dist/{paperless/p-61975c9a.entry.js → build/p-ddeaf320.entry.js} +1 -1
  14. package/dist/build/p-e4a465a8.entry.js +1 -0
  15. package/dist/build/p-ff05fe38.entry.js +1 -0
  16. package/dist/build/paperless.esm.js +1 -1
  17. package/dist/cjs/index-cf92051a.js +4 -8
  18. package/dist/cjs/loader.cjs.js +1 -1
  19. package/dist/cjs/p-button_3.cjs.entry.js +3 -3
  20. package/dist/cjs/p-divider.cjs.entry.js +1 -1
  21. package/dist/cjs/p-dropdown_3.cjs.entry.js +3 -3
  22. package/dist/cjs/p-helper_2.cjs.entry.js +2 -2
  23. package/dist/cjs/p-illustration_6.cjs.entry.js +2756 -0
  24. package/dist/cjs/p-input-group_4.cjs.entry.js +4 -4
  25. package/dist/cjs/p-page-size-select_3.cjs.entry.js +2 -2
  26. package/dist/cjs/p-select.cjs.entry.js +7 -4
  27. package/dist/cjs/p-table.cjs.entry.js +27 -1
  28. package/dist/cjs/p-toast.cjs.entry.js +6 -1
  29. package/dist/cjs/paperless.cjs.js +1 -1
  30. package/dist/collection/assets/illustrations/empty-state-overview.svg +65 -0
  31. package/dist/collection/assets/illustrations/empty-state-search.svg +88 -0
  32. package/dist/collection/collection-manifest.json +2 -2
  33. package/dist/collection/components/atoms/button/button.component.css +1 -1
  34. package/dist/collection/components/atoms/divider/divider.component.css +1 -1
  35. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -1
  36. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -1
  37. package/dist/collection/components/atoms/helper/helper.component.css +1 -1
  38. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  39. package/dist/collection/components/atoms/illustration/illustration.component.js +1 -1
  40. package/dist/collection/components/atoms/label/label.component.css +1 -1
  41. package/dist/collection/components/atoms/loader/loader.component.css +1 -1
  42. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -1
  43. package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -1
  44. package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -1
  45. package/dist/collection/components/atoms/table-container/table-container.component.css +1 -1
  46. package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -1
  47. package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
  48. package/dist/collection/components/molecules/input-group/input-group.component.css +1 -1
  49. package/dist/collection/components/molecules/pagination/pagination.component.css +1 -1
  50. package/dist/collection/components/molecules/select/select.component.js +7 -4
  51. package/dist/collection/components/molecules/table-cell/table-cell.component.css +1 -1
  52. package/dist/collection/components/molecules/table-footer/table-footer.component.css +1 -1
  53. package/dist/collection/components/molecules/table-header/table-header.component.css +1 -1
  54. package/dist/collection/components/molecules/table-row/table-row.component.css +1 -1
  55. package/dist/collection/components/molecules/toast/toast.component.js +7 -2
  56. package/dist/collection/components/organisms/table/table.component.css +1 -1
  57. package/dist/collection/components/organisms/table/table.component.js +160 -7
  58. package/dist/collection/utils/illustrations.js +4 -0
  59. package/dist/components/button.component.js +1 -1
  60. package/dist/components/divider.component.js +1 -1
  61. package/dist/components/dropdown-menu-container.component.js +1 -1
  62. package/dist/components/dropdown-menu-item.component.js +1 -1
  63. package/dist/components/dropdown.component.js +1 -1
  64. package/dist/components/helper.component.js +1 -1
  65. package/dist/components/icon.component.js +1 -1
  66. package/dist/{cjs/p-illustration.cjs.entry.js → components/illustration.component.js} +184 -16
  67. package/dist/components/input-group.component.js +1 -1
  68. package/dist/components/label.component.js +1 -1
  69. package/dist/components/loader.component.js +1 -1
  70. package/dist/components/p-illustration.js +1 -1435
  71. package/dist/components/p-select.js +7 -4
  72. package/dist/components/p-table.js +54 -16
  73. package/dist/components/p-toast.js +6 -1
  74. package/dist/components/pagination-item.component.js +1 -1
  75. package/dist/components/pagination.component.js +1 -1
  76. package/dist/components/segment-container.component.js +1 -1
  77. package/dist/components/segment-item.component.js +1 -1
  78. package/dist/components/table-cell.component.js +1 -1
  79. package/dist/components/table-container.component.js +1 -1
  80. package/dist/components/table-footer.component.js +1 -1
  81. package/dist/components/table-header.component.js +1 -1
  82. package/dist/components/table-row.component.js +1 -1
  83. package/dist/components/tooltip.component.js +1 -1
  84. package/dist/esm/index-7c99f044.js +4 -8
  85. package/dist/esm/loader.js +1 -1
  86. package/dist/esm/p-button_3.entry.js +3 -3
  87. package/dist/esm/p-divider.entry.js +1 -1
  88. package/dist/esm/p-dropdown_3.entry.js +3 -3
  89. package/dist/esm/p-helper_2.entry.js +2 -2
  90. package/dist/esm/{p-illustration.entry.js → p-illustration_6.entry.js} +1327 -2
  91. package/dist/esm/p-input-group_4.entry.js +4 -4
  92. package/dist/esm/p-page-size-select_3.entry.js +2 -2
  93. package/dist/esm/p-select.entry.js +7 -4
  94. package/dist/esm/p-table.entry.js +27 -1
  95. package/dist/esm/p-toast.entry.js +6 -1
  96. package/dist/esm/paperless.js +1 -1
  97. package/dist/index.html +1 -1
  98. package/dist/paperless/p-25ed4eb4.entry.js +1 -0
  99. package/dist/paperless/p-337ad423.entry.js +1 -0
  100. package/dist/paperless/{p-1f6a0296.entry.js → p-417a706f.entry.js} +1 -1
  101. package/dist/paperless/p-47c36e96.entry.js +1 -0
  102. package/dist/paperless/p-48d04ece.entry.js +1 -0
  103. package/dist/paperless/p-7e40c097.entry.js +1 -0
  104. package/dist/paperless/p-d70f6f04.entry.js +1 -0
  105. package/dist/{build/p-61975c9a.entry.js → paperless/p-ddeaf320.entry.js} +1 -1
  106. package/dist/paperless/p-e4a465a8.entry.js +1 -0
  107. package/dist/paperless/p-ff05fe38.entry.js +1 -0
  108. package/dist/paperless/paperless.esm.js +1 -1
  109. package/dist/sw.js +1 -1
  110. package/dist/sw.js.map +1 -1
  111. package/dist/types/components/molecules/toast/toast.component.d.ts +1 -0
  112. package/dist/types/components/organisms/table/table.component.d.ts +18 -2
  113. package/dist/types/components.d.ts +21 -6
  114. package/dist/types/utils/illustrations.d.ts +2 -0
  115. package/package.json +1 -1
  116. package/dist/build/p-2bf44a1d.entry.js +0 -1
  117. package/dist/build/p-3b243f16.entry.js +0 -1
  118. package/dist/build/p-6f09d65f.entry.js +0 -1
  119. package/dist/build/p-78db3d3c.entry.js +0 -1
  120. package/dist/build/p-8262fe7e.entry.js +0 -1
  121. package/dist/build/p-98332f25.entry.js +0 -1
  122. package/dist/build/p-9fba2393.entry.js +0 -1
  123. package/dist/build/p-aae4caab.entry.js +0 -1
  124. package/dist/build/p-f45b75ae.entry.js +0 -1
  125. package/dist/cjs/p-table-cell_5.cjs.entry.js +0 -1179
  126. package/dist/esm/p-table-cell_5.entry.js +0 -1171
  127. package/dist/paperless/p-2bf44a1d.entry.js +0 -1
  128. package/dist/paperless/p-3b243f16.entry.js +0 -1
  129. package/dist/paperless/p-6f09d65f.entry.js +0 -1
  130. package/dist/paperless/p-78db3d3c.entry.js +0 -1
  131. package/dist/paperless/p-8262fe7e.entry.js +0 -1
  132. package/dist/paperless/p-98332f25.entry.js +0 -1
  133. package/dist/paperless/p-9fba2393.entry.js +0 -1
  134. package/dist/paperless/p-aae4caab.entry.js +0 -1
  135. package/dist/paperless/p-f45b75ae.entry.js +0 -1
@@ -1,1179 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-cf92051a.js');
6
- const objectGetByPath = require('./object-get-by-path-6dc21ed5.js');
7
- const localization = require('./localization-9c989018.js');
8
- const constants = require('./constants-a4459ec9.js');
9
-
10
- const tableCellComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-full{width:100%!important}.w-auto{width:auto!important}.flex-1{flex:1 1 0%!important}.flex-col{flex-direction:column!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.justify-self-end{justify-self:end!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.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)!important}*{box-sizing:border-box}p-table-cell{align-items:center;display:flex;gap:1rem}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.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)!important}";
11
-
12
- const TableCell = class {
13
- constructor(hostRef) {
14
- index.registerInstance(this, hostRef);
15
- /**
16
- * The variant of the column
17
- */
18
- this.variant = 'default';
19
- /**
20
- * The template to show
21
- */
22
- this.template = ({ value, }) => value;
23
- }
24
- get data() {
25
- var _a;
26
- if (this.variant === 'header') {
27
- return {
28
- value: this.value,
29
- };
30
- }
31
- return {
32
- value: (_a = this.value) !== null && _a !== void 0 ? _a : objectGetByPath.objectGetByPath(this.item, this.definition.path),
33
- item: this.item,
34
- index: this.index,
35
- rowIndex: this.rowIndex,
36
- };
37
- }
38
- render() {
39
- return (index.h(index.Host, { class: Object.assign({ 'p-table-cell': true, [`variant-${this.variant}`]: true }, this._getColumnClasses()) }, this.checkbox, this.variant === 'loading' ? (index.h("p-loader", { variant: "ghost", class: "rounded flex-1 w-full h-6" })) : (index.h("div", { class: "flex" }, this.variant === 'header' ? (this.data.value) : this.definition.useSlot ? (index.h("slot", null)) : (this.template(this.data))))));
40
- }
41
- _getColumnClasses() {
42
- var _a, _b, _c, _d, _e, _f;
43
- const sizes = this.definition ? this._getSizes(this.definition) : {};
44
- return Object.assign({ 'justify-start': !((_a = this.definition) === null || _a === void 0 ? void 0 : _a.align) || ((_b = this.definition) === null || _b === void 0 ? void 0 : _b.align) === 'start', 'justify-center': ((_c = this.definition) === null || _c === void 0 ? void 0 : _c.align) === 'center', 'justify-end': ((_d = this.definition) === null || _d === void 0 ? void 0 : _d.align) === 'end', 'font-semibold': this.variant !== 'header' && ((_e = this.definition) === null || _e === void 0 ? void 0 : _e.type) === 'th', 'text-storm-dark': this.variant !== 'header' && ((_f = this.definition) === null || _f === void 0 ? void 0 : _f.type) === 'th' }, sizes);
45
- }
46
- /*
47
- With this, we shall hack the system in ways no one would ever have thought.
48
-
49
- w-1/12 w-2/12 w-3/12 w-4/12 w-5/12 w-6/12 w-7/12 w-8/12 w-9/12 w-10/12 w-11/12 w-12/12
50
- tablet:w-1/12 tablet:w-2/12 tablet:w-3/12 tablet:w-4/12 tablet:w-5/12 tablet:w-6/12 tablet:w-7/12 tablet:w-8/12 tablet:w-9/12 tablet:w-10/12 tablet:w-11/12 tablet:w-12/12
51
- desktop-xs:w-1/12 desktop-xs:w-2/12 desktop-xs:w-3/12 desktop-xs:w-4/12 desktop-xs:w-5/12 desktop-xs:w-6/12 desktop-xs:w-7/12 desktop-xs:w-8/12 desktop-xs:w-9/12 desktop-xs:w-10/12 desktop-xs:w-11/12 desktop-xs:w-12/12
52
- desktop-xs:w-1/12 desktop-xs:w-2/12 desktop-xs:w-3/12 desktop-xs:w-4/12 desktop-xs:w-5/12 desktop-xs:w-6/12 desktop-xs:w-7/12 desktop-xs:w-8/12 desktop-xs:w-9/12 desktop-xs:w-10/12 desktop-xs:w-11/12 desktop-xs:w-12/12
53
- desktop-sm:w-1/12 desktop-sm:w-2/12 desktop-sm:w-3/12 desktop-sm:w-4/12 desktop-sm:w-5/12 desktop-sm:w-6/12 desktop-sm:w-7/12 desktop-sm:w-8/12 desktop-sm:w-9/12 desktop-sm:w-10/12 desktop-sm:w-11/12 desktop-sm:w-12/12
54
- desktop:w-1/12 desktop:w-2/12 desktop:w-3/12 desktop:w-4/12 desktop:w-5/12 desktop:w-6/12 desktop:w-7/12 desktop:w-8/12 desktop:w-9/12 desktop:w-10/12 desktop:w-11/12 desktop:w-12/12
55
- desktop-lg:w-1/12 desktop-lg:w-2/12 desktop-lg:w-3/12 desktop-lg:w-4/12 desktop-lg:w-5/12 desktop-lg:w-6/12 desktop-lg:w-7/12 desktop-lg:w-8/12 desktop-lg:w-9/12 desktop-lg:w-10/12 desktop-lg:w-11/12 desktop-lg:w-12/12
56
- desktop-xl:w-1/12 desktop-xl:w-2/12 desktop-xl:w-3/12 desktop-xl:w-4/12 desktop-xl:w-5/12 desktop-xl:w-6/12 desktop-xl:w-7/12 desktop-xl:w-8/12 desktop-xl:w-9/12 desktop-xl:w-10/12 desktop-xl:w-11/12 desktop-xl:w-12/12
57
-
58
-
59
- ⠀⠀⠀⠀⠀⣠⣴⣶⣿⣿⠿⣷⣶⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣶⣷⠿⣿⣿⣶⣦⣀⠀⠀⠀⠀⠀
60
- ⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⣿⣶⣦⣬⡉⠒⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠚⢉⣥⣴⣾⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀
61
- ⠀⠀⠀⡾⠿⠛⠛⠛⠛⠿⢿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⣿⣿⣿⣿⣿⠿⠿⠛⠛⠛⠛⠿⢧⠀⠀⠀
62
- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠻⣿⣿⣿⣿⣿⡄⠀⠀⠀⠀⠀⠀⣠⣿⣿⣿⣿⡿⠟⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
63
- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
64
- ⠀⠀⠀⠀⠀⠀⠀⣠⣤⠶⠶⠶⠰⠦⣤⣀⠀⠙⣷⠀⠀⠀⠀⠀⠀⠀⢠⡿⠋⢀⣀⣤⢴⠆⠲⠶⠶⣤⣄⠀⠀⠀⠀⠀⠀⠀
65
- ⠀⠘⣆⠀⠀⢠⣾⣫⣶⣾⣿⣿⣿⣿⣷⣯⣿⣦⠈⠃⡇⠀⠀⠀⠀⢸⠘⢁⣶⣿⣵⣾⣿⣿⣿⣿⣷⣦⣝⣷⡄⠀⠀⡰⠂⠀
66
- ⠀⠀⣨⣷⣶⣿⣧⣛⣛⠿⠿⣿⢿⣿⣿⣛⣿⡿⠀⠀⡇⠀⠀⠀⠀⢸⠀⠈⢿⣟⣛⠿⢿⡿⢿⢿⢿⣛⣫⣼⡿⣶⣾⣅⡀⠀
67
- ⢀⡼⠋⠁⠀⠀⠈⠉⠛⠛⠻⠟⠸⠛⠋⠉⠁⠀⠀⢸⡇⠀⠀⠄⠀⢸⡄⠀⠀⠈⠉⠙⠛⠃⠻⠛⠛⠛⠉⠁⠀⠀⠈⠙⢧⡀
68
- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⡇⢠⠀⠀⠀⢸⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
69
- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⡇⠀⠀⠀⠀⢸⣿⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
70
- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠟⠁⣿⠇⠀⠀⠀⠀⢸⡇⠙⢿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
71
- ⠀⠰⣄⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⠖⡾⠁⠀⠀⣿⠀⠀⠀⠀⠀⠘⣿⠀⠀⠙⡇⢸⣷⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠄⠀
72
- ⠀⠀⢻⣷⡦⣤⣤⣤⡴⠶⠿⠛⠉⠁⠀⢳⠀⢠⡀⢿⣀⠀⠀⠀⠀⣠⡟⢀⣀⢠⠇⠀⠈⠙⠛⠷⠶⢦⣤⣤⣤⢴⣾⡏⠀⠀
73
- ⠀⠀⠈⣿⣧⠙⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠘⠛⢊⣙⠛⠒⠒⢛⣋⡚⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⡿⠁⣾⡿⠀⠀⠀
74
- ⠀⠀⠀⠘⣿⣇⠈⢿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⡿⢿⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⡟⠁⣼⡿⠁⠀⠀⠀
75
- ⠀⠀⠀⠀⠘⣿⣦⠀⠻⣿⣷⣦⣤⣤⣶⣶⣶⣿⣿⣿⣿⠏⠀⠀⠻⣿⣿⣿⣿⣶⣶⣶⣦⣤⣴⣿⣿⠏⢀⣼⡿⠁⠀⠀⠀⠀
76
- ⠀⠀⠀⠀⠀⠘⢿⣷⣄⠙⠻⠿⠿⠿⠿⠿⢿⣿⣿⣿⣁⣀⣀⣀⣀⣙⣿⣿⣿⠿⠿⠿⠿⠿⠿⠟⠁⣠⣿⡿⠁⠀⠀⠀⠀⠀
77
- ⠀⠀⠀⠀⠀⠀⠈⠻⣯⠙⢦⣀⠀⠀⠀⠀⠀⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠀⠀⠀⠀⠀⣠⠴⢋⣾⠟⠀⠀⠀⠀⠀⠀⠀
78
- ⠀⠀⠀⠀⠀⠀⠀⠀⠙⢧⡀⠈⠉⠒⠀⠀⠀⠀⠀⠀⣀⠀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠐⠒⠉⠁⢀⡾⠃⠀⠀⠀⠀⠀⠀⠀⠀
79
- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠳⣄⠀⠀⠀⠀⠀⠀⠀⠀⠻⣿⣿⣿⣿⠋⠀⠀⠀⠀⠀⠀⠀⠀⣠⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
80
- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢦⡀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⢀⡴⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
81
- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
82
- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
83
- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
84
- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
85
- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
86
- */
87
- _getSizes({ sizes }) {
88
- if (sizes === 'auto' || !sizes) {
89
- return {
90
- 'w-auto': true,
91
- };
92
- }
93
- if (typeof sizes === 'object') {
94
- const classes = {};
95
- for (const size of Object.keys(sizes)) {
96
- if (size === 'default') {
97
- classes[`w-${sizes.default}/12`] = true;
98
- continue;
99
- }
100
- classes[`${size}:w-${sizes[`${size}`]}/12`] = true;
101
- }
102
- return classes;
103
- }
104
- // is a number.
105
- return {
106
- [`w-${sizes}/12`]: true,
107
- };
108
- }
109
- };
110
- TableCell.style = tableCellComponentCss;
111
-
112
- const tableContainerComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-full{width:100%!important}.w-auto{width:auto!important}.flex-1{flex:1 1 0%!important}.flex-col{flex-direction:column!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.justify-self-end{justify-self:end!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}.shadow-4{--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13)!important;--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.blur{--tw-blur:blur(8px)!important}.blur,.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)!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13)!important;--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color)!important;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.375rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;display:flex;flex-direction:column;width:100%}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.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)!important}";
113
-
114
- const TableContainer = class {
115
- constructor(hostRef) {
116
- index.registerInstance(this, hostRef);
117
- }
118
- render() {
119
- return (index.h(index.Host, { class: "p-table-container" }, index.h("slot", null)));
120
- }
121
- };
122
- TableContainer.style = tableContainerComponentCss;
123
-
124
- const tableFooterComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.grid{display:grid!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-full{width:100%!important}.w-auto{width:auto!important}.flex-1{flex:1 1 0%!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.flex-col{flex-direction:column!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.justify-self-end{justify-self:end!important}.justify-self-center{justify-self:center!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.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)!important}*{box-sizing:border-box}:host{display:grid;gap:1rem;grid-template-columns:repeat(1,minmax(0,1fr));padding:1.5rem;width:100%}:host>p-pagination{display:flex;grid-column-start:1;justify-self:center}@media (min-width:64rem){:host{grid-template-areas:\"page-size pagination export\";grid-template-columns:repeat(3,minmax(0,1fr))}:host>p-page-size-select{grid-column-start:1}:host>p-pagination{grid-column-start:2}:host>p-button{grid-column-start:3;justify-self:end}}:host(.page-size-disabled.export-disabled){grid-template-columns:repeat(1,minmax(0,1fr))}:host(.page-size-disabled.export-disabled)>p-pagination{grid-column-start:1}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.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)!important}";
125
-
126
- const TableFooter = class {
127
- constructor(hostRef) {
128
- index.registerInstance(this, hostRef);
129
- this.pageChange = index.createEvent(this, "pageChange", 7);
130
- this.pageSizeChange = index.createEvent(this, "pageSizeChange", 7);
131
- this.export = index.createEvent(this, "export", 7);
132
- /**
133
- * Wether to enable page size select
134
- */
135
- this.enablePageSize = true;
136
- /**
137
- * Wether to enable pagination
138
- */
139
- this.enablePagination = true;
140
- /**
141
- * Wether to enable export
142
- */
143
- this.enableExport = true;
144
- /**
145
- * The current page
146
- */
147
- this.page = 1;
148
- /**
149
- * The amount of items per page
150
- */
151
- this.pageSize = constants.defaultSize;
152
- /**
153
- * The options for the page size
154
- */
155
- this.pageSizeOptions = constants.defaultSizeOptions;
156
- /**
157
- * Wether to hide when there is only 1 page available
158
- */
159
- this.hideOnSinglePage = true;
160
- /**
161
- * Locales used for this component
162
- */
163
- this._locales = {};
164
- }
165
- componentWillLoad() {
166
- this._setLocales();
167
- }
168
- render() {
169
- var _a;
170
- const hidePageSizeSelect = this.hideOnSinglePage && this.total < ((_a = this.pageSizeOptions) === null || _a === void 0 ? void 0 : _a[0]);
171
- return (index.h(index.Host, { class: `p-table-footer ${!this.enablePageSize && 'page-size-disabled'} ${!this.enablePagination && 'pagination-disabled'} ${!this.enableExport && 'export-disabled'}` }, this.enablePagination && this.enablePageSize && (index.h("p-page-size-select", { class: !hidePageSizeSelect && 'hidden desktop-xs:flex', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) })), this.enablePagination && (index.h("p-pagination", { pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail) })), this.enableExport && (index.h("p-button", { class: "hidden desktop-xs:flex", variant: "secondary", size: "small", icon: "download", onClick: () => this.export.emit() }, localization.formatTranslation(this._locales.export)))));
172
- }
173
- async _setLocales() {
174
- this._locales = await localization.getLocaleComponentStrings(this._el);
175
- }
176
- _changePageSize(s) {
177
- if (!s) {
178
- return;
179
- }
180
- this.pageSize = s;
181
- this.pageSizeChange.emit(this.pageSize);
182
- }
183
- get _el() { return index.getElement(this); }
184
- };
185
- TableFooter.style = tableFooterComponentCss;
186
-
187
- function isFunction(value) {
188
- return typeof value === 'function';
189
- }
190
-
191
- function createErrorClass(createImpl) {
192
- const _super = (instance) => {
193
- Error.call(instance);
194
- instance.stack = new Error().stack;
195
- };
196
- const ctorFunc = createImpl(_super);
197
- ctorFunc.prototype = Object.create(Error.prototype);
198
- ctorFunc.prototype.constructor = ctorFunc;
199
- return ctorFunc;
200
- }
201
-
202
- const UnsubscriptionError = createErrorClass((_super) => function UnsubscriptionErrorImpl(errors) {
203
- _super(this);
204
- this.message = errors
205
- ? `${errors.length} errors occurred during unsubscription:
206
- ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}`
207
- : '';
208
- this.name = 'UnsubscriptionError';
209
- this.errors = errors;
210
- });
211
-
212
- function arrRemove(arr, item) {
213
- if (arr) {
214
- const index = arr.indexOf(item);
215
- 0 <= index && arr.splice(index, 1);
216
- }
217
- }
218
-
219
- class Subscription {
220
- constructor(initialTeardown) {
221
- this.initialTeardown = initialTeardown;
222
- this.closed = false;
223
- this._parentage = null;
224
- this._finalizers = null;
225
- }
226
- unsubscribe() {
227
- let errors;
228
- if (!this.closed) {
229
- this.closed = true;
230
- const { _parentage } = this;
231
- if (_parentage) {
232
- this._parentage = null;
233
- if (Array.isArray(_parentage)) {
234
- for (const parent of _parentage) {
235
- parent.remove(this);
236
- }
237
- }
238
- else {
239
- _parentage.remove(this);
240
- }
241
- }
242
- const { initialTeardown: initialFinalizer } = this;
243
- if (isFunction(initialFinalizer)) {
244
- try {
245
- initialFinalizer();
246
- }
247
- catch (e) {
248
- errors = e instanceof UnsubscriptionError ? e.errors : [e];
249
- }
250
- }
251
- const { _finalizers } = this;
252
- if (_finalizers) {
253
- this._finalizers = null;
254
- for (const finalizer of _finalizers) {
255
- try {
256
- execFinalizer(finalizer);
257
- }
258
- catch (err) {
259
- errors = errors !== null && errors !== void 0 ? errors : [];
260
- if (err instanceof UnsubscriptionError) {
261
- errors = [...errors, ...err.errors];
262
- }
263
- else {
264
- errors.push(err);
265
- }
266
- }
267
- }
268
- }
269
- if (errors) {
270
- throw new UnsubscriptionError(errors);
271
- }
272
- }
273
- }
274
- add(teardown) {
275
- var _a;
276
- if (teardown && teardown !== this) {
277
- if (this.closed) {
278
- execFinalizer(teardown);
279
- }
280
- else {
281
- if (teardown instanceof Subscription) {
282
- if (teardown.closed || teardown._hasParent(this)) {
283
- return;
284
- }
285
- teardown._addParent(this);
286
- }
287
- (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
288
- }
289
- }
290
- }
291
- _hasParent(parent) {
292
- const { _parentage } = this;
293
- return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));
294
- }
295
- _addParent(parent) {
296
- const { _parentage } = this;
297
- this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
298
- }
299
- _removeParent(parent) {
300
- const { _parentage } = this;
301
- if (_parentage === parent) {
302
- this._parentage = null;
303
- }
304
- else if (Array.isArray(_parentage)) {
305
- arrRemove(_parentage, parent);
306
- }
307
- }
308
- remove(teardown) {
309
- const { _finalizers } = this;
310
- _finalizers && arrRemove(_finalizers, teardown);
311
- if (teardown instanceof Subscription) {
312
- teardown._removeParent(this);
313
- }
314
- }
315
- }
316
- Subscription.EMPTY = (() => {
317
- const empty = new Subscription();
318
- empty.closed = true;
319
- return empty;
320
- })();
321
- const EMPTY_SUBSCRIPTION = Subscription.EMPTY;
322
- function isSubscription(value) {
323
- return (value instanceof Subscription ||
324
- (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));
325
- }
326
- function execFinalizer(finalizer) {
327
- if (isFunction(finalizer)) {
328
- finalizer();
329
- }
330
- else {
331
- finalizer.unsubscribe();
332
- }
333
- }
334
-
335
- const config = {
336
- onUnhandledError: null,
337
- onStoppedNotification: null,
338
- Promise: undefined,
339
- useDeprecatedSynchronousErrorHandling: false,
340
- useDeprecatedNextContext: false,
341
- };
342
-
343
- const timeoutProvider = {
344
- setTimeout(handler, timeout, ...args) {
345
- const { delegate } = timeoutProvider;
346
- if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
347
- return delegate.setTimeout(handler, timeout, ...args);
348
- }
349
- return setTimeout(handler, timeout, ...args);
350
- },
351
- clearTimeout(handle) {
352
- const { delegate } = timeoutProvider;
353
- return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
354
- },
355
- delegate: undefined,
356
- };
357
-
358
- function reportUnhandledError(err) {
359
- timeoutProvider.setTimeout(() => {
360
- const { onUnhandledError } = config;
361
- if (onUnhandledError) {
362
- onUnhandledError(err);
363
- }
364
- else {
365
- throw err;
366
- }
367
- });
368
- }
369
-
370
- function noop() { }
371
-
372
- const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined))();
373
- function errorNotification(error) {
374
- return createNotification('E', undefined, error);
375
- }
376
- function nextNotification(value) {
377
- return createNotification('N', value, undefined);
378
- }
379
- function createNotification(kind, value, error) {
380
- return {
381
- kind,
382
- value,
383
- error,
384
- };
385
- }
386
-
387
- function errorContext(cb) {
388
- {
389
- cb();
390
- }
391
- }
392
-
393
- class Subscriber extends Subscription {
394
- constructor(destination) {
395
- super();
396
- this.isStopped = false;
397
- if (destination) {
398
- this.destination = destination;
399
- if (isSubscription(destination)) {
400
- destination.add(this);
401
- }
402
- }
403
- else {
404
- this.destination = EMPTY_OBSERVER;
405
- }
406
- }
407
- static create(next, error, complete) {
408
- return new SafeSubscriber(next, error, complete);
409
- }
410
- next(value) {
411
- if (this.isStopped) {
412
- handleStoppedNotification(nextNotification(value), this);
413
- }
414
- else {
415
- this._next(value);
416
- }
417
- }
418
- error(err) {
419
- if (this.isStopped) {
420
- handleStoppedNotification(errorNotification(err), this);
421
- }
422
- else {
423
- this.isStopped = true;
424
- this._error(err);
425
- }
426
- }
427
- complete() {
428
- if (this.isStopped) {
429
- handleStoppedNotification(COMPLETE_NOTIFICATION, this);
430
- }
431
- else {
432
- this.isStopped = true;
433
- this._complete();
434
- }
435
- }
436
- unsubscribe() {
437
- if (!this.closed) {
438
- this.isStopped = true;
439
- super.unsubscribe();
440
- this.destination = null;
441
- }
442
- }
443
- _next(value) {
444
- this.destination.next(value);
445
- }
446
- _error(err) {
447
- try {
448
- this.destination.error(err);
449
- }
450
- finally {
451
- this.unsubscribe();
452
- }
453
- }
454
- _complete() {
455
- try {
456
- this.destination.complete();
457
- }
458
- finally {
459
- this.unsubscribe();
460
- }
461
- }
462
- }
463
- const _bind = Function.prototype.bind;
464
- function bind(fn, thisArg) {
465
- return _bind.call(fn, thisArg);
466
- }
467
- class ConsumerObserver {
468
- constructor(partialObserver) {
469
- this.partialObserver = partialObserver;
470
- }
471
- next(value) {
472
- const { partialObserver } = this;
473
- if (partialObserver.next) {
474
- try {
475
- partialObserver.next(value);
476
- }
477
- catch (error) {
478
- handleUnhandledError(error);
479
- }
480
- }
481
- }
482
- error(err) {
483
- const { partialObserver } = this;
484
- if (partialObserver.error) {
485
- try {
486
- partialObserver.error(err);
487
- }
488
- catch (error) {
489
- handleUnhandledError(error);
490
- }
491
- }
492
- else {
493
- handleUnhandledError(err);
494
- }
495
- }
496
- complete() {
497
- const { partialObserver } = this;
498
- if (partialObserver.complete) {
499
- try {
500
- partialObserver.complete();
501
- }
502
- catch (error) {
503
- handleUnhandledError(error);
504
- }
505
- }
506
- }
507
- }
508
- class SafeSubscriber extends Subscriber {
509
- constructor(observerOrNext, error, complete) {
510
- super();
511
- let partialObserver;
512
- if (isFunction(observerOrNext) || !observerOrNext) {
513
- partialObserver = {
514
- next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,
515
- error: error !== null && error !== void 0 ? error : undefined,
516
- complete: complete !== null && complete !== void 0 ? complete : undefined,
517
- };
518
- }
519
- else {
520
- let context;
521
- if (this && config.useDeprecatedNextContext) {
522
- context = Object.create(observerOrNext);
523
- context.unsubscribe = () => this.unsubscribe();
524
- partialObserver = {
525
- next: observerOrNext.next && bind(observerOrNext.next, context),
526
- error: observerOrNext.error && bind(observerOrNext.error, context),
527
- complete: observerOrNext.complete && bind(observerOrNext.complete, context),
528
- };
529
- }
530
- else {
531
- partialObserver = observerOrNext;
532
- }
533
- }
534
- this.destination = new ConsumerObserver(partialObserver);
535
- }
536
- }
537
- function handleUnhandledError(error) {
538
- {
539
- reportUnhandledError(error);
540
- }
541
- }
542
- function defaultErrorHandler(err) {
543
- throw err;
544
- }
545
- function handleStoppedNotification(notification, subscriber) {
546
- const { onStoppedNotification } = config;
547
- onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));
548
- }
549
- const EMPTY_OBSERVER = {
550
- closed: true,
551
- next: noop,
552
- error: defaultErrorHandler,
553
- complete: noop,
554
- };
555
-
556
- const observable = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')();
557
-
558
- function identity(x) {
559
- return x;
560
- }
561
-
562
- function pipeFromArray(fns) {
563
- if (fns.length === 0) {
564
- return identity;
565
- }
566
- if (fns.length === 1) {
567
- return fns[0];
568
- }
569
- return function piped(input) {
570
- return fns.reduce((prev, fn) => fn(prev), input);
571
- };
572
- }
573
-
574
- class Observable {
575
- constructor(subscribe) {
576
- if (subscribe) {
577
- this._subscribe = subscribe;
578
- }
579
- }
580
- lift(operator) {
581
- const observable = new Observable();
582
- observable.source = this;
583
- observable.operator = operator;
584
- return observable;
585
- }
586
- subscribe(observerOrNext, error, complete) {
587
- const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
588
- errorContext(() => {
589
- const { operator, source } = this;
590
- subscriber.add(operator
591
- ?
592
- operator.call(subscriber, source)
593
- : source
594
- ?
595
- this._subscribe(subscriber)
596
- :
597
- this._trySubscribe(subscriber));
598
- });
599
- return subscriber;
600
- }
601
- _trySubscribe(sink) {
602
- try {
603
- return this._subscribe(sink);
604
- }
605
- catch (err) {
606
- sink.error(err);
607
- }
608
- }
609
- forEach(next, promiseCtor) {
610
- promiseCtor = getPromiseCtor(promiseCtor);
611
- return new promiseCtor((resolve, reject) => {
612
- const subscriber = new SafeSubscriber({
613
- next: (value) => {
614
- try {
615
- next(value);
616
- }
617
- catch (err) {
618
- reject(err);
619
- subscriber.unsubscribe();
620
- }
621
- },
622
- error: reject,
623
- complete: resolve,
624
- });
625
- this.subscribe(subscriber);
626
- });
627
- }
628
- _subscribe(subscriber) {
629
- var _a;
630
- return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);
631
- }
632
- [observable]() {
633
- return this;
634
- }
635
- pipe(...operations) {
636
- return pipeFromArray(operations)(this);
637
- }
638
- toPromise(promiseCtor) {
639
- promiseCtor = getPromiseCtor(promiseCtor);
640
- return new promiseCtor((resolve, reject) => {
641
- let value;
642
- this.subscribe((x) => (value = x), (err) => reject(err), () => resolve(value));
643
- });
644
- }
645
- }
646
- Observable.create = (subscribe) => {
647
- return new Observable(subscribe);
648
- };
649
- function getPromiseCtor(promiseCtor) {
650
- var _a;
651
- return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
652
- }
653
- function isObserver(value) {
654
- return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
655
- }
656
- function isSubscriber(value) {
657
- return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));
658
- }
659
-
660
- function hasLift(source) {
661
- return isFunction(source === null || source === void 0 ? void 0 : source.lift);
662
- }
663
- function operate(init) {
664
- return (source) => {
665
- if (hasLift(source)) {
666
- return source.lift(function (liftedSource) {
667
- try {
668
- return init(liftedSource, this);
669
- }
670
- catch (err) {
671
- this.error(err);
672
- }
673
- });
674
- }
675
- throw new TypeError('Unable to lift unknown Observable type');
676
- };
677
- }
678
-
679
- function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {
680
- return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
681
- }
682
- class OperatorSubscriber extends Subscriber {
683
- constructor(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
684
- super(destination);
685
- this.onFinalize = onFinalize;
686
- this.shouldUnsubscribe = shouldUnsubscribe;
687
- this._next = onNext
688
- ? function (value) {
689
- try {
690
- onNext(value);
691
- }
692
- catch (err) {
693
- destination.error(err);
694
- }
695
- }
696
- : super._next;
697
- this._error = onError
698
- ? function (err) {
699
- try {
700
- onError(err);
701
- }
702
- catch (err) {
703
- destination.error(err);
704
- }
705
- finally {
706
- this.unsubscribe();
707
- }
708
- }
709
- : super._error;
710
- this._complete = onComplete
711
- ? function () {
712
- try {
713
- onComplete();
714
- }
715
- catch (err) {
716
- destination.error(err);
717
- }
718
- finally {
719
- this.unsubscribe();
720
- }
721
- }
722
- : super._complete;
723
- }
724
- unsubscribe() {
725
- var _a;
726
- if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
727
- const { closed } = this;
728
- super.unsubscribe();
729
- !closed && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));
730
- }
731
- }
732
- }
733
-
734
- const ObjectUnsubscribedError = createErrorClass((_super) => function ObjectUnsubscribedErrorImpl() {
735
- _super(this);
736
- this.name = 'ObjectUnsubscribedError';
737
- this.message = 'object unsubscribed';
738
- });
739
-
740
- class Subject extends Observable {
741
- constructor() {
742
- super();
743
- this.closed = false;
744
- this.currentObservers = null;
745
- this.observers = [];
746
- this.isStopped = false;
747
- this.hasError = false;
748
- this.thrownError = null;
749
- }
750
- lift(operator) {
751
- const subject = new AnonymousSubject(this, this);
752
- subject.operator = operator;
753
- return subject;
754
- }
755
- _throwIfClosed() {
756
- if (this.closed) {
757
- throw new ObjectUnsubscribedError();
758
- }
759
- }
760
- next(value) {
761
- errorContext(() => {
762
- this._throwIfClosed();
763
- if (!this.isStopped) {
764
- if (!this.currentObservers) {
765
- this.currentObservers = Array.from(this.observers);
766
- }
767
- for (const observer of this.currentObservers) {
768
- observer.next(value);
769
- }
770
- }
771
- });
772
- }
773
- error(err) {
774
- errorContext(() => {
775
- this._throwIfClosed();
776
- if (!this.isStopped) {
777
- this.hasError = this.isStopped = true;
778
- this.thrownError = err;
779
- const { observers } = this;
780
- while (observers.length) {
781
- observers.shift().error(err);
782
- }
783
- }
784
- });
785
- }
786
- complete() {
787
- errorContext(() => {
788
- this._throwIfClosed();
789
- if (!this.isStopped) {
790
- this.isStopped = true;
791
- const { observers } = this;
792
- while (observers.length) {
793
- observers.shift().complete();
794
- }
795
- }
796
- });
797
- }
798
- unsubscribe() {
799
- this.isStopped = this.closed = true;
800
- this.observers = this.currentObservers = null;
801
- }
802
- get observed() {
803
- var _a;
804
- return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
805
- }
806
- _trySubscribe(subscriber) {
807
- this._throwIfClosed();
808
- return super._trySubscribe(subscriber);
809
- }
810
- _subscribe(subscriber) {
811
- this._throwIfClosed();
812
- this._checkFinalizedStatuses(subscriber);
813
- return this._innerSubscribe(subscriber);
814
- }
815
- _innerSubscribe(subscriber) {
816
- const { hasError, isStopped, observers } = this;
817
- if (hasError || isStopped) {
818
- return EMPTY_SUBSCRIPTION;
819
- }
820
- this.currentObservers = null;
821
- observers.push(subscriber);
822
- return new Subscription(() => {
823
- this.currentObservers = null;
824
- arrRemove(observers, subscriber);
825
- });
826
- }
827
- _checkFinalizedStatuses(subscriber) {
828
- const { hasError, thrownError, isStopped } = this;
829
- if (hasError) {
830
- subscriber.error(thrownError);
831
- }
832
- else if (isStopped) {
833
- subscriber.complete();
834
- }
835
- }
836
- asObservable() {
837
- const observable = new Observable();
838
- observable.source = this;
839
- return observable;
840
- }
841
- }
842
- Subject.create = (destination, source) => {
843
- return new AnonymousSubject(destination, source);
844
- };
845
- class AnonymousSubject extends Subject {
846
- constructor(destination, source) {
847
- super();
848
- this.destination = destination;
849
- this.source = source;
850
- }
851
- next(value) {
852
- var _a, _b;
853
- (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);
854
- }
855
- error(err) {
856
- var _a, _b;
857
- (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
858
- }
859
- complete() {
860
- var _a, _b;
861
- (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
862
- }
863
- _subscribe(subscriber) {
864
- var _a, _b;
865
- return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
866
- }
867
- }
868
-
869
- const dateTimestampProvider = {
870
- now() {
871
- return (dateTimestampProvider.delegate || Date).now();
872
- },
873
- delegate: undefined,
874
- };
875
-
876
- class Action extends Subscription {
877
- constructor(scheduler, work) {
878
- super();
879
- }
880
- schedule(state, delay = 0) {
881
- return this;
882
- }
883
- }
884
-
885
- const intervalProvider = {
886
- setInterval(handler, timeout, ...args) {
887
- const { delegate } = intervalProvider;
888
- if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {
889
- return delegate.setInterval(handler, timeout, ...args);
890
- }
891
- return setInterval(handler, timeout, ...args);
892
- },
893
- clearInterval(handle) {
894
- const { delegate } = intervalProvider;
895
- return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);
896
- },
897
- delegate: undefined,
898
- };
899
-
900
- class AsyncAction extends Action {
901
- constructor(scheduler, work) {
902
- super(scheduler, work);
903
- this.scheduler = scheduler;
904
- this.work = work;
905
- this.pending = false;
906
- }
907
- schedule(state, delay = 0) {
908
- if (this.closed) {
909
- return this;
910
- }
911
- this.state = state;
912
- const id = this.id;
913
- const scheduler = this.scheduler;
914
- if (id != null) {
915
- this.id = this.recycleAsyncId(scheduler, id, delay);
916
- }
917
- this.pending = true;
918
- this.delay = delay;
919
- this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
920
- return this;
921
- }
922
- requestAsyncId(scheduler, _id, delay = 0) {
923
- return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);
924
- }
925
- recycleAsyncId(_scheduler, id, delay = 0) {
926
- if (delay != null && this.delay === delay && this.pending === false) {
927
- return id;
928
- }
929
- intervalProvider.clearInterval(id);
930
- return undefined;
931
- }
932
- execute(state, delay) {
933
- if (this.closed) {
934
- return new Error('executing a cancelled action');
935
- }
936
- this.pending = false;
937
- const error = this._execute(state, delay);
938
- if (error) {
939
- return error;
940
- }
941
- else if (this.pending === false && this.id != null) {
942
- this.id = this.recycleAsyncId(this.scheduler, this.id, null);
943
- }
944
- }
945
- _execute(state, _delay) {
946
- let errored = false;
947
- let errorValue;
948
- try {
949
- this.work(state);
950
- }
951
- catch (e) {
952
- errored = true;
953
- errorValue = e ? e : new Error('Scheduled action threw falsy error');
954
- }
955
- if (errored) {
956
- this.unsubscribe();
957
- return errorValue;
958
- }
959
- }
960
- unsubscribe() {
961
- if (!this.closed) {
962
- const { id, scheduler } = this;
963
- const { actions } = scheduler;
964
- this.work = this.state = this.scheduler = null;
965
- this.pending = false;
966
- arrRemove(actions, this);
967
- if (id != null) {
968
- this.id = this.recycleAsyncId(scheduler, id, null);
969
- }
970
- this.delay = null;
971
- super.unsubscribe();
972
- }
973
- }
974
- }
975
-
976
- class Scheduler {
977
- constructor(schedulerActionCtor, now = Scheduler.now) {
978
- this.schedulerActionCtor = schedulerActionCtor;
979
- this.now = now;
980
- }
981
- schedule(work, delay = 0, state) {
982
- return new this.schedulerActionCtor(this, work).schedule(state, delay);
983
- }
984
- }
985
- Scheduler.now = dateTimestampProvider.now;
986
-
987
- class AsyncScheduler extends Scheduler {
988
- constructor(SchedulerAction, now = Scheduler.now) {
989
- super(SchedulerAction, now);
990
- this.actions = [];
991
- this._active = false;
992
- this._scheduled = undefined;
993
- }
994
- flush(action) {
995
- const { actions } = this;
996
- if (this._active) {
997
- actions.push(action);
998
- return;
999
- }
1000
- let error;
1001
- this._active = true;
1002
- do {
1003
- if ((error = action.execute(action.state, action.delay))) {
1004
- break;
1005
- }
1006
- } while ((action = actions.shift()));
1007
- this._active = false;
1008
- if (error) {
1009
- while ((action = actions.shift())) {
1010
- action.unsubscribe();
1011
- }
1012
- throw error;
1013
- }
1014
- }
1015
- }
1016
-
1017
- const asyncScheduler = new AsyncScheduler(AsyncAction);
1018
-
1019
- function debounceTime(dueTime, scheduler = asyncScheduler) {
1020
- return operate((source, subscriber) => {
1021
- let activeTask = null;
1022
- let lastValue = null;
1023
- let lastTime = null;
1024
- const emit = () => {
1025
- if (activeTask) {
1026
- activeTask.unsubscribe();
1027
- activeTask = null;
1028
- const value = lastValue;
1029
- lastValue = null;
1030
- subscriber.next(value);
1031
- }
1032
- };
1033
- function emitWhenIdle() {
1034
- const targetTime = lastTime + dueTime;
1035
- const now = scheduler.now();
1036
- if (now < targetTime) {
1037
- activeTask = this.schedule(undefined, targetTime - now);
1038
- subscriber.add(activeTask);
1039
- return;
1040
- }
1041
- emit();
1042
- }
1043
- source.subscribe(createOperatorSubscriber(subscriber, (value) => {
1044
- lastValue = value;
1045
- lastTime = scheduler.now();
1046
- if (!activeTask) {
1047
- activeTask = scheduler.schedule(emitWhenIdle, dueTime);
1048
- subscriber.add(activeTask);
1049
- }
1050
- }, () => {
1051
- emit();
1052
- subscriber.complete();
1053
- }, undefined, () => {
1054
- lastValue = activeTask = null;
1055
- }));
1056
- });
1057
- }
1058
-
1059
- function distinctUntilChanged(comparator, keySelector = identity) {
1060
- comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;
1061
- return operate((source, subscriber) => {
1062
- let previousKey;
1063
- let first = true;
1064
- source.subscribe(createOperatorSubscriber(subscriber, (value) => {
1065
- const currentKey = keySelector(value);
1066
- if (first || !comparator(previousKey, currentKey)) {
1067
- first = false;
1068
- previousKey = currentKey;
1069
- subscriber.next(value);
1070
- }
1071
- }));
1072
- });
1073
- }
1074
- function defaultCompare(a, b) {
1075
- return a === b;
1076
- }
1077
-
1078
- const tableHeaderComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.grid{display:grid!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-full{width:100%!important}.w-auto{width:auto!important}.flex-1{flex:1 1 0%!important}.flex-col{flex-direction:column!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.justify-self-start{justify-self:start!important}.justify-self-end{justify-self:end!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.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)!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column;gap:1rem;padding:1rem;width:100%}@media (min-width:64rem){:host{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:1.5rem}}:host p-segment-container{grid-column-start:1;justify-self:start}:host>div{grid-column-start:2}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.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)!important}";
1079
-
1080
- const TableHeader = class {
1081
- constructor(hostRef) {
1082
- index.registerInstance(this, hostRef);
1083
- this.quickFilter = index.createEvent(this, "quickFilter", 7);
1084
- this.queryChange = index.createEvent(this, "queryChange", 7);
1085
- this.filter = index.createEvent(this, "filter", 7);
1086
- this.edit = index.createEvent(this, "edit", 7);
1087
- /**
1088
- * Quick filters to show
1089
- */
1090
- this.quickFilters = [];
1091
- /**
1092
- * Wether to show the search input
1093
- */
1094
- this.enableSearch = true;
1095
- /**
1096
- * The amount of items that are selected
1097
- */
1098
- this.itemsSelectedAmount = 0;
1099
- /**
1100
- * Wether to show the filter button
1101
- */
1102
- this.enableFilter = true;
1103
- /**
1104
- * The template for the filter button text
1105
- */
1106
- this.filterButtonTemplate = () => localization.formatTranslation(this._locales.filter);
1107
- /**
1108
- * Wether to show the edit button
1109
- */
1110
- this.enableEdit = true;
1111
- /**
1112
- * Wether to enable the edit button
1113
- */
1114
- this.canEdit = false;
1115
- /**
1116
- * The template for the edit button text
1117
- */
1118
- this.editButtonTemplate = (amount) => localization.formatTranslation(amount === 0
1119
- ? this._locales.edit
1120
- : amount === 1
1121
- ? this._locales.edit_single
1122
- : this._locales.edit_plural, { amount });
1123
- /**
1124
- * Locales used for this component
1125
- */
1126
- this._locales = {};
1127
- this._queryObserver = new Subject();
1128
- }
1129
- componentWillLoad() {
1130
- this._setLocales();
1131
- }
1132
- componentDidLoad() {
1133
- this._queryObserver
1134
- .pipe(debounceTime(300), distinctUntilChanged())
1135
- .subscribe((value) => this.queryChange.emit(value));
1136
- }
1137
- render() {
1138
- return (index.h(index.Host, { class: "p-table-header" }, this.quickFilters.length > 0 && (index.h("p-segment-container", { class: "hidden desktop-xs:flex" }, this.quickFilters.map((item) => (index.h("p-segment-item", { active: item.identifier ===
1139
- this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string'
1140
- ? item.text
1141
- : item.text(), ' ', (item === null || item === void 0 ? void 0 : item.count) >= 0 ? `(${item.count})` : ''))))), index.h("div", { class: "flex flex-col desktop-xs:flex-row gap-4 justify-end justify-self-end" }, this.enableSearch && (index.h("p-input-group", { icon: "search", size: "small" }, index.h("input", { type: "text", slot: "input", placeholder: "Zoeken...", value: this.query, onInput: (ev) => this._queryObserver.next(ev.target.value) }))), this.enableFilter && (index.h("p-button", { icon: "filter", variant: "secondary", size: "small", class: "w-full desktop-xs:w-auto", onClick: () => this.filter.emit() }, this.filterButtonTemplate(), this.selectedFiltersAmount && (index.h("p-label", { size: "small", variant: "negative", "mobile-icon": false, circle: false, class: "ml-1" }, this.selectedFiltersAmount)))), this.enableEdit && this._buttonTemplate()), this.enableEdit && this.canEdit && (index.h("div", { class: "fixed bottom-0 left-0 w-full p-4 bg-white border border-solid border-transparent border-t-mystic-dark block desktop-xs:hidden" }, this._buttonTemplate(true)))));
1142
- }
1143
- async _setLocales() {
1144
- this._locales = await localization.getLocaleComponentStrings(this._el);
1145
- }
1146
- _buttonTemplate(mobile = false) {
1147
- return (index.h("p-button", { class: !mobile && 'hidden desktop-xs:flex', icon: "pencil", size: "small", width: mobile ? 'full' : 'auto', disabled: !this.canEdit, onClick: () => this.edit.emit() }, this.editButtonTemplate(mobile ? this.itemsSelectedAmount : 0)));
1148
- }
1149
- get _el() { return index.getElement(this); }
1150
- };
1151
- TableHeader.style = tableHeaderComponentCss;
1152
-
1153
- const tableRowComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.w-full{width:100%!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-auto{width:auto!important}.flex-1{flex:1 1 0%!important}.flex-col{flex-direction:column!important}.flex-nowrap{flex-wrap:nowrap!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.gap-4{gap:1rem!important}.justify-self-end{justify-self:end!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-y{border-bottom-width:1px!important;border-top-width:1px!important}.border-x-0{border-left-width:0!important;border-right-width:0!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-y-mystic-dark{border-bottom-color:rgb(218 230 240/var(--tw-border-opacity))!important}.border-t-mystic-dark,.border-y-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-indigo-light{background-color:rgb(241 246 255/var(--tw-bg-opacity))!important}.bg-indigo-light,.bg-white{--tw-bg-opacity:1!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-semibold{font-weight:600!important}.uppercase{text-transform:uppercase!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.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)!important}*{box-sizing:border-box}:host{--tw-text-opacity:1;color:rgb(128 130 158/var(--tw-text-opacity));display:flex;flex-direction:column;font-size:.875rem;line-height:1.25rem;padding-left:1.5rem;padding-right:1.5rem;width:100%}:host .content{align-items:center;display:flex;flex-wrap:nowrap;gap:1rem;justify-content:space-between;padding-bottom:1.5rem;padding-top:1.5rem;width:100%}:host(.variant-header){--tw-bg-opacity:1;--tw-text-opacity:1;--tw-border-opacity:1!important;background-color:rgb(252 253 254/var(--tw-bg-opacity));border-bottom:1px solid rgb(218 230 240/var(--tw-border-opacity))!important;border-left-style:solid!important;border-left-width:0!important;border-right-style:solid!important;border-right-width:0!important;border-top:1px solid rgb(218 230 240/var(--tw-border-opacity))!important;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.75rem;font-weight:600;line-height:1rem;text-transform:uppercase}:host(.variant-header) .content{padding-bottom:.5rem;padding-top:.5rem}:host(.enable-hover:hover){--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));cursor:pointer}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.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)!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}";
1154
-
1155
- const TableRow = class {
1156
- constructor(hostRef) {
1157
- index.registerInstance(this, hostRef);
1158
- /**
1159
- * Variant of the header
1160
- */
1161
- this.variant = 'default';
1162
- /**
1163
- * Enable hover
1164
- */
1165
- this.enableHover = true;
1166
- }
1167
- render() {
1168
- return (index.h(index.Host, { class: `p-table-row variant-${this.variant} ${this.enableHover &&
1169
- this.variant === 'default' &&
1170
- 'enable-hover'}` }, index.h("div", { class: "content" }, index.h("slot", null)), this.variant === 'default' && index.h("p-divider", { class: "m-0" })));
1171
- }
1172
- };
1173
- TableRow.style = tableRowComponentCss;
1174
-
1175
- exports.p_table_cell = TableCell;
1176
- exports.p_table_container = TableContainer;
1177
- exports.p_table_footer = TableFooter;
1178
- exports.p_table_header = TableHeader;
1179
- exports.p_table_row = TableRow;