ptechcore_ui 1.0.15 → 1.0.16
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/dist/index.cjs +565 -70
- package/dist/index.d.cts +84 -5
- package/dist/index.d.ts +84 -5
- package/dist/index.js +573 -72
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -345,17 +345,96 @@ declare const useAlert: () => AlertContextType;
|
|
|
345
345
|
interface SearchableSelectOption {
|
|
346
346
|
value: string | number;
|
|
347
347
|
label: string;
|
|
348
|
+
object?: any;
|
|
348
349
|
content?: React$1.ReactNode;
|
|
349
350
|
image?: string;
|
|
350
351
|
}
|
|
351
352
|
|
|
353
|
+
interface SelectProps$1 {
|
|
354
|
+
value?: any;
|
|
355
|
+
onSelect: (option: SearchableSelectOption) => void;
|
|
356
|
+
}
|
|
357
|
+
declare const SelectVendor: React.FC<SelectProps$1>;
|
|
358
|
+
declare const SelectUser: React.FC<SelectProps$1>;
|
|
359
|
+
declare const SelectDepartment: React.FC<SelectProps$1>;
|
|
360
|
+
declare const SelectCostCenter: React.FC<SelectProps$1>;
|
|
361
|
+
|
|
352
362
|
interface SelectProps {
|
|
353
363
|
value?: any;
|
|
354
364
|
onSelect: (option: SearchableSelectOption) => void;
|
|
355
365
|
}
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
366
|
+
interface ChoiceSelectProps extends SelectProps {
|
|
367
|
+
disabled?: boolean;
|
|
368
|
+
language?: 'fr' | 'en' | 'default';
|
|
369
|
+
}
|
|
370
|
+
interface TaxSelectProps extends ChoiceSelectProps {
|
|
371
|
+
handleChange?: (value: any) => void;
|
|
372
|
+
}
|
|
373
|
+
declare const CHOICES: {
|
|
374
|
+
INVOICE_TYPES: {
|
|
375
|
+
value: string;
|
|
376
|
+
label: {
|
|
377
|
+
fr: string;
|
|
378
|
+
en: string;
|
|
379
|
+
default: string;
|
|
380
|
+
};
|
|
381
|
+
}[];
|
|
382
|
+
PAYMENT_METHODS: {
|
|
383
|
+
value: string;
|
|
384
|
+
label: {
|
|
385
|
+
fr: string;
|
|
386
|
+
en: string;
|
|
387
|
+
default: string;
|
|
388
|
+
};
|
|
389
|
+
}[];
|
|
390
|
+
TEMPLATES: {
|
|
391
|
+
value: string;
|
|
392
|
+
label: {
|
|
393
|
+
fr: string;
|
|
394
|
+
en: string;
|
|
395
|
+
default: string;
|
|
396
|
+
};
|
|
397
|
+
}[];
|
|
398
|
+
FOREIGN_CURRENCIES: {
|
|
399
|
+
value: string;
|
|
400
|
+
label: {
|
|
401
|
+
fr: string;
|
|
402
|
+
en: string;
|
|
403
|
+
default: string;
|
|
404
|
+
};
|
|
405
|
+
}[];
|
|
406
|
+
TAXES: {
|
|
407
|
+
value: string;
|
|
408
|
+
label: {
|
|
409
|
+
fr: string;
|
|
410
|
+
en: string;
|
|
411
|
+
default: string;
|
|
412
|
+
};
|
|
413
|
+
}[];
|
|
414
|
+
LEGAL_FORMS: {
|
|
415
|
+
value: string;
|
|
416
|
+
label: {
|
|
417
|
+
fr: string;
|
|
418
|
+
en: string;
|
|
419
|
+
default: string;
|
|
420
|
+
};
|
|
421
|
+
}[];
|
|
422
|
+
COUNTRIES: {
|
|
423
|
+
value: string;
|
|
424
|
+
label: {
|
|
425
|
+
fr: string;
|
|
426
|
+
en: string;
|
|
427
|
+
default: string;
|
|
428
|
+
};
|
|
429
|
+
}[];
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
declare const InvoiceTypeSelector: React$1.FC<ChoiceSelectProps>;
|
|
433
|
+
declare const PaymentMethodSelector: React$1.FC<ChoiceSelectProps>;
|
|
434
|
+
declare const TemplateFNESelector: React$1.FC<ChoiceSelectProps>;
|
|
435
|
+
declare const ForeignCurrencySelector: React$1.FC<ChoiceSelectProps>;
|
|
436
|
+
declare const TaxSelector: React$1.FC<TaxSelectProps>;
|
|
437
|
+
declare const LegalFormSelector: React$1.FC<ChoiceSelectProps>;
|
|
438
|
+
declare const CountrySelector: React$1.FC<ChoiceSelectProps>;
|
|
360
439
|
|
|
361
|
-
export { Alert, AlertProvider, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalWorkflow, DateInput, FDrawer, FetchApi, FileInput, InputField, type MenuItem, Modal, NumberInput, Pages, PrimaryButton, RewiseLayout, SecondaryButton, SelectCostCenter, SelectDepartment, SelectInput, SelectUser, SelectVendor, SessionProvider, TextInput, ThemeProvider, ToastContainer, ToastProvider, type User, UserServices, useAlert, useSession, useToast };
|
|
440
|
+
export { Alert, AlertProvider, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalWorkflow, CHOICES, CountrySelector, DateInput, FDrawer, FetchApi, FileInput, ForeignCurrencySelector, InputField, InvoiceTypeSelector, LegalFormSelector, type MenuItem, Modal, NumberInput, Pages, PaymentMethodSelector, PrimaryButton, RewiseLayout, SecondaryButton, SelectCostCenter, SelectDepartment, SelectInput, SelectUser, SelectVendor, SessionProvider, TaxSelector, TemplateFNESelector, TextInput, ThemeProvider, ToastContainer, ToastProvider, type User, UserServices, useAlert, useSession, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -345,17 +345,96 @@ declare const useAlert: () => AlertContextType;
|
|
|
345
345
|
interface SearchableSelectOption {
|
|
346
346
|
value: string | number;
|
|
347
347
|
label: string;
|
|
348
|
+
object?: any;
|
|
348
349
|
content?: React$1.ReactNode;
|
|
349
350
|
image?: string;
|
|
350
351
|
}
|
|
351
352
|
|
|
353
|
+
interface SelectProps$1 {
|
|
354
|
+
value?: any;
|
|
355
|
+
onSelect: (option: SearchableSelectOption) => void;
|
|
356
|
+
}
|
|
357
|
+
declare const SelectVendor: React.FC<SelectProps$1>;
|
|
358
|
+
declare const SelectUser: React.FC<SelectProps$1>;
|
|
359
|
+
declare const SelectDepartment: React.FC<SelectProps$1>;
|
|
360
|
+
declare const SelectCostCenter: React.FC<SelectProps$1>;
|
|
361
|
+
|
|
352
362
|
interface SelectProps {
|
|
353
363
|
value?: any;
|
|
354
364
|
onSelect: (option: SearchableSelectOption) => void;
|
|
355
365
|
}
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
366
|
+
interface ChoiceSelectProps extends SelectProps {
|
|
367
|
+
disabled?: boolean;
|
|
368
|
+
language?: 'fr' | 'en' | 'default';
|
|
369
|
+
}
|
|
370
|
+
interface TaxSelectProps extends ChoiceSelectProps {
|
|
371
|
+
handleChange?: (value: any) => void;
|
|
372
|
+
}
|
|
373
|
+
declare const CHOICES: {
|
|
374
|
+
INVOICE_TYPES: {
|
|
375
|
+
value: string;
|
|
376
|
+
label: {
|
|
377
|
+
fr: string;
|
|
378
|
+
en: string;
|
|
379
|
+
default: string;
|
|
380
|
+
};
|
|
381
|
+
}[];
|
|
382
|
+
PAYMENT_METHODS: {
|
|
383
|
+
value: string;
|
|
384
|
+
label: {
|
|
385
|
+
fr: string;
|
|
386
|
+
en: string;
|
|
387
|
+
default: string;
|
|
388
|
+
};
|
|
389
|
+
}[];
|
|
390
|
+
TEMPLATES: {
|
|
391
|
+
value: string;
|
|
392
|
+
label: {
|
|
393
|
+
fr: string;
|
|
394
|
+
en: string;
|
|
395
|
+
default: string;
|
|
396
|
+
};
|
|
397
|
+
}[];
|
|
398
|
+
FOREIGN_CURRENCIES: {
|
|
399
|
+
value: string;
|
|
400
|
+
label: {
|
|
401
|
+
fr: string;
|
|
402
|
+
en: string;
|
|
403
|
+
default: string;
|
|
404
|
+
};
|
|
405
|
+
}[];
|
|
406
|
+
TAXES: {
|
|
407
|
+
value: string;
|
|
408
|
+
label: {
|
|
409
|
+
fr: string;
|
|
410
|
+
en: string;
|
|
411
|
+
default: string;
|
|
412
|
+
};
|
|
413
|
+
}[];
|
|
414
|
+
LEGAL_FORMS: {
|
|
415
|
+
value: string;
|
|
416
|
+
label: {
|
|
417
|
+
fr: string;
|
|
418
|
+
en: string;
|
|
419
|
+
default: string;
|
|
420
|
+
};
|
|
421
|
+
}[];
|
|
422
|
+
COUNTRIES: {
|
|
423
|
+
value: string;
|
|
424
|
+
label: {
|
|
425
|
+
fr: string;
|
|
426
|
+
en: string;
|
|
427
|
+
default: string;
|
|
428
|
+
};
|
|
429
|
+
}[];
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
declare const InvoiceTypeSelector: React$1.FC<ChoiceSelectProps>;
|
|
433
|
+
declare const PaymentMethodSelector: React$1.FC<ChoiceSelectProps>;
|
|
434
|
+
declare const TemplateFNESelector: React$1.FC<ChoiceSelectProps>;
|
|
435
|
+
declare const ForeignCurrencySelector: React$1.FC<ChoiceSelectProps>;
|
|
436
|
+
declare const TaxSelector: React$1.FC<TaxSelectProps>;
|
|
437
|
+
declare const LegalFormSelector: React$1.FC<ChoiceSelectProps>;
|
|
438
|
+
declare const CountrySelector: React$1.FC<ChoiceSelectProps>;
|
|
360
439
|
|
|
361
|
-
export { Alert, AlertProvider, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalWorkflow, DateInput, FDrawer, FetchApi, FileInput, InputField, type MenuItem, Modal, NumberInput, Pages, PrimaryButton, RewiseLayout, SecondaryButton, SelectCostCenter, SelectDepartment, SelectInput, SelectUser, SelectVendor, SessionProvider, TextInput, ThemeProvider, ToastContainer, ToastProvider, type User, UserServices, useAlert, useSession, useToast };
|
|
440
|
+
export { Alert, AlertProvider, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalWorkflow, CHOICES, CountrySelector, DateInput, FDrawer, FetchApi, FileInput, ForeignCurrencySelector, InputField, InvoiceTypeSelector, LegalFormSelector, type MenuItem, Modal, NumberInput, Pages, PaymentMethodSelector, PrimaryButton, RewiseLayout, SecondaryButton, SelectCostCenter, SelectDepartment, SelectInput, SelectUser, SelectVendor, SessionProvider, TaxSelector, TemplateFNESelector, TextInput, ThemeProvider, ToastContainer, ToastProvider, type User, UserServices, useAlert, useSession, useToast };
|