@wcardinal/wcardinal-ui 0.390.0 → 0.390.1

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.
@@ -27,7 +27,7 @@ var DDialogLayeredFooter = /** @class */ (function (_super) {
27
27
  }
28
28
  };
29
29
  DDialogLayeredFooter.prototype.newChildren = function () {
30
- return [this.buttonSpaceLeft, this.buttonOk, this.buttonCancel, this.buttonSpaceRight];
30
+ return [this.buttonSpaceLeft, this.buttonCancel, this.buttonOk, this.buttonSpaceRight];
31
31
  };
32
32
  Object.defineProperty(DDialogLayeredFooter.prototype, "buttonSpaceLeft", {
33
33
  get: function () {
@@ -1 +1 @@
1
- {"version":3,"file":"d-dialog-layered-footer.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-dialog-layered-footer.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EACN,iBAAiB,EAGjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAiDhD;IAGU,wCAAiC;IAQ1C,8BAAY,MAAkC,EAAE,OAAiB;QAAjE,YACC,kBAAM,OAAO,CAAC,SAEd;QADA,KAAI,CAAC,OAAO,GAAG,MAAM,CAAC;;IACvB,CAAC;IAEkB,mCAAI,GAAvB,UAAwB,OAA6B;QACpD,iBAAM,IAAI,YAAC,OAAO,CAAC,CAAC;QAEpB,IAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QACpC,IAAI,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE;YACxB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,EAAE;gBACtD,IAAM,KAAK,GA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,QAAQ,0CAAE,MAAM,0CAAE,EAAE,CAAC;QACnC,IAAI,EAAE,KAAK,SAAS,EAAE;YACrB,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;SAC9B;QACD,IAAI,EAAE,IAAI,IAAI,EAAE;YACf,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;gBAC9B,OAAO,IAAI,OAAO,CAAS;oBAC1B,IAAI,EAAE;wBACL,KAAK,EAAE,EAAE;qBACT;oBACD,EAAE,EAAE;wBACH,MAAM,EAAE;4BACP,KAAI,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;wBACnB,CAAC;qBACD;iBACD,CAAC,CAAC;aACH;iBAAM;gBACN,OAAO,IAAI,cAAc,CAAS;oBACjC,IAAI,EAAE;wBACL,KAAK,EAAE,EAAE;qBACT;oBACD,EAAE,EAAE;wBACH,MAAM,EAAE;4BACP,KAAI,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;wBACnB,CAAC;qBACD;iBACD,CAAC,CAAC;aACH;SACD;QACD,OAAO,IAAI,CAAC;IACb,CAAC;IAES,sCAAO,GAAjB;QACC,OAAO,sBAAsB,CAAC;IAC/B,CAAC;IACF,2BAAC;AAAD,CAAC,AAhJD,CAGU,iBAAiB,GA6I1B","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBase } from \"./d-base\";\nimport { DButton } from \"./d-button\";\nimport { DButtonPrimary } from \"./d-button-primary\";\nimport {\n\tDLayoutHorizontal,\n\tDLayoutHorizontalOptions,\n\tDThemeLayoutHorizontal\n} from \"./d-layout-horizontal\";\nimport { DLayoutSpace } from \"./d-layout-space\";\n\nexport interface DDialogLayeredFooterButtonSpaceOptions {\n\t/**\n\t * True to make the left space.\n\t */\n\tleft?: boolean;\n\n\t/**\n\t * True to make the right space.\n\t */\n\tright?: boolean;\n}\n\nexport interface DDialogLayeredFooterButtonOptions {\n\t/**\n\t * A ok button label.\n\t */\n\tok?: string | null;\n\n\t/**\n\t * A cancel button label.\n\t */\n\tcancel?: string | null;\n\n\t/**\n\t * A button spacer options.\n\t */\n\tspace?: DDialogLayeredFooterButtonSpaceOptions;\n}\n\nexport interface DDialogLayeredFooterOptions<\n\tTHEME extends DThemeDialogLayeredFooter = DThemeDialogLayeredFooter\n> extends DLayoutHorizontalOptions<THEME> {\n\tbutton?: DDialogLayeredFooterButtonOptions;\n}\n\nexport interface DThemeDialogLayeredFooter extends DThemeLayoutHorizontal {\n\tgetButtonOk(): string | null;\n\tgetButtonCancel(): string | null;\n\tisButtonSpaceLeftEnabled(): boolean;\n\tisButtonSpaceRightEnabled(): boolean;\n}\n\nexport interface DDialogLayeredFooterParent {\n\tok(): void;\n\tcancel(): void;\n}\n\nexport class DDialogLayeredFooter<\n\tTHEME extends DThemeDialogLayeredFooter = DThemeDialogLayeredFooter,\n\tOPTIONS extends DDialogLayeredFooterOptions<THEME> = DDialogLayeredFooterOptions<THEME>\n> extends DLayoutHorizontal<THEME, OPTIONS> {\n\tprotected _parent: DDialogLayeredFooterParent;\n\tprotected _buttonSpaceLeft?: DLayoutSpace | null;\n\tprotected _buttonSpaceRight?: DLayoutSpace | null;\n\tprotected _buttonOk?: DButton<string> | null;\n\tprotected _buttonReset?: DButton<string> | null;\n\tprotected _buttonCancel?: DButton<string> | null;\n\n\tconstructor(parent: DDialogLayeredFooterParent, options?: OPTIONS) {\n\t\tsuper(options);\n\t\tthis._parent = parent;\n\t}\n\n\tprotected override init(options?: OPTIONS | undefined): void {\n\t\tsuper.init(options);\n\n\t\tconst children = this.newChildren();\n\t\tif (0 < children.length) {\n\t\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\t\tconst child = children[i];\n\t\t\t\tif (child != null) {\n\t\t\t\t\tthis.addChild(child);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected newChildren(): Array<DBase | null> {\n\t\treturn [this.buttonSpaceLeft, this.buttonOk, this.buttonCancel, this.buttonSpaceRight];\n\t}\n\n\tget buttonSpaceLeft(): DLayoutSpace | null {\n\t\tlet result = this._buttonSpaceLeft;\n\t\tif (result === undefined) {\n\t\t\tresult = this.newButtonSpaceLeft();\n\t\t\tthis._buttonSpaceLeft = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newButtonSpaceLeft(): DLayoutSpace | null {\n\t\tif (this._options?.button?.space?.left ?? this.theme.isButtonSpaceLeftEnabled()) {\n\t\t\treturn new DLayoutSpace({\n\t\t\t\tweight: 1\n\t\t\t});\n\t\t}\n\t\treturn null;\n\t}\n\n\tget buttonSpaceRight(): DLayoutSpace | null {\n\t\tlet result = this._buttonSpaceRight;\n\t\tif (result === undefined) {\n\t\t\tresult = this.newButtonSpaceRight();\n\t\t\tthis._buttonSpaceRight = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newButtonSpaceRight(): DLayoutSpace | null {\n\t\tif (this._options?.button?.space?.right ?? this.theme.isButtonSpaceRightEnabled()) {\n\t\t\treturn new DLayoutSpace({\n\t\t\t\tweight: 1\n\t\t\t});\n\t\t}\n\t\treturn null;\n\t}\n\n\tget buttonCancel(): DButton<string> | null {\n\t\tlet result = this._buttonCancel;\n\t\tif (result === undefined) {\n\t\t\tresult = this.newButtonCancel();\n\t\t\tthis._buttonCancel = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newButtonCancel(): DButton<string> | null {\n\t\tlet cancel = this._options?.button?.cancel;\n\t\tif (cancel === undefined) {\n\t\t\tcancel = this.theme.getButtonCancel();\n\t\t}\n\t\tif (cancel != null) {\n\t\t\treturn new DButtonPrimary<string>({\n\t\t\t\ttext: {\n\t\t\t\t\tvalue: cancel\n\t\t\t\t},\n\t\t\t\ton: {\n\t\t\t\t\tactive: (): void => {\n\t\t\t\t\t\tthis._parent.cancel();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn null;\n\t}\n\n\tget buttonOk(): DButton<string> | null {\n\t\tlet result = this._buttonOk;\n\t\tif (result === undefined) {\n\t\t\tresult = this.newButtonOk();\n\t\t\tthis._buttonOk = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newButtonOk(): DButton<string> | null {\n\t\tlet ok = this._options?.button?.ok;\n\t\tif (ok === undefined) {\n\t\t\tok = this.theme.getButtonOk();\n\t\t}\n\t\tif (ok != null) {\n\t\t\tif (this.buttonCancel != null) {\n\t\t\t\treturn new DButton<string>({\n\t\t\t\t\ttext: {\n\t\t\t\t\t\tvalue: ok\n\t\t\t\t\t},\n\t\t\t\t\ton: {\n\t\t\t\t\t\tactive: (): void => {\n\t\t\t\t\t\t\tthis._parent.ok();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\treturn new DButtonPrimary<string>({\n\t\t\t\t\ttext: {\n\t\t\t\t\t\tvalue: ok\n\t\t\t\t\t},\n\t\t\t\t\ton: {\n\t\t\t\t\t\tactive: (): void => {\n\t\t\t\t\t\t\tthis._parent.ok();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DDialogLayeredFooter\";\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-dialog-layered-footer.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-dialog-layered-footer.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EACN,iBAAiB,EAGjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAiDhD;IAGU,wCAAiC;IAQ1C,8BAAY,MAAkC,EAAE,OAAiB;QAAjE,YACC,kBAAM,OAAO,CAAC,SAEd;QADA,KA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Apache-2.0\n */\n\nimport { DBase } from \"./d-base\";\nimport { DButton } from \"./d-button\";\nimport { DButtonPrimary } from \"./d-button-primary\";\nimport {\n\tDLayoutHorizontal,\n\tDLayoutHorizontalOptions,\n\tDThemeLayoutHorizontal\n} from \"./d-layout-horizontal\";\nimport { DLayoutSpace } from \"./d-layout-space\";\n\nexport interface DDialogLayeredFooterButtonSpaceOptions {\n\t/**\n\t * True to make the left space.\n\t */\n\tleft?: boolean;\n\n\t/**\n\t * True to make the right space.\n\t */\n\tright?: boolean;\n}\n\nexport interface DDialogLayeredFooterButtonOptions {\n\t/**\n\t * A ok button label.\n\t */\n\tok?: string | null;\n\n\t/**\n\t * A cancel button label.\n\t */\n\tcancel?: string | null;\n\n\t/**\n\t * A button spacer options.\n\t */\n\tspace?: DDialogLayeredFooterButtonSpaceOptions;\n}\n\nexport interface DDialogLayeredFooterOptions<\n\tTHEME extends DThemeDialogLayeredFooter = DThemeDialogLayeredFooter\n> extends DLayoutHorizontalOptions<THEME> {\n\tbutton?: DDialogLayeredFooterButtonOptions;\n}\n\nexport interface DThemeDialogLayeredFooter extends DThemeLayoutHorizontal {\n\tgetButtonOk(): string | null;\n\tgetButtonCancel(): string | null;\n\tisButtonSpaceLeftEnabled(): boolean;\n\tisButtonSpaceRightEnabled(): boolean;\n}\n\nexport interface DDialogLayeredFooterParent {\n\tok(): void;\n\tcancel(): void;\n}\n\nexport class DDialogLayeredFooter<\n\tTHEME extends DThemeDialogLayeredFooter = DThemeDialogLayeredFooter,\n\tOPTIONS extends DDialogLayeredFooterOptions<THEME> = DDialogLayeredFooterOptions<THEME>\n> extends DLayoutHorizontal<THEME, OPTIONS> {\n\tprotected _parent: DDialogLayeredFooterParent;\n\tprotected _buttonSpaceLeft?: DLayoutSpace | null;\n\tprotected _buttonSpaceRight?: DLayoutSpace | null;\n\tprotected _buttonOk?: DButton<string> | null;\n\tprotected _buttonReset?: DButton<string> | null;\n\tprotected _buttonCancel?: DButton<string> | null;\n\n\tconstructor(parent: DDialogLayeredFooterParent, options?: OPTIONS) {\n\t\tsuper(options);\n\t\tthis._parent = parent;\n\t}\n\n\tprotected override init(options?: OPTIONS | undefined): void {\n\t\tsuper.init(options);\n\n\t\tconst children = this.newChildren();\n\t\tif (0 < children.length) {\n\t\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\t\tconst child = children[i];\n\t\t\t\tif (child != null) {\n\t\t\t\t\tthis.addChild(child);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected newChildren(): Array<DBase | null> {\n\t\treturn [this.buttonSpaceLeft, this.buttonCancel, this.buttonOk, this.buttonSpaceRight];\n\t}\n\n\tget buttonSpaceLeft(): DLayoutSpace | null {\n\t\tlet result = this._buttonSpaceLeft;\n\t\tif (result === undefined) {\n\t\t\tresult = this.newButtonSpaceLeft();\n\t\t\tthis._buttonSpaceLeft = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newButtonSpaceLeft(): DLayoutSpace | null {\n\t\tif (this._options?.button?.space?.left ?? this.theme.isButtonSpaceLeftEnabled()) {\n\t\t\treturn new DLayoutSpace({\n\t\t\t\tweight: 1\n\t\t\t});\n\t\t}\n\t\treturn null;\n\t}\n\n\tget buttonSpaceRight(): DLayoutSpace | null {\n\t\tlet result = this._buttonSpaceRight;\n\t\tif (result === undefined) {\n\t\t\tresult = this.newButtonSpaceRight();\n\t\t\tthis._buttonSpaceRight = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newButtonSpaceRight(): DLayoutSpace | null {\n\t\tif (this._options?.button?.space?.right ?? this.theme.isButtonSpaceRightEnabled()) {\n\t\t\treturn new DLayoutSpace({\n\t\t\t\tweight: 1\n\t\t\t});\n\t\t}\n\t\treturn null;\n\t}\n\n\tget buttonCancel(): DButton<string> | null {\n\t\tlet result = this._buttonCancel;\n\t\tif (result === undefined) {\n\t\t\tresult = this.newButtonCancel();\n\t\t\tthis._buttonCancel = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newButtonCancel(): DButton<string> | null {\n\t\tlet cancel = this._options?.button?.cancel;\n\t\tif (cancel === undefined) {\n\t\t\tcancel = this.theme.getButtonCancel();\n\t\t}\n\t\tif (cancel != null) {\n\t\t\treturn new DButtonPrimary<string>({\n\t\t\t\ttext: {\n\t\t\t\t\tvalue: cancel\n\t\t\t\t},\n\t\t\t\ton: {\n\t\t\t\t\tactive: (): void => {\n\t\t\t\t\t\tthis._parent.cancel();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn null;\n\t}\n\n\tget buttonOk(): DButton<string> | null {\n\t\tlet result = this._buttonOk;\n\t\tif (result === undefined) {\n\t\t\tresult = this.newButtonOk();\n\t\t\tthis._buttonOk = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newButtonOk(): DButton<string> | null {\n\t\tlet ok = this._options?.button?.ok;\n\t\tif (ok === undefined) {\n\t\t\tok = this.theme.getButtonOk();\n\t\t}\n\t\tif (ok != null) {\n\t\t\tif (this.buttonCancel != null) {\n\t\t\t\treturn new DButton<string>({\n\t\t\t\t\ttext: {\n\t\t\t\t\t\tvalue: ok\n\t\t\t\t\t},\n\t\t\t\t\ton: {\n\t\t\t\t\t\tactive: (): void => {\n\t\t\t\t\t\t\tthis._parent.ok();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\treturn new DButtonPrimary<string>({\n\t\t\t\t\ttext: {\n\t\t\t\t\t\tvalue: ok\n\t\t\t\t\t},\n\t\t\t\t\ton: {\n\t\t\t\t\t\tactive: (): void => {\n\t\t\t\t\t\t\tthis._parent.ok();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DDialogLayeredFooter\";\n\t}\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.390.0
2
+ Winter Cardinal UI v0.390.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.390.0
2
+ Winter Cardinal UI v0.390.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.390.0
2
+ Winter Cardinal UI v0.390.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.390.0
2
+ Winter Cardinal UI v0.390.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.390.0
2
+ Winter Cardinal UI v0.390.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.390.0
2
+ Winter Cardinal UI v0.390.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.390.0
2
+ Winter Cardinal UI v0.390.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.390.0
2
+ Winter Cardinal UI v0.390.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.390.0
2
+ Winter Cardinal UI v0.390.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.390.0
2
+ Winter Cardinal UI v0.390.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.390.0
2
+ Winter Cardinal UI v0.390.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.390.0
2
+ Winter Cardinal UI v0.390.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.390.0
2
+ Winter Cardinal UI v0.390.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -30289,7 +30289,7 @@ var DDialogLayeredFooter = /** @class */ (function (_super) {
30289
30289
  }
30290
30290
  };
30291
30291
  DDialogLayeredFooter.prototype.newChildren = function () {
30292
- return [this.buttonSpaceLeft, this.buttonOk, this.buttonCancel, this.buttonSpaceRight];
30292
+ return [this.buttonSpaceLeft, this.buttonCancel, this.buttonOk, this.buttonSpaceRight];
30293
30293
  };
30294
30294
  Object.defineProperty(DDialogLayeredFooter.prototype, "buttonSpaceLeft", {
30295
30295
  get: function () {
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.390.0
2
+ Winter Cardinal UI v0.390.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -30286,7 +30286,7 @@
30286
30286
  }
30287
30287
  };
30288
30288
  DDialogLayeredFooter.prototype.newChildren = function () {
30289
- return [this.buttonSpaceLeft, this.buttonOk, this.buttonCancel, this.buttonSpaceRight];
30289
+ return [this.buttonSpaceLeft, this.buttonCancel, this.buttonOk, this.buttonSpaceRight];
30290
30290
  };
30291
30291
  Object.defineProperty(DDialogLayeredFooter.prototype, "buttonSpaceLeft", {
30292
30292
  get: function () {