5htp-core 0.5.9-5 → 0.5.9-52

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.
@@ -28,7 +28,10 @@ export type Props = SelectProps & InputBaseProps<ComboboxItem> & {
28
28
 
29
29
  export type Choice = ComboboxItem;
30
30
 
31
- const ensureChoice = (choice: ComboboxItem | string, choices: ComboboxItem[]): ComboboxItem => {
31
+ const ensureChoice = (
32
+ choice: ComboboxItem | string,
33
+ choices: ComboboxItem[]
34
+ ): ComboboxItem => {
32
35
 
33
36
  // Allready a choice
34
37
  if (typeof choice === 'object' && choice.label) {
@@ -128,15 +131,17 @@ export default (initProps: Props) => {
128
131
  if (multiple) {
129
132
  Component = MantineMultiSelect;
130
133
  props.value = current ? current.map( c => ensureChoice(c, choices).value ) : [];
131
- props.onChange = (value: string[]) => onChange( value.map(valueToChoice) );
134
+ props.onChange = (value: string[]) => {
135
+ onChange( value.map(valueToChoice) )
136
+ };
132
137
  } else {
133
138
  Component = MantineSelect;
134
139
  props.value = current ? ensureChoice(current, choices).value : '';
135
140
  props.onChange = (value: string) => onChange( valueToChoice(value) );
136
141
  }
137
142
 
138
- if (props.placeholder === 'Where the candidate will work ?') {
139
- console.log('----------', props, choices);
143
+ if (props.placeholder === 'Languages') {
144
+ console.log("CHOICES", current, props.value);
140
145
  }
141
146
 
142
147
  /*----------------------------------
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "5htp-core",
3
3
  "description": "Convenient TypeScript framework designed for Performance and Productivity.",
4
- "version": "0.5.9-5",
4
+ "version": "0.5.9-52",
5
5
  "author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
6
6
  "repository": "git://github.com/gaetanlegac/5htp-core.git",
7
7
  "license": "MIT",
@@ -14,7 +14,7 @@ import dayjs from 'dayjs';
14
14
 
15
15
  // Core
16
16
  import type { Application } from '@server/app';
17
- import type { AnyService, TRegisteredServicesIndex } from '@server/app/service';
17
+ import type { TServiceArgs } from '@server/app/service';
18
18
 
19
19
  // Specific
20
20
  import DiskDriver, {
@@ -50,14 +50,9 @@ export default class S3Driver<
50
50
 
51
51
  public s3: AWS.S3;
52
52
 
53
- public constructor(
54
- public parent: AnyService,
55
- public config: TConfig,
56
- public services: {},
57
- public app: Application
58
- ) {
53
+ public constructor(...args: TServiceArgs) {
59
54
 
60
- super( parent, config, services, app );
55
+ super(...args);
61
56
 
62
57
  AWS.config.update({
63
58
  accessKeyId: this.config.accessKeyId,
@@ -87,6 +82,7 @@ export default class S3Driver<
87
82
  bucketName: TBucketName,
88
83
  filename: string
89
84
  ) {
85
+
90
86
  const bucket = this.config.buckets[bucketName];
91
87
  if (bucket === undefined)
92
88
  throw new Error(`Bucket "${bucketName}" not found in configuration`);
package/types/icons.d.ts CHANGED
@@ -1 +1 @@
1
- export type TIcones = "long-arrow-right"|"times"|"solid/spinner-third"|"sack-dollar"|"bell"|"bullseye"|"project-diagram"|"user-friends"|"eye"|"lock"|"comments"|"phone"|"chalkboard-teacher"|"rocket"|"chart-bar"|"planet-ringed"|"crosshairs"|"user-circle"|"brands/linkedin"|"plus-circle"|"comments-alt"|"arrow-right"|"user-shield"|"shield-alt"|"chart-line"|"money-bill-wave"|"star"|"link"|"file-alt"|"long-arrow-left"|"key"|"user"|"at"|"user-plus"|"mouse-pointer"|"thumbs-up"|"dollar-sign"|"times-circle"|"calendar-alt"|"paper-plane"|"search"|"lightbulb"|"magnet"|"solid/crown"|"brands/discord"|"pen"|"plus"|"file"|"angle-up"|"angle-down"|"envelope"|"binoculars"|"info-circle"|"check-circle"|"exclamation-circle"|"meh-rolling-eyes"|"check"|"trash"|"arrow-left"|"solid/star"|"solid/star-half-alt"|"regular/star"|"chevron-left"|"cog"|"power-off"|"bars"|"plane-departure"|"wind"|"play"|"minus-circle"|"external-link"|"question-circle"|"usd-circle"|"users"|"home-alt"|"trophy"|"arrow-to-bottom"|"map-marker-alt"|"clock"|"ellipsis-h"|"building"|"bold"|"italic"|"underline"|"strikethrough"|"subscript"|"superscript"|"code"|"unlink"|"font"|"empty-set"|"horizontal-rule"|"page-break"|"image"|"table"|"poll"|"columns"|"sticky-note"|"caret-right"|"list-ul"|"check-square"|"h1"|"h2"|"h3"|"h4"|"list-ol"|"paragraph"|"quote-left"|"align-left"|"align-center"|"align-right"|"align-justify"|"indent"|"outdent"
1
+ export type TIcones = "times"|"solid/spinner-third"|"long-arrow-right"|"sack-dollar"|"bell"|"bullseye"|"project-diagram"|"user-friends"|"eye"|"lock"|"comments"|"phone"|"chalkboard-teacher"|"rocket"|"chart-bar"|"planet-ringed"|"brands/linkedin"|"user-circle"|"crosshairs"|"plus-circle"|"comments-alt"|"arrow-right"|"user-shield"|"shield-alt"|"chart-line"|"money-bill-wave"|"star"|"link"|"file-alt"|"long-arrow-left"|"key"|"user"|"at"|"user-plus"|"mouse-pointer"|"thumbs-up"|"dollar-sign"|"times-circle"|"calendar-alt"|"paper-plane"|"search"|"lightbulb"|"magnet"|"angle-up"|"angle-down"|"solid/crown"|"brands/discord"|"pen"|"plus"|"file"|"envelope"|"binoculars"|"info-circle"|"check-circle"|"exclamation-circle"|"check"|"arrow-left"|"trash"|"meh-rolling-eyes"|"bars"|"solid/star"|"solid/star-half-alt"|"regular/star"|"chevron-left"|"cog"|"power-off"|"question-circle"|"play"|"minus-circle"|"external-link"|"plane-departure"|"wind"|"map-marker-alt"|"clock"|"arrow-to-bottom"|"ellipsis-h"|"usd-circle"|"users"|"home-alt"|"trophy"|"building"|"unlink"|"bold"|"italic"|"underline"|"strikethrough"|"subscript"|"superscript"|"code"|"font"|"empty-set"|"horizontal-rule"|"page-break"|"image"|"table"|"poll"|"columns"|"sticky-note"|"caret-right"|"align-left"|"align-center"|"align-right"|"align-justify"|"indent"|"outdent"|"list-ul"|"check-square"|"h1"|"h2"|"h3"|"h4"|"list-ol"|"paragraph"|"quote-left"