@@ -409,13 +409,24 @@ export const ShowcaseTranslationBundle = {
409409 showcase_field_zoo : {
410410 label : '字段动物园' , pluralLabel : '字段动物园' ,
411411 fields : { f_lookups : { label : '查找 → 客户(多值)' } } ,
412+ // 三个视图共用一套门控动作,差别只在「被门控的字段是否也作为列显示」——
413+ // 即客户端是否展开它、投影是否本来就会带上它。见 ui/views/field-zoo.view.ts。
414+ _views : {
415+ list : { label : '字段动物园' } ,
416+ gated_columns : { label : '被门控字段作为列' } ,
417+ inline_bulk_defs : { label : '内联批量定义' } ,
418+ } ,
412419 // #3405 — the inline system-object picker specimen. Translated at birth
413420 // because `check-i18n-coverage` ratchets this example at its current
414421 // untranslated count: a newly declared label that skips zh-CN pushes the
415422 // count up and fails the gate. (The gallery's older params sit inside
416423 // that baseline; this one is not allowed to widen it.) `负责人` matches
417424 // what the bundle already renders for `showcase_task.assignee`, rather
418425 // than introducing a second word for the same idea.
426+ // 动作显隐矩阵(objectui#3492 / #3501)。同上:本示例被
427+ // `check-i18n-coverage` 按当前未翻译计数上了棘轮,新声明的标签必须当场
428+ // 翻译,否则计数上涨、门变红。标签本身是覆盖夹具的说明文字,中文照写同
429+ // 一句技术陈述,不做意译。
419430 _actions : {
420431 showcase_action_param_gallery : {
421432 params : {
@@ -425,6 +436,63 @@ export const ShowcaseTranslationBundle = {
425436 } ,
426437 } ,
427438 } ,
439+ showcase_zoo_relation_gate : { label : '查找 == 多值第一项' , successMessage : '两个关系都解析到同一个 id。' } ,
440+ showcase_zoo_user_gate : { label : '指派给我(user 字段)' , successMessage : '你是这条标本的指派用户。' } ,
441+ showcase_zoo_dialect_split : { label : '仅 CEL:contains()' } ,
442+ showcase_zoo_toolbar_gate : { label : '仅登录可见(工具栏)' , successMessage : '工具栏门通过。' } ,
443+ showcase_zoo_visible_string : { label : 'visible:字符串' } ,
444+ showcase_zoo_visible_tagged : { label : 'visible:P`…` 标签模板' } ,
445+ showcase_zoo_visible_envelope : { label : 'visible:{ dialect, source } 信封' } ,
446+ showcase_zoo_disabled_gate : { label : '未评分则禁用' } ,
447+ showcase_zoo_perm_held : { label : '需要导出能力' } ,
448+ showcase_zoo_perm_missing : { label : '需要受限能力' } ,
449+ showcase_zoo_perm_and : { label : '需要同时具备两项能力' } ,
450+ showcase_zoo_perm_empty : { label : 'requiredPermissions:[]' } ,
451+ // 字段类型谓词园 —— 每种字段类型一条 `visible`。
452+ showcase_zoo_t_lookup : { label : 'lookup —— 已设置' } ,
453+ showcase_zoo_t_lookup_multi : { label : 'lookup 多值 —— 多于 1 项' } ,
454+ showcase_zoo_t_master_detail : { label : 'master_detail —— 已设置' } ,
455+ showcase_zoo_t_tree : { label : 'tree —— 未设置' } ,
456+ showcase_zoo_t_user : { label : 'user —— 未设置' } ,
457+ showcase_zoo_t_user_identity : { label : 'user —— 是我' } ,
458+ showcase_zoo_t_text : { label : 'text —— name 非空' } ,
459+ showcase_zoo_t_textarea : { label : 'textarea —— contains' } ,
460+ showcase_zoo_t_email : { label : 'email —— matches' } ,
461+ showcase_zoo_t_url : { label : 'url —— contains' } ,
462+ showcase_zoo_t_phone : { label : 'phone —— contains' } ,
463+ showcase_zoo_t_markdown : { label : 'markdown —— contains' } ,
464+ showcase_zoo_t_html : { label : 'html —— contains' } ,
465+ showcase_zoo_t_code : { label : 'code —— contains' } ,
466+ showcase_zoo_t_number : { label : 'number —— > 100' } ,
467+ showcase_zoo_t_currency : { label : 'currency —— > 1000' } ,
468+ showcase_zoo_t_percent : { label : 'percent —— >= 75' } ,
469+ showcase_zoo_t_rating : { label : 'rating —— >= 4' } ,
470+ showcase_zoo_t_slider : { label : 'slider —— > 50' } ,
471+ showcase_zoo_t_progress : { label : 'progress —— >= 80' } ,
472+ showcase_zoo_t_formula : { label : 'formula —— > 100' } ,
473+ showcase_zoo_t_autonumber : { label : 'autonumber —— 等于 0001' } ,
474+ showcase_zoo_t_date : { label : 'date —— 早于今天' } ,
475+ showcase_zoo_t_datetime : { label : 'datetime —— 已设置' } ,
476+ showcase_zoo_t_time : { label : 'time —— 等于 14:30' } ,
477+ showcase_zoo_t_boolean : { label : 'boolean —— 真' } ,
478+ showcase_zoo_t_toggle : { label : 'toggle —— 真' } ,
479+ showcase_zoo_t_select : { label : 'select —— high' } ,
480+ showcase_zoo_t_radio : { label : 'radio —— yes' } ,
481+ showcase_zoo_t_multiselect : { label : 'multiselect —— 含 red' } ,
482+ showcase_zoo_t_checkboxes : { label : 'checkboxes —— 含 email' } ,
483+ showcase_zoo_t_tags : { label : 'tags —— 非空' } ,
484+ showcase_zoo_t_json : { label : 'json —— 嵌套键' } ,
485+ showcase_zoo_t_location : { label : 'location —— 纬度 > 40' } ,
486+ showcase_zoo_t_address : { label : 'address —— 美国' } ,
487+ showcase_zoo_t_color : { label : 'color —— 等于 #2563EB' } ,
488+ showcase_zoo_t_composite : { label : 'composite —— width 为 10' } ,
489+ showcase_zoo_t_repeater : { label : 'repeater —— 2 行' } ,
490+ showcase_zoo_t_record : { label : 'record 套 record —— score 为 9' } ,
491+ showcase_zoo_t_vector : { label : 'vector —— 4 维' } ,
492+ showcase_zoo_t_and : { label : 'AND —— boolean && number' } ,
493+ showcase_zoo_t_or : { label : 'OR —— select || rating' } ,
494+ showcase_zoo_t_not : { label : 'NOT —— !boolean' } ,
495+ showcase_zoo_t_ternary : { label : '三元 —— rating ? :' } ,
428496 } ,
429497 } ,
430498 } ,
0 commit comments