import { computed as t } from "vue";
import { af as e, a1 as i, a2 as r } from "./start-CE9SawgU.js";
import "vue-i18n";
import "pinia";
import "./header-Bn1EKnBE.js";
import { T as l, I as b } from "./topBarRoutes-CBd5qLxn.js";
const c = {
  // dynamicColumnsEndpoint: attributesApi.getColumns,
  gridId: "datahub-attributes",
  rowSelection: r.MULTI,
  hideGlobalSearch: !1,
  hideFilters: !1,
  hideColumnCustomization: !1,
  hidePagination: !1,
  sortType: i.SINGLE,
  createActions: !0,
  exactRowCount: !1,
  routableId: "attributeId",
  reloadOnLocaleChange: !0,
  tableActions: [
    {
      icon: "lucide:trash",
      title: "common.delete",
      variant: "outlined",
      color: "secondary",
      destructive: !0,
      event: l.DELETE,
      prepareIsDisabled: ({ selectedRows: a }) => t(() => !a.value.length)
    }
  ],
  columns: [
    {
      id: "id",
      header: "common.id",
      isVisible: !1,
      minWidth: 200,
      filterable: e.NUMERIC,
      sortable: !0
    },
    {
      id: "active",
      header: "datahub-ui.dh-table.status",
      renderer: "IsActiveStatusCell",
      minWidth: 100,
      width: 150,
      ...b,
      sortable: !0
    },
    {
      id: "name",
      header: "datahub-ui.dh-table.name",
      minWidth: 200,
      filterable: e.STRING,
      sortable: !0
    },
    {
      id: "key",
      header: "datahub-ui.dh-table.key",
      minWidth: 200,
      filterable: e.STRING,
      sortable: !0,
      className: "monospaced"
    },
    {
      id: "description",
      header: "datahub-ui.dh-table.description",
      minWidth: 200,
      filterable: e.STRING,
      sortable: !0
    },
    {
      id: "dataType",
      header: "datahub-ui.dh-table.dataType",
      minWidth: 200,
      accessor: ({ dataTypeInstance: a, dataType: d }) => a?.name ?? d,
      filterable: e.STRING,
      sortable: !0
    },
    {
      id: "group.name",
      header: "datahub-ui.dh-table.attributeGroup",
      minWidth: 200,
      filterable: e.STRING,
      sortable: !0
    },
    {
      id: "scopable",
      header: "datahub-ui.dh-table.multiChannel",
      renderer: "CheckboxCell",
      minWidth: 200,
      filterable: e.BOOLEAN,
      sortable: !0
    },
    {
      id: "multilanguage",
      header: "datahub-ui.dh-table.multiLanguage",
      renderer: "CheckboxCell",
      minWidth: 200,
      filterable: e.BOOLEAN,
      sortable: !0
    },
    {
      id: "readOnly",
      header: "datahub-ui.dh-table.readOnly",
      renderer: "CheckboxCell",
      minWidth: 200,
      filterable: e.BOOLEAN,
      sortable: !0
    },
    {
      id: "containsSensitiveData",
      header: "datahub-ui.dh-table.containsSensitiveData",
      isVisible: !1,
      renderer: "CheckboxCell",
      minWidth: 200,
      filterable: e.BOOLEAN,
      sortable: !0
    },
    {
      id: "ownerPluginName",
      header: "datahub-ui.dh-table.ownerPluginName",
      minWidth: 200,
      filterable: !1,
      sortable: !1
    },
    {
      id: "created",
      header: "datahub-ui.dh-table.created",
      minWidth: 200,
      filterable: e.DATE,
      sortable: !0,
      renderer: "CellDateTime"
    },
    {
      id: "createdByUsername",
      header: "datahub-ui.dh-table.createdByUsername",
      minWidth: 200,
      isVisible: !1,
      filterable: !1,
      sortable: !1
    },
    {
      id: "modified",
      header: "datahub-ui.dh-table.modified",
      minWidth: 200,
      isVisible: !1,
      filterable: e.DATE,
      sortable: !0,
      renderer: "CellDateTime"
    },
    {
      id: "modifiedByUsername",
      header: "datahub-ui.dh-table.modifiedByUsername",
      minWidth: 200,
      isVisible: !1,
      filterable: !1,
      sortable: !1
    }
  ]
}, f = {
  // data: attributesApi.listAttributeSetAssignments, // load data locally to reuse on adding new assignments
  gridId: "datahub-assigned-attribute-sets",
  rowSelection: r.MULTI,
  hideGlobalSearch: !0,
  hideFilters: !0,
  hideColumnCustomization: !1,
  hidePagination: !1,
  sortType: i.SINGLE,
  createActions: !0,
  routable: !1,
  reloadOnLocaleChange: !0,
  tableActions: [
    {
      icon: "lucide:trash",
      title: "common.remove",
      variant: "outlined",
      color: "secondary",
      destructive: !0,
      event: l.DELETE,
      prepareIsDisabled: ({ selectedRows: a }) => t(() => !a.value.length)
    }
  ],
  columns: [
    {
      id: "id",
      header: "common.id",
      isVisible: !1,
      minWidth: 200,
      filterable: e.NUMERIC,
      sortable: !0
    },
    {
      id: "attributeSetName",
      header: "datahub-ui.dh-table.attributeSetName",
      minWidth: 200,
      filterable: e.STRING,
      sortable: !0
    },
    {
      id: "ownerPluginName",
      header: "datahub-ui.dh-table.ownerPluginName",
      minWidth: 200,
      filterable: e.STRING,
      sortable: !0
    },
    {
      id: "parentSetName",
      header: "datahub-ui.dh-table.parentSetName",
      minWidth: 200,
      isVisible: !1,
      filterable: e.STRING,
      sortable: !0
    },
    {
      id: "calculatedFromFields",
      header: "datahub-ui.dh-table.calculatedFromFields",
      renderer: "CheckboxCell",
      minWidth: 200,
      filterable: e.BOOLEAN,
      sortable: !0
    },
    {
      id: "configTextSet",
      header: "datahub-ui.dh-table.configTextSet",
      minWidth: 200,
      isVisible: !1,
      filterable: e.STRING,
      sortable: !0
    },
    {
      id: "inherited",
      header: "datahub-ui.dh-table.inherited",
      renderer: "CheckboxCell",
      minWidth: 200,
      filterable: e.BOOLEAN,
      sortable: !0
    },
    {
      id: "readOnly",
      header: "datahub-ui.dh-table.readOnly",
      renderer: "CheckboxCell",
      minWidth: 200,
      filterable: e.BOOLEAN,
      sortable: !0
    },
    {
      id: "requiredFlag",
      header: "datahub-ui.dh-table.requiredFlag",
      renderer: "CheckboxCell",
      minWidth: 200,
      filterable: e.BOOLEAN,
      sortable: !0
    },
    {
      id: "uniqueFlag",
      header: "datahub-ui.dh-table.uniqueFlag",
      renderer: "CheckboxCell",
      minWidth: 200,
      filterable: e.BOOLEAN,
      sortable: !0
    },
    {
      id: "created",
      header: "datahub-ui.dh-table.created",
      minWidth: 200,
      filterable: e.DATE,
      sortable: !0,
      renderer: "CellDateTime"
    },
    {
      id: "modified",
      header: "datahub-ui.dh-table.modified",
      minWidth: 200,
      isVisible: !1,
      filterable: e.DATE,
      sortable: !0,
      renderer: "CellDateTime"
    }
  ]
}, T = {
  hideGlobalSearch: !0,
  minRowCount: 1,
  canReorderRows: !1,
  hidePagination: !0,
  canReorderHeaders: !1,
  columns: [
    {
      id: "attributeSetId",
      header: "datahub-ui.dh-table.name"
    },
    {
      id: "requireFlag",
      header: "datahub-ui.dh-table.requiredFlag"
    }
  ]
};
export {
  T as A,
  f as a,
  c as b
};
