survey-react 1.12.8 → 1.12.9

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/survey.react.d.ts CHANGED
@@ -903,7 +903,10 @@ declare module "packages/survey-core/src/utils/utils" {
903
903
  function activateLazyRenderingChecks(id: string): void;
904
904
  function navigateToUrl(url: string): void;
905
905
  function wrapUrlForBackgroundImage(url: string): string;
906
+ const renamedIcons: any;
906
907
  function getIconNameFromProxy(iconName: string): string;
908
+ export function getNewIconName(iconName: string): string;
909
+ export function getCustomNewIconNameIfExists(iconName: string): string;
907
910
  function createSvg(size: number | string, width: number, height: number, iconName: string, svgElem: any, title: string): void;
908
911
  export function getSafeUrl(url: string): string;
909
912
  export function unwrap<T>(value: T | (() => T)): T;
@@ -959,7 +962,7 @@ declare module "packages/survey-core/src/utils/utils" {
959
962
  export function prepareElementForVerticalAnimation(el: HTMLElement): void;
960
963
  export function cleanHtmlElementAfterAnimation(el: HTMLElement): void;
961
964
  export function roundTo2Decimals(number: number): number;
962
- export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, activateLazyRenderingChecks, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles };
965
+ export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, activateLazyRenderingChecks, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles, renamedIcons };
963
966
  }
