@k-int/stripes-kint-components 2.2.0 → 2.3.0

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 (109) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/es/index.js +124 -4
  3. package/es/lib/ActionList/ActionList.js +7 -2
  4. package/es/lib/ActionList/ActionListFieldArray.js +49 -10
  5. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +2 -2
  6. package/es/lib/CustomProperties/Config/{CustomPropertiesView.js → CustomPropertyView.js} +5 -5
  7. package/es/lib/CustomProperties/Config/index.js +6 -4
  8. package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +72 -0
  9. package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +133 -0
  10. package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +279 -0
  11. package/es/lib/CustomProperties/Edit/CustomPropertyField.js +370 -0
  12. package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +156 -0
  13. package/es/lib/CustomProperties/Edit/index.js +51 -0
  14. package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +216 -0
  15. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +236 -0
  16. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +159 -0
  17. package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +119 -0
  18. package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +173 -0
  19. package/es/lib/CustomProperties/Filter/index.js +59 -0
  20. package/es/lib/CustomProperties/Filter/useOperators.js +138 -0
  21. package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +97 -0
  22. package/es/lib/CustomProperties/Filter/useValueProps.js +101 -0
  23. package/es/lib/CustomProperties/View/CustomPropertiesView.js +73 -0
  24. package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +187 -0
  25. package/es/lib/CustomProperties/View/CustomPropertyCard.js +204 -0
  26. package/es/lib/CustomProperties/View/index.js +35 -0
  27. package/es/lib/CustomProperties/index.js +125 -0
  28. package/es/lib/EditableRefdataList/EditableRefdataList.js +12 -16
  29. package/es/lib/FormModal/FormModal.js +18 -4
  30. package/es/lib/QueryTypedown/QueryTypedown.js +9 -4
  31. package/es/lib/constants/customProperties.js +4 -1
  32. package/es/lib/hooks/index.js +16 -0
  33. package/es/lib/hooks/typedownHooks/useTypedownData.js +9 -2
  34. package/es/lib/hooks/useAvailableCustomProperties.js +106 -0
  35. package/es/lib/hooks/useInvalidateRefdata.js +53 -0
  36. package/es/lib/hooks/useMutateRefdataValue.js +11 -6
  37. package/es/lib/hooks/useRefdata.js +1 -3
  38. package/es/lib/utils/groupCustomPropertiesByCtx.js +69 -0
  39. package/es/lib/utils/index.js +24 -0
  40. package/es/lib/utils/refdataQueryKey.js +48 -0
  41. package/es/lib/utils/typedownQueryKey.js +48 -0
  42. package/es/lib/utils/validators.js +60 -1
  43. package/git_translate.sh +8 -0
  44. package/package.json +1 -1
  45. package/src/index.js +27 -3
  46. package/src/lib/ActionList/ActionList.js +5 -2
  47. package/src/lib/ActionList/ActionListFieldArray.js +31 -8
  48. package/src/lib/ActionList/README.md +23 -20
  49. package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +2 -2
  50. package/src/lib/CustomProperties/Config/{CustomPropertiesView.js → CustomPropertyView.js} +3 -3
  51. package/src/lib/CustomProperties/Config/index.js +1 -1
  52. package/src/lib/CustomProperties/Edit/CustomPropertiesEdit.js +35 -0
  53. package/src/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +85 -0
  54. package/src/lib/CustomProperties/Edit/CustomPropertiesListField.js +194 -0
  55. package/src/lib/CustomProperties/Edit/CustomPropertyField.js +299 -0
  56. package/src/lib/CustomProperties/Edit/CustomPropertyFormCard.js +131 -0
  57. package/src/lib/CustomProperties/Edit/index.js +5 -0
  58. package/src/lib/CustomProperties/Filter/CustomPropertiesFilter.js +125 -0
  59. package/src/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +148 -0
  60. package/src/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +113 -0
  61. package/src/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +74 -0
  62. package/src/lib/CustomProperties/Filter/CustomPropertiesRule.js +122 -0
  63. package/src/lib/CustomProperties/Filter/index.js +6 -0
  64. package/src/lib/CustomProperties/Filter/useOperators.js +55 -0
  65. package/src/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +35 -0
  66. package/src/lib/CustomProperties/Filter/useValueProps.js +45 -0
  67. package/src/lib/CustomProperties/View/CustomPropertiesView.js +36 -0
  68. package/src/lib/CustomProperties/View/CustomPropertiesViewCtx.js +112 -0
  69. package/src/lib/CustomProperties/View/CustomPropertyCard.js +177 -0
  70. package/src/lib/CustomProperties/View/index.js +3 -0
  71. package/src/lib/CustomProperties/index.js +30 -0
  72. package/src/lib/EditableRefdataList/EditableRefdataList.js +13 -10
  73. package/src/lib/FormModal/FormModal.js +37 -17
  74. package/src/lib/QueryTypedown/QueryTypedown.js +3 -1
  75. package/src/lib/constants/customProperties.js +1 -0
  76. package/src/lib/hooks/index.js +2 -0
  77. package/src/lib/hooks/typedownHooks/useTypedownData.js +9 -3
  78. package/src/lib/hooks/useAvailableCustomProperties.js +40 -0
  79. package/src/lib/hooks/useInvalidateRefdata.js +11 -0
  80. package/src/lib/hooks/useMutateRefdataValue.js +7 -3
  81. package/src/lib/hooks/useRefdata.js +2 -3
  82. package/src/lib/utils/groupCustomPropertiesByCtx.js +13 -0
  83. package/src/lib/utils/index.js +5 -0
  84. package/src/lib/utils/refdataQueryKey.js +9 -0
  85. package/src/lib/utils/typedownQueryKey.js +9 -0
  86. package/src/lib/utils/validators.js +40 -0
  87. package/translate.sh +63 -0
  88. package/translations/stripes-kint-components/ar.json +105 -0
  89. package/translations/stripes-kint-components/ca.json +1 -0
  90. package/translations/stripes-kint-components/cs_CZ.json +105 -0
  91. package/translations/stripes-kint-components/da.json +1 -0
  92. package/translations/stripes-kint-components/de.json +105 -0
  93. package/translations/stripes-kint-components/en.json +54 -2
  94. package/translations/stripes-kint-components/es.json +105 -0
  95. package/translations/stripes-kint-components/fr.json +105 -0
  96. package/translations/stripes-kint-components/he.json +1 -0
  97. package/translations/stripes-kint-components/hi_IN.json +105 -0
  98. package/translations/stripes-kint-components/hu.json +105 -0
  99. package/translations/stripes-kint-components/it_IT.json +105 -0
  100. package/translations/stripes-kint-components/ja.json +105 -0
  101. package/translations/stripes-kint-components/ko.json +105 -0
  102. package/translations/stripes-kint-components/nb.json +1 -0
  103. package/translations/stripes-kint-components/nn.json +1 -0
  104. package/translations/stripes-kint-components/pl.json +105 -0
  105. package/translations/stripes-kint-components/pt_PT.json +105 -0
  106. package/translations/stripes-kint-components/ru.json +105 -0
  107. package/translations/stripes-kint-components/sv.json +105 -0
  108. package/translations/stripes-kint-components/ur.json +1 -0
  109. package/translations/stripes-kint-components/zh_CN.json +105 -0
