@oinone/kunlun-vue-admin-base 6.3.4 → 6.3.5

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.
@@ -30520,10 +30520,11 @@ const SimpleRedirectViewActionFragment = GQL.fragment(SimpleRedirectViewActionFr
30520
30520
  .parameter('model', 'name', 'target', 'viewType', ['moduleDefinition', ['name']], ['resModuleDefinition', ['name']])
30521
30521
  .toString();
30522
30522
  class UserService {
30523
- static sendSmsVerificationCodeByPhone(eventType, phone, picCode) {
30523
+ static sendSmsVerificationCodeByPhone(eventType, phone, picCode, phoneCode) {
30524
30524
  return GQL.mutation('pamirsUserTransient', 'sendSmsVerificationCode')
30525
30525
  .buildRequest((builder) => builder.buildObjectParameter('user', (dataBuilder) => {
30526
30526
  dataBuilder.stringParameter('phone', phone);
30527
+ dataBuilder.stringParameter('inviteCode', phoneCode);
30527
30528
  dataBuilder.stringParameter('picCode', picCode);
30528
30529
  dataBuilder.enumerationParameter('userBehaviorEvent', eventType);
30529
30530
  }))
@@ -30532,8 +30533,8 @@ class UserService {
30532
30533
  })
30533
30534
  .request(SYSTEM_MODULE_NAME.USER);
30534
30535
  }
30535
- static fetchVerificationCodeByForget(phone, picCode) {
30536
- return UserService.sendSmsVerificationCodeByPhone(UserBehaviorEventEnum.PHONE_MODIFY_PASSWORD_BY_PHONE_SEND_CODE, phone, picCode);
30536
+ static fetchVerificationCodeByForget(phone, picCode, phoneCode) {
30537
+ return UserService.sendSmsVerificationCodeByPhone(UserBehaviorEventEnum.PHONE_MODIFY_PASSWORD_BY_PHONE_SEND_CODE, phone, picCode, phoneCode);
30537
30538
  }
30538
30539
  static resetPasswordByPhone(phone, verificationCode, password, confirmPassword, inviteCode) {
30539
30540
  return __awaiter(this, void 0, void 0, function* () {
@@ -70667,6 +70668,12 @@ const DefaultSearchProps = Object.assign(Object.assign({}, OioFormProps$1), { te
70667
70668
  }, secondCateFieldOptions: {
70668
70669
  type: Array,
70669
70670
  default: () => []
70671
+ }, showTopCateAll: {
70672
+ type: Boolean
70673
+ }, showSecondCateAll: {
70674
+ type: Boolean
70675
+ }, topCateJustify: {
70676
+ type: String
70670
70677
  }, cateFields: {
70671
70678
  type: Array
70672
70679
  }, onCateSearch: {
@@ -70764,6 +70771,7 @@ function createSearchBar(isExpand, options) {
70764
70771
  type: ButtonType.link,
70765
70772
  iconPlacement: IconPlacement.AFTER,
70766
70773
  icon: 'oinone-xiala',
70774
+ iconColor: 'var(--oio-primary-color)',
70767
70775
  onClick: options.onExpand
70768
70776
  }, { default: () => expandText }));
70769
70777
  }
@@ -70826,7 +70834,7 @@ var script$1h = defineComponent({
70826
70834
  const defaultChildren = [];
70827
70835
  let invisible = false;
70828
70836
  let hasExpandButton = false;
70829
- if (props.template && !props.disabledExpand) {
70837
+ if (props.template) {
70830
70838
  const { widgets } = props.template;
70831
70839
  if (widgets && widgets.length) {
70832
70840
  let fields = [];
@@ -70837,12 +70845,15 @@ var script$1h = defineComponent({
70837
70845
  cateFields: props.cateFields,
70838
70846
  dslNodeType: DslDefinitionType.ELEMENT,
70839
70847
  widget: 'SearchTab',
70840
- widgets: cateWidgets
70848
+ widgets: cateWidgets,
70849
+ showTopCateAll: props.showTopCateAll,
70850
+ showSecondCateAll: props.showSecondCateAll,
70851
+ topCateJustify: props.topCateJustify
70841
70852
  }));
70842
70853
  }
70843
- const finalExpandSize = props.invisibleSearch ? props.foldSize + 1 : props.foldSize;
70844
- appendFieldDslDefinition(fields, widgets, finalExpandSize, props.foldSize, props.cateFields);
70845
- if (fields.length) {
70854
+ if (!props.disabledExpand) {
70855
+ const finalExpandSize = props.invisibleSearch ? props.foldSize + 1 : props.foldSize;
70856
+ appendFieldDslDefinition(fields, widgets, finalExpandSize, props.foldSize, props.cateFields);
70846
70857
  hasExpandButton = fields.length > finalExpandSize;
70847
70858
  if (hasExpandButton) {
70848
70859
  fields = fields.slice(0, finalExpandSize);
@@ -70870,21 +70881,17 @@ var script$1h = defineComponent({
70870
70881
  const searchBarCol = createSearchBarCol(searchActionBar, (props.foldSize - fields.length) * (DEFAULT_COLS$1 / (props.foldSize + 1)), invisible, props.foldSize);
70871
70882
  fields.push(searchBarCol);
70872
70883
  }
70884
+ defaultChildren.push(withDirectives(DslRender.render({
70885
+ internal: true,
70886
+ dslNodeType: DslDefinitionType.PACK,
70887
+ widgets: fields,
70888
+ widget: InternalWidget.Row,
70889
+ cols: DEFAULT_COLS$1,
70890
+ resolveOptions: {
70891
+ mode: ResolveMode.NORMAL
70892
+ }
70893
+ }), [[vShow, !props.isExpand]]));
70873
70894
  }
70874
- else {
70875
- hasExpandButton = false;
70876
- fields = widgets;
70877
- }
70878
- defaultChildren.push(withDirectives(DslRender.render({
70879
- internal: true,
70880
- dslNodeType: DslDefinitionType.PACK,
70881
- widgets: fields,
70882
- widget: InternalWidget.Row,
70883
- cols: DEFAULT_COLS$1,
70884
- resolveOptions: {
70885
- mode: ResolveMode.NORMAL
70886
- }
70887
- }), [[vShow, !props.isExpand]]));
70888
70895
  }
70889
70896
  }
70890
70897
  if (hasExpandButton || props.disabledExpand) {
@@ -70992,6 +70999,15 @@ let SearchWidget = class SearchWidget extends BaseSearchWidget {
70992
70999
  }
70993
71000
  return [topCateField, secondCateField];
70994
71001
  }
71002
+ get topCateJustify() {
71003
+ return this.getDsl().topCateJustify;
71004
+ }
71005
+ get showTopCateAll() {
71006
+ return Optional.ofNullable(BooleanHelper.toBoolean(this.getDsl().showTopCateAll)).orElse(true);
71007
+ }
71008
+ get showSecondCateAll() {
71009
+ return Optional.ofNullable(BooleanHelper.toBoolean(this.getDsl().showSecondCateAll)).orElse(true);
71010
+ }
70995
71011
  initialize(props) {
70996
71012
  super.initialize(props);
70997
71013
  this.setComponent(script$1h);
@@ -71188,6 +71204,21 @@ __decorate([
71188
71204
  __metadata("design:type", Array),
71189
71205
  __metadata("design:paramtypes", [])
71190
71206
  ], SearchWidget.prototype, "cateFields", null);
71207
+ __decorate([
71208
+ Widget.Reactive(),
71209
+ __metadata("design:type", Object),
71210
+ __metadata("design:paramtypes", [])
71211
+ ], SearchWidget.prototype, "topCateJustify", null);
71212
+ __decorate([
71213
+ Widget.Reactive(),
71214
+ __metadata("design:type", Boolean),
71215
+ __metadata("design:paramtypes", [])
71216
+ ], SearchWidget.prototype, "showTopCateAll", null);
71217
+ __decorate([
71218
+ Widget.Reactive(),
71219
+ __metadata("design:type", Boolean),
71220
+ __metadata("design:paramtypes", [])
71221
+ ], SearchWidget.prototype, "showSecondCateAll", null);
71191
71222
  __decorate([
71192
71223
  Widget.Method(),
71193
71224
  __metadata("design:type", Function),
@@ -71293,6 +71324,9 @@ var script$1g = defineComponent({
71293
71324
  type: Array,
71294
71325
  default: () => []
71295
71326
  },
71327
+ topCateJustify: {
71328
+ type: String
71329
+ },
71296
71330
  cateFields: {
71297
71331
  type: Array
71298
71332
  },
@@ -71366,8 +71400,12 @@ var script$1g = defineComponent({
71366
71400
  var _a, _b;
71367
71401
  const cateSearchNodes = [];
71368
71402
  if ((_a = this.topCateFieldOptions) === null || _a === void 0 ? void 0 : _a.length) {
71403
+ const className = ['oio-cate-search'];
71404
+ if (this.topCateJustify) {
71405
+ className.push(`oio-cate-search-${this.topCateJustify.toLocaleLowerCase()}`);
71406
+ }
71369
71407
  cateSearchNodes.push(createVNode(OioTabs, {
71370
- class: 'oio-cate-search',
71408
+ class: className,
71371
71409
  activeKey: this.topCateActive,
71372
71410
  'onUpdate:activeKey': (val) => (this.topCateActive = val),
71373
71411
  onChange: this.onChangeTopCate
@@ -71408,7 +71446,7 @@ let SearchTabWidget = class SearchTabWidget extends BaseElementWidget {
71408
71446
  return (_c = (_b = this.rootRuntimeContext) === null || _b === void 0 ? void 0 : _b.model.modelFields) === null || _c === void 0 ? void 0 : _c.find((a) => a && a.ttype === ModelFieldType.Enum && a.name === cateField);
71409
71447
  }
71410
71448
  get showTopCateAll() {
71411
- return BooleanHelper.toBoolean(this.getDsl().showTopCateAll) || true;
71449
+ return Optional.ofNullable(BooleanHelper.toBoolean(this.getDsl().showTopCateAll)).orElse(true);
71412
71450
  }
71413
71451
  get topCateFieldOptions() {
71414
71452
  const topCateModelField = this.topCateModelField;
@@ -71423,8 +71461,11 @@ let SearchTabWidget = class SearchTabWidget extends BaseElementWidget {
71423
71461
  }
71424
71462
  return (_b = (_a = this.rootRuntimeContext) === null || _a === void 0 ? void 0 : _a.model.modelFields) === null || _b === void 0 ? void 0 : _b.find((a) => a && a.ttype === ModelFieldType.Enum && a.name === secondCateField);
71425
71463
  }
71464
+ get topCateJustify() {
71465
+ return this.getDsl().topCateJustify;
71466
+ }
71426
71467
  get showSecondCateAll() {
71427
- return BooleanHelper.toBoolean(this.getDsl().showSecondCateAll) || true;
71468
+ return Optional.ofNullable(BooleanHelper.toBoolean(this.getDsl().showSecondCateAll)).orElse(true);
71428
71469
  }
71429
71470
  get secondCateFieldOptions() {
71430
71471
  const secondCateModelField = this.secondCateModelField;
@@ -71495,6 +71536,11 @@ __decorate([
71495
71536
  __metadata("design:type", Object),
71496
71537
  __metadata("design:paramtypes", [])
71497
71538
  ], SearchTabWidget.prototype, "secondCateModelField", null);
71539
+ __decorate([
71540
+ Widget.Reactive(),
71541
+ __metadata("design:type", Object),
71542
+ __metadata("design:paramtypes", [])
71543
+ ], SearchTabWidget.prototype, "topCateJustify", null);
71498
71544
  __decorate([
71499
71545
  Widget.Reactive(),
71500
71546
  __metadata("design:type", Boolean),
@@ -76085,12 +76131,13 @@ let ForgetPasswordWidget = class ForgetPasswordWidget extends BaseI18nRouterWidg
76085
76131
  this.router.push({ segments: [{ path: 'login' }] });
76086
76132
  }
76087
76133
  fetchVerificationCode() {
76134
+ var _a, _b;
76088
76135
  return __awaiter(this, void 0, void 0, function* () {
76089
76136
  const { phone } = this.formData;
76090
76137
  if (!phone) {
76091
76138
  return false;
76092
76139
  }
76093
- const { broken, errorMsg } = yield UserService.fetchVerificationCodeByForget(phone);
76140
+ const { broken, errorMsg } = yield UserService.fetchVerificationCodeByForget(phone, undefined, (_b = (_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.phoneCode);
76094
76141
  if (broken) {
76095
76142
  if (errorMsg) {
76096
76143
  OioMessage.error(errorMsg);