964
967
  declare module "packages/survey-core/src/actions/container" {
965
968
  import { Base } from "packages/survey-core/src/base";
@@ -1610,6 +1613,7 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
1610
1613
  number: string;
1611
1614
  title: string;
1612
1615
  titleExpandable: string;
1616
+ titleExpandableSvg: string;
1613
1617
  titleNumInline: string;
1614
1618
  titleExpanded: string;
1615
1619
  titleCollapsed: string;
@@ -1755,6 +1759,7 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
1755
1759
  titleOnError: string;
1756
1760
  title: string;
1757
1761
  titleExpandable: string;
1762
+ titleExpandableSvg: string;
1758
1763
  titleExpanded: string;
1759
1764
  titleCollapsed: string;
1760
1765
  titleDisabled: string;
@@ -3873,6 +3878,7 @@ declare module "packages/survey-core/src/panel" {
3873
3878
  get hasEditButton(): boolean;
3874
3879
  cancelPreview(): void;
3875
3880
  get cssTitle(): string;
3881
+ getCssTitleExpandableSvg(): string;
3876
3882
  get showErrorsAbovePanel(): boolean;
3877
3883
  protected getCssError(cssClasses: any): string;
3878
3884
  protected onVisibleChanged(): void;
@@ -8497,6 +8503,7 @@ declare module "packages/survey-core/src/page" {
8497
8503
  get isPage(): boolean;
8498
8504
  get no(): string;
8499
8505
  get cssTitleNumber(): string;
8506
+ getCssTitleExpandableSvg(): string;
8500
8507
  get cssRequiredText(): string;
8501
8508
  protected canShowPageNumber(): boolean;
8502
8509
  protected canShowTitle(): boolean;
@@ -9652,6 +9659,27 @@ declare module "packages/survey-core/src/surveyToc" {
9652
9659
  dispose(): void;
9653
9660
  }
9654
9661
  }
9662
+ declare module "packages/survey-core/src/svgbundle" {
9663
+ class SvgIconData {
9664
+ [key: string]: string;
9665
+ }
9666
+ export class SvgIconRegistry {
9667
+ icons: SvgIconData;
9668
+ private iconPrefix;
9669
+ private processId;
9670
+ registerIconFromSymbol(iconId: string, iconSymbolSvg: string): void;
9671
+ registerIconFromSvgViaElement(iconId: string, iconSvg: string, iconPrefix?: string): void;
9672
+ registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
9673
+ registerIconsFromFolder(r: any): void;
9674
+ iconsRenderedHtml(): string;
9675
+ }
9676
+ export var SvgRegistry: SvgIconRegistry;
9677
+ export var SvgBundleViewModel: any;
9678
+ export var svgBundle: {
9679
+ V1?: string;
9680
+ V2?: string;
9681
+ };
9682
+ }
9655
9683
  declare module "packages/survey-core/src/survey" {
9656
9684
  import { JsonError } from "packages/survey-core/src/jsonobject";
9657
9685
  import { Base, EventBase } from "packages/survey-core/src/base";
@@ -12585,6 +12613,7 @@ declare module "packages/survey-core/src/survey" {
12585
12613
  getContainerContent(container: LayoutElementContainer): any[];
12586
12614
  processPopupVisiblityChanged(question: Question, popup: PopupModel<any>, visible: boolean): void;
12587
12615
  processOpenDropdownMenu(question: Question, options: IDropdownMenuOptions): void;
12616
+ getCssTitleExpandableSvg(): string;
12588
12617
  /**
12589
12618
  * Applies a specified theme to the survey.
12590
12619
  *
@@ -12607,6 +12636,7 @@ declare module "packages/survey-core/src/survey" {
12607
12636
  addScrollEventListener(): void;
12608
12637
  removeScrollEventListener(): void;
12609
12638
  questionErrorComponent: string;
12639
+ protected registerIcons(): void;
12610
12640
  }
12611
12641
  }
12612
12642
  declare module "packages/survey-core/src/survey-element" {
@@ -12740,6 +12770,7 @@ declare module "packages/survey-core/src/survey-element" {
12740
12770
  get parentQuestion(): E;
12741
12771
  setParentQuestion(val: E): void;
12742
12772
  protected onParentQuestionChanged(): void;
12773
+ updateElementVisibility(): void;
12743
12774
  get skeletonComponentName(): string;
12744
12775
  /**
12745
12776
  * Gets and sets the survey element's expand state.
@@ -12876,6 +12907,7 @@ declare module "packages/survey-core/src/survey-element" {
12876
12907
  get cssClasses(): any;
12877
12908
  get cssTitleNumber(): any;
12878
12909
  get cssRequiredText(): any;
12910
+ getCssTitleExpandableSvg(): string;
12879
12911
  protected calcCssClasses(css: any): any;
12880
12912
  protected updateElementCssCore(cssClasses: any): void;
12881
12913
  get cssError(): string;
@@ -13265,6 +13297,7 @@ declare module "packages/survey-core/src/question" {
13265
13297
  set visible(val: boolean);
13266
13298
  protected onVisibleChanged(): void;
13267
13299
  protected notifyStateChanged(prevState: string): void;
13300
+ updateElementVisibility(): void;
13268
13301
  private updateIsVisibleProp;
13269
13302
  /**
13270
13303
  * Specifies whether to use display names for question values in placeholders.
@@ -14399,6 +14432,7 @@ declare module "packages/survey-core/src/question_matrixdropdownbase" {
14399
14432
  getFilteredProperties(): any;
14400
14433
  private applyRowVariablesToValues;
14401
14434
  runCondition(values: HashTable<any>, properties: HashTable<any>, rowsVisibleIf?: string): void;
14435
+ updateElementVisibility(): void;
14402
14436
  protected setRowsVisibleIfValues(values: any): void;
14403
14437
  getNamesWithDefaultValues(): Array<string>;
14404
14438
  clearValue(keepComment?: boolean): void;
@@ -14667,6 +14701,7 @@ declare module "packages/survey-core/src/question_matrixdropdownbase" {
14667
14701
  private runFuncForCellQuestions;
14668
14702
  runCondition(values: HashTable<any>, properties: HashTable<any>): void;
14669
14703
  runTriggers(name: string, value: any): void;
14704
+ updateElementVisibility(): void;
14670
14705
  protected shouldRunColumnExpression(): boolean;
14671
14706
  protected runCellsCondition(values: HashTable<any>, properties: HashTable<any>): void;
14672
14707
  protected runConditionsForColumns(values: HashTable<any>, properties: HashTable<any>): boolean;
@@ -15098,6 +15133,7 @@ declare module "packages/survey-core/src/base-interfaces" {
15098
15133
  dispose(): void;
15099
15134
  needResponsiveWidth(): boolean;
15100
15135
  updateRootStyle(): void;
15136
+ updateElementVisibility(): void;
15101
15137
  }
15102
15138
  export interface IQuestion extends IElement, ISurveyErrorOwner {
15103
15139
  hasTitle: boolean;
@@ -16800,6 +16836,7 @@ declare module "packages/survey-core/src/settings" {
16800
16836
  * @see [settings.serialization](https://surveyjs.io/form-library/documentation/api-reference/settings#serialization)
16801
16837
  */
16802
16838
  parseNumber: (stringValue: any, numericValue: number) => number;
16839
+ useLegacyIcons: boolean;
16803
16840
  };
16804
16841
  }
16805
16842
  declare module "packages/survey-core/src/question_matrixdropdown" {
@@ -19352,7 +19389,7 @@ declare module "packages/survey-core/entries/chunks/model" {
19352
19389
  export { DropdownMultiSelectListModel } from "packages/survey-core/src/dropdownMultiSelectListModel";
19353
19390
  export { QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue } from "packages/survey-core/src/question_buttongroup";
19354
19391
  export { IsMobile, IsTouch, _setIsTouch } from "packages/survey-core/src/utils/devices";
19355
- export { confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, chooseFiles, sanitizeEditableContent, prepareElementForVerticalAnimation, cleanHtmlElementAfterAnimation, classesToSelector, IAttachKey2clickOptions } from "packages/survey-core/src/utils/utils";
19392
+ export { confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, chooseFiles, sanitizeEditableContent, prepareElementForVerticalAnimation, cleanHtmlElementAfterAnimation, classesToSelector, IAttachKey2clickOptions, renamedIcons, getIconNameFromProxy } from "packages/survey-core/src/utils/utils";
19356
19393
  export { InputMaskBase } from "packages/survey-core/src/mask/mask_base";
19357
19394
  export { InputMaskPattern } from "packages/survey-core/src/mask/mask_pattern";
19358
19395
  export { InputMaskNumeric } from "packages/survey-core/src/mask/mask_numeric";
@@ -19490,6 +19527,7 @@ declare module "src/defaultCss/cssstandard" {
19490
19527
  requiredText: string;
19491
19528
  title: string;
19492
19529
  titleExpandable: string;
19530
+ titleExpandableSvg: string;
19493
19531
  titleExpanded: string;
19494
19532
  titleCollapsed: string;
19495
19533
  number: string;
@@ -19509,6 +19547,7 @@ declare module "src/defaultCss/cssstandard" {
19509
19547
  panel: {
19510
19548
  title: string;
19511
19549
  titleExpandable: string;
19550
+ titleExpandableSvg: string;
19512
19551
  titleExpanded: string;
19513
19552
  titleCollapsed: string;
19514
19553
  titleOnError: string;
@@ -19873,6 +19912,7 @@ declare module "src/defaultCss/cssmodern" {
19873
19912
  panel: {
19874
19913
  title: string;
19875
19914
  titleExpandable: string;
19915
+ titleExpandableSvg: string;
19876
19916
  titleExpanded: string;
19877
19917
  titleCollapsed: string;
19878
19918
  titleOnError: string;
@@ -19950,6 +19990,7 @@ declare module "src/defaultCss/cssmodern" {
19950
19990
  titleOnError: string;
19951
19991
  title: string;
19952
19992
  titleExpandable: string;
19993
+ titleExpandableSvg: string;
19953
19994
  titleExpanded: string;
19954
19995
  titleCollapsed: string;
19955
19996
  icon: string;
@@ -20300,23 +20341,6 @@ declare module "src/defaultCss/cssmodern" {
20300
20341
  };
20301
20342
  };
20302
20343
  }
20303
- declare module "packages/survey-core/src/svgbundle" {
20304
- class SvgIconData {
20305
- [key: string]: string;
20306
- }
20307
- export class SvgIconRegistry {
20308
- icons: SvgIconData;
20309
- private iconPrefix;
20310
- private processId;
20311
- registerIconFromSymbol(iconId: string, iconSymbolSvg: string): void;
20312
- registerIconFromSvgViaElement(iconId: string, iconSvg: string, iconPrefix?: string): void;
20313
- registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
20314
- registerIconsFromFolder(r: any): void;
20315
- iconsRenderedHtml(): string;
20316
- }
20317
- export var SvgRegistry: SvgIconRegistry;
20318
- export var SvgBundleViewModel: any;
20319
- }
20320
20344
  declare module "packages/survey-core/entries/chunks/core-wo-model" {
20321
20345
  export * from "packages/survey-core/entries/chunks/model";
20322
20346
  export * from "packages/survey-core/src/svgbundle";
@@ -20396,6 +20420,7 @@ declare module "src/plugins/themes/bootstrap-integration/cssbootstrap" {
20396
20420
  titleLeftRoot: string;
20397
20421
  title: string;
20398
20422
  titleExpandable: string;
20423
+ titleExpandableSvg: string;
20399
20424
  titleExpanded: string;
20400
20425
  titleCollapsed: string;
20401
20426
  number: string;
@@ -20413,6 +20438,7 @@ declare module "src/plugins/themes/bootstrap-integration/cssbootstrap" {
20413
20438
  panel: {
20414
20439
  title: string;
20415
20440
  titleExpandable: string;
20441
+ titleExpandableSvg: string;
20416
20442
  titleExpanded: string;
20417
20443
  titleCollapsed: string;
20418
20444
  titleOnError: string;
@@ -20757,6 +20783,7 @@ declare module "src/plugins/themes/bootstrap-material-integration/cssbootstrapma
20757
20783
  requiredText: string;
20758
20784
  title: string;
20759
20785
  titleExpandable: string;
20786
+ titleExpandableSvg: string;
20760
20787
  titleExpanded: string;
20761
20788
  titleCollapsed: string;
20762
20789
  number: string;
@@ -20773,6 +20800,7 @@ declare module "src/plugins/themes/bootstrap-material-integration/cssbootstrapma
20773
20800
  panel: {
20774
20801
  title: string;
20775
20802
  titleExpandable: string;
20803
+ titleExpandableSvg: string;
20776
20804
  titleExpanded: string;
20777
20805
  titleCollapsed: string;
20778
20806
  titleOnError: string;
@@ -21231,6 +21259,7 @@ declare module "src/entries/plugins" {
21231
21259
  titleLeftRoot: string;
21232
21260
  title: string;
21233
21261
  titleExpandable: string;
21262
+ titleExpandableSvg: string;
21234
21263
  titleExpanded: string;
21235
21264
  titleCollapsed: string;
21236
21265
  number: string;
@@ -21248,6 +21277,7 @@ declare module "src/entries/plugins" {
21248
21277
  panel: {
21249
21278
  title: string;
21250
21279
  titleExpandable: string;
21280
+ titleExpandableSvg: string;
21251
21281
  titleExpanded: string;
21252
21282
  titleCollapsed: string;
21253
21283
  titleOnError: string;
@@ -21590,6 +21620,7 @@ declare module "src/entries/plugins" {
21590
21620
  requiredText: string;
21591
21621
  title: string;
21592
21622
  titleExpandable: string;
21623
+ titleExpandableSvg: string;
21593
21624
  titleExpanded: string;
21594
21625
  titleCollapsed: string;
21595
21626
  number: string;
@@ -21606,6 +21637,7 @@ declare module "src/entries/plugins" {
21606
21637
  panel: {
21607
21638
  title: string;
21608
21639
  titleExpandable: string;
21640
+ titleExpandableSvg: string;
21609
21641
  titleExpanded: string;
21610
21642
  titleCollapsed: string;
21611
21643
  titleOnError: string;
@@ -27464,6 +27496,7 @@ declare module "packages/survey-react-ui/src/components/title/title-element" {
27464
27496
  export class TitleElement extends React.Component<any, any> {
27465
27497
  constructor(props: any);
27466
27498
  private get element();
27499
+ renderTitleExpandableSvg(): JSX.Element;
27467
27500
  render(): JSX.Element | any;
27468
27501
  }
27469
27502
  }
@@ -28082,6 +28115,7 @@ declare module "packages/survey-react-ui/src/dropdown-base" {
28082
28115
  protected renderOther(cssClasses: any): JSX.Element;
28083
28116
  componentDidUpdate(prevProps: any, prevState: any): void;
28084
28117
  componentDidMount(): void;
28118
+ componentWillUnmount(): void;
28085
28119
  updateInputDomElement(): void;
28086
28120
  }
28087
28121
  }