@@ -0,0 +1,105 @@
1
+ {
2
+ "AND": "och",
3
+ "OR": "eller",
4
+ "create": "Skapa",
5
+ "edit": "Edit",
6
+ "save": "Spara",
7
+ "cancel": "Avbokning",
8
+ "delete": "Delete",
9
+ "apply": "Applicera",
10
+ "notSet": "Inte set",
11
+ "errors.hasNonAlphaName": "Namnet kan endast innehålla latinska alfabetiska tecken (a-z) och icke-ledande numeriska tecken.",
12
+ "settings.noCurrentValue": "Inget nuvarande värde",
13
+ "settings.default": "Default",
14
+ "settings.edit": "Edit",
15
+ "settings.settingLoading": "Loading",
16
+ "settings.finishEditing": "Finish redigering",
17
+ "settings.valueFor": "Värde för inställning {namn}",
18
+ "actionList.save": "Spara",
19
+ "actionList.cancel": "Avbokning",
20
+ "actionList.create": "Skapa",
21
+ "actionList.actions": "Åtgärder",
22
+ "editableRefdataList.edit": "Edit",
23
+ "editableRefdataList.delete": "Delete",
24
+ "editableRefdataList.label": "Etikett",
25
+ "editableRefdataList.value": "Värde",
26
+ "sasqLookupComponent.mainPane.found": "{total} rekord funna",
27
+ "noResultsMessage.showFilters": "Visa filter",
28
+ "customProperties": "Anpassade egenskaper",
29
+ "customProperties.all": "Allt allt",
30
+ "customProperties.none": "Ingen",
31
+ "customProperties.label": "Etikett",
32
+ "customProperties.primary": "Primär",
33
+ "customProperties.retired": "Pensionerad",
34
+ "customProperties.ctx": "Kontext",
35
+ "customProperties.ctx.addContext": "Lägg till kontext {värde}",
36
+ "customProperties.weight": "Ordervikt",
37
+ "customProperties.type": "Typ",
38
+ "customProperties.internalFalse": "Offentliga",
39
+ "customProperties.internalNote": "Intern anmärkning",
40
+ "customProperties.internalTrue": "Interna",
41
+ "customProperties.publicNote": "Public note",
42
+ "customProperties.name": "Namnnamn",
43
+ "customProperties.description": "Beskrivning",
44
+ "customProperties.category": "Picklist",
45
+ "customProperties.defaultVisibility": "Standard synlighet",
46
+ "customProperties.noCtxFound": "Inget matchande sammanhang hittades",
47
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyBlob": "Blob",
48
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyBoolean": "Boolean",
49
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyContainer": "Container",
50
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyDecimal": "Decimal",
51
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyInteger": "Integer",
52
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata": "Refdata",
53
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyRefdataDefinition": "Refdata definition",
54
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyText": "Texttext",
55
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyLocalDate": "Datum",
56
+ "customProperties.delete.confirmLabel": "Delete",
57
+ "customProperties.delete.confirmHeading": "Ta bort anpassad egendom",
58
+ "customProperties.delete.confirmMessage": "Anpassad egendom <strong>{nameś/strong> kommer att vara <strong>rade</strong>.",
59
+ "customProperties.primaryProperties": "Primära egenskaper",
60
+ "customProperties.optionalProperties": "Valfria egenskaper",
61
+ "customProperties.addProperty": "Lägg till egendom",
62
+ "customProperties.ctx.title": "Anpassade egenskaper ({cx})",
63
+ "customProperty.optionalPropertyHeader": "Fastighet {number}",
64
+ "customProperty.remove": "Ta bort egendom {number}",
65
+ "search": "Sök efter Sök",
66
+ "yes": "Ja ja ja ja ja",
67
+ "no": "Ingen",
68
+ "errors.invalidNumber": "Ange ett giltigt nummer för att fortsätta",
69
+ "errors.primaryRetired": "En egen egendom kan inte vara både primär och pensionerad",
70
+ "errors.customPropertyNoteInvalidNumber": "Ett giltigt nummer måste anges för att spara en anteckning",
71
+ "errors.customPropertyInvalidNumber": "Ange ett giltigt nummer för att fortsätta",
72
+ "errors.customPropertyNoteWithoutValue": "Ett värde måste ställas in för att spara en anteckning",
73
+ "errors.customPropertyValueNotInRange": "Ange ett helt nummer i intervallet {min} till {max} för att fortsätta",
74
+ "errors.customPropertyDecimalValueNotInRange": "Ange ett nummer i intervallet {min} till {max} för att fortsätta",
75
+ "errors.customPropertyMaxTwoDecimals": "Ange ett nummer med högst 2 decimaler",
76
+ "customProperty": "Anpassad egendom",
77
+ "customProperty.name": "Namnnamn",
78
+ "customProperty.value": "Värde",
79
+ "customProperty.internalNote": "Intern anmärkning",
80
+ "customProperty.visibility": "Synlighet",
81
+ "customProperty.publicNote": "Public note",
82
+ "customProperty.internalTrue": "Interna",
83
+ "customProperty.internalFalse": "Offentliga",
84
+ "customProperty.filtersApplied": "anpassade egenskaper filter tillämpas",
85
+ "customProperty.editCustomPropertyFilters": "Redigera anpassade fastighetsfilter",
86
+ "customProperty.filterBuilder": "Anpassad fastighet filter byggare",
87
+ "customProperty.filterIndex": "Anpassad egendom filter {index}",
88
+ "customProperty.removeFilter": "Ta bort anpassat fastighetsfilter {number}",
89
+ "customProperty.removeRule": "Ta bort regeln {number}",
90
+ "customProperty.addFilter": "Lägg till anpassat fastighetsfilter",
91
+ "customProperty.retiredName": "RETIRED: {namn}",
92
+ "customProperty.notSet": "Inte set",
93
+ "operator.isSet": "Är set",
94
+ "operator.isNotSet": "Är inte inställd",
95
+ "operator.equals": "Likaså",
96
+ "operator.doesNotEqual": "Är inte lika",
97
+ "operator.isGreaterThanOrEqual": "är större än eller lika med",
98
+ "operator.isLessThanOrEqual": "är mindre än eller lika med",
99
+ "operator.isOnOrAfter": "Är på eller efter",
100
+ "operator.isOnOrBefore": "Är på eller före",
101
+ "operator.is": "Är",
102
+ "operator.isNot": "Är inte",
103
+ "operator.contains": "Innehåll",
104
+ "operator.doesNotContain": "Innehåller inte"
105
+ }
@@ -0,0 +1,105 @@
1
+ {
2
+ "AND": "导 言",
3
+ "OR": "其他资源",
4
+ "create": "创建",
5
+ "edit": "编辑",
6
+ "save": "拯救",
7
+ "cancel": "增 编",
8
+ "delete": "删除",
9
+ "apply": "附录",
10
+ "notSet": "没有",
11
+ "errors.hasNonAlphaName": "该名称只可包括拉丁美洲名录(a-z)和非导体。",
12
+ "settings.noCurrentValue": "现值",
13
+ "settings.default": "违约",
14
+ "settings.edit": "编辑",
15
+ "settings.settingLoading": "损失",
16
+ "settings.finishEditing": "编辑",
17
+ "settings.valueFor": "确定名称的价值",
18
+ "actionList.save": "拯救",
19
+ "actionList.cancel": "增 编",
20
+ "actionList.create": "创建",
21
+ "actionList.actions": "行动",
22
+ "editableRefdataList.edit": "编辑",
23
+ "editableRefdataList.delete": "删除",
24
+ "editableRefdataList.label": "Label",
25
+ "editableRefdataList.value": "价值",
26
+ "sasqLookupComponent.mainPane.found": "目 录",
27
+ "noResultsMessage.showFilters": "技术过滤",
28
+ "customProperties": "习惯财产",
29
+ "customProperties.all": "一. 导言",
30
+ "customProperties.none": "无",
31
+ "customProperties.label": "Label",
32
+ "customProperties.primary": "小学",
33
+ "customProperties.retired": "重新谈判",
34
+ "customProperties.ctx": "背景",
35
+ "customProperties.ctx.addContext": "增 温",
36
+ "customProperties.weight": "命令",
37
+ "customProperties.type": "类型",
38
+ "customProperties.internalFalse": "公共",
39
+ "customProperties.internalNote": "内部说明",
40
+ "customProperties.internalTrue": "内部",
41
+ "customProperties.publicNote": "公开说明",
42
+ "customProperties.name": "姓名",
43
+ "customProperties.description": "说明",
44
+ "customProperties.category": "Picklist",
45
+ "customProperties.defaultVisibility": "A. Default可见度",
46
+ "customProperties.noCtxFound": "未发现的匹配情况",
47
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyBlob": "Blob",
48
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyBoolean": "Boolean",
49
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyContainer": "集装箱",
50
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyDecimal": "残疾",
51
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyInteger": "附录",
52
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyRefdata": "数据",
53
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyRefdataDefinition": "数据定义",
54
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyText": "案文",
55
+ "customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyLocalDate": "日期",
56
+ "customProperties.delete.confirmLabel": "删除",
57
+ "customProperties.delete.confirmHeading": "删除习俗财产",
58
+ "customProperties.delete.confirmMessage": "习惯财产<strong> ivi-</strong><strong>。",
59
+ "customProperties.primaryProperties": "初级财产",
60
+ "customProperties.optionalProperties": "备选案文财产",
61
+ "customProperties.addProperty": "增加财产",
62
+ "customProperties.ctx.title": "习惯财产(四分之三)",
63
+ "customProperty.optionalPropertyHeader": "财产编号",
64
+ "customProperty.remove": "搬离财产编号",
65
+ "search": "建 议",
66
+ "yes": "否",
67
+ "no": "注",
68
+ "errors.invalidNumber": "请获得继续有效数目",
69
+ "errors.primaryRetired": "习惯财产不能是初级和退休。",
70
+ "errors.customPropertyNoteInvalidNumber": "必须持有有效数目以挽救说明",
71
+ "errors.customPropertyInvalidNumber": "请获得继续有效数目",
72
+ "errors.customPropertyNoteWithoutValue": "必须确定价值,以挽救说明",
73
+ "errors.customPropertyValueNotInRange": "请进入继续保留的编号。",
74
+ "errors.customPropertyDecimalValueNotInRange": "请进入继续保留的编号。",
75
+ "errors.customPropertyMaxTwoDecimals": "请注意",
76
+ "customProperty": "习惯财产",
77
+ "customProperty.name": "姓名",
78
+ "customProperty.value": "价值",
79
+ "customProperty.internalNote": "内部说明",
80
+ "customProperty.visibility": "有效性",
81
+ "customProperty.publicNote": "公开说明",
82
+ "customProperty.internalTrue": "内部",
83
+ "customProperty.internalFalse": "公共",
84
+ "customProperty.filtersApplied": "(三) 习惯财产过滤",
85
+ "customProperty.editCustomPropertyFilters": "编辑财产过滤",
86
+ "customProperty.filterBuilder": "习惯财产过滤器",
87
+ "customProperty.filterIndex": "习惯财产过滤器",
88
+ "customProperty.removeFilter": "移用习俗财产过滤编号",
89
+ "customProperty.removeRule": "搬离规则编号",
90
+ "customProperty.addFilter": "增加习俗财产",
91
+ "customProperty.retiredName": "评 注:",
92
+ "customProperty.notSet": "没有",
93
+ "operator.isSet": "附 件",
94
+ "operator.isNotSet": "未作规定",
95
+ "operator.equals": "平等",
96
+ "operator.doesNotEqual": "否",
97
+ "operator.isGreaterThanOrEqual": "大于或等于",
98
+ "operator.isLessThanOrEqual": "低于或等于",
99
+ "operator.isOnOrAfter": "地点或之后",
100
+ "operator.isOnOrBefore": "议 程",
101
+ "operator.is": "附 件",
102
+ "operator.isNot": "目 录",
103
+ "operator.contains": "集装箱",
104
+ "operator.doesNotContain": "不含"
105
+ }