@mmlogic/components 0.4.2 → 0.4.3

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 (38) hide show
  1. package/dist/cjs/mrd-boolean-field_24.cjs.entry.js +34 -18
  2. package/dist/collection/components/documents/mrd-document-container/mrd-document-container.js +11 -4
  3. package/dist/collection/components/documents/mrd-document-list/mrd-document-list.js +28 -11
  4. package/dist/collection/components/documents/mrd-document-list/tree-view.js +1 -1
  5. package/dist/collection/components/layout/mrd-layout-section/mrd-layout-section.js +11 -4
  6. package/dist/collection/components/table/mrd-table/mrd-table.js +19 -5
  7. package/dist/collection/dev/app.js +4 -3
  8. package/dist/collection/utils/query-params.js +0 -4
  9. package/dist/components/mrd-document-container2.js +1 -1
  10. package/dist/components/mrd-document-list2.js +1 -1
  11. package/dist/components/mrd-layout-section.js +1 -1
  12. package/dist/components/mrd-table2.js +1 -1
  13. package/dist/esm/mrd-boolean-field_24.entry.js +34 -18
  14. package/dist/mosterdcomponents/mosterdcomponents.esm.js +1 -1
  15. package/dist/mosterdcomponents/p-e816d459.entry.js +1 -0
  16. package/dist/types/components/documents/mrd-document-container/mrd-document-container.d.ts +2 -0
  17. package/dist/types/components/documents/mrd-document-list/mrd-document-list.d.ts +8 -1
  18. package/dist/types/components/documents/mrd-document-list/tree-view.d.ts +1 -1
  19. package/dist/types/components/layout/mrd-layout-section/mrd-layout-section.d.ts +2 -0
  20. package/dist/types/components/table/mrd-table/mrd-table.d.ts +8 -2
  21. package/dist/types/components.d.ts +12 -10
  22. package/dist/types/index.d.ts +1 -0
  23. package/dist/types/utils/query-params.d.ts +14 -0
  24. package/package.json +1 -1
  25. package/dist/mosterdcomponents/cell-renderer-PbcEU4ph.js.map +0 -1
  26. package/dist/mosterdcomponents/client-layout-DCOAAH92.js.map +0 -1
  27. package/dist/mosterdcomponents/field-helpers-CASS3akr.js.map +0 -1
  28. package/dist/mosterdcomponents/file-upload-common-D1ndi6cN.js.map +0 -1
  29. package/dist/mosterdcomponents/format-BAfsQfy1.js.map +0 -1
  30. package/dist/mosterdcomponents/i18n-B1IIkRF9.js.map +0 -1
  31. package/dist/mosterdcomponents/index-AokUFVX0.js.map +0 -1
  32. package/dist/mosterdcomponents/index-CprJSlzK.js.map +0 -1
  33. package/dist/mosterdcomponents/index.esm.js.map +0 -1
  34. package/dist/mosterdcomponents/mosterdcomponents.esm.js.map +0 -1
  35. package/dist/mosterdcomponents/p-aae8a9dc.entry.js +0 -1
  36. package/dist/mosterdcomponents/query-params-B1HfnMOl.js.map +0 -1
  37. package/dist/mosterdcomponents/quill-C9pgw_k-.js.map +0 -1
  38. package/dist/mosterdcomponents/validation-DbEViuiw.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"query-params-B1HfnMOl.js","sources":["src/utils/query-params.ts"],"sourcesContent":["import { ViewFilter } from '../types/client-layout';\n\n/**\n * Shared path/query-param conventions for list requests,\n * used by mrd-table and mrd-document-list.\n */\n\n/** Applies the view-level static filters to `params` using the API operator conventions. */\nexport function applyViewFilters(params: URLSearchParams, filters: ViewFilter[] | null | undefined): void {\n for (const f of filters ?? []) {\n if (!f.name) continue;\n if (f.operator === 'EMPTY') { params.set(f.name, ''); continue; }\n if (f.operator === 'NOT_EMPTY') { params.set(f.name + '_notempty', 'true'); continue; }\n if (f.operator === 'STARTS_WITH') { params.set(f.name + '_startswith', String(f.value ?? '')); continue; }\n if (f.operator === 'FROM') { params.set(f.name + '_from', String(f.value ?? '')); continue; }\n if (f.operator === 'TO') { params.set(f.name + '_to', String(f.value ?? '')); continue; }\n if (f.value != null) { params.set(f.name, String(f.value)); }\n }\n}\n\n/** VIEW: `/{dataClass}`; RELATED_VIEW: `/{fromClass}/{parentId}/{dataClass}`. */\nexport function buildListPath(opts: {\n isRelatedView: boolean;\n fromClass?: string | null;\n parentId: string;\n dataClass?: string | null;\n}): string {\n if (opts.isRelatedView) {\n return `/${opts.fromClass ?? ''}/${opts.parentId}/${opts.data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