@wisemen/nestjs-custom-fields 4.2.0 → 5.0.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.
- package/README.md +70 -0
- package/dist/custom-field-choice.d.ts +1 -1
- package/dist/custom-field-definition.d.ts +6 -6
- package/dist/custom-field-rules.d.ts +4 -2
- package/dist/custom-field-type-contract.d.ts +3 -1
- package/dist/custom-field-type-contract.js +1 -1
- package/dist/custom-field-type-contract.js.map +1 -1
- package/dist/custom-field-types/boolean/boolean.definition-validation.d.ts +1 -1
- package/dist/custom-field-types/boolean/boolean.dto.d.ts +1 -1
- package/dist/custom-field-types/boolean/boolean.rules.d.ts +2 -2
- package/dist/custom-field-types/boolean/boolean.value.d.ts +2 -2
- package/dist/custom-field-types/boolean/index.d.ts +6 -6
- package/dist/custom-field-types/boolean/index.js +6 -6
- package/dist/custom-field-types/boolean/index.js.map +1 -1
- package/dist/custom-field-types/date/date.custom-field-value.validator.d.ts +1 -1
- package/dist/custom-field-types/date/date.definition-validation.d.ts +1 -1
- package/dist/custom-field-types/date/date.dto.d.ts +1 -1
- package/dist/custom-field-types/date/date.rules.d.ts +2 -2
- package/dist/custom-field-types/date/date.value.d.ts +2 -2
- package/dist/custom-field-types/date/index.d.ts +6 -6
- package/dist/custom-field-types/date/index.js +6 -6
- package/dist/custom-field-types/date/index.js.map +1 -1
- package/dist/custom-field-types/index.d.ts +11 -10
- package/dist/custom-field-types/index.js +11 -10
- package/dist/custom-field-types/index.js.map +1 -1
- package/dist/custom-field-types/monetary/index.d.ts +6 -6
- package/dist/custom-field-types/monetary/index.js +6 -6
- package/dist/custom-field-types/monetary/index.js.map +1 -1
- package/dist/custom-field-types/monetary/monetary.custom-field-value.validator.d.ts +2 -2
- package/dist/custom-field-types/monetary/monetary.custom-field-value.validator.js.map +1 -1
- package/dist/custom-field-types/monetary/monetary.definition-validation.d.ts +1 -1
- package/dist/custom-field-types/monetary/monetary.dto.d.ts +2 -2
- package/dist/custom-field-types/monetary/monetary.dto.js.map +1 -1
- package/dist/custom-field-types/monetary/monetary.rules.d.ts +2 -2
- package/dist/custom-field-types/monetary/monetary.value.d.ts +2 -2
- package/dist/custom-field-types/multi-select/index.d.ts +6 -6
- package/dist/custom-field-types/multi-select/index.js +6 -6
- package/dist/custom-field-types/multi-select/index.js.map +1 -1
- package/dist/custom-field-types/multi-select/multi-select.custom-field-value.validator.d.ts +1 -1
- package/dist/custom-field-types/multi-select/multi-select.definition-validation.d.ts +1 -1
- package/dist/custom-field-types/multi-select/multi-select.dto.d.ts +1 -1
- package/dist/custom-field-types/multi-select/multi-select.rules.d.ts +2 -2
- package/dist/custom-field-types/multi-select/multi-select.value.d.ts +2 -2
- package/dist/custom-field-types/number/index.d.ts +6 -6
- package/dist/custom-field-types/number/index.js +6 -6
- package/dist/custom-field-types/number/index.js.map +1 -1
- package/dist/custom-field-types/number/number.custom-field-value.validator.d.ts +1 -1
- package/dist/custom-field-types/number/number.definition-validation.d.ts +1 -1
- package/dist/custom-field-types/number/number.dto.d.ts +1 -1
- package/dist/custom-field-types/number/number.rules.d.ts +2 -2
- package/dist/custom-field-types/number/number.value.d.ts +2 -2
- package/dist/custom-field-types/progress/index.d.ts +7 -0
- package/dist/custom-field-types/progress/index.js +8 -0
- package/dist/custom-field-types/progress/index.js.map +1 -0
- package/dist/custom-field-types/progress/progress.color.d.ts +25 -0
- package/dist/custom-field-types/progress/progress.color.js +27 -0
- package/dist/custom-field-types/progress/progress.color.js.map +1 -0
- package/dist/custom-field-types/progress/progress.contract.d.ts +20 -0
- package/dist/custom-field-types/progress/progress.contract.js +2 -0
- package/dist/custom-field-types/progress/progress.contract.js.map +1 -0
- package/dist/custom-field-types/progress/progress.custom-field-definition.factory.unit.test.d.ts +1 -0
- package/dist/custom-field-types/progress/progress.custom-field-definition.factory.unit.test.js +67 -0
- package/dist/custom-field-types/progress/progress.custom-field-definition.factory.unit.test.js.map +1 -0
- package/dist/custom-field-types/progress/progress.custom-field-value.validator.d.ts +6 -0
- package/dist/custom-field-types/progress/progress.custom-field-value.validator.js +34 -0
- package/dist/custom-field-types/progress/progress.custom-field-value.validator.js.map +1 -0
- package/dist/custom-field-types/progress/progress.custom-field-value.validator.unit.test.d.ts +1 -0
- package/dist/custom-field-types/progress/progress.custom-field-value.validator.unit.test.js +91 -0
- package/dist/custom-field-types/progress/progress.custom-field-value.validator.unit.test.js.map +1 -0
- package/dist/custom-field-types/progress/progress.definition-validation.d.ts +7 -0
- package/dist/custom-field-types/progress/progress.definition-validation.js +44 -0
- package/dist/custom-field-types/progress/progress.definition-validation.js.map +1 -0
- package/dist/custom-field-types/progress/progress.dto.d.ts +22 -0
- package/dist/custom-field-types/progress/progress.dto.js +94 -0
- package/dist/custom-field-types/progress/progress.dto.js.map +1 -0
- package/dist/custom-field-types/progress/progress.rules.d.ts +5 -0
- package/dist/custom-field-types/progress/progress.rules.js +2 -0
- package/dist/custom-field-types/progress/progress.rules.js.map +1 -0
- package/dist/custom-field-types/progress/progress.value.d.ts +5 -0
- package/dist/custom-field-types/progress/progress.value.js +2 -0
- package/dist/custom-field-types/progress/progress.value.js.map +1 -0
- package/dist/custom-field-types/reference/index.d.ts +7 -7
- package/dist/custom-field-types/reference/index.js +7 -7
- package/dist/custom-field-types/reference/index.js.map +1 -1
- package/dist/custom-field-types/reference/reference.contract.d.ts +1 -1
- package/dist/custom-field-types/reference/reference.custom-field-definition.factory.unit.test.js +1 -1
- package/dist/custom-field-types/reference/reference.custom-field-definition.factory.unit.test.js.map +1 -1
- package/dist/custom-field-types/reference/reference.custom-field-value.validator.d.ts +1 -1
- package/dist/custom-field-types/reference/reference.custom-field-value.validator.js +1 -1
- package/dist/custom-field-types/reference/reference.custom-field-value.validator.js.map +1 -1
- package/dist/custom-field-types/reference/reference.custom-field-value.validator.unit.test.js +1 -1
- package/dist/custom-field-types/reference/reference.custom-field-value.validator.unit.test.js.map +1 -1
- package/dist/custom-field-types/reference/reference.definition-validation.d.ts +1 -1
- package/dist/custom-field-types/reference/reference.definition-validation.js +1 -1
- package/dist/custom-field-types/reference/reference.definition-validation.js.map +1 -1
- package/dist/custom-field-types/reference/reference.dto.d.ts +1 -1
- package/dist/custom-field-types/reference/reference.rules.d.ts +2 -2
- package/dist/custom-field-types/reference/reference.value.d.ts +2 -2
- package/dist/custom-field-types/single-select/index.d.ts +6 -6
- package/dist/custom-field-types/single-select/index.js +6 -6
- package/dist/custom-field-types/single-select/index.js.map +1 -1
- package/dist/custom-field-types/single-select/single-select.custom-field-value.validator.d.ts +1 -1
- package/dist/custom-field-types/single-select/single-select.definition-validation.d.ts +1 -1
- package/dist/custom-field-types/single-select/single-select.dto.d.ts +1 -1
- package/dist/custom-field-types/single-select/single-select.rules.d.ts +2 -2
- package/dist/custom-field-types/single-select/single-select.value.d.ts +2 -2
- package/dist/custom-field-types/text/index.d.ts +6 -6
- package/dist/custom-field-types/text/index.js +6 -6
- package/dist/custom-field-types/text/index.js.map +1 -1
- package/dist/custom-field-types/text/text.custom-field-definition.factory.unit.test.js.map +1 -1
- package/dist/custom-field-types/text/text.custom-field-value.validator.d.ts +1 -1
- package/dist/custom-field-types/text/text.definition-validation.d.ts +1 -1
- package/dist/custom-field-types/text/text.definition-validation.js +3 -3
- package/dist/custom-field-types/text/text.definition-validation.js.map +1 -1
- package/dist/custom-field-types/text/text.dto.d.ts +1 -1
- package/dist/custom-field-types/text/text.dto.js.map +1 -1
- package/dist/custom-field-types/text/text.rules.d.ts +2 -2
- package/dist/custom-field-types/text/text.value.d.ts +2 -2
- package/dist/custom-field-types/text-array/index.d.ts +6 -6
- package/dist/custom-field-types/text-array/index.js +6 -6
- package/dist/custom-field-types/text-array/index.js.map +1 -1
- package/dist/custom-field-types/text-array/text-array.custom-field-definition.factory.unit.test.js.map +1 -1
- package/dist/custom-field-types/text-array/text-array.custom-field-value.validator.d.ts +1 -1
- package/dist/custom-field-types/text-array/text-array.custom-field-value.validator.js.map +1 -1
- package/dist/custom-field-types/text-array/text-array.custom-field-value.validator.unit.test.js.map +1 -1
- package/dist/custom-field-types/text-array/text-array.definition-validation.d.ts +1 -1
- package/dist/custom-field-types/text-array/text-array.definition-validation.js +3 -3
- package/dist/custom-field-types/text-array/text-array.definition-validation.js.map +1 -1
- package/dist/custom-field-types/text-array/text-array.dto.d.ts +1 -1
- package/dist/custom-field-types/text-array/text-array.dto.js.map +1 -1
- package/dist/custom-field-types/text-array/text-array.rules.d.ts +2 -2
- package/dist/custom-field-types/text-array/text-array.value.d.ts +2 -2
- package/dist/custom-field-types/timestamp/index.d.ts +6 -6
- package/dist/custom-field-types/timestamp/index.js +6 -6
- package/dist/custom-field-types/timestamp/index.js.map +1 -1
- package/dist/custom-field-types/timestamp/timestamp.custom-field-definition.factory.unit.test.js.map +1 -1
- package/dist/custom-field-types/timestamp/timestamp.custom-field-value.validator.d.ts +1 -1
- package/dist/custom-field-types/timestamp/timestamp.custom-field-value.validator.js.map +1 -1
- package/dist/custom-field-types/timestamp/timestamp.custom-field-value.validator.unit.test.js.map +1 -1
- package/dist/custom-field-types/timestamp/timestamp.definition-validation.d.ts +1 -1
- package/dist/custom-field-types/timestamp/timestamp.definition-validation.js +3 -3
- package/dist/custom-field-types/timestamp/timestamp.definition-validation.js.map +1 -1
- package/dist/custom-field-types/timestamp/timestamp.dto.d.ts +1 -1
- package/dist/custom-field-types/timestamp/timestamp.dto.js.map +1 -1
- package/dist/custom-field-types/timestamp/timestamp.rules.d.ts +2 -2
- package/dist/custom-field-types/timestamp/timestamp.value.d.ts +2 -2
- package/dist/custom-field-value.d.ts +3 -3
- package/dist/dto/base-custom-field-value.dto.d.ts +3 -3
- package/dist/dto/base-custom-field-value.dto.js.map +1 -1
- package/dist/dto/custom-field-value.dto.d.ts +8 -5
- package/dist/dto/custom-field-value.dto.js +7 -3
- package/dist/dto/custom-field-value.dto.js.map +1 -1
- package/dist/dto/custom-field-value.dto.unit.test.js +43 -1
- package/dist/dto/custom-field-value.dto.unit.test.js.map +1 -1
- package/dist/enum/custom-field-type.enum.d.ts +4 -3
- package/dist/enum/custom-field-type.enum.js +1 -0
- package/dist/enum/custom-field-type.enum.js.map +1 -1
- package/dist/factory/custom-field-definition.factory.d.ts +5 -5
- package/dist/factory/custom-field-definition.factory.js +6 -1
- package/dist/factory/custom-field-definition.factory.js.map +1 -1
- package/dist/factory/custom-field-value.factory.d.ts +1 -1
- package/dist/index.d.ts +23 -21
- package/dist/index.js +20 -19
- package/dist/index.js.map +1 -1
- package/dist/repositories/custom-field-definitions.repository.integration.test.js +1 -1
- package/dist/repositories/custom-field-definitions.repository.integration.test.js.map +1 -1
- package/dist/repositories/index.d.ts +2 -2
- package/dist/repositories/index.js +2 -2
- package/dist/repositories/index.js.map +1 -1
- package/dist/responses/custom-field-definition.response.d.ts +2 -2
- package/dist/responses/custom-field-definition.response.js +4 -3
- package/dist/responses/custom-field-definition.response.js.map +1 -1
- package/dist/tests/test-setup.d.ts +1 -1
- package/dist/tests/test-setup.js +1 -1
- package/dist/tests/test-setup.js.map +1 -1
- package/dist/typeorm/custom-field-choice.column.js +2 -2
- package/dist/typeorm/custom-field-choice.column.js.map +1 -1
- package/dist/typeorm/custom-field-definition.entity.d.ts +6 -6
- package/dist/typeorm/custom-field-definition.entity.js +5 -5
- package/dist/typeorm/custom-field-definition.entity.js.map +1 -1
- package/dist/typeorm/custom-field-value.column.d.ts +2 -2
- package/dist/typeorm/custom-field-value.column.js +4 -2
- package/dist/typeorm/custom-field-value.column.js.map +1 -1
- package/dist/validators/custom-field-value.validator.d.ts +2 -2
- package/dist/validators/custom-field-value.validator.js +5 -1
- package/dist/validators/custom-field-value.validator.js.map +1 -1
- package/dist/validators/custom-field-value.validator.unit.test.js.map +1 -1
- package/package.json +8 -8
- package/skills/getting-started/SKILL.md +70 -0
package/README.md
CHANGED
|
@@ -162,6 +162,76 @@ you `switch` over `CustomFieldType` or build a `Record<CustomFieldType, ...>`;
|
|
|
162
162
|
those no longer type-check until the new case is added. No database migration is
|
|
163
163
|
needed: `type` is stored as `varchar` and `rules` as `jsonb`.
|
|
164
164
|
|
|
165
|
+
### Progress Fields
|
|
166
|
+
|
|
167
|
+
Use `CustomFieldType.PROGRESS` for a progress bar. The definition's `choices`
|
|
168
|
+
are the bar's segments, and `rules` set a `ProgressCustomFieldColor` for every
|
|
169
|
+
choice and an optional `icon`. The value is `{ total?, segments }`: `segments`
|
|
170
|
+
is a list of `{ key, amount }`, where `key` is a choice value and `amount` is a
|
|
171
|
+
finite number of at least 0. Keys can appear only once. A missing segment
|
|
172
|
+
counts as 0, so `{ segments: [] }` is a valid value.
|
|
173
|
+
|
|
174
|
+
Each segment fills `amount / total` of the bar. Set `total` when it is known,
|
|
175
|
+
such as `100` for a percentage: it must be greater than 0, the amounts can not
|
|
176
|
+
add up to more than it, and the rest of the bar stays empty. Leave `total` out
|
|
177
|
+
when it is not known: the total is then the sum of the amounts and the bar is
|
|
178
|
+
always fully filled.
|
|
179
|
+
|
|
180
|
+
```ts
|
|
181
|
+
import { ProgressCustomFieldColor } from '@wisemen/nestjs-custom-fields'
|
|
182
|
+
|
|
183
|
+
const tasksField = customFieldDefinition(CustomFieldType.PROGRESS, {
|
|
184
|
+
tenantUuid: null,
|
|
185
|
+
entityType: CustomFieldEntityType.TICKET,
|
|
186
|
+
key: 'tasks',
|
|
187
|
+
label: new LocalizedString([{ locale: 'en', value: 'Tasks' }]),
|
|
188
|
+
description: null,
|
|
189
|
+
isRequired: false,
|
|
190
|
+
choices: [
|
|
191
|
+
{
|
|
192
|
+
value: 'completed',
|
|
193
|
+
order: 1,
|
|
194
|
+
label: new LocalizedString([{ locale: 'en', value: 'Completed' }])
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
value: 'in_progress',
|
|
198
|
+
order: 2,
|
|
199
|
+
label: new LocalizedString([{ locale: 'en', value: 'In progress' }])
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
rules: {
|
|
203
|
+
icon: 'tasks',
|
|
204
|
+
colors: {
|
|
205
|
+
completed: ProgressCustomFieldColor.SUCCESS,
|
|
206
|
+
in_progress: ProgressCustomFieldColor.WARNING
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
})
|
|
210
|
+
|
|
211
|
+
// 2 completed and 3 in progress, total unknown: 2/5 green, 3/5 yellow
|
|
212
|
+
const value = {
|
|
213
|
+
segments: [
|
|
214
|
+
{ key: 'completed', amount: 2 },
|
|
215
|
+
{ key: 'in_progress', amount: 3 }
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// 20% completed: 20/100 green, the rest empty
|
|
220
|
+
const percentage = {
|
|
221
|
+
total: 100,
|
|
222
|
+
segments: [{ key: 'completed', amount: 20 }]
|
|
223
|
+
}
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
The icon is an app-defined string, like `entityType`: the package stores it
|
|
227
|
+
as-is. Leave it out to render the bar without an icon; an empty string is
|
|
228
|
+
rejected.
|
|
229
|
+
|
|
230
|
+
When upgrading from 4.x to 5.0.0, handle `CustomFieldType.PROGRESS` wherever
|
|
231
|
+
you `switch` over `CustomFieldType` or build a `Record<CustomFieldType, ...>`;
|
|
232
|
+
those no longer type-check until the new case is added. No database migration is
|
|
233
|
+
needed: `type` is stored as `varchar`, and `choices` and `rules` as `jsonb`.
|
|
234
|
+
|
|
165
235
|
## Step 3: Store Values On The Entity With The Custom Column
|
|
166
236
|
|
|
167
237
|
Resolved custom field values live on your own entity. Use
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CustomFieldChoice } from '#src/custom-field-choice.js';
|
|
2
|
-
import { CustomFieldDefinitionUuid } from '#src/custom-field-definition.uuid.js';
|
|
3
|
-
import { CustomFieldRules, CustomFieldRulesByType } from '#src/custom-field-rules.js';
|
|
4
|
-
import { CustomFieldChoicesModeByType, CustomFieldRulesModeByType } from '#src/custom-field-type-contract.js';
|
|
5
|
-
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
6
|
-
import { LocalizedString } from '@wisemen/localized-string';
|
|
1
|
+
import type { CustomFieldChoice } from '#src/custom-field-choice.js';
|
|
2
|
+
import type { CustomFieldDefinitionUuid } from '#src/custom-field-definition.uuid.js';
|
|
3
|
+
import type { CustomFieldRules, CustomFieldRulesByType } from '#src/custom-field-rules.js';
|
|
4
|
+
import type { CustomFieldChoicesModeByType, CustomFieldRulesModeByType } from '#src/custom-field-type-contract.js';
|
|
5
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
6
|
+
import type { LocalizedString } from '@wisemen/localized-string';
|
|
7
7
|
export interface CustomFieldView {
|
|
8
8
|
key: string;
|
|
9
9
|
order: number;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { CustomFieldType } from '
|
|
2
|
-
import type { CustomFieldRuleConfigByType } from '
|
|
1
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
2
|
+
import type { CustomFieldRuleConfigByType } from '#src/custom-field-type-contract.js';
|
|
3
3
|
import type { BooleanCustomFieldRules as BooleanCustomFieldRulesModel } from '#src/custom-field-types/boolean/boolean.rules.js';
|
|
4
4
|
import type { DateCustomFieldRules as DateCustomFieldRulesModel } from '#src/custom-field-types/date/date.rules.js';
|
|
5
5
|
import type { MonetaryCustomFieldRules as MonetaryCustomFieldRulesModel } from '#src/custom-field-types/monetary/monetary.rules.js';
|
|
6
6
|
import type { MultiSelectCustomFieldRules as MultiSelectCustomFieldRulesModel } from '#src/custom-field-types/multi-select/multi-select.rules.js';
|
|
7
7
|
import type { NumberCustomFieldRules as NumberCustomFieldRulesModel } from '#src/custom-field-types/number/number.rules.js';
|
|
8
|
+
import type { ProgressCustomFieldRules as ProgressCustomFieldRulesModel } from '#src/custom-field-types/progress/progress.rules.js';
|
|
8
9
|
import type { ReferenceCustomFieldRules as ReferenceCustomFieldRulesModel } from '#src/custom-field-types/reference/reference.rules.js';
|
|
9
10
|
import type { SelectCustomFieldRules as SelectCustomFieldRulesModel } from '#src/custom-field-types/single-select/single-select.rules.js';
|
|
10
11
|
import type { TextArrayCustomFieldRules as TextArrayCustomFieldRulesModel } from '#src/custom-field-types/text-array/text-array.rules.js';
|
|
@@ -23,6 +24,7 @@ export type SelectCustomFieldRules = SelectCustomFieldRulesModel;
|
|
|
23
24
|
export type MultiSelectCustomFieldRules = MultiSelectCustomFieldRulesModel;
|
|
24
25
|
export type MonetaryCustomFieldRules = MonetaryCustomFieldRulesModel;
|
|
25
26
|
export type ReferenceCustomFieldRules = ReferenceCustomFieldRulesModel;
|
|
27
|
+
export type ProgressCustomFieldRules = ProgressCustomFieldRulesModel;
|
|
26
28
|
export type CustomFieldRulesByType<T extends CustomFieldType> = CustomFieldRulesFor<T>;
|
|
27
29
|
export type CustomFieldRules = {
|
|
28
30
|
[T in CustomFieldType]: CustomFieldRulesByType<T>;
|
|
@@ -3,12 +3,13 @@ import type { DateCustomFieldTypeContract } from '#src/custom-field-types/date/d
|
|
|
3
3
|
import type { MonetaryCustomFieldTypeContract } from '#src/custom-field-types/monetary/monetary.contract.js';
|
|
4
4
|
import type { MultiSelectCustomFieldTypeContract } from '#src/custom-field-types/multi-select/multi-select.contract.js';
|
|
5
5
|
import type { NumberCustomFieldTypeContract } from '#src/custom-field-types/number/number.contract.js';
|
|
6
|
+
import type { ProgressCustomFieldTypeContract } from '#src/custom-field-types/progress/progress.contract.js';
|
|
6
7
|
import type { ReferenceCustomFieldTypeContract } from '#src/custom-field-types/reference/reference.contract.js';
|
|
7
8
|
import type { SingleSelectCustomFieldTypeContract } from '#src/custom-field-types/single-select/single-select.contract.js';
|
|
8
9
|
import type { TextArrayCustomFieldTypeContract } from '#src/custom-field-types/text-array/text-array.contract.js';
|
|
9
10
|
import type { TextCustomFieldTypeContract } from '#src/custom-field-types/text/text.contract.js';
|
|
10
11
|
import type { TimestampCustomFieldTypeContract } from '#src/custom-field-types/timestamp/timestamp.contract.js';
|
|
11
|
-
import { CustomFieldType } from '
|
|
12
|
+
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
12
13
|
type Satisfies<T extends U, U> = T;
|
|
13
14
|
export type CustomFieldRulesMode = 'required' | 'optional' | 'none';
|
|
14
15
|
export type CustomFieldChoicesMode = 'required' | 'none';
|
|
@@ -31,6 +32,7 @@ export type CustomFieldTypeContract = Satisfies<{
|
|
|
31
32
|
[CustomFieldType.MULTI_SELECT]: MultiSelectCustomFieldTypeContract;
|
|
32
33
|
[CustomFieldType.MONETARY]: MonetaryCustomFieldTypeContract;
|
|
33
34
|
[CustomFieldType.REFERENCE]: ReferenceCustomFieldTypeContract;
|
|
35
|
+
[CustomFieldType.PROGRESS]: ProgressCustomFieldTypeContract;
|
|
34
36
|
}, Record<CustomFieldType, CustomFieldTypeContractBase>>;
|
|
35
37
|
export type CustomFieldDomainValueByType<T extends CustomFieldType> = CustomFieldTypeContract[T]['value'];
|
|
36
38
|
export type CustomFieldColumnValueByType<T extends CustomFieldType> = CustomFieldTypeContract[T]['columnValue'];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CustomFieldType } from '
|
|
1
|
+
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
2
2
|
//# sourceMappingURL=custom-field-type-contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-field-type-contract.js","sourceRoot":"","sources":["../lib/custom-field-type-contract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom-field-type-contract.js","sourceRoot":"","sources":["../lib/custom-field-type-contract.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResolvedCustomFieldDefinitionFields } from '#src/custom-field-definition.js';
|
|
2
|
-
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
2
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
3
|
type BooleanCustomFieldDefinition = Extract<ResolvedCustomFieldDefinitionFields, {
|
|
4
4
|
type: CustomFieldType.BOOLEAN;
|
|
5
5
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseCustomFieldValueDto } from '#src/dto/base-custom-field-value.dto.js';
|
|
2
2
|
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
|
-
import { BooleanCustomFieldValue } from '#src/custom-field-types/boolean/boolean.value.js';
|
|
3
|
+
import type { BooleanCustomFieldValue } from '#src/custom-field-types/boolean/boolean.value.js';
|
|
4
4
|
export declare class BooleanCustomFieldValueDto extends BaseCustomFieldValueDto {
|
|
5
5
|
type: CustomFieldType.BOOLEAN;
|
|
6
6
|
value: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
2
|
-
import type { BooleanCustomFieldTypeContract } from '
|
|
1
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
2
|
+
import type { BooleanCustomFieldTypeContract } from '#src/custom-field-types/boolean/boolean.contract.js';
|
|
3
3
|
export type BooleanCustomFieldRules = {
|
|
4
4
|
type: CustomFieldType.BOOLEAN;
|
|
5
5
|
} & BooleanCustomFieldTypeContract['rules'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseCustomFieldValue } from '#src/custom-field-value.js';
|
|
2
|
-
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
|
-
import type { BooleanCustomFieldTypeContract } from '
|
|
2
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
|
+
import type { BooleanCustomFieldTypeContract } from '#src/custom-field-types/boolean/boolean.contract.js';
|
|
4
4
|
export type BooleanCustomFieldValue = BaseCustomFieldValue<CustomFieldType.BOOLEAN, BooleanCustomFieldTypeContract['value']>;
|
|
5
5
|
export type BooleanCustomFieldColumnValue = BaseCustomFieldValue<CustomFieldType.BOOLEAN, BooleanCustomFieldTypeContract['columnValue']>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
1
|
+
export * from '#src/custom-field-types/boolean/boolean.contract.js';
|
|
2
|
+
export * from '#src/custom-field-types/boolean/boolean.definition-validation.js';
|
|
3
|
+
export * from '#src/custom-field-types/boolean/boolean.dto.js';
|
|
4
|
+
export * from '#src/custom-field-types/boolean/boolean.rules.js';
|
|
5
|
+
export * from '#src/custom-field-types/boolean/boolean.custom-field-value.validator.js';
|
|
6
|
+
export * from '#src/custom-field-types/boolean/boolean.value.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
1
|
+
export * from '#src/custom-field-types/boolean/boolean.contract.js';
|
|
2
|
+
export * from '#src/custom-field-types/boolean/boolean.definition-validation.js';
|
|
3
|
+
export * from '#src/custom-field-types/boolean/boolean.dto.js';
|
|
4
|
+
export * from '#src/custom-field-types/boolean/boolean.rules.js';
|
|
5
|
+
export * from '#src/custom-field-types/boolean/boolean.custom-field-value.validator.js';
|
|
6
|
+
export * from '#src/custom-field-types/boolean/boolean.value.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/custom-field-types/boolean/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/custom-field-types/boolean/index.ts"],"names":[],"mappings":"AAAA,cAAc,qDAAqD,CAAA;AACnE,cAAc,kEAAkE,CAAA;AAChF,cAAc,gDAAgD,CAAA;AAC9D,cAAc,kDAAkD,CAAA;AAChE,cAAc,yEAAyE,CAAA;AACvF,cAAc,kDAAkD,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PlainDate } from '@wisemen/datewise';
|
|
2
2
|
import type { CustomFieldDefinitionFieldsByType } from '#src/custom-field-definition.js';
|
|
3
|
-
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
4
4
|
type DateCustomFieldDefinition = CustomFieldDefinitionFieldsByType<CustomFieldType.DATE>;
|
|
5
5
|
export declare function validateDateCustomFieldValue(definition: DateCustomFieldDefinition, value: PlainDate): void;
|
|
6
6
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResolvedCustomFieldDefinitionFields } from '#src/custom-field-definition.js';
|
|
2
|
-
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
2
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
3
|
type DateCustomFieldDefinition = Extract<ResolvedCustomFieldDefinitionFields, {
|
|
4
4
|
type: CustomFieldType.DATE;
|
|
5
5
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseCustomFieldValueDto } from '#src/dto/base-custom-field-value.dto.js';
|
|
2
2
|
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
|
-
import { DateCustomFieldValue } from '#src/custom-field-types/date/date.value.js';
|
|
3
|
+
import type { DateCustomFieldValue } from '#src/custom-field-types/date/date.value.js';
|
|
4
4
|
export declare class DateCustomFieldValueDto extends BaseCustomFieldValueDto {
|
|
5
5
|
type: CustomFieldType.DATE;
|
|
6
6
|
value: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
2
|
-
import type { DateCustomFieldTypeContract } from '
|
|
1
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
2
|
+
import type { DateCustomFieldTypeContract } from '#src/custom-field-types/date/date.contract.js';
|
|
3
3
|
export type DateCustomFieldRules = {
|
|
4
4
|
type: CustomFieldType.DATE;
|
|
5
5
|
} & DateCustomFieldTypeContract['rules'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseCustomFieldValue } from '#src/custom-field-value.js';
|
|
2
|
-
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
|
-
import type { DateCustomFieldTypeContract } from '
|
|
2
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
|
+
import type { DateCustomFieldTypeContract } from '#src/custom-field-types/date/date.contract.js';
|
|
4
4
|
export type DateCustomFieldValue = BaseCustomFieldValue<CustomFieldType.DATE, DateCustomFieldTypeContract['value']>;
|
|
5
5
|
export type DateCustomFieldColumnValue = BaseCustomFieldValue<CustomFieldType.DATE, DateCustomFieldTypeContract['columnValue']>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
1
|
+
export * from '#src/custom-field-types/date/date.contract.js';
|
|
2
|
+
export * from '#src/custom-field-types/date/date.definition-validation.js';
|
|
3
|
+
export * from '#src/custom-field-types/date/date.dto.js';
|
|
4
|
+
export * from '#src/custom-field-types/date/date.rules.js';
|
|
5
|
+
export * from '#src/custom-field-types/date/date.custom-field-value.validator.js';
|
|
6
|
+
export * from '#src/custom-field-types/date/date.value.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
1
|
+
export * from '#src/custom-field-types/date/date.contract.js';
|
|
2
|
+
export * from '#src/custom-field-types/date/date.definition-validation.js';
|
|
3
|
+
export * from '#src/custom-field-types/date/date.dto.js';
|
|
4
|
+
export * from '#src/custom-field-types/date/date.rules.js';
|
|
5
|
+
export * from '#src/custom-field-types/date/date.custom-field-value.validator.js';
|
|
6
|
+
export * from '#src/custom-field-types/date/date.value.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/custom-field-types/date/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/custom-field-types/date/index.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAA;AAC7D,cAAc,4DAA4D,CAAA;AAC1E,cAAc,0CAA0C,CAAA;AACxD,cAAc,4CAA4C,CAAA;AAC1D,cAAc,mEAAmE,CAAA;AACjF,cAAc,4CAA4C,CAAA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '
|
|
8
|
-
export * from '
|
|
9
|
-
export * from '
|
|
10
|
-
export * from '
|
|
1
|
+
export * from '#src/custom-field-types/boolean/index.js';
|
|
2
|
+
export * from '#src/custom-field-types/date/index.js';
|
|
3
|
+
export * from '#src/custom-field-types/monetary/index.js';
|
|
4
|
+
export * from '#src/custom-field-types/multi-select/index.js';
|
|
5
|
+
export * from '#src/custom-field-types/number/index.js';
|
|
6
|
+
export * from '#src/custom-field-types/progress/index.js';
|
|
7
|
+
export * from '#src/custom-field-types/reference/index.js';
|
|
8
|
+
export * from '#src/custom-field-types/single-select/index.js';
|
|
9
|
+
export * from '#src/custom-field-types/text-array/index.js';
|
|
10
|
+
export * from '#src/custom-field-types/text/index.js';
|
|
11
|
+
export * from '#src/custom-field-types/timestamp/index.js';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '
|
|
8
|
-
export * from '
|
|
9
|
-
export * from '
|
|
10
|
-
export * from '
|
|
1
|
+
export * from '#src/custom-field-types/boolean/index.js';
|
|
2
|
+
export * from '#src/custom-field-types/date/index.js';
|
|
3
|
+
export * from '#src/custom-field-types/monetary/index.js';
|
|
4
|
+
export * from '#src/custom-field-types/multi-select/index.js';
|
|
5
|
+
export * from '#src/custom-field-types/number/index.js';
|
|
6
|
+
export * from '#src/custom-field-types/progress/index.js';
|
|
7
|
+
export * from '#src/custom-field-types/reference/index.js';
|
|
8
|
+
export * from '#src/custom-field-types/single-select/index.js';
|
|
9
|
+
export * from '#src/custom-field-types/text-array/index.js';
|
|
10
|
+
export * from '#src/custom-field-types/text/index.js';
|
|
11
|
+
export * from '#src/custom-field-types/timestamp/index.js';
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/custom-field-types/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/custom-field-types/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAA;AACxD,cAAc,uCAAuC,CAAA;AACrD,cAAc,2CAA2C,CAAA;AACzD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,yCAAyC,CAAA;AACvD,cAAc,2CAA2C,CAAA;AACzD,cAAc,4CAA4C,CAAA;AAC1D,cAAc,gDAAgD,CAAA;AAC9D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,uCAAuC,CAAA;AACrD,cAAc,4CAA4C,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
1
|
+
export * from '#src/custom-field-types/monetary/monetary.contract.js';
|
|
2
|
+
export * from '#src/custom-field-types/monetary/monetary.definition-validation.js';
|
|
3
|
+
export * from '#src/custom-field-types/monetary/monetary.dto.js';
|
|
4
|
+
export * from '#src/custom-field-types/monetary/monetary.rules.js';
|
|
5
|
+
export * from '#src/custom-field-types/monetary/monetary.custom-field-value.validator.js';
|
|
6
|
+
export * from '#src/custom-field-types/monetary/monetary.value.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
1
|
+
export * from '#src/custom-field-types/monetary/monetary.contract.js';
|
|
2
|
+
export * from '#src/custom-field-types/monetary/monetary.definition-validation.js';
|
|
3
|
+
export * from '#src/custom-field-types/monetary/monetary.dto.js';
|
|
4
|
+
export * from '#src/custom-field-types/monetary/monetary.rules.js';
|
|
5
|
+
export * from '#src/custom-field-types/monetary/monetary.custom-field-value.validator.js';
|
|
6
|
+
export * from '#src/custom-field-types/monetary/monetary.value.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/custom-field-types/monetary/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/custom-field-types/monetary/index.ts"],"names":[],"mappings":"AAAA,cAAc,uDAAuD,CAAA;AACrE,cAAc,oEAAoE,CAAA;AAClF,cAAc,kDAAkD,CAAA;AAChE,cAAc,oDAAoD,CAAA;AAClE,cAAc,2EAA2E,CAAA;AACzF,cAAc,oDAAoD,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Currency, Monetary } from '@wisemen/monetary';
|
|
1
|
+
import { type Currency, Monetary } from '@wisemen/monetary';
|
|
2
2
|
import type { CustomFieldDefinitionFieldsByType } from '#src/custom-field-definition.js';
|
|
3
|
-
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
4
4
|
type MonetaryCustomFieldDefinition = CustomFieldDefinitionFieldsByType<CustomFieldType.MONETARY>;
|
|
5
5
|
export declare function validateMonetaryCustomFieldValue(definition: MonetaryCustomFieldDefinition, value: Monetary<Currency>): void;
|
|
6
6
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monetary.custom-field-value.validator.js","sourceRoot":"","sources":["../../../lib/custom-field-types/monetary/monetary.custom-field-value.validator.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"monetary.custom-field-value.validator.js","sourceRoot":"","sources":["../../../lib/custom-field-types/monetary/monetary.custom-field-value.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAA;AAKxG,MAAM,UAAU,gCAAgC,CAC9C,UAAyC,EACzC,KAAyB;IAEzB,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAA;IAE9B,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACnB,MAAM,IAAI,+BAA+B,CAAC,oDAAoD,CAAC,CAAA;IACjG,CAAC;IAED,IAAI,KAAK,CAAC,UAAU,KAAK,SAAS,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACjF,MAAM,IAAI,+BAA+B,CAAC,0DAA0D,CAAC,CAAA;IACvG,CAAC;IAED,IAAI,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,SAAS,EAAE,CAAC;QACxC,MAAM,IAAI,+BAA+B,CAAC,2EAA2E,CAAC,CAAA;IACxH,CAAC;IAED,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;QAC5B,MAAM,GAAG,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;QAEpE,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,+BAA+B,CAAC,uDAAuD,CAAC,CAAA;QACpG,CAAC;IACH,CAAC;IAED,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;QAC5B,MAAM,GAAG,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;QAEpE,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,+BAA+B,CAAC,yDAAyD,CAAC,CAAA;QACtG,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResolvedCustomFieldDefinitionFields } from '#src/custom-field-definition.js';
|
|
2
|
-
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
2
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
3
|
type MonetaryCustomFieldDefinition = Extract<ResolvedCustomFieldDefinitionFields, {
|
|
4
4
|
type: CustomFieldType.MONETARY;
|
|
5
5
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Currency, MonetaryDto } from '@wisemen/monetary';
|
|
1
|
+
import { type Currency, MonetaryDto } from '@wisemen/monetary';
|
|
2
2
|
import { BaseCustomFieldValueDto } from '#src/dto/base-custom-field-value.dto.js';
|
|
3
3
|
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
4
|
-
import { MonetaryCustomFieldValue } from '#src/custom-field-types/monetary/monetary.value.js';
|
|
4
|
+
import type { MonetaryCustomFieldValue } from '#src/custom-field-types/monetary/monetary.value.js';
|
|
5
5
|
export declare class MonetaryCustomFieldValueDto extends BaseCustomFieldValueDto {
|
|
6
6
|
type: CustomFieldType.MONETARY;
|
|
7
7
|
value: MonetaryDto<Currency>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monetary.dto.js","sourceRoot":"","sources":["../../../lib/custom-field-types/monetary/monetary.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"monetary.dto.js","sourceRoot":"","sources":["../../../lib/custom-field-types/monetary/monetary.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAiB,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAA;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAGrE,MAAM,OAAO,2BAA4B,SAAQ,uBAAuB;IAOtE,KAAK,CAAuB;IAE5B,KAAK;QACH,OAAO,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAA;IAC9E,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,gBAA0C;QACpD,OAAO,yBAAyB,CAC9B,IAAI,2BAA2B,EAAE,EACjC,eAAe,CAAC,QAAQ,EACxB,gBAAgB,CAAC,cAAc,EAC/B,WAAW,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,CACzC,CAAA;IACH,CAAC;CACF;AAlBS;IAFP,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE,CAAC;IACjD,MAAM,CAAC,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;;yDACG;AAItC;IAFC,WAAW,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IAClC,UAAU,EAAE;8BACN,WAAW;0DAAU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
2
|
-
import type { MonetaryCustomFieldTypeContract } from '
|
|
1
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
2
|
+
import type { MonetaryCustomFieldTypeContract } from '#src/custom-field-types/monetary/monetary.contract.js';
|
|
3
3
|
export type MonetaryCustomFieldRules = {
|
|
4
4
|
type: CustomFieldType.MONETARY;
|
|
5
5
|
} & MonetaryCustomFieldTypeContract['rules'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseCustomFieldValue } from '#src/custom-field-value.js';
|
|
2
|
-
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
|
-
import type { MonetaryCustomFieldTypeContract } from '
|
|
2
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
|
+
import type { MonetaryCustomFieldTypeContract } from '#src/custom-field-types/monetary/monetary.contract.js';
|
|
4
4
|
export type MonetaryCustomFieldValue = BaseCustomFieldValue<CustomFieldType.MONETARY, MonetaryCustomFieldTypeContract['value']>;
|
|
5
5
|
export type MonetaryCustomFieldColumnValue = BaseCustomFieldValue<CustomFieldType.MONETARY, MonetaryCustomFieldTypeContract['columnValue']>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
1
|
+
export * from '#src/custom-field-types/multi-select/multi-select.contract.js';
|
|
2
|
+
export * from '#src/custom-field-types/multi-select/multi-select.definition-validation.js';
|
|
3
|
+
export * from '#src/custom-field-types/multi-select/multi-select.dto.js';
|
|
4
|
+
export * from '#src/custom-field-types/multi-select/multi-select.rules.js';
|
|
5
|
+
export * from '#src/custom-field-types/multi-select/multi-select.custom-field-value.validator.js';
|
|
6
|
+
export * from '#src/custom-field-types/multi-select/multi-select.value.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
1
|
+
export * from '#src/custom-field-types/multi-select/multi-select.contract.js';
|
|
2
|
+
export * from '#src/custom-field-types/multi-select/multi-select.definition-validation.js';
|
|
3
|
+
export * from '#src/custom-field-types/multi-select/multi-select.dto.js';
|
|
4
|
+
export * from '#src/custom-field-types/multi-select/multi-select.rules.js';
|
|
5
|
+
export * from '#src/custom-field-types/multi-select/multi-select.custom-field-value.validator.js';
|
|
6
|
+
export * from '#src/custom-field-types/multi-select/multi-select.value.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/custom-field-types/multi-select/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/custom-field-types/multi-select/index.ts"],"names":[],"mappings":"AAAA,cAAc,+DAA+D,CAAA;AAC7E,cAAc,4EAA4E,CAAA;AAC1F,cAAc,0DAA0D,CAAA;AACxE,cAAc,4DAA4D,CAAA;AAC1E,cAAc,mFAAmF,CAAA;AACjG,cAAc,4DAA4D,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CustomFieldDefinitionFieldsByType } from '#src/custom-field-definition.js';
|
|
2
|
-
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
2
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
3
|
type MultiSelectCustomFieldDefinition = CustomFieldDefinitionFieldsByType<CustomFieldType.MULTI_SELECT>;
|
|
4
4
|
export declare function validateMultiSelectCustomFieldValue(definition: MultiSelectCustomFieldDefinition, value: string[]): void;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResolvedCustomFieldDefinitionFields } from '#src/custom-field-definition.js';
|
|
2
|
-
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
2
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
3
|
type MultiSelectCustomFieldDefinition = Extract<ResolvedCustomFieldDefinitionFields, {
|
|
4
4
|
type: CustomFieldType.MULTI_SELECT;
|
|
5
5
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseCustomFieldValueDto } from '#src/dto/base-custom-field-value.dto.js';
|
|
2
2
|
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
|
-
import { MultiSelectCustomFieldValue } from '#src/custom-field-types/multi-select/multi-select.value.js';
|
|
3
|
+
import type { MultiSelectCustomFieldValue } from '#src/custom-field-types/multi-select/multi-select.value.js';
|
|
4
4
|
export declare class MultiSelectCustomFieldValueDto extends BaseCustomFieldValueDto {
|
|
5
5
|
type: CustomFieldType.MULTI_SELECT;
|
|
6
6
|
value: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
2
|
-
import type { MultiSelectCustomFieldTypeContract } from '
|
|
1
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
2
|
+
import type { MultiSelectCustomFieldTypeContract } from '#src/custom-field-types/multi-select/multi-select.contract.js';
|
|
3
3
|
export type MultiSelectCustomFieldRules = {
|
|
4
4
|
type: CustomFieldType.MULTI_SELECT;
|
|
5
5
|
} & MultiSelectCustomFieldTypeContract['rules'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseCustomFieldValue } from '#src/custom-field-value.js';
|
|
2
|
-
import { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
|
-
import type { MultiSelectCustomFieldTypeContract } from '
|
|
2
|
+
import type { CustomFieldType } from '#src/enum/custom-field-type.enum.js';
|
|
3
|
+
import type { MultiSelectCustomFieldTypeContract } from '#src/custom-field-types/multi-select/multi-select.contract.js';
|
|
4
4
|
export type MultiSelectCustomFieldValue = BaseCustomFieldValue<CustomFieldType.MULTI_SELECT, MultiSelectCustomFieldTypeContract['value']>;
|
|
5
5
|
export type MultiSelectCustomFieldColumnValue = BaseCustomFieldValue<CustomFieldType.MULTI_SELECT, MultiSelectCustomFieldTypeContract['columnValue']>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
1
|
+
export * from '#src/custom-field-types/number/number.contract.js';
|
|
2
|
+
export * from '#src/custom-field-types/number/number.definition-validation.js';
|
|
3
|
+
export * from '#src/custom-field-types/number/number.dto.js';
|
|
4
|
+
export * from '#src/custom-field-types/number/number.rules.js';
|
|
5
|
+
export * from '#src/custom-field-types/number/number.custom-field-value.validator.js';
|
|
6
|
+
export * from '#src/custom-field-types/number/number.value.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
1
|
+
export * from '#src/custom-field-types/number/number.contract.js';
|
|
2
|
+
export * from '#src/custom-field-types/number/number.definition-validation.js';
|
|
3
|
+
export * from '#src/custom-field-types/number/number.dto.js';
|
|
4
|
+
export * from '#src/custom-field-types/number/number.rules.js';
|
|
5
|
+
export * from '#src/custom-field-types/number/number.custom-field-value.validator.js';
|
|
6
|
+
export * from '#src/custom-field-types/number/number.value.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/custom-field-types/number/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/custom-field-types/number/index.ts"],"names":[],"mappings":"AAAA,cAAc,mDAAmD,CAAA;AACjE,cAAc,gEAAgE,CAAA;AAC9E,cAAc,8CAA8C,CAAA;AAC5D,cAAc,gDAAgD,CAAA;AAC9D,cAAc,uEAAuE,CAAA;AACrF,cAAc,gDAAgD,CAAA"}
|