@gooddata/sdk-ui-ext 11.43.0-alpha.2 → 11.43.0-alpha.4
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.
- package/NOTICE +4826 -13873
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -1
- package/esm/internal/components/configurationControls/ConfigSection.d.ts +2 -1
- package/esm/internal/components/configurationControls/ConfigSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSection.js +7 -3
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorDropdown.d.ts +4 -0
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorDropdown.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorDropdown.js +13 -2
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorPalette.d.ts +5 -0
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorPalette.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/colorDropdown/ColorPalette.js +5 -3
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingDialog.d.ts +13 -0
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingDialog.d.ts.map +1 -0
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingDialog.js +158 -0
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.d.ts +12 -0
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.d.ts.map +1 -0
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.js +54 -0
- package/esm/internal/components/configurationControls/conditionalFormatting/conditionalFormattingColors.d.ts +14 -0
- package/esm/internal/components/configurationControls/conditionalFormatting/conditionalFormattingColors.d.ts.map +1 -0
- package/esm/internal/components/configurationControls/conditionalFormatting/conditionalFormattingColors.js +32 -0
- package/esm/internal/components/configurationControls/conditionalFormatting/conditionalFormattingModel.d.ts +28 -0
- package/esm/internal/components/configurationControls/conditionalFormatting/conditionalFormattingModel.d.ts.map +1 -0
- package/esm/internal/components/configurationControls/conditionalFormatting/conditionalFormattingModel.js +149 -0
- package/esm/internal/components/configurationPanels/ConfigurationPanelContent.d.ts +1 -0
- package/esm/internal/components/configurationPanels/ConfigurationPanelContent.d.ts.map +1 -1
- package/esm/internal/components/configurationPanels/PivotTableConfigurationPanel.d.ts +1 -0
- package/esm/internal/components/configurationPanels/PivotTableConfigurationPanel.d.ts.map +1 -1
- package/esm/internal/components/configurationPanels/PivotTableConfigurationPanel.js +9 -1
- package/esm/internal/components/dialogs/userManagementDialogs/AddWorkspaceToSubjects.d.ts +0 -1
- package/esm/internal/components/dialogs/userManagementDialogs/AddWorkspaceToSubjects.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/AddWorkspaceToSubjects.js +3 -3
- package/esm/internal/components/dialogs/userManagementDialogs/UserEditDialog.d.ts +0 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserEditDialog.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserEditDialog.js +2 -2
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroupEditDialog.d.ts +0 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroupEditDialog.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/UserGroupEditDialog.js +3 -3
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/AddWorkspace.d.ts +1 -2
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/AddWorkspace.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/AddWorkspace.js +2 -2
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/GranularPermissions.d.ts +1 -2
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/GranularPermissions.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/GranularPermissions.js +3 -3
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/PermissionsDropdown.d.ts +0 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/PermissionsDropdown.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/PermissionsDropdown.js +3 -5
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/WorkspaceItem.d.ts +1 -2
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/WorkspaceItem.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/WorkspaceItem.js +2 -2
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceList.d.ts +0 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceList.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.d.ts +3 -0
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.js +33 -5
- package/esm/internal/constants/supportedProperties.d.ts.map +1 -1
- package/esm/internal/constants/supportedProperties.js +1 -0
- package/esm/internal/translations/de-DE.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/de-DE.localization-bundle.js +12 -1
- package/esm/internal/translations/en-AU.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/en-AU.localization-bundle.js +12 -1
- package/esm/internal/translations/en-GB.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/en-GB.localization-bundle.js +12 -1
- package/esm/internal/translations/en-US.localization-bundle.d.ts +168 -0
- package/esm/internal/translations/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/en-US.localization-bundle.js +168 -0
- package/esm/internal/translations/es-419.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/es-419.localization-bundle.js +12 -1
- package/esm/internal/translations/es-ES.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/es-ES.localization-bundle.js +12 -1
- package/esm/internal/translations/fi-FI.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/fi-FI.localization-bundle.js +12 -1
- package/esm/internal/translations/fr-CA.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/fr-CA.localization-bundle.js +12 -1
- package/esm/internal/translations/fr-FR.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/fr-FR.localization-bundle.js +12 -1
- package/esm/internal/translations/id-ID.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/id-ID.localization-bundle.js +12 -1
- package/esm/internal/translations/it-IT.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/it-IT.localization-bundle.js +12 -1
- package/esm/internal/translations/ja-JP.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/ja-JP.localization-bundle.js +12 -1
- package/esm/internal/translations/ko-KR.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/ko-KR.localization-bundle.js +12 -1
- package/esm/internal/translations/nl-NL.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/nl-NL.localization-bundle.js +12 -1
- package/esm/internal/translations/pl-PL.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/pl-PL.localization-bundle.js +12 -1
- package/esm/internal/translations/pt-BR.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/pt-BR.localization-bundle.js +12 -1
- package/esm/internal/translations/pt-PT.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/pt-PT.localization-bundle.js +12 -1
- package/esm/internal/translations/ru-RU.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/ru-RU.localization-bundle.js +12 -1
- package/esm/internal/translations/sl-SI.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/sl-SI.localization-bundle.js +12 -1
- package/esm/internal/translations/th-TH.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/th-TH.localization-bundle.js +12 -1
- package/esm/internal/translations/tr-TR.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/tr-TR.localization-bundle.js +12 -1
- package/esm/internal/translations/uk-UA.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/uk-UA.localization-bundle.js +12 -1
- package/esm/internal/translations/vi-VN.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/vi-VN.localization-bundle.js +12 -1
- package/esm/internal/translations/zh-HK.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/zh-HK.localization-bundle.js +12 -1
- package/esm/internal/translations/zh-Hans.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/zh-Hans.localization-bundle.js +12 -1
- package/esm/internal/translations/zh-Hant.localization-bundle.d.ts +11 -0
- package/esm/internal/translations/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/zh-Hant.localization-bundle.js +12 -1
- package/esm/internal/utils/propertiesHelper.d.ts +2 -1
- package/esm/internal/utils/propertiesHelper.d.ts.map +1 -1
- package/esm/internal/utils/propertiesHelper.js +3 -0
- package/esm/locales.d.ts +79 -0
- package/esm/locales.d.ts.map +1 -1
- package/esm/locales.js +46 -0
- package/esm/sdk-ui-ext.d.ts +24 -10
- package/esm/share/ObjectShareDialog.js +2 -2
- package/esm/share/objectShareController.helpers.d.ts +0 -26
- package/esm/share/objectShareController.helpers.d.ts.map +1 -1
- package/esm/share/objectShareController.helpers.js +2 -38
- package/esm/share/objectShareController.types.d.ts +39 -0
- package/esm/share/objectShareController.types.d.ts.map +1 -1
- package/esm/share/useAccessList.d.ts +31 -18
- package/esm/share/useAccessList.d.ts.map +1 -1
- package/esm/share/useAccessList.js +85 -133
- package/esm/share/useLabelScope.d.ts +6 -8
- package/esm/share/useLabelScope.d.ts.map +1 -1
- package/esm/share/useLabelScope.js +34 -28
- package/esm/share/useObjectShareController.d.ts +19 -16
- package/esm/share/useObjectShareController.d.ts.map +1 -1
- package/esm/share/useObjectShareController.js +212 -119
- package/package.json +21 -21
- package/styles/css/main.css +238 -0
- package/styles/css/main.css.map +1 -1
- package/styles/internal/css/conditional_formatting.css +239 -0
- package/styles/internal/css/conditional_formatting.css.map +1 -0
- package/styles/internal/css/config_panel.css +5 -0
- package/styles/internal/css/config_panel.css.map +1 -1
- package/styles/internal/scss/conditional_formatting.scss +269 -0
- package/styles/internal/scss/config_panel.scss +11 -0
- package/styles/scss/main.scss +1 -0
- package/esm/share/useObjectShare.d.ts +0 -50
- package/esm/share/useObjectShare.d.ts.map +0 -1
- package/esm/share/useObjectShare.js +0 -17
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
|
|
3
|
+
.gd-cf-section__subcategory {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: 9px;
|
|
7
|
+
margin-bottom: 5px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.gd-cf-section__rules-label {
|
|
11
|
+
flex: 0 0 auto;
|
|
12
|
+
color: var(--gd-palette-complementary-6);
|
|
13
|
+
font-size: 11px;
|
|
14
|
+
font-weight: bold;
|
|
15
|
+
text-transform: uppercase;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.gd-cf-section__divider {
|
|
19
|
+
flex: 1 1 auto;
|
|
20
|
+
height: 1px;
|
|
21
|
+
background: var(--gd-palette-complementary-3);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.gd-cf-section__add {
|
|
25
|
+
flex: 0 0 auto;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.gd-cf-section__empty {
|
|
29
|
+
padding: 5px 0 10px;
|
|
30
|
+
color: var(--gd-palette-complementary-6);
|
|
31
|
+
font-size: 12px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.gd-cf-section__rules {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
gap: 5px;
|
|
38
|
+
margin-bottom: 5px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.gd-cf-type-icon {
|
|
42
|
+
display: inline-block;
|
|
43
|
+
flex: 0 0 auto;
|
|
44
|
+
width: 16px;
|
|
45
|
+
height: 16px;
|
|
46
|
+
|
|
47
|
+
&::before {
|
|
48
|
+
width: 16px;
|
|
49
|
+
height: 16px;
|
|
50
|
+
background-size: contain;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.gd-cf-rule {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
border-radius: 3px;
|
|
58
|
+
|
|
59
|
+
&:hover {
|
|
60
|
+
background: var(--gd-palette-complementary-2);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&:has(.gd-cf-rule__delete:hover) {
|
|
64
|
+
background: var(--gd-palette-error-dimmed);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__body {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex: 1 1 auto;
|
|
70
|
+
align-items: center;
|
|
71
|
+
gap: 5px;
|
|
72
|
+
min-width: 0;
|
|
73
|
+
padding: 5px 8px;
|
|
74
|
+
border: none;
|
|
75
|
+
background: none;
|
|
76
|
+
text-align: left;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__title {
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
font-size: 12px;
|
|
83
|
+
text-overflow: ellipsis;
|
|
84
|
+
white-space: nowrap;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&__invalid {
|
|
88
|
+
flex: 0 0 auto;
|
|
89
|
+
color: var(--gd-palette-error-base);
|
|
90
|
+
font-size: 10px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&__delete {
|
|
94
|
+
flex: 0 0 auto;
|
|
95
|
+
visibility: hidden;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&:hover &__delete,
|
|
99
|
+
&:focus-within &__delete {
|
|
100
|
+
visibility: visible;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.gd-cf-rule .gd-cf-rule__delete::before {
|
|
105
|
+
color: var(--gd-palette-complementary-6);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.gd-cf-rule .gd-cf-rule__delete:hover::before {
|
|
109
|
+
color: var(--gd-palette-error-base);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.gd-cf-section__anchor {
|
|
113
|
+
display: block;
|
|
114
|
+
width: 0;
|
|
115
|
+
height: 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.gd-cf-dialog {
|
|
119
|
+
display: flex;
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
width: 260px;
|
|
122
|
+
max-height: 80vh;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
border: 1px solid var(--gd-palette-complementary-3);
|
|
125
|
+
border-radius: 3px;
|
|
126
|
+
background: var(--gd-palette-complementary-0);
|
|
127
|
+
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
|
|
128
|
+
|
|
129
|
+
&__header {
|
|
130
|
+
display: flex;
|
|
131
|
+
flex: 0 0 auto;
|
|
132
|
+
align-items: center;
|
|
133
|
+
height: 36px;
|
|
134
|
+
padding: 0 5px 0 10px;
|
|
135
|
+
background: var(--gd-palette-complementary-2);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&__title {
|
|
139
|
+
flex: 1 1 auto;
|
|
140
|
+
margin: 0;
|
|
141
|
+
color: var(--gd-palette-complementary-7);
|
|
142
|
+
font-size: 11px;
|
|
143
|
+
font-weight: bold;
|
|
144
|
+
text-transform: uppercase;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&__body {
|
|
148
|
+
display: flex;
|
|
149
|
+
flex: 1 1 auto;
|
|
150
|
+
flex-direction: column;
|
|
151
|
+
gap: 10px;
|
|
152
|
+
padding: 10px;
|
|
153
|
+
overflow-y: auto;
|
|
154
|
+
overscroll-behavior: contain;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&__label {
|
|
158
|
+
color: var(--gd-palette-complementary-7);
|
|
159
|
+
font-size: 12px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&__add-condition {
|
|
163
|
+
align-self: flex-start;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&__footer {
|
|
167
|
+
display: flex;
|
|
168
|
+
flex: 0 0 auto;
|
|
169
|
+
justify-content: flex-end;
|
|
170
|
+
gap: 10px;
|
|
171
|
+
padding: 10px;
|
|
172
|
+
border-top: 1px solid var(--gd-palette-complementary-3);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.dropdown-button,
|
|
176
|
+
.gd-input-field {
|
|
177
|
+
width: 100%;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.gd-cf-condition {
|
|
182
|
+
display: flex;
|
|
183
|
+
flex-direction: column;
|
|
184
|
+
gap: 5px;
|
|
185
|
+
padding: 5px 10px 10px;
|
|
186
|
+
border-radius: 3px;
|
|
187
|
+
background: var(--gd-palette-complementary-2);
|
|
188
|
+
|
|
189
|
+
&__header {
|
|
190
|
+
display: flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&__title {
|
|
195
|
+
flex: 1 1 auto;
|
|
196
|
+
color: var(--gd-palette-complementary-7);
|
|
197
|
+
font-size: 12px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&__range {
|
|
201
|
+
display: flex;
|
|
202
|
+
gap: 5px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&__format-row {
|
|
206
|
+
display: flex;
|
|
207
|
+
align-items: center;
|
|
208
|
+
gap: 5px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&__edit {
|
|
212
|
+
flex: 0 0 auto;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.gd-cf-preview {
|
|
217
|
+
display: flex;
|
|
218
|
+
flex: 1 1 auto;
|
|
219
|
+
justify-content: flex-end;
|
|
220
|
+
gap: 2px;
|
|
221
|
+
|
|
222
|
+
&__cell {
|
|
223
|
+
flex: 0 0 auto;
|
|
224
|
+
overflow: hidden;
|
|
225
|
+
padding: 4px 8px;
|
|
226
|
+
border: 1px dashed var(--gd-palette-complementary-4);
|
|
227
|
+
border-radius: 3px;
|
|
228
|
+
color: var(--gd-palette-complementary-8);
|
|
229
|
+
font-size: 12px;
|
|
230
|
+
text-align: right;
|
|
231
|
+
text-overflow: ellipsis;
|
|
232
|
+
white-space: nowrap;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.gd-cf-format {
|
|
237
|
+
display: flex;
|
|
238
|
+
align-items: center;
|
|
239
|
+
gap: 8px;
|
|
240
|
+
padding: 10px;
|
|
241
|
+
border: 1px solid var(--gd-palette-complementary-3);
|
|
242
|
+
border-radius: 3px;
|
|
243
|
+
background: var(--gd-palette-complementary-0);
|
|
244
|
+
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
|
|
245
|
+
|
|
246
|
+
&__label {
|
|
247
|
+
color: var(--gd-palette-complementary-7);
|
|
248
|
+
font-size: 12px;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.gd-cf-swatch {
|
|
253
|
+
display: inline-block;
|
|
254
|
+
width: 20px;
|
|
255
|
+
height: 20px;
|
|
256
|
+
border: 1px solid var(--gd-palette-complementary-4);
|
|
257
|
+
border-radius: 2px;
|
|
258
|
+
background: var(--gd-palette-complementary-0);
|
|
259
|
+
|
|
260
|
+
&--none {
|
|
261
|
+
background-image: linear-gradient(
|
|
262
|
+
to top right,
|
|
263
|
+
transparent calc(50% - 1px),
|
|
264
|
+
var(--gd-palette-error-base) calc(50% - 1px),
|
|
265
|
+
var(--gd-palette-error-base) calc(50% + 1px),
|
|
266
|
+
transparent calc(50% + 1px)
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
@@ -87,6 +87,17 @@ $color-picker-spacing: 5px;
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
.gd-color-list-item-none {
|
|
91
|
+
border-color: var(--gd-palette-complementary-4);
|
|
92
|
+
background-image: linear-gradient(
|
|
93
|
+
to top right,
|
|
94
|
+
transparent calc(50% - 1px),
|
|
95
|
+
var(--gd-palette-error-base) calc(50% - 1px),
|
|
96
|
+
var(--gd-palette-error-base) calc(50% + 1px),
|
|
97
|
+
transparent calc(50% + 1px)
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
90
101
|
.gd-chart-fill-section {
|
|
91
102
|
border-top: 1px solid kit-variables.$gd-border-color;
|
|
92
103
|
margin: 5px 10px 0;
|
package/styles/scss/main.scss
CHANGED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { IObjectPermissionsObject } from "@gooddata/sdk-backend-spi";
|
|
2
|
-
import type { IObjectShareController } from "./objectShareController.types.js";
|
|
3
|
-
import type { IObjectShareLabel } from "./types.js";
|
|
4
|
-
/**
|
|
5
|
-
* Options for {@link useObjectShare}.
|
|
6
|
-
*
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export interface IUseObjectShareOptions {
|
|
10
|
-
/**
|
|
11
|
-
* Fires after each successful access mutation (add grantee, change level,
|
|
12
|
-
* remove, general access toggle). Use it to keep UI outside the dialog in
|
|
13
|
-
* sync with edits made inside it (e.g. refresh an inline access row).
|
|
14
|
-
*/
|
|
15
|
-
onSaved?: () => void;
|
|
16
|
-
/**
|
|
17
|
-
* Labels (display forms) of the shared attribute, enabling the per-grantee
|
|
18
|
-
* label-scope picker. Omit for objects without labels (e.g. facts).
|
|
19
|
-
*/
|
|
20
|
-
labels?: IObjectShareLabel[];
|
|
21
|
-
/**
|
|
22
|
-
* Whether loading the object's labels failed. While true the controller stays
|
|
23
|
-
* label-unresolved so every access-changing control is disabled: with the
|
|
24
|
-
* label set unknown, reconciling access would diff against an empty set and
|
|
25
|
-
* silently orphan any real per-label grants. Distinct from an object that
|
|
26
|
-
* genuinely has no labels (omit `labels`), where editing is safe.
|
|
27
|
-
*/
|
|
28
|
-
labelsError?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Whether the object's labels are still loading. While true the controller stays
|
|
31
|
-
* label-unresolved (same gating as `labelsError`): the labels aren't passed yet,
|
|
32
|
-
* so an empty list must not be mistaken for a label-free object — otherwise row
|
|
33
|
-
* controls would reconcile against an empty set and orphan real per-label grants.
|
|
34
|
-
*/
|
|
35
|
-
labelsLoading?: boolean;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Connected controller hook backing {@link ObjectShareDialog}. Most consumers
|
|
39
|
-
* do not need this — render `ObjectShareDialog` with plain props and it owns
|
|
40
|
-
* its controller. Use this hook directly only to share a single access-list
|
|
41
|
-
* fetch between the dialog and an inline summary row: call it once, read
|
|
42
|
-
* `state.summary` for the row, and pass the controller into the dialog.
|
|
43
|
-
*
|
|
44
|
-
* The hook eagerly fetches the access list on mount so `state.summary` is
|
|
45
|
-
* usable while the dialog is closed.
|
|
46
|
-
*
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
|
-
export declare function useObjectShare(target: IObjectPermissionsObject | undefined, options?: IUseObjectShareOptions): IObjectShareController;
|
|
50
|
-
//# sourceMappingURL=useObjectShare.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useObjectShare.d.ts","sourceRoot":"","sources":["../../src/share/useObjectShare.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAGpD;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC7B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAC1B,MAAM,EAAE,wBAAwB,GAAG,SAAS,EAC5C,OAAO,CAAC,EAAE,sBAAsB,GACjC,sBAAsB,CAQxB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { useObjectShareController } from "./useObjectShareController.js";
|
|
3
|
-
/**
|
|
4
|
-
* Connected controller hook backing {@link ObjectShareDialog}. Most consumers
|
|
5
|
-
* do not need this — render `ObjectShareDialog` with plain props and it owns
|
|
6
|
-
* its controller. Use this hook directly only to share a single access-list
|
|
7
|
-
* fetch between the dialog and an inline summary row: call it once, read
|
|
8
|
-
* `state.summary` for the row, and pass the controller into the dialog.
|
|
9
|
-
*
|
|
10
|
-
* The hook eagerly fetches the access list on mount so `state.summary` is
|
|
11
|
-
* usable while the dialog is closed.
|
|
12
|
-
*
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
export function useObjectShare(target, options) {
|
|
16
|
-
return useObjectShareController(target, options?.onSaved, options?.labels, options?.labelsError, options?.labelsLoading);
|
|
17
|
-
}
|