@xy-planning-network/trees 0.2.61 → 0.2.62
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/trees.esm.js +73 -75
- package/dist/trees.min.js +2 -2
- package/dist/trees.ssr.js +83 -83
- package/package.json +1 -1
- package/src/lib-components/forms/{Switch.vue → Toggle.vue} +4 -8
- package/trees.d.ts +1 -1
package/dist/trees.ssr.js
CHANGED
|
@@ -10504,72 +10504,14 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10504
10504
|
}),
|
|
10505
10505
|
textContent: vue.toDisplayString(_ctx.nextText ? _ctx.nextText : 'Next')
|
|
10506
10506
|
}, null, 8, ["textContent"])])])) : vue.createCommentVNode("", true)]);
|
|
10507
|
-
}Steps.render = render$9;var _dec$8, _dec2$8, _class$8, _class2$8, _descriptor$8;
|
|
10508
|
-
var
|
|
10509
|
-
name: "Switch",
|
|
10510
|
-
components: {
|
|
10511
|
-
Switch: Switch
|
|
10512
|
-
}
|
|
10513
|
-
}), _dec2$8 = Prop({
|
|
10514
|
-
type: Boolean,
|
|
10515
|
-
required: false
|
|
10516
|
-
}), _dec$8(_class$8 = (_class2$8 = /*#__PURE__*/function (_Vue) {
|
|
10517
|
-
_inherits$1(TreesSwitch, _Vue);
|
|
10518
|
-
|
|
10519
|
-
var _super = _createSuper$1(TreesSwitch);
|
|
10520
|
-
|
|
10521
|
-
function TreesSwitch() {
|
|
10522
|
-
var _this;
|
|
10523
|
-
|
|
10524
|
-
_classCallCheck$1(this, TreesSwitch);
|
|
10525
|
-
|
|
10526
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10527
|
-
args[_key] = arguments[_key];
|
|
10528
|
-
}
|
|
10529
|
-
|
|
10530
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
10531
|
-
|
|
10532
|
-
_initializerDefineProperty(_assertThisInitialized$1(_this), "modelValue", _descriptor$8, _assertThisInitialized$1(_this));
|
|
10533
|
-
|
|
10534
|
-
return _this;
|
|
10535
|
-
}
|
|
10536
|
-
|
|
10537
|
-
return TreesSwitch;
|
|
10538
|
-
}(Vue), (_descriptor$8 = _applyDecoratedDescriptor(_class2$8.prototype, "modelValue", [_dec2$8], {
|
|
10539
|
-
configurable: true,
|
|
10540
|
-
enumerable: true,
|
|
10541
|
-
writable: true,
|
|
10542
|
-
initializer: null
|
|
10543
|
-
})), _class2$8)) || _class$8);var _hoisted_1$6 = /*#__PURE__*/vue.createVNode("span", {
|
|
10544
|
-
class: "sr-only"
|
|
10545
|
-
}, "Use", -1);
|
|
10546
|
-
|
|
10547
|
-
function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10548
|
-
var _component_Switch = vue.resolveComponent("Switch", true);
|
|
10549
|
-
|
|
10550
|
-
return vue.openBlock(), vue.createBlock(_component_Switch, vue.mergeProps({
|
|
10551
|
-
class: [_ctx.modelValue ? 'bg-blue-600' : 'bg-gray-200', 'relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500']
|
|
10552
|
-
}, _objectSpread2$1(_objectSpread2$1({}, _ctx.$attrs), {}, {
|
|
10553
|
-
onChange: function onChange($event) {
|
|
10554
|
-
_ctx.$emit('update:modelValue', $event);
|
|
10555
|
-
}
|
|
10556
|
-
})), {
|
|
10557
|
-
default: vue.withCtx(function () {
|
|
10558
|
-
return [_hoisted_1$6, vue.createVNode("span", {
|
|
10559
|
-
"aria-hidden": "true",
|
|
10560
|
-
class: [_ctx.modelValue ? 'translate-x-5' : 'translate-x-0', 'pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200']
|
|
10561
|
-
}, null, 2)];
|
|
10562
|
-
}),
|
|
10563
|
-
_: 1
|
|
10564
|
-
}, 16, ["class"]);
|
|
10565
|
-
}TreesSwitch.render = render$8;var _dec$7, _dec2$7, _dec3$7, _dec4$7, _dec5$3, _dec6$1, _class$7, _class2$7, _descriptor$7, _descriptor2$7, _descriptor3$7;
|
|
10566
|
-
var Table = (_dec$7 = Options({
|
|
10507
|
+
}Steps.render = render$9;var _dec$8, _dec2$8, _dec3$7, _dec4$7, _dec5$3, _dec6$1, _class$8, _class2$8, _descriptor$8, _descriptor2$7, _descriptor3$7;
|
|
10508
|
+
var Table = (_dec$8 = Options({
|
|
10567
10509
|
components: {
|
|
10568
10510
|
DateRangePicker: DateRangePicker,
|
|
10569
10511
|
Paginator: Paginator
|
|
10570
10512
|
},
|
|
10571
10513
|
name: "Table"
|
|
10572
|
-
}), _dec2$
|
|
10514
|
+
}), _dec2$8 = Prop({
|
|
10573
10515
|
type: Boolean,
|
|
10574
10516
|
required: false,
|
|
10575
10517
|
default: false
|
|
@@ -10580,7 +10522,7 @@ var Table = (_dec$7 = Options({
|
|
|
10580
10522
|
}), _dec4$7 = Prop({
|
|
10581
10523
|
type: Object,
|
|
10582
10524
|
required: true
|
|
10583
|
-
}), _dec5$3 = Watch("tableData.refreshTrigger"), _dec6$1 = Watch("tableData.reloadTrigger"), _dec$
|
|
10525
|
+
}), _dec5$3 = Watch("tableData.refreshTrigger"), _dec6$1 = Watch("tableData.reloadTrigger"), _dec$8(_class$8 = (_class2$8 = /*#__PURE__*/function (_Vue) {
|
|
10584
10526
|
_inherits$1(Table, _Vue);
|
|
10585
10527
|
|
|
10586
10528
|
var _super = _createSuper$1(Table);
|
|
@@ -10596,7 +10538,7 @@ var Table = (_dec$7 = Options({
|
|
|
10596
10538
|
|
|
10597
10539
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
10598
10540
|
|
|
10599
|
-
_initializerDefineProperty(_assertThisInitialized$1(_this), "clickable", _descriptor$
|
|
10541
|
+
_initializerDefineProperty(_assertThisInitialized$1(_this), "clickable", _descriptor$8, _assertThisInitialized$1(_this));
|
|
10600
10542
|
|
|
10601
10543
|
_initializerDefineProperty(_assertThisInitialized$1(_this), "loader", _descriptor2$7, _assertThisInitialized$1(_this));
|
|
10602
10544
|
|
|
@@ -10724,22 +10666,22 @@ var Table = (_dec$7 = Options({
|
|
|
10724
10666
|
}]);
|
|
10725
10667
|
|
|
10726
10668
|
return Table;
|
|
10727
|
-
}(Vue), (_descriptor$
|
|
10669
|
+
}(Vue), (_descriptor$8 = _applyDecoratedDescriptor(_class2$8.prototype, "clickable", [_dec2$8], {
|
|
10728
10670
|
configurable: true,
|
|
10729
10671
|
enumerable: true,
|
|
10730
10672
|
writable: true,
|
|
10731
10673
|
initializer: null
|
|
10732
|
-
}), _descriptor2$7 = _applyDecoratedDescriptor(_class2$
|
|
10674
|
+
}), _descriptor2$7 = _applyDecoratedDescriptor(_class2$8.prototype, "loader", [_dec3$7], {
|
|
10733
10675
|
configurable: true,
|
|
10734
10676
|
enumerable: true,
|
|
10735
10677
|
writable: true,
|
|
10736
10678
|
initializer: null
|
|
10737
|
-
}), _descriptor3$7 = _applyDecoratedDescriptor(_class2$
|
|
10679
|
+
}), _descriptor3$7 = _applyDecoratedDescriptor(_class2$8.prototype, "tableData", [_dec4$7], {
|
|
10738
10680
|
configurable: true,
|
|
10739
10681
|
enumerable: true,
|
|
10740
10682
|
writable: true,
|
|
10741
10683
|
initializer: null
|
|
10742
|
-
}), _applyDecoratedDescriptor(_class2$
|
|
10684
|
+
}), _applyDecoratedDescriptor(_class2$8.prototype, "onRefreshTrigger", [_dec5$3], Object.getOwnPropertyDescriptor(_class2$8.prototype, "onRefreshTrigger"), _class2$8.prototype), _applyDecoratedDescriptor(_class2$8.prototype, "onReloadTrigger", [_dec6$1], Object.getOwnPropertyDescriptor(_class2$8.prototype, "onReloadTrigger"), _class2$8.prototype)), _class2$8)) || _class$8);var _hoisted_1$6 = {
|
|
10743
10685
|
class: "flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between"
|
|
10744
10686
|
};
|
|
10745
10687
|
var _hoisted_2$5 = {
|
|
@@ -10831,12 +10773,12 @@ var _hoisted_16 = {
|
|
|
10831
10773
|
var _hoisted_17 = {
|
|
10832
10774
|
key: 0
|
|
10833
10775
|
};
|
|
10834
|
-
function render$
|
|
10776
|
+
function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10835
10777
|
var _component_DateRangePicker = vue.resolveComponent("DateRangePicker");
|
|
10836
10778
|
|
|
10837
10779
|
var _component_Paginator = vue.resolveComponent("Paginator");
|
|
10838
10780
|
|
|
10839
|
-
return vue.openBlock(), vue.createBlock("div", null, [vue.createVNode("div", _hoisted_1$
|
|
10781
|
+
return vue.openBlock(), vue.createBlock("div", null, [vue.createVNode("div", _hoisted_1$6, [_ctx.tableData.search ? (vue.openBlock(), vue.createBlock("div", _hoisted_2$5, [_hoisted_3$2, vue.createVNode("div", _hoisted_4, [_hoisted_5, vue.withDirectives(vue.createVNode("input", {
|
|
10840
10782
|
class: "pl-10",
|
|
10841
10783
|
type: "search",
|
|
10842
10784
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) {
|
|
@@ -10900,10 +10842,10 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10900
10842
|
return _ctx.loadAndRender(false);
|
|
10901
10843
|
})]
|
|
10902
10844
|
}, null, 8, ["modelValue"])) : vue.createCommentVNode("", true)]);
|
|
10903
|
-
}Table.render = render$
|
|
10904
|
-
var Tabs = (_dec$
|
|
10845
|
+
}Table.render = render$8;var _dec$7, _dec2$7, _dec3$6, _dec4$6, _dec5$2, _class$7, _class2$7, _descriptor$7, _descriptor2$6, _descriptor3$6;
|
|
10846
|
+
var Tabs = (_dec$7 = Options({
|
|
10905
10847
|
name: "Tabs"
|
|
10906
|
-
}), _dec2$
|
|
10848
|
+
}), _dec2$7 = Prop({
|
|
10907
10849
|
type: String,
|
|
10908
10850
|
required: true
|
|
10909
10851
|
}), _dec3$6 = Prop({
|
|
@@ -10912,7 +10854,7 @@ var Tabs = (_dec$6 = Options({
|
|
|
10912
10854
|
}), _dec4$6 = Prop({
|
|
10913
10855
|
type: Array,
|
|
10914
10856
|
required: true
|
|
10915
|
-
}), _dec5$2 = Emit("update:modelValue"), _dec$
|
|
10857
|
+
}), _dec5$2 = Emit("update:modelValue"), _dec$7(_class$7 = (_class2$7 = /*#__PURE__*/function (_Vue) {
|
|
10916
10858
|
_inherits$1(Tabs, _Vue);
|
|
10917
10859
|
|
|
10918
10860
|
var _super = _createSuper$1(Tabs);
|
|
@@ -10928,7 +10870,7 @@ var Tabs = (_dec$6 = Options({
|
|
|
10928
10870
|
|
|
10929
10871
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
10930
10872
|
|
|
10931
|
-
_initializerDefineProperty(_assertThisInitialized$1(_this), "modelValue", _descriptor$
|
|
10873
|
+
_initializerDefineProperty(_assertThisInitialized$1(_this), "modelValue", _descriptor$7, _assertThisInitialized$1(_this));
|
|
10932
10874
|
|
|
10933
10875
|
_initializerDefineProperty(_assertThisInitialized$1(_this), "pillDesign", _descriptor2$6, _assertThisInitialized$1(_this));
|
|
10934
10876
|
|
|
@@ -10978,22 +10920,22 @@ var Tabs = (_dec$6 = Options({
|
|
|
10978
10920
|
}]);
|
|
10979
10921
|
|
|
10980
10922
|
return Tabs;
|
|
10981
|
-
}(Vue), (_descriptor$
|
|
10923
|
+
}(Vue), (_descriptor$7 = _applyDecoratedDescriptor(_class2$7.prototype, "modelValue", [_dec2$7], {
|
|
10982
10924
|
configurable: true,
|
|
10983
10925
|
enumerable: true,
|
|
10984
10926
|
writable: true,
|
|
10985
10927
|
initializer: null
|
|
10986
|
-
}), _descriptor2$6 = _applyDecoratedDescriptor(_class2$
|
|
10928
|
+
}), _descriptor2$6 = _applyDecoratedDescriptor(_class2$7.prototype, "pillDesign", [_dec3$6], {
|
|
10987
10929
|
configurable: true,
|
|
10988
10930
|
enumerable: true,
|
|
10989
10931
|
writable: true,
|
|
10990
10932
|
initializer: null
|
|
10991
|
-
}), _descriptor3$6 = _applyDecoratedDescriptor(_class2$
|
|
10933
|
+
}), _descriptor3$6 = _applyDecoratedDescriptor(_class2$7.prototype, "tabs", [_dec4$6], {
|
|
10992
10934
|
configurable: true,
|
|
10993
10935
|
enumerable: true,
|
|
10994
10936
|
writable: true,
|
|
10995
10937
|
initializer: null
|
|
10996
|
-
}), _applyDecoratedDescriptor(_class2$
|
|
10938
|
+
}), _applyDecoratedDescriptor(_class2$7.prototype, "updateModelValue", [_dec5$2], Object.getOwnPropertyDescriptor(_class2$7.prototype, "updateModelValue"), _class2$7.prototype)), _class2$7)) || _class$7);var _hoisted_1$5 = /*#__PURE__*/vue.createVNode("label", {
|
|
10997
10939
|
for: "tabs",
|
|
10998
10940
|
class: "sr-only"
|
|
10999
10941
|
}, "Select a tab", -1);
|
|
@@ -11001,14 +10943,14 @@ var Tabs = (_dec$6 = Options({
|
|
|
11001
10943
|
var _hoisted_2$4 = {
|
|
11002
10944
|
class: "hidden sm:block"
|
|
11003
10945
|
};
|
|
11004
|
-
function render$
|
|
10946
|
+
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11005
10947
|
var _component_Select = vue.resolveComponent("Select");
|
|
11006
10948
|
|
|
11007
10949
|
return vue.openBlock(), vue.createBlock("div", null, [vue.createVNode("div", {
|
|
11008
10950
|
class: ["sm:hidden", {
|
|
11009
10951
|
'mb-4': _ctx.pillDesign
|
|
11010
10952
|
}]
|
|
11011
|
-
}, [_hoisted_1$
|
|
10953
|
+
}, [_hoisted_1$5, vue.createVNode(_component_Select, {
|
|
11012
10954
|
name: "tabs",
|
|
11013
10955
|
modelValue: _ctx.modelValue,
|
|
11014
10956
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) {
|
|
@@ -11032,7 +10974,65 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11032
10974
|
}, ["prevent"])
|
|
11033
10975
|
}, null, 10, ["textContent", "onClick"]);
|
|
11034
10976
|
}), 128))], 2)], 2)])]);
|
|
11035
|
-
}Tabs.render = render$
|
|
10977
|
+
}Tabs.render = render$7;var _dec$6, _dec2$6, _class$6, _class2$6, _descriptor$6;
|
|
10978
|
+
var Toggle = (_dec$6 = Options({
|
|
10979
|
+
name: "Toggle",
|
|
10980
|
+
components: {
|
|
10981
|
+
Switch: Switch
|
|
10982
|
+
}
|
|
10983
|
+
}), _dec2$6 = Prop({
|
|
10984
|
+
type: Boolean,
|
|
10985
|
+
required: false
|
|
10986
|
+
}), _dec$6(_class$6 = (_class2$6 = /*#__PURE__*/function (_Vue) {
|
|
10987
|
+
_inherits$1(Toggle, _Vue);
|
|
10988
|
+
|
|
10989
|
+
var _super = _createSuper$1(Toggle);
|
|
10990
|
+
|
|
10991
|
+
function Toggle() {
|
|
10992
|
+
var _this;
|
|
10993
|
+
|
|
10994
|
+
_classCallCheck$1(this, Toggle);
|
|
10995
|
+
|
|
10996
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10997
|
+
args[_key] = arguments[_key];
|
|
10998
|
+
}
|
|
10999
|
+
|
|
11000
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11001
|
+
|
|
11002
|
+
_initializerDefineProperty(_assertThisInitialized$1(_this), "modelValue", _descriptor$6, _assertThisInitialized$1(_this));
|
|
11003
|
+
|
|
11004
|
+
return _this;
|
|
11005
|
+
}
|
|
11006
|
+
|
|
11007
|
+
return Toggle;
|
|
11008
|
+
}(Vue), (_descriptor$6 = _applyDecoratedDescriptor(_class2$6.prototype, "modelValue", [_dec2$6], {
|
|
11009
|
+
configurable: true,
|
|
11010
|
+
enumerable: true,
|
|
11011
|
+
writable: true,
|
|
11012
|
+
initializer: null
|
|
11013
|
+
})), _class2$6)) || _class$6);var _hoisted_1$4 = /*#__PURE__*/vue.createVNode("span", {
|
|
11014
|
+
class: "sr-only"
|
|
11015
|
+
}, "Use", -1);
|
|
11016
|
+
|
|
11017
|
+
function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11018
|
+
var _component_Switch = vue.resolveComponent("Switch");
|
|
11019
|
+
|
|
11020
|
+
return vue.openBlock(), vue.createBlock(_component_Switch, {
|
|
11021
|
+
class: [_ctx.modelValue ? 'bg-blue-600' : 'bg-gray-200', 'relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500'],
|
|
11022
|
+
modelValue: _ctx.modelValue,
|
|
11023
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) {
|
|
11024
|
+
return _ctx.$emit('update:modelValue', $event);
|
|
11025
|
+
})
|
|
11026
|
+
}, {
|
|
11027
|
+
default: vue.withCtx(function () {
|
|
11028
|
+
return [_hoisted_1$4, vue.createVNode("span", {
|
|
11029
|
+
"aria-hidden": "true",
|
|
11030
|
+
class: [_ctx.modelValue ? 'translate-x-5' : 'translate-x-0', 'pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200']
|
|
11031
|
+
}, null, 2)];
|
|
11032
|
+
}),
|
|
11033
|
+
_: 1
|
|
11034
|
+
}, 8, ["class", "modelValue"]);
|
|
11035
|
+
}Toggle.render = render$6;var _dec$5, _dec2$5, _dec3$5, _dec4$5, _class$5, _class2$5, _descriptor$5, _descriptor2$5, _descriptor3$5;
|
|
11036
11036
|
var Checkbox = (_dec$5 = Options({
|
|
11037
11037
|
name: "Checkbox"
|
|
11038
11038
|
}), _dec2$5 = Prop({
|
|
@@ -11646,7 +11646,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11646
11646
|
}
|
|
11647
11647
|
})), null, 16, ["id", "name", "checked"]), _hoisted_2], 10, ["for"])]);
|
|
11648
11648
|
}YesOrNoRadio.render = render;// TODO: rearrange so that these are default installed by app.use(Trees);
|
|
11649
|
-
var components$1=/*#__PURE__*/Object.freeze({__proto__:null,ActionsDropdown: ActionsDropdown,Cards: Cards,ContentModal: ContentModal,DateFilter: DateFilter,DetailList: DetailList,DownloadCell: DownloadCell,Flash: Flash,Modal: Modal,SidebarLayout: SidebarLayout,Slideover: Slideover,StackedLayout: StackedLayout,Paginator: Paginator,Spinner: Spinner,StaticTable: StaticTable,Steps: Steps,
|
|
11649
|
+
var components$1=/*#__PURE__*/Object.freeze({__proto__:null,ActionsDropdown: ActionsDropdown,Cards: Cards,ContentModal: ContentModal,DateFilter: DateFilter,DetailList: DetailList,DownloadCell: DownloadCell,Flash: Flash,Modal: Modal,SidebarLayout: SidebarLayout,Slideover: Slideover,StackedLayout: StackedLayout,Paginator: Paginator,Spinner: Spinner,StaticTable: StaticTable,Steps: Steps,Table: Table,Tabs: Tabs,Toggle: Toggle,BaseInput: BaseInput,Checkbox: Checkbox,DateRangePicker: DateRangePicker,InputHelp: InputHelp,InputLabel: InputLabel,MultiCheckboxes: MultiCheckboxes,Radio: Radio,Select: Select,TextArea: TextArea,YesOrNoRadio: YesOrNoRadio});var install = function installTrees(app) {
|
|
11650
11650
|
Object.entries(components$1).forEach(function (_ref) {
|
|
11651
11651
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
11652
11652
|
componentName = _ref2[0],
|
|
@@ -11655,7 +11655,7 @@ var components$1=/*#__PURE__*/Object.freeze({__proto__:null,ActionsDropdown: Act
|
|
|
11655
11655
|
app.component(componentName, component);
|
|
11656
11656
|
});
|
|
11657
11657
|
}; // Create module definition for Vue.use()
|
|
11658
|
-
var components=/*#__PURE__*/Object.freeze({__proto__:null,'default': install,BaseAPI: BaseAPI,ActionsDropdown: ActionsDropdown,Cards: Cards,ContentModal: ContentModal,DateFilter: DateFilter,DetailList: DetailList,DownloadCell: DownloadCell,Flash: Flash,Modal: Modal,SidebarLayout: SidebarLayout,Slideover: Slideover,StackedLayout: StackedLayout,Paginator: Paginator,Spinner: Spinner,StaticTable: StaticTable,Steps: Steps,
|
|
11658
|
+
var components=/*#__PURE__*/Object.freeze({__proto__:null,'default': install,BaseAPI: BaseAPI,ActionsDropdown: ActionsDropdown,Cards: Cards,ContentModal: ContentModal,DateFilter: DateFilter,DetailList: DetailList,DownloadCell: DownloadCell,Flash: Flash,Modal: Modal,SidebarLayout: SidebarLayout,Slideover: Slideover,StackedLayout: StackedLayout,Paginator: Paginator,Spinner: Spinner,StaticTable: StaticTable,Steps: Steps,Table: Table,Tabs: Tabs,Toggle: Toggle,BaseInput: BaseInput,Checkbox: Checkbox,DateRangePicker: DateRangePicker,InputHelp: InputHelp,InputLabel: InputLabel,MultiCheckboxes: MultiCheckboxes,Radio: Radio,Select: Select,TextArea: TextArea,YesOrNoRadio: YesOrNoRadio});// only expose one global var, with component exports exposed as properties of
|
|
11659
11659
|
// that global var (eg. plugin.component)
|
|
11660
11660
|
|
|
11661
11661
|
Object.entries(components).forEach(function (_ref) {
|
package/package.json
CHANGED
|
@@ -4,12 +4,8 @@
|
|
|
4
4
|
modelValue ? 'bg-blue-600' : 'bg-gray-200',
|
|
5
5
|
'relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500',
|
|
6
6
|
]"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
onChange: ($event) => {
|
|
10
|
-
$emit('update:modelValue', $event);
|
|
11
|
-
},
|
|
12
|
-
}"
|
|
7
|
+
:modelValue="modelValue"
|
|
8
|
+
@update:modelValue="$emit('update:modelValue', $event)"
|
|
13
9
|
>
|
|
14
10
|
<span class="sr-only">Use</span>
|
|
15
11
|
<span
|
|
@@ -26,8 +22,8 @@
|
|
|
26
22
|
import { Options, Prop, Vue } from "vue-property-decorator";
|
|
27
23
|
import { Switch } from "@headlessui/vue";
|
|
28
24
|
|
|
29
|
-
@Options({ name: "
|
|
30
|
-
export default class
|
|
25
|
+
@Options({ name: "Toggle", components: { Switch } })
|
|
26
|
+
export default class Toggle extends Vue {
|
|
31
27
|
@Prop({ type: Boolean, required: false }) modelValue?: boolean;
|
|
32
28
|
}
|
|
33
29
|
</script>
|
package/trees.d.ts
CHANGED
|
@@ -29,9 +29,9 @@ export const Spinner: DefineComponent<{}, {}, any>;
|
|
|
29
29
|
export const StackedLayout: DefineComponent<{}, {}, any>;
|
|
30
30
|
export const StaticTable: DefineComponent<{}, {}, any>;
|
|
31
31
|
export const Steps: DefineComponent<{}, {}, any>;
|
|
32
|
-
export const Switch: DefineComponent<{}, {}, any>;
|
|
33
32
|
export const Table: DefineComponent<{}, {}, any>;
|
|
34
33
|
export const Tabs: DefineComponent<{}, {}, any>;
|
|
34
|
+
export const Toggle: DefineComponent<{}, {}, any>;
|
|
35
35
|
export const YesOrNoRadio: DefineComponent<{}, {}, any>;
|
|
36
36
|
|
|
37
37
|
export const BaseAPI: {
|