Card fixes (#8433)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2025-04-02 17:59:10 +07:00
committed by GitHub
parent 304cfe7a9d
commit fd10ab5f7d
17 changed files with 164 additions and 14 deletions
@@ -454,6 +454,7 @@
value={getValue(attribute, object)}
onChange={getOnChange(object, attribute)}
label={attribute.label}
attribute={attribute.attribute}
{...joinProps(attribute, object, readonly || $restrictionStore.readonly)}
/>
</div>
@@ -13,7 +13,7 @@
// limitations under the License.
-->
<script lang="ts">
import core, { AnyAttribute, ArrOf, Class, Doc, Ref, RefTo, Space, Type } from '@hcengineering/core'
import core, { AnyAttribute, ArrOf, Class, ClassifierKind, Doc, Ref, RefTo, Space, Type } from '@hcengineering/core'
import { getClient } from '@hcengineering/presentation'
import { Label, Scroller, Submenu, closePopup, closeTooltip, resizeObserver, showPopup } from '@hcengineering/ui'
import { ClassFilters, Filter, KeyFilter, KeyFilterPreset, ViewOptions } from '@hcengineering/view'
@@ -145,6 +145,8 @@
const desc = hierarchy.getDescendants(_class)
for (const d of desc) {
const cl = hierarchy.findClass(d)
if (cl?.kind !== ClassifierKind.MIXIN) continue
const extra = hierarchy.getOwnAttributes(d)
for (const [k, v] of extra) {
if (!allAttributes.has(k)) {
@@ -65,6 +65,7 @@
kind={'list'}
{compactMode}
label={attributeModel.label}
attribute={attributeModel.attribute}
{...joinProps(attributeModel, docObject, props, $restrictionStore.readonly)}
on:resize={translateSize}
/>
@@ -77,6 +78,7 @@
kind={'list'}
label={attributeModel.label}
{compactMode}
attribute={attributeModel.attribute}
{...joinProps(attributeModel, docObject, props, $restrictionStore.readonly)}
on:resize={translateSize}
